From: Steve Sutton Date: Mon, 16 Oct 2017 16:21:26 +0000 (-0400) Subject: Hotfix for nev version X-Git-Tag: v1.6.69^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=405f6edef417386964d0aa8e1f39966e04c04c01;p=WP-Plugins%2Fglm-member-db-events.git Hotfix for nev version Update the time output for event profile pages if the date is the same. --- diff --git a/index.php b/index.php index 31d7f82..8e3b6df 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,7 @@ * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 1.6.68 + * Version: 1.6.69 * Author: Chuck Scott * Author URI: http://www.gaslightmedia.com/ @@ -22,7 +22,7 @@ * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.6.68 + * @version 1.6.69 */ @@ -47,7 +47,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.68'); +define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.69'); 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. diff --git a/readme.txt b/readme.txt index 99cc0cd..bd88b2e 100644 --- a/readme.txt +++ b/readme.txt @@ -25,6 +25,17 @@ e.g. 1. Activate the plugin through the 'Plugins' menu in WordPress == Changelog == += 1.6.69 = +* Fix event detail page description output. +* Fix output if more than one time schedule. Show's date only once if it + repeats. + += 1.6.68 = +* bugfix for timezone offset when importing events from ical feed. + += 1.6.67 = +* Update the time display for event profile pages. + = 1.6.66 = * Adding commonHooks.php for setting up hook for both admin and front. * Work for setting up event titles on themes that use titles outside of page diff --git a/views/front/events/detail.html b/views/front/events/detail.html index aa6212f..5c9d822 100644 --- a/views/front/events/detail.html +++ b/views/front/events/detail.html @@ -35,64 +35,69 @@ - - - {/if} - - {elseif $event.member && ($event.use_member_location.value || $event.other_ref_dest) } -
- {if $event.member.lat} -
-
map...
-
Loading...
-
-
-
-
- - - - -
- {/if} -
- {/if} -
-
- {foreach $event.recurrences as $rec} + + + {/if} +
+ {elseif $event.member && ($event.use_member_location.value || $event.other_ref_dest) } +
+ {if $event.member.lat} +
+
map...
+
Loading...
+
+
+
+
+ + + + +
+ {/if} +
+ {/if} +
+
+ {$lastDate = ''} + {foreach $event.recurrences as $rec} + + {$eDate = $rec.from_date.timestamp|date_format:"%A, %B %e, %Y"} + {if $eDate != $lastDate} + {$lastDate = $eDate}
- {if $event.recurrences.0.recurring.value == 1} Occurring {/if} - {$rec.from_date.timestamp|date_format:"%A, %B %e, %Y"} - {if $rec.from_date.date != $rec.to_date.date} - - {$rec.to_date.timestamp|date_format:"%B %e, %Y"} - {else if $rec.specific_dates} - - {$rec.specific_dates|@end|date_format:"%B %e, %Y"} - {/if} + {$eDate} + {if $rec.from_date.date != $rec.to_date.date} + - {$rec.to_date.timestamp|date_format:"%B %e, %Y"} + {else if $rec.specific_dates} + - {$rec.specific_dates|@end|date_format:"%B %e, %Y"} + {/if} - {if $rec.day_of_week.names|@count < 7 && $rec.day_of_week.names|@count > 0 } - - on - {foreach $rec.day_of_week.names as $day} - {if $day == "Thursday"} - {$day|substr:0:4} - {else} - {$day|substr:0:3} - {/if} - {/foreach} + {if $rec.day_of_week.names|@count < 7 && $rec.day_of_week.names|@count > 0 } + + on + {foreach $rec.day_of_week.names as $day} + {if $day == "Thursday"} + {$day|substr:0:4} + {else} + {$day|substr:0:3} + {/if} + {/foreach} - - {/if} + + {/if}
-
+ {/if} +
- + {if !$event.all_day} @@ -112,9 +117,9 @@ - {if $expired} (Expired) {/if} -
- {/foreach} + {if $expired} (Expired) {/if} +
+ {/foreach}
{if $event.hide_address.name == 'No'} {if !$event.use_member_location.value && ($event.locations.name || $event.locations.address)} @@ -178,7 +183,7 @@
-

{$event.descr}

+ {$event.descr}