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
88614410
authored
2016-03-16 11:57:57 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
addmin a
1 parent
5cb086b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
com/Notifications/views/admin.php
com/Notifications/views/admin.php
View file @
8861441
...
...
@@ -3,6 +3,14 @@ use Tz\WordPress\Tools;
use
Tz\WordPress\Tools\Notifications
;
use
Tz\WordPress\Tools\Notifications\Settings
;
$user_ID
=
get_current_user_id
();
$AAL
=
get_user_meta
(
$user_ID
,
'_AAL'
,
false
);
if
(
!
in_array
(
'notifications_full'
,
$AAL
[
0
]))
{
echo
'<style type="text/css"> .edit, .delete{ display:none; }</style>'
;
};
?>
<link
rel=
"stylesheet"
href=
"
<?php
echo
Tools\url
(
'assets/css/notifications.css'
,
__FILE__
)
?>
"
/>
...
...
@@ -50,10 +58,10 @@ use Tz\WordPress\Tools\Notifications\Settings;
<td>
<?php
if
(
strtotime
(
$entry
->
execute_date
)
>
current_time
(
'timestamp'
))
:?>
<
a
href
=
"/wp-admin/admin.php?page=notifications&action=edit&page_id=<?php echo
$entry->ID
; ?>"
>
<
a
class
="
edit
"
href="
/
wp
-
admin
/
admin
.
php
?
page
=
notifications
&
action
=
edit
&
page_id
=<?
php
echo
$entry
->
ID
;
?>
">
edit
</a>
|
<
a
|
<a
class=
"delete"
href=
"/wp-admin/admin.php?page=notifications&action=delete&page_id=
<?php
echo
$entry
->
ID
;
?>
"
onclick=
"return confirm('Are you sure?');"
>
delete
</a>
</td>
...
...
@@ -139,11 +147,11 @@ use Tz\WordPress\Tools\Notifications\Settings;
</td>
<td>
<a
href=
"/wp-admin/admin.php?page=notifications&action=edit&page_id=
<?php
echo
$entry
->
ID
;
?>
"
>
<a
class=
"edit"
href=
"/wp-admin/admin.php?page=notifications&action=edit&page_id=
<?php
echo
$entry
->
ID
;
?>
"
>
edit
</a>
<?php
if
(
current_user_can
(
Settings\MANAGE_SYSTEM_NOTIFICATIONS
))
:
?>
|
<a
|
<a
class=
"delete"
href=
"/wp-admin/admin.php?page=notifications&action=delete&page_id=
<?php
echo
$entry
->
ID
;
?>
"
onclick=
"return confirm('Are you sure?');"
>
delete
</a>
<?php
endif
;
?>
...
...
Please
register
or
sign in
to post a comment