From e79c9b622e7e5754b1d1477e5252eb60084a57de Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 9 Apr 2021 17:46:32 +0200 Subject: Indentation and formatting nitpick. --- includes/admin/views/giglog_admin_page.php | 48 ++++++++++++++---------------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/includes/admin/views/giglog_admin_page.php b/includes/admin/views/giglog_admin_page.php index 88c7fa2..b7d8397 100644 --- a/includes/admin/views/giglog_admin_page.php +++ b/includes/admin/views/giglog_admin_page.php @@ -55,30 +55,28 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { '; - foreach ( GiglogAdmin_Venue::all_venues() AS $venue ) - { - $select .= ''; - } - $select .= ''; - return($select); - } + static function get_allvenues() + { + $select = ''; + return($select); + } static function get_allbands() { - $select = ''; - return($select); + $select = ''; + return($select); } static function get_filters() @@ -148,21 +146,21 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { } //function to calculate if the concert has been added in the past 10 days or before that and show a green NEW for the newest rows - static function getpublishstatus($concert_id) - { + static function getpublishstatus($concert_id) + { global $wpdb; $date1 = new DateTime("now"); $dsql = "select wpgcl_createddate from wpg_concertlogs where wpgcl_concertid=".$concert_id; $results = $wpdb->get_results($dsql); - foreach ( $results AS $row ) - { //$x = strtotime($row -> filedate); + foreach ( $results AS $row ) { + //$x = strtotime($row -> filedate); $x= date('Y-m-d H:i:s', strtotime($row -> wpgcl_createddate)); $date2 = new DateTime($x, new DateTimeZone('Europe/London')); $dd = $date2 -> diff($date1) ->format("%a"); - } + } if ($dd <= 10) return ('NEW'); - } + } static function get_concerts() -- cgit v1.2.3