Skip to content

Commit

Permalink
Show preferences button only for not blacklisted users and remove whi…
Browse files Browse the repository at this point in the history
…tespace from User Details page buttons (#324)

* Remove nbsp whitespace from User Details page buttons

Signed-off-by: Xheni Myrtaj <myrtajxheni@gmail.com>

* show preferences button only for not blacklisted subscribers

Signed-off-by: Xheni Myrtaj <myrtajxheni@gmail.com>

* remove unnecessary space

Signed-off-by: Xheni Myrtaj <myrtajxheni@gmail.com>
  • Loading branch information
xh3n1 authored and Sam Tuke committed May 23, 2018
1 parent ac3f7bb commit f61140a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions public_html/lists/admin/user.php
Expand Up @@ -326,14 +326,15 @@
}

echo '<div class="actions">';
echo '&nbsp;&nbsp;'.PageLinkButton("userhistory&amp;id=$id", s('History'));
echo '&nbsp;&nbsp;'.PageLinkButton("exportuserdata&amp;id=$id", s('Download subscriber data'));
echo
'<a
echo PageLinkButton("userhistory&amp;id=$id", s('History'));
echo PageLinkButton("exportuserdata&amp;id=$id", s('Download subscriber data'));
if (!isBlackListed($user['email'])) {
echo
'<a
class="confirm btn btn-default"
href="'.getConfig('preferencesurl')."&amp;uid=".$user['uniqid'].'">'.
s('Preferences page').'
</a>';
href="' . getConfig('preferencesurl') . "&amp;uid=" . $user['uniqid'] . '">' .
s('Preferences page') . '</a>';
}

// Trigger hook to add additional buttons from plugins
if (!empty($GLOBALS['config']['plugins']) && is_array($GLOBALS['config']['plugins'])) {
Expand Down

0 comments on commit f61140a

Please sign in to comment.