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
651e982a
authored
2021-03-16 16:06:42 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sss
1 parent
fb1e0de2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
com/Notifications/Notifications.php
com/Notifications/views/create.php
com/Notifications/views/form.php
com/Notifications/Notifications.php
View file @
651e982
...
...
@@ -690,6 +690,7 @@ function getGroups($grpID = 0)
return
$groups
;
}
/**
* @param $var
*
...
...
com/Notifications/views/create.php
View file @
651e982
...
...
@@ -3,7 +3,7 @@
use
Tz\WordPress\Tools
;
use
Tz\WordPress\Tools\Notifications
;
use
Tz\WordPress\Tools\Notifications\Settings
;
use
Tz\WordPress\UAM
;
function
getInputFormValues
(
$validation
,
$name
)
{
...
...
@@ -93,11 +93,11 @@ $newsletterFr = get_post($newsletterFrId);
?
'selected="selected"'
:
""
;
?>
>
All Users
</option>
<optgroup
label=
"By Group:"
>
<?php
foreach
(
Notifications\getGroups
()
as
$group_id
=>
$group_name
)
:
?>
<option
value=
"
<?php
echo
$group
_id
?>
"
<?php
echo
(
$validation
->
set_value
(
<?php
foreach
(
UAM\getGroups
()
as
$group
)
:
?>
<option
value=
"
<?php
echo
$group
->
getID
();
?>
"
<?php
echo
(
$validation
->
set_value
(
'sendto'
)
==
$group
_id
)
?
'selected="selected"'
:
""
;
?>
>
<?php
echo
$group
_name
;
?>
</option>
)
==
$group
->
getID
()
)
?
'selected="selected"'
:
""
;
?>
>
<?php
echo
$group
->
getName
()
;
?>
</option>
<?php
endforeach
;
?>
</optgroup>
</select>
...
...
@@ -360,7 +360,7 @@ endforeach;
updateNotificationType();
$('.attachment').
live
('click', function(e) {
$('.attachment').
on
('click', function(e) {
e.preventDefault();
var $link = $(this);
var options = {
...
...
com/Notifications/views/form.php
View file @
651e982
...
...
@@ -107,12 +107,12 @@ use Tz\WordPress\Tools\Notifications\Settings;
All Users
</option>
<optgroup
label=
"By Group:"
>
<?php
foreach
(
Notifications\getGroups
()
as
$group_id
=>
$group_name
)
:
?>
<option
value=
"
<?php
echo
$group
_id
?>
"
<?php
echo
(
$validation
->
set_value
(
<?php
foreach
(
UAM\getGroups
()
as
$group
)
:
?>
<option
value=
"
<?php
echo
$group
->
getID
();
?>
"
<?php
echo
(
$validation
->
set_value
(
'sendto'
,
$entry
->
details
[
'sendto'
]
)
==
$group_id
)
?
'selected="selected"'
:
''
;
?>
>
<?php
echo
$group
_name
;
?>
</option>
)
==
$group
->
getID
()
)
?
'selected="selected"'
:
''
;
?>
>
<?php
echo
$group
->
getName
();
?>
</option>
<?php
endforeach
;
?>
</optgroup>
</select>
...
...
Please
register
or
sign in
to post a comment