From 2a90b0c68d89695a74045e0fbadc73964c004ea7 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 5 Sep 2018 12:12:37 -0400 Subject: [PATCH] Showing end time only if set in event. If the start time only flag is set then don't show end time. --- index.php | 6 +++--- views/front/events/agenda.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index cf44837..147dce2 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Associate - Events Add-On * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 1.6.99 + * Version: 1.6.100 * Author: Chuck Scott * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersDatabaseEventsAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.6.99 + * @version 1.6.100 */ // Check that we're being called by WordPress. @@ -43,7 +43,7 @@ if (!defined('ABSPATH')) { * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.99'); +define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.100'); define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.1.6'); // This is the minimum version of the GLM Members DB plugin require for this plugin. diff --git a/views/front/events/agenda.html b/views/front/events/agenda.html index d01533d..f239435 100644 --- a/views/front/events/agenda.html +++ b/views/front/events/agenda.html @@ -38,7 +38,7 @@ {$event_end_time = $event.starting_date|date_format:"%m/%d/%Y"} {$event_end_time = $event_end_time|cat:' '} {$event_end_time = $event_end_time|cat:$rec.end_time.time} - {if $event_start_time|date_format:"%l:%M %P" == $event_end_time|date_format:"%l:%M %P"} + {if $event_start_time|date_format:"%l:%M %P" == $event_end_time|date_format:"%l:%M %P" or $rec.start_time_only.value == '1'} {$event_start_time|date_format:"%l:%M %P"} {else} {$event_start_time|date_format:"%l:%M %P"} - {$event_end_time|date_format:"%l:%M %P"} -- 2.17.1