Showing end time only if set in event.
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 5 Sep 2018 16:12:37 +0000 (12:12 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 5 Sep 2018 16:12:37 +0000 (12:12 -0400)
If the start time only flag is set then don't show end time.

index.php
views/front/events/agenda.html

index cf44837..147dce2 100644 (file)
--- 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 <cscott@gaslightmedia.com>
  * @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.
index d01533d..f239435 100644 (file)
@@ -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"}