From 911a8880bdb361833f0d051c4ba106defa53720c Mon Sep 17 00:00:00 2001 From: CB9TOIIIA Date: Sun, 7 May 2017 12:26:41 +0300 Subject: [PATCH] add reachgoal --- mod_simplecallback/mod_simplecallback.xml | 19 +++++++++++++++++-- mod_simplecallback/tmpl/default.php | 11 ++++++++++- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/mod_simplecallback/mod_simplecallback.xml b/mod_simplecallback/mod_simplecallback.xml index 21680df..dfbbefa 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.1 + 1.3.2 24.02.2015 Для настройки и добавление новых возможностей (мои контакты): Skype: cb9t.ru / Telegram: @CB9TOIIIA / Почта: cb9toiiia@gmail.com
]]> @@ -313,8 +313,23 @@ name="simplacallback_my_inline_css" label="Свои CSS правила" default=".simplecallback textarea { width: 100%; height: 125px; }" > - + + + + +
diff --git a/mod_simplecallback/tmpl/default.php b/mod_simplecallback/tmpl/default.php index 1c83b69..b6d63c3 100644 --- a/mod_simplecallback/tmpl/default.php +++ b/mod_simplecallback/tmpl/default.php @@ -50,10 +50,12 @@ $zv_message_req = ($message_req == 'required') ? '*' : '' ; $zv_textsimple_req = ($custom_textsimple_req == 'required') ? '*' : '' ; $my_inline_css_enabled = $params->get('simplacallback_my_inline_css_enabled', 0); +$reachgoal_enabled = $params->get('simplacallback_reachgoal_enabled', 0); $my_inline_css = $params->get('simplacallback_my_inline_css', ''); $textarea_width = $params->get('simplecallback_textarea_width', 0); $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', ''); if ($my_inline_css_enabled == 1) { echo ''; @@ -68,6 +70,13 @@ $textarea_width_rows = ''; } +if ($reachgoal_enabled == 1) { + $reachgoal_text = 'onClick="'.$reachgoal_text.'"'; +} +else { + $reachgoal_text = ''; +} + ?>
-