From 01189b0c2f9ae31de0702e87bd4c1cb30266a6c2 Mon Sep 17 00:00:00 2001 From: AndreaChirulescu Date: Mon, 5 Apr 2021 22:04:21 +0200 Subject: Added CSS for giglog admin page and some small adjustments in Taken bybehavior --- includes/public/shortcodes/giglog_photographers.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'includes/public/shortcodes') diff --git a/includes/public/shortcodes/giglog_photographers.php b/includes/public/shortcodes/giglog_photographers.php index cedfd13..efedc84 100644 --- a/includes/public/shortcodes/giglog_photographers.php +++ b/includes/public/shortcodes/giglog_photographers.php @@ -96,7 +96,7 @@ function giglogadmin_returnuser($p1, $c) $vquery0 = "select wpgcl_photo1 from wpg_concertlogs where wpgcl_concertid=".$c ; $results = $wpdb->get_results($vquery0); foreach ( $results AS $row ) $x= $row -> wpgcl_photo1; - if ($x !='' and $x!=$hf_username) { return ('Taken by '.$x); } + if ($x !='' and $x!=$hf_username) { return ('Taken
Taken by '.$x.'
'); } else if ($x==$hf_username) //if current user return ('
@@ -111,7 +111,7 @@ function giglogadmin_returnuser($p1, $c) $vquery0 = "select wpgcl_photo2 from wpg_concertlogs where wpgcl_concertid=".$c ; $results = $wpdb->get_results($vquery0); foreach ( $results AS $row ) $x= $row -> wpgcl_photo2; - if ($x !='' and $x!=$hf_username) { return ('Taken by '.$x); } + if ($x !='' and $x!=$hf_username) { return ('Taken
Taken by '.$x.'
'); } else if ($x==$hf_username) //if current user return (' @@ -128,7 +128,7 @@ function giglogadmin_returnuser($p1, $c) $vquery0 = "select wpgcl_rev1 from wpg_concertlogs where wpgcl_concertid=".$c ; $results = $wpdb->get_results($vquery0); foreach ( $results AS $row ) $x= $row -> wpgcl_rev1; - if ($x !='' and $x!=$hf_username) { return ('Taken by '.$x); } + if ($x !='' and $x!=$hf_username) { ('Taken
Taken by '.$x.'
'); } else if ($x==$hf_username) //if current user return (' @@ -144,7 +144,7 @@ function giglogadmin_returnuser($p1, $c) $vquery0 = "select wpgcl_rev2 from wpg_concertlogs where wpgcl_concertid=".$c ; $results = $wpdb->get_results($vquery0); foreach ( $results AS $row ) $x= $row -> wpgcl_rev2; - if ($x !='' and $x!=$hf_username) { return ('Taken by '.$x); } + if ($x !='' and $x!=$hf_username) { ('Taken
Taken by '.$x.'
'); } else if ($x==$hf_username) //if current user return (' @@ -233,7 +233,10 @@ function giglogadmin_getconcertsphotog ( ) { $content .= ' CITYBANDVENUEDATE PHOTO1PHOTO2TEXT1TEXT2 - STATUS'; + STATUS' + if (current_user_can('administrator')) //($hf_username == 'etadmin') + $content .= 'AdminButtons'; + $content .= ''; // Use the submitted "city" if any. Otherwise, use the default/static value. $cty= filter_input( INPUT_POST, 'selectcity' ); @@ -286,10 +289,13 @@ function giglogadmin_getconcertsphotog ( ) { $content .= ''.giglogadmin_returnuser('rev1', $row->id ).''; $content .= ''.giglogadmin_returnuser('rev2', $row->id ).''; $content .= ''.$row -> wpgs_name; + $content .= ''; if (current_user_can('administrator')) //($hf_username == 'etadmin') + { $content .= ''; $content .= '
'; - $content .= ''; + $content .= ''; + } $content .= ''; $lastType = $row->wpgvenue_city; } -- cgit v1.2.3