diff options
author | AndreaChirulescu <andrea.chirulescu@gmail.com> | 2021-09-05 20:01:42 +0200 |
---|---|---|
committer | AndreaChirulescu <andrea.chirulescu@gmail.com> | 2021-09-05 20:01:42 +0200 |
commit | 7118a666e6833d9ef2dfe517ce17ad4883c2ccab (patch) | |
tree | 1eb75261c795b03db9a6f00f6e9d42a49e8a844e /includes/admin/views | |
parent | bfc7668eb0e614e7085768636423d37b8d87773e (diff) | |
download | gigologadmin-7118a666e6833d9ef2dfe517ce17ad4883c2ccab.tar.gz gigologadmin-7118a666e6833d9ef2dfe517ce17ad4883c2ccab.tar.bz2 gigologadmin-7118a666e6833d9ef2dfe517ce17ad4883c2ccab.zip |
Extra changes to hide admincolumns on giglog page If logged in but not using plugin
Diffstat (limited to 'includes/admin/views')
-rw-r--r-- | includes/admin/views/_concerts_table.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/includes/admin/views/_concerts_table.php b/includes/admin/views/_concerts_table.php index 53e62b4..e3c6aee 100644 --- a/includes/admin/views/_concerts_table.php +++ b/includes/admin/views/_concerts_table.php @@ -38,10 +38,12 @@ if (!class_exists("GiglogAdmin_ConcertsTable")) if(!is_user_logged_in()) $content .= '<th>EVENT</th><th>TICKETS</th>'; - else - $content .= '<th> </th><th>PHOTO1</th><th>PHOTO2</th><th>TEXT1</th><th>TEXT2</th><th>STATUS</th>'; - if (current_user_can('administrator')) - $content .= '<th>AdminOptions</th>'; + else if(!is_page('Giglog')) + { + $content .= '<th> </th><th>PHOTO1</th><th>PHOTO2</th><th>TEXT1</th><th>TEXT2</th><th>STATUS</th>'; + if (current_user_can('administrator')) + $content .= '<th>AdminOptions</th>'; + } $content .= '</tr>'; $filter = []; @@ -86,7 +88,7 @@ if (!class_exists("GiglogAdmin_ConcertsTable")) $content .= '<td><a target="_blank" href="'.$concert->tickets() .'">Tickets</a></td>'; } - else { + else if (!is_page('Giglog')){ $content .= '<td class="publishstatus">' . $this->mark_new_concert($concert) . '</td>'; $content .= '<td class="assigneduser">' . $this->assign_role_for_user_form('photo1', $concert) . '</td>'; @@ -135,7 +137,7 @@ if (!class_exists("GiglogAdmin_ConcertsTable")) filter_input(INPUT_POST, 'selectvenue', FILTER_SANITIZE_SPECIAL_CHARS), "Select venue..."); } - if(is_user_logged_in()) { + if(is_user_logged_in() && !is_page('Giglog')) { //option to select own concerts only $select .= '<input name="ownconcerts" class="ownconc" type="checkbox" value="1"' . checked(isset($_POST['ownconcerts']) ? $_POST['ownconcerts'] : false) |