Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
dbc8f04e
Commit
dbc8f04e
authored
Feb 08, 2016
by
Олег Гиммельшпах
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.task-on.com:ktask/task-on.com
parents
514df8b3
2c1a87c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
common/modules/triggers/views/trigger-admin/testing.php
common/modules/triggers/views/trigger-admin/testing.php
+10
-4
frontend/web/css/custom.css
frontend/web/css/custom.css
+5
-2
frontend/web/images/auth.png
frontend/web/images/auth.png
+0
-0
No files found.
common/modules/triggers/views/trigger-admin/testing.php
View file @
dbc8f04e
...
@@ -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'
);
...
...
frontend/web/css/custom.css
View file @
dbc8f04e
...
@@ -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
]),
...
...
frontend/web/images/auth.png
0 → 100644
View file @
dbc8f04e
6.18 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment