restricting agenda view date output if the start and end date of the events are the...
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 11 Oct 2016 16:57:21 +0000 (12:57 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 11 Oct 2016 16:57:21 +0000 (12:57 -0400)
index.php
views/front/events/agenda.html

index c9fb3d0..cace3bb 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Members Database Events
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Gaslight Media Members Database.
- * Version: 1.4.5
+ * Version: 1.4.6
  * Author: Chuck Scott
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -20,7 +20,7 @@
  * @package glmMembersDatabaseEventsAddOn
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.4.5
+ * @version 1.4.6
  */
 
 /*
@@ -38,7 +38,7 @@
  *  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.4.5');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.4.6');
 define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.0.22');
 
 // This is the minimum version of the GLM Members DB plugin require for this plugin.
index 1355cf2..d36f42f 100644 (file)
                             <div class="row glm-event-day-event">
                                 <div class="small-12 columns">
                                         <h2 class="agenda-event-name">{$event.name}</h2>
-                                        <div class='date-range-container'>( Occurring <span class="agenda-event-recur-dates">{$event.recurrences.0.from_date.date} - {$event.recurrences.0.to_date.date}</span> 
+            
+                                        <div class='date-range-container'>
+                                            ( Occurring {$event.recurrences.0.from_date.date} <span class="agenda-event-recur-dates">
+                                              {if $event.recurrences.0.from_date.date != $event.recurrences.0.to_date.date}  
+                                                - {$event.recurrences.0.to_date.date} 
+                                              {/if}
+                                            </span> 
        
                                         {if $event.recurrences.0.day_of_week.names|@count < 7 && $event.recurrences.0.day_of_week.names|@count > 0 }
                                         <span class="agenda-days-of-week">