If there's no time to output then don't display the glm-event-times div.
Re-arranging some of the markup to keep the expired and name part out of
that if statement for the all_day.
* Plugin URI: http://www.gaslightmedia.com/
* Description: Gaslight Media Members Database.
- * Version: 1.6.69
+ * Version: 1.6.70
* Author: Chuck Scott
* Author URI: http://www.gaslightmedia.com/
* @author Chuck Scott <cscott@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.6.69
+ * @version 1.6.70
*/
* 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.69');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.70');
define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.1.4');
// This is the minimum version of the GLM Members DB plugin require for this plugin.
1. Activate the plugin through the 'Plugins' menu in WordPress
== Changelog ==
+= 1.6.70 =
+* Fix time output for events with no time. Doesn't display the glm-event-times
+ div.
+
= 1.6.69 =
* Fix event detail page description output.
* Fix output if more than one time schedule. Show's date only once if it
</div>
{/if}
- <div class="glm-event-times">
-
- <span class="time-tag"></span>
-
- <span>
- {if !$event.all_day}
-
+ {if !$event.all_day}
+ <div class="glm-event-times">
+ <span class="time-tag"></span>
+ <span>
{if $rec.start_time.time == $rec.end_time.time || $rec.start_time_only.value}
{$rec.start_time.time|strtotime|date_format:"%l:%M %P"}
{else}
{$rec.start_time.time|strtotime|date_format:"%l:%M %P"} - {$rec.end_time.time|strtotime|date_format:"%l:%M %P"}
{/if}
- {/if}
- </span>
+ {if $rec.name && $rec.name != 'Imported' && $rec.name != 'Imported Event Schedule' }
+ {$rec.name}
+ {/if}
+ {if $expired} <span style="color:red;"> (Expired) </span> {/if}
+ </span>
+ </div>
+ {else}
{if $rec.name && $rec.name != 'Imported' && $rec.name != 'Imported Event Schedule' }
{$rec.name}
{/if}
-
-
-
-
{if $expired} <span style="color:red;"> (Expired) </span> {/if}
- </div>
+ {/if}
{/foreach}
</div>
{if $event.hide_address.name == 'No'}