From 26f6e2e21997b329239bb321b1cea0c948ef1a95 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 5 Feb 2021 20:02:00 +0100 Subject: Break some long lines, and make paragraphs. Text seems to fit better on the page when styled as paragraphs rather than just raw text. --- .../public/shortcodes/giglog_photographers.php | 27 ++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) (limited to 'includes') diff --git a/includes/public/shortcodes/giglog_photographers.php b/includes/public/shortcodes/giglog_photographers.php index 3fadace..4886a8c 100644 --- a/includes/public/shortcodes/giglog_photographers.php +++ b/includes/public/shortcodes/giglog_photographers.php @@ -211,12 +211,30 @@ function giglogadmin_getconcertsphotog ( ) { $hf_username = $hf_user->user_login; $roles = ( array ) $hf_user->roles; global $wpdb; + // Shortcodes RETURN content, so store in a variable to return - $content = 'The available slots are marked with the green checkbox. If you click on it, it will be assigned to you and if you no longer wish to cover that concert, click on the red icon and you will be unassigned. A mail should be sent to the admin when this happens, but in order for the accreditation request to be sent, you have to mail live@eternal-terror.com with the template containing concert information. There might be some exceptions, but those are discussed case by case. So whenever you want a concert, assign yourself and send the template no later than 3 weeks before the concert.

- Admin will try to keep the concert status updated so that you know what the accreditation status is. You will get personal message if this is really close to the concert date.
'; + $content = '

The available slots are marked with the green checkbox. + If you click on it, it will be assigned to you and if you no longer + wish to cover that concert, click on the red icon and you will be + unassigned. A mail should be sent to the admin when this happens, + but in order for the accreditation request to be sent, you have to + mail live@eternal-terror.com with the template containing concert + information. There might be some exceptions, but those are discussed + case by case. So whenever you want a concert, assign yourself and send + the template no later than 3 weeks before the concert.

+ +

Admin will try to keep the concert status updated so that you know + what the accreditation status is. You will get personal message if this + is really close to the concert date.

'; + $content .= ''; // $content .= ''; - $content .= ''; + + $content .= ' + + + '; + // Use the submitted "city" if any. Otherwise, use the default/static value. $cty= filter_input( INPUT_POST, 'selectcity' ); $cty= $cty? $cty: 'ALL'; @@ -226,13 +244,14 @@ function giglogadmin_getconcertsphotog ( ) { $venue= $venue? $venue: '0'; - $query = "SELECT wpgc.id, wpgb.wpgband_name as band ,wpgv.wpgvenue_name as venue ,wpgc.wpgconcert_date, wpgc.wpgconcert_tickets, wpgc.wpgconcert_event, wpgv.wpgvenue_city, wpgv.wpgvenue_webpage, wpgps.wpgs_name + $query = "SELECT wpgc.id, wpgb.wpgband_name as band, wpgv.wpgvenue_name as venue, wpgc.wpgconcert_date, wpgc.wpgconcert_tickets, wpgc.wpgconcert_event, wpgv.wpgvenue_city, wpgv.wpgvenue_webpage, wpgps.wpgs_name FROM wpg_concerts wpgc, wpg_bands wpgb, wpg_venues wpgv, wpg_pressstatus wpgps, wpg_concertlogs wpgcl where wpgc.band=wpgb.id and wpgc.venue = wpgv.id and wpgconcert_date >= CURDATE() and wpgps.id = wpgcl.wpgcl_status and wpgcl.wpgcl_concertid=wpgc.id"; + $query .= ($cty == "ALL") ? "" : " and wpgv.wpgvenue_city='" .$cty ."'"; $query .= ($venue == "0") ? "" : " and wpgv.id='" .$venue ."'"; $query .=" order by wpgv.wpgvenue_city, wpgconcert_date" ; -- cgit v1.2.3
CITYIDBANDVENUEDATE
CITYBANDVENUEDATE PHOTO1PHOTO2TEXT1TEXT2STATUS
CITYBANDVENUEDATE PHOTO1PHOTO2TEXT1TEXT2STATUS