From 96393fec7a6cc4ef4998aa8b820760bd90dd3290 Mon Sep 17 00:00:00 2001 From: CB9TOIIIA Date: Mon, 8 May 2017 16:41:13 +0300 Subject: [PATCH] add redirect --- mod_simplecallback/helper.php | 2 ++ mod_simplecallback/mod_simplecallback.xml | 18 +++++++++++++++++- mod_simplecallback/tmpl/default.php | 12 ++++++++++++ updatemysimplecallback.xml | 4 ++-- 4 files changed, 33 insertions(+), 3 deletions(-) diff --git a/mod_simplecallback/helper.php b/mod_simplecallback/helper.php index 69afe49..4c2f4f1 100644 --- a/mod_simplecallback/helper.php +++ b/mod_simplecallback/helper.php @@ -109,6 +109,8 @@ public static function getAjax() $pozvonim_key = $params->get('simplecallback_pozvonim_key'); $pozvonim_uid = $params->get('simplecallback_pozvonim_uid'); $pozvonim_siteid = $params->get('simplecallback_pozvonim_siteid'); + $redirect_enabled = $params->get('simplacallback_redirect_enabled'); + $redirect_url = $params->get('simplacallback_redirect_url'); $bitrix24_enabled = $params->get('simplecallback_bitrix24_enabled'); $bitrix24_crm_host = $params->get('simplecallback_bitrix24_crm_host'); diff --git a/mod_simplecallback/mod_simplecallback.xml b/mod_simplecallback/mod_simplecallback.xml index 3b64b96..26ebccb 100644 --- a/mod_simplecallback/mod_simplecallback.xml +++ b/mod_simplecallback/mod_simplecallback.xml @@ -4,7 +4,7 @@ Eugene Kopylov cb9toiiia@gmail.com https://github.com/CB9TOIIIA/simplecallback_fork_cb9t - 1.3.2 + 1.3.3 24.02.2015 Для настройки и добавление новых возможностей (мои контакты): Сайт: www.SEOSM.ru Skype: cb9t.ru / Telegram: @CB9TOIIIA / Почта: cb9toiiia@gmail.com
]]> @@ -330,6 +330,22 @@ label="Reachgoal (цель)" description="" default="yaCounterXXXXXX.reachGoal('buy_button');"> + + + + +
diff --git a/mod_simplecallback/tmpl/default.php b/mod_simplecallback/tmpl/default.php index b6d63c3..5930227 100644 --- a/mod_simplecallback/tmpl/default.php +++ b/mod_simplecallback/tmpl/default.php @@ -56,6 +56,8 @@ $textarea_width_cols = $params->get('simplecallback_textarea_width_cols', ''); $textarea_width_rows = $params->get('simplecallback_textarea_width_rows', ''); $reachgoal_text = $params->get('simplacallback_reachgoal_text', ''); +$redirect_enabled = $params->get('simplacallback_redirect_enabled', 0); +$redirect_url = $params->get('simplacallback_redirect_url'); if ($my_inline_css_enabled == 1) { echo ''; @@ -222,6 +224,16 @@ + '.$redirect_url.''; + } + else { + echo $redirect_url = ''; + } + + ?> +
diff --git a/updatemysimplecallback.xml b/updatemysimplecallback.xml index 14a69ee..e1e0823 100644 --- a/updatemysimplecallback.xml +++ b/updatemysimplecallback.xml @@ -5,10 +5,10 @@ mod_simplecallback mod_simplecallback module - 1.3.2 + 1.3.3 https://github.com/CB9TOIIIA/simplecallback_fork_cb9t/ - + stable