From 7118a666e6833d9ef2dfe517ce17ad4883c2ccab Mon Sep 17 00:00:00 2001 From: AndreaChirulescu Date: Sun, 5 Sep 2021 20:01:42 +0200 Subject: Extra changes to hide admincolumns on giglog page If logged in but not using plugin --- includes/admin/views/_concerts_table.php | 14 ++++++++------ 1 file 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 .= 'EVENTTICKETS'; - else - $content .= ' PHOTO1PHOTO2TEXT1TEXT2STATUS'; - if (current_user_can('administrator')) - $content .= 'AdminOptions'; + else if(!is_page('Giglog')) + { + $content .= ' PHOTO1PHOTO2TEXT1TEXT2STATUS'; + if (current_user_can('administrator')) + $content .= 'AdminOptions'; + } $content .= ''; $filter = []; @@ -86,7 +88,7 @@ if (!class_exists("GiglogAdmin_ConcertsTable")) $content .= 'Tickets'; } - else { + else if (!is_page('Giglog')){ $content .= '' . $this->mark_new_concert($concert) . ''; $content .= '' . $this->assign_role_for_user_form('photo1', $concert) . ''; @@ -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 .= '