Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
26bb6a8a
authored
2020-11-27 11:35:23 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed titles
1 parent
06468163
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
com/Notifications/Admin.php
com/Notifications/views/create.php
com/Notifications/Admin.php
View file @
26bb6a8
...
...
@@ -69,6 +69,7 @@ function display_page()
$type
=
$_POST
[
'type'
];
$title
=
$_POST
[
'title'
];
$sendto
=
$_POST
[
'sendto'
];
$executeDate
=
(
$type
==
'scheduled'
||
$type
==
'newsletter'
)
?
$_POST
[
'execute_date'
]
:
'0000-00-00 00:00:00'
;
$trigger
=
(
$type
==
'scheduled'
||
$type
==
'newsletter'
)
?
'scheduled-cron-job'
:
$_POST
[
'trigger'
];
...
...
@@ -101,7 +102,7 @@ function display_page()
$system
=
$_POST
[
$lang
.
'_system'
];
$pushMessageTime
=
$_POST
[
$lang
.
'_push_notifications_time'
];
$title
=
$_POST
[
$lang
.
'_push_notifications_title'
];
$
push_
title
=
$_POST
[
$lang
.
'_push_notifications_title'
];
$message
=
$_POST
[
$lang
.
'_push_notifications_message'
];
$link
=
$_POST
[
$lang
.
'_push_notifications_link'
];
$status
=
$_POST
[
$lang
.
'_push_notifications_status'
];
...
...
@@ -130,7 +131,7 @@ function display_page()
$pushMessageData
,
[
'push_message_time'
=>
$pushMessageTime
,
$lang
.
'_title'
=>
$title
,
$lang
.
'_title'
=>
$
push_
title
,
$lang
.
'_message'
=>
$message
,
$lang
.
'_link'
=>
$link
,
$lang
.
'_status'
=>
$status
,
...
...
@@ -431,7 +432,7 @@ function create_notification()
$system
=
$_POST
[
$lang
.
'_system'
];
$pushMessageTime
=
$_POST
[
$lang
.
'_push_notifications_time'
];
$title
=
$_POST
[
$lang
.
'_push_notifications_title'
];
$
push_
title
=
$_POST
[
$lang
.
'_push_notifications_title'
];
$message
=
$_POST
[
$lang
.
'_push_notifications_message'
];
$link
=
$_POST
[
$lang
.
'_push_notifications_link'
];
$status
=
$_POST
[
$lang
.
'_push_notifications_status'
];
...
...
@@ -457,7 +458,7 @@ function create_notification()
$pushMessageData
,
[
'push_message_time'
=>
$pushMessageTime
,
$lang
.
'_title'
=>
$title
,
$lang
.
'_title'
=>
$
push_
title
,
$lang
.
'_message'
=>
$message
,
$lang
.
'_link'
=>
$link
,
$lang
.
'_status'
=>
$status
,
...
...
com/Notifications/views/create.php
View file @
26bb6a8
...
...
@@ -6,6 +6,7 @@ use Tz\WordPress\Tools\Notifications\Settings;
function
getInputFormValues
(
$validation
,
$name
)
{
return
(
$validation
->
set_value
(
$name
)
!=
''
)
?
$validation
->
set_value
(
$name
)
:
(
!
empty
(
$_POST
[
$name
]))
?
$_POST
[
$name
]
:
''
;
}
$newsletter
=
get_posts_with_fallback
(
...
...
Please
register
or
sign in
to post a comment