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
e350a093
authored
2021-06-14 16:31:00 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
DD
1 parent
7328a660
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
com/Notifications/views/admin.php
com/Notifications/views/create.php
com/Notifications/views/admin.php
View file @
e350a09
...
...
@@ -2,7 +2,7 @@
use
Tz\WordPress\Tools
;
use
Tz\WordPress\Tools\Notifications
;
use
Tz\WordPress\Tools\Notifications\Settings
;
use
Tz\WordPress\UAM
;
$user_ID
=
get_current_user_id
();
$AAL
=
get_user_meta
(
$user_ID
,
'_AAL'
,
false
);
...
...
@@ -75,7 +75,7 @@ use Tz\WordPress\Tools\Notifications\Settings;
<?php
foreach
(
$notifications
[
'newsletter'
]
as
$entry
)
:
$sendto
=
$entry
->
sendto
;
if
(
is_numeric
(
$sendto
))
{
$sendto
=
Notifications
\getGroups
(
$sendto
)
.
" Group"
;
$sendto
=
UAM
\getGroups
(
$sendto
)
.
" Group"
;
}
else
{
$sendto
=
Notifications\get_field_lookup
(
$sendto
);
}
...
...
com/Notifications/views/create.php
View file @
e350a09
...
...
@@ -3,6 +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,12 +94,14 @@ $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
$groups
=
UAM\getGroups
();
foreach
(
$groups
as
$group
){
?>
<option
value=
"
<?php
echo
$group
->
getID
();
?>
"
<?php
echo
(
$validation
->
set_value
(
'sendto'
)
==
$group_id
)
?
'selected="selected"'
:
""
;
?>
>
<?php
echo
$group_name
;
?>
</option>
<?php
endforeach
;
?>
)
==
$group
->
getID
()
)
?
'selected="selected"'
:
""
;
?>
>
<?php
echo
$group
->
getName
()
;
?>
</option>
<?php
}
;
?>
</optgroup>
</select>
<?php
echo
$validation
->
form_error
(
'sendto'
);
?>
...
...
Please
register
or
sign in
to post a comment