From 57e26e104128ce36827429fe638e1b964bba1164 Mon Sep 17 00:00:00 2001 From: alessandro chinazzo Date: Tue, 17 Jan 2023 11:23:28 +0100 Subject: [PATCH 1/2] New tv patterns --- .../defaults/modx_lingua_site_tmplvars_patterns.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/components/lingua/defaults/modx_lingua_site_tmplvars_patterns.php b/core/components/lingua/defaults/modx_lingua_site_tmplvars_patterns.php index 4a936dc..4f81329 100644 --- a/core/components/lingua/defaults/modx_lingua_site_tmplvars_patterns.php +++ b/core/components/lingua/defaults/modx_lingua_site_tmplvars_patterns.php @@ -49,5 +49,12 @@ array('id' => '42','type' => 'migx','search' => '/("|\'){1}migx_iframewin_json_{{tvId}}("|\'){1}/','replacement' => '${1}migx_iframewin_json_{{tvCloneId}}${2}'), array('id' => '43','type' => 'migx','search' => '/("|\'){1}migx_iframewin_co_id_{{tvId}}("|\'){1}/','replacement' => '${1}migx_iframewin_co_id_{{tvCloneId}}${2}'), array('id' => '44','type' => 'migx','search' => '/("|\'){1}migx_iframewin_store_params_{{tvId}}("|\'){1}/','replacement' => '${1}migx_iframewin_store_params_{{tvCloneId}}${2}'), - array('id' => '45','type' => 'migx','search' => '/tv_id:(\\s)*("|\'){1}{{tvId}}("|\'){1}/','replacement' => 'tv_id:${1}${2}{{tvCloneId}}${3}') + array('id' => '45','type' => 'migx','search' => '/tv_id:(\\s)*("|\'){1}{{tvId}}("|\'){1}/','replacement' => 'tv_id:${1}${2}{{tvCloneId}}${3}'), + array('id' => '46','type' => 'calltoactiontv','search' => '/("|\')modx-calltoactiontv-tv{{tvId}}/','replacement' => '${1}modx-calltoactiontv-tv{{tvCloneId}}'), + array('id' => '47','type' => 'calltoactiontv','search' => '/("|\'){1}tv{{tvId}}("|\'){1}/','replacement' => '${1}tv{{tvCloneId}}${2}'), + array('id' => '48','type' => 'calltoactiontv','search' => '/tvId: \'{{tvId}}\'/','replacement' => 'tvId: \'{{tvCloneId}}\''), + array('id' => '49','type' => 'superboxselect','search' => '/("|\')superboxselect-tv-{{tvId}}/','replacement' => '${1}superboxselect-tv-{{tvCloneId}}'), + array('id' => '50','type' => 'superboxselect','search' => '/("|\'){1}tvdef{{tvId}}("|\'){1}/','replacement' => '${1}tvdef{{tvCloneId}}${2}'), + array('id' => '51','type' => 'superboxselect','search' => '/tvid: ("|\'){1}{{tvId}}("|\'){1}/','replacement' => 'tvid: ${1}{{tvCloneId}}${2}'), + array('id' => '52','type' => 'superboxselect','search' => '/tv{{tvId}}store/','replacement' => 'tv{{tvCloneId}}store') ); From b8d4b08d32ccba414f6ab0d4d340d1fb3571b517 Mon Sep 17 00:00:00 2001 From: alessandro chinazzo Date: Tue, 17 Jan 2023 12:37:33 +0100 Subject: [PATCH 2/2] SuperBoxSelect: new pattern --- .../lingua/defaults/modx_lingua_site_tmplvars_patterns.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/components/lingua/defaults/modx_lingua_site_tmplvars_patterns.php b/core/components/lingua/defaults/modx_lingua_site_tmplvars_patterns.php index 4f81329..d907d98 100644 --- a/core/components/lingua/defaults/modx_lingua_site_tmplvars_patterns.php +++ b/core/components/lingua/defaults/modx_lingua_site_tmplvars_patterns.php @@ -56,5 +56,6 @@ array('id' => '49','type' => 'superboxselect','search' => '/("|\')superboxselect-tv-{{tvId}}/','replacement' => '${1}superboxselect-tv-{{tvCloneId}}'), array('id' => '50','type' => 'superboxselect','search' => '/("|\'){1}tvdef{{tvId}}("|\'){1}/','replacement' => '${1}tvdef{{tvCloneId}}${2}'), array('id' => '51','type' => 'superboxselect','search' => '/tvid: ("|\'){1}{{tvId}}("|\'){1}/','replacement' => 'tvid: ${1}{{tvCloneId}}${2}'), - array('id' => '52','type' => 'superboxselect','search' => '/tv{{tvId}}store/','replacement' => 'tv{{tvCloneId}}store') + array('id' => '52','type' => 'superboxselect','search' => '/tv{{tvId}}store/','replacement' => 'tv{{tvCloneId}}store'), + array('id' => '53','type' => 'superboxselect','search' => '/"tvid": "{{tvId}}"/','replacement' => '"tvid": "{{tvCloneId}}"') );