From: Steve Sutton Date: Mon, 17 Jul 2017 12:19:27 +0000 (-0400) Subject: Updating link to event list page X-Git-Tag: v1.0.11^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=55e8dac6cc8849a330ef5561d31fe66b68b7ea35;p=WP-Themes%2Fgreatlakescfa.git Updating link to event list page also updating the title to 2018. --- diff --git a/glm-member-db-events/views/front/events/agenda.html b/glm-member-db-events/views/front/events/agenda.html index d8eedf4..fddb694 100644 --- a/glm-member-db-events/views/front/events/agenda.html +++ b/glm-member-db-events/views/front/events/agenda.html @@ -1,5 +1,5 @@
- + {if $smarty.request.glm_event_from} {$start_month = $smarty.request.glm_event_from} @@ -7,7 +7,7 @@ {$next_month_output = "$start_month +1 Month"|date_format:"%B %Y"} {$query_next_from = "$start_month +1 Month"|date_format:"%m/%d/%Y"} {$query_next_to = "$start_month +2 Month -1 Day"|date_format:"%m/%d/%Y"} - + {$query_prev_from = "$start_month -1 Month"|date_format:"%D"} {$query_prev_to = "$start_month -1 Day"|date_format:"%D"} {else} @@ -16,20 +16,20 @@ {$next_month_output = "$smarty.now +1 Month"|date_format:"%B %Y"} {$query_next_from = "$start_month +1 Month"|date_format:"%m/%d/%Y"} {$query_next_to = "$start_month +2 Month -1 Day"|date_format:"%m/%d/%Y"} - + {$query_prev_to = "$start_month -1 Day"|date_format:"%m/%d/%Y"} {$query_prev_from = "$start_month -1 Month"|date_format:"%D"} {/if} - - - + + +
- + {include file='front/events/searchForm.html'}
- + Previous Month Next Month @@ -46,7 +46,7 @@ {/if}
- +
{$event.starting_timestamp|date_format:"%e"} @@ -72,7 +72,7 @@
No Events
{/if}
- +
Previous Month @@ -124,7 +124,7 @@ var custom_page = '{$customPage}'; var page_slug = '{$pageSlug}'; var retain_date; - + if(!member_id){ member_id = null; } @@ -135,7 +135,7 @@ var retain_date; var calCurrDate = $('#eventCalendar').fullCalendar('getView').start; var d = moment(calCurrDate).add(7, 'days').format('YYYY-MM-01'); - + return retain_date = d; } function in_mobile(){ @@ -145,7 +145,7 @@ return false; } } - + $('#glm-event-from').on("change", function(){ var from_date = $(this).val(); $('#glm-event-to').val(from_date); @@ -157,12 +157,12 @@ event_search.on('click', function(){ sessionStorage.override = 'yes'; }); - + if( sessionStorage.view && sessionStorage.override === 'no' && !in_mobile()){ view = sessionStorage.view; } else if( sessionStorage.override === 'yes' || in_mobile()){ view = 'agenda'; - } + } // AJAX FUNCTION ************************************************ // Get calendar month via AJAX @@ -241,16 +241,16 @@ handleWindowResize: true, lazyFetching: true, eventClick : function (event){ - + sessionStorage.current_calendar_view = get_current_view(); - - + + if(custom_page !== ''){ location.href = event.url + '&glm_event_from=' + event.start.format(); } else { location.href = event.url + '?glm_event_from=' + event.start.format(); } - + return false; }, eventLimit: true, @@ -282,12 +282,12 @@ agenda.css("display", "block"); view_select.val('agenda'); } - + $("#glm-event-view-select").on("change", function (){ sessionStorage.override = 'no'; sessionStorage.setItem("view", $(this).attr("value")); - + if($("#glm-event-view-select option:selected").val() === "calendar"){ $(".events-current-month").css("display","none") $('.prev-month').css("display", "none"); @@ -306,7 +306,7 @@ } }); $(window).on("load", function(){ - + if(sessionStorage.current_calendar_view){ $('#event-date-toggle option').each(function(){ if( $(this).val() === sessionStorage.current_calendar_view){ @@ -316,10 +316,10 @@ } $('#event-date-toggle-container').insertAfter( $('.fc-left')).fadeTo('slow', 1); - + $('#event-date-toggle').on("change", function(){ var selected_date = $(this).val(); - + $('#eventCalendar').fullCalendar('gotoDate', selected_date); eventsCalMonthAJAX(month_obj); if(sessionStorage.current_calendar_view){ @@ -336,7 +336,7 @@ if(sessionStorage.current_calendar_view){ sessionStorage.current_calendar_view = ''; } - + eventsCalMonthAJAX(month_obj); }); @@ -349,7 +349,7 @@ } }); }); - + var dates = $(".agenda-event-recur-dates"); dates.each( function (){ if( $(this).text().indexOf('-') < 0 ){ diff --git a/glm-member-db-events/views/front/events/homePage.html b/glm-member-db-events/views/front/events/homePage.html index f20a8b1..a2fdba3 100644 --- a/glm-member-db-events/views/front/events/homePage.html +++ b/glm-member-db-events/views/front/events/homePage.html @@ -1,6 +1,6 @@ {if !empty({$events})}
- + {if $smarty.request.glm_event_from} {$start_month = $smarty.request.glm_event_from} @@ -8,7 +8,7 @@ {$next_month_output = "$start_month +1 Month"|date_format:"%B %Y"} {$query_next_from = "$start_month +1 Month"|date_format:"%m/%d/%Y"} {$query_next_to = "$start_month +2 Month -1 Day"|date_format:"%m/%d/%Y"} - + {$query_prev_from = "$start_month -1 Month"|date_format:"%D"} {$query_prev_to = "$start_month -1 Day"|date_format:"%D"} {else} @@ -17,13 +17,13 @@ {$next_month_output = "$smarty.now +1 Month"|date_format:"%B %Y"} {$query_next_from = "$start_month +1 Month"|date_format:"%m/%d/%Y"} {$query_next_to = "$start_month +2 Month -1 Day"|date_format:"%m/%d/%Y"} - + {$query_prev_to = "$start_month -1 Day"|date_format:"%m/%d/%Y"} {$query_prev_from = "$start_month -1 Month"|date_format:"%D"} {/if} - - + + Previous Month Next Month @@ -35,7 +35,7 @@ {if !$eventId}
-

Performances

+

2018 Performances

{else} @@ -52,12 +52,12 @@
{if $event.image}
- +
{/if}
- +
{$event.starting_timestamp|date_format:"%e"} @@ -83,7 +83,7 @@
No Events
{/if}
- +
Previous Month @@ -92,11 +92,11 @@ -{/if} \ No newline at end of file +{/if} diff --git a/style.css b/style.css index c1dc2b2..9c71ff5 100644 --- a/style.css +++ b/style.css @@ -3,5 +3,5 @@ Theme Name: GreatLakesCenterfortheArts Author: Gaslight Media Author URI: http://www.gaslightmedia.com Description: A theme for GreatLakesCenterfortheArts -Version: 1.0.10 +Version: 1.0.11 */