Skip to content

Commit

Permalink
add redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
CB9TOIIIA committed May 8, 2017
1 parent a905885 commit 96393fe
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
2 changes: 2 additions & 0 deletions mod_simplecallback/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
18 changes: 17 additions & 1 deletion mod_simplecallback/mod_simplecallback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<author>Eugene Kopylov</author>
<authoremail>[email protected]</authoremail>
<authorurl>https://github.com/CB9TOIIIA/simplecallback_fork_cb9t</authorurl>
<version>1.3.2</version>
<version>1.3.3</version>
<creationdate>24.02.2015</creationdate>
<description>
<![CDATA[Продвинутый модуль формы обратной связи для CMS Joomla! <br><b>Для настройки и добавление новых возможностей (мои контакты): Сайт: <a target="_blank" href="https://seosm.ru/">www.SEOSM.ru</a> Skype: cb9t.ru / Telegram: <a href="https://t.me/cb9toiiia" target="_blank">@CB9TOIIIA</a> / Почта: [email protected] </b><br><iframe frameborder='0' allowtransparency='true' scrolling='no' src='https://tpv.sr/1QoBXDF/' width='510' height='315'></iframe>]]>
Expand Down Expand Up @@ -330,6 +330,22 @@
label="Reachgoal (цель)"
description=""
default="yaCounterXXXXXX.reachGoal('buy_button');"></field>
<field
type="radio"
name="simplacallback_redirect_enabled"
label="Включить перенаправление?"
description=""
default="0"
class="btn-group btn-group-yesno">
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
<field
type="text"
name="simplacallback_redirect_url"
label="URL страницы"
description=""
default=""></field>

</fieldset>
<fieldset name="crossposting" label="Кросспостинг">
Expand Down
12 changes: 12 additions & 0 deletions mod_simplecallback/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<style>'.$my_inline_css.'</style>';
Expand Down Expand Up @@ -222,6 +224,16 @@
</div>
<?php endif; ?>

<?php
if ($redirect_enabled == 1) {
echo $redirect_url ='<div style="display:none" id="redirectsuccesssimplecallback">'.$redirect_url.'</div>';
}
else {
echo $redirect_url = '<div style="display:none" id="redirectsuccesssimplecallback">noturl</div>';
}

?>

<?php if ($zakonrf_mode == 1) : ?>
<div class="zakonrf">
<label><input name="zakonrf" required type="checkbox"/><small> <a target="_blank" rel="nofollow" href="<?php echo $zakonrf_link ?>"> <?php echo $zakonrf_link_text; ?></a></small></label>
Expand Down
4 changes: 2 additions & 2 deletions updatemysimplecallback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<description>mod_simplecallback</description>
<element>mod_simplecallback</element>
<type>module</type>
<version>1.3.2</version>
<version>1.3.3</version>
<infourl title="mod_simplecallback">https://github.com/CB9TOIIIA/simplecallback_fork_cb9t/</infourl>
<downloads>
<downloadurl type="full" format="zip"><![CDATA[https://github.com/CB9TOIIIA/simplecallback_fork_cb9t/releases/download/1.3.2/mod_simplecallback_1.3.2.zip]]></downloadurl>
<downloadurl type="full" format="zip"><![CDATA[https://github.com/CB9TOIIIA/simplecallback_fork_cb9t/releases/download/1.3.3/mod_simplecallback_1.3.3.zip]]></downloadurl>
</downloads>
<tags>
<tag>stable</tag>
Expand Down

0 comments on commit 96393fe

Please sign in to comment.