Skip to content

Commit

Permalink
update acymailin - phone and message
Browse files Browse the repository at this point in the history
  • Loading branch information
CB9TOIIIA committed May 12, 2017
1 parent 950818a commit fe7c23b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
12 changes: 12 additions & 0 deletions mod_simplecallback/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ public static function getAjax()
$redirect_enabled = $params->get('simplacallback_redirect_enabled');
$redirect_url = $params->get('simplacallback_redirect_url');
$checkacy = '';
$acy_extra1 = $params->get('simplecallback_acy_extra1');
$acy_extra2 = $params->get('simplecallback_acy_extra2');

$bitrix24_enabled = $params->get('simplecallback_bitrix24_enabled');
$bitrix24_crm_host = $params->get('simplecallback_bitrix24_crm_host');
Expand Down Expand Up @@ -677,11 +679,21 @@ function vkpush($method, $post = false) {
$myUser = new stdClass();
$myUser->email = $emailclient;


if (empty($name)) {
$name = $emailclient;
}

$myUser->name = $name;

if (!empty($phone)) {
$myUser->phone = $phone;
}

if (!empty($message)) {
$myUser->message = $message;
}

$subscriberClass = acymailing_get('class.subscriber');
$subidSub = $subscriberClass->save($myUser);
$SaveToSub = $subscriberClass->saveSubscription($subidSub, $newSubscription);
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.5</version>
<version>1.3.6</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 @@ -786,6 +786,22 @@
default="1,2,3"
description=""></field>

<field
type="spacer"
name="simplecallback_acy_extra1"
class="text"
label="Extra-поле (телефон) - phone">
</field>

<field
type="spacer"
name="simplecallback_acy_extra2"
class="text"
label="Extra-поле (сообщение) - message">

</field>


<field
type="radio"
name="simplecallback_acy_subscribe_active"
Expand Down

0 comments on commit fe7c23b

Please sign in to comment.