Commit dbc8f04e authored by Олег Гиммельшпах's avatar Олег Гиммельшпах

Merge branch 'master' of git.task-on.com:ktask/task-on.com

parents 514df8b3 2c1a87c3
...@@ -13,11 +13,17 @@ $newListObject=Json::decode($newList); ...@@ -13,11 +13,17 @@ $newListObject=Json::decode($newList);
if (array_key_exists('result', $newListObject) && array_key_exists('id', $newListObject['result'])) { if (array_key_exists('result', $newListObject) && array_key_exists('id', $newListObject['result'])) {
$newListId=$newListObject['result']['id']; $newListId=$newListObject['result']['id'];
// Subscribe user to new List // Subscribe user to new List
$sender->subscribe(['list_ids' => $newListId, 'fields' => ['email' => $email]]); $sender->subscribe(['list_ids' => $newListId, 'fields[email]' => $email]);
// Create new message // Create new message
$newMessageId=$sender->createEmailMessage('bystrov', $email, 'Testing Subject', 'Testing Body <br><a href="http://www.google.com/">Testing link</a><a href="{{_UnsubscribeUrl}}">Отписаться</a>', $newListId); $newMessage=$sender->createEmailMessage('bystrov', $email, 'Testing Subject', 'Testing Body <br><a href="http://www.google.com/">Testing link</a><a href="{{_UnsubscribeUrl}}">Отписаться</a>', $newListId);
// Create new campaign // Decode result
$newCampaign = $sender->createCampaign($newMessageId); $newMessageObject=Json::decode($newMessage);
if (array_key_exists('result', $newMessageObject) && array_key_exists('message_id', $newMessageObject['result'])) {
// Get the message ID
$newMessageId=$newMessageObject['result']['message_id'];
// Create new campaign
$newCampaign = $sender->createCampaign($newMessageId);
}
} }
echo 'Рассылка: '.((isset($newCampaign)) ? $newCampaign : 'Not found'); echo 'Рассылка: '.((isset($newCampaign)) ? $newCampaign : 'Not found');
......
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
border: 1px solid #E9A2A2; border: 1px solid #E9A2A2;
} }
/* EAuth widget */ /* EAuth widget */
.eauth-service-id-vk .eauth-service-link:before { .eauth-list .eauth-service-id-vk .eauth-service-link:before {
background-position: 0 -136px; background-position: 0 -136px;
} }
.eauth-service-id-google .eauth-service-link:before { .eauth-list .eauth-service-id-google .eauth-service-link:before {
background-position: 0 -34px; background-position: 0 -34px;
} }
.eauth-service { .eauth-service {
...@@ -24,6 +24,9 @@ ...@@ -24,6 +24,9 @@
margin: 0 !important; margin: 0 !important;
margin-top: 10px !important; margin-top: 10px !important;
} }
.eauth-list .eauth-service-link:before, .eauth-service-link:after {
background: url("/images/auth.png") 0 0 no-repeat;
}
section .container ul:not([class]), section .container ul:not([class]),
section .container ul:not([class]) li, section .container ul:not([class]) li,
section .container ol:not([class]), section .container ol:not([class]),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment