<div id="glm-event-wrapper">
-
+
{if $smarty.request.glm_event_from}
{$start_month = $smarty.request.glm_event_from}
{$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}
{$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}
-
-
-
+
+
+
<div class="row search-fields">
-
+
{include file='front/events/searchForm.html'}
</div>
-
+
<a class="prev-month" href="{$currentUrl}?glm_event_from={$query_prev_from}&glm_event_to={$query_prev_to}">Previous Month</a>
<a class="next-month" href="{$currentUrl}?glm_event_from={$query_next_from}&glm_event_to={$query_next_to}">Next Month</a>
<!-- <img class="front-event-image" src="{$imgUrl}{$event.image}">-->
{/if}
</div>
-
+
<div class="small-12 medium-2 large-1 columns glm-event-cal">
<div class="glm-event-cal-day-container">
<span class="glm-event-cal-day">{$event.starting_timestamp|date_format:"%e"}</span>
<div class="no-events">No Events </div>
{/if}
</div>
- <a href="{php} echo get_permalink(832); {/php}" class="all-events front-event-link subscribe-link">See All Events</a>
+ <a href="{php} echo get_permalink(1129); {/php}" class="all-events front-event-link subscribe-link">See All Events</a>
</div>
<a class="prev-month bottom-prev-month" href="{$currentUrl}?glm_event_from={$query_prev_from}&glm_event_to={$query_prev_to}">Previous Month</a>
var custom_page = '{$customPage}';
var page_slug = '{$pageSlug}';
var retain_date;
-
+
if(!member_id){
member_id = null;
}
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(){
return false;
}
}
-
+
$('#glm-event-from').on("change", function(){
var from_date = $(this).val();
$('#glm-event-to').val(from_date);
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
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,
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");
}
});
$(window).on("load", function(){
-
+
if(sessionStorage.current_calendar_view){
$('#event-date-toggle option').each(function(){
if( $(this).val() === sessionStorage.current_calendar_view){
}
$('#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){
if(sessionStorage.current_calendar_view){
sessionStorage.current_calendar_view = '';
}
-
+
eventsCalMonthAJAX(month_obj);
});
}
});
});
-
+
var dates = $(".agenda-event-recur-dates");
dates.each( function (){
if( $(this).text().indexOf('-') < 0 ){
{if !empty({$events})}
<div id="glm-event-wrapper">
-
+
{if $smarty.request.glm_event_from}
{$start_month = $smarty.request.glm_event_from}
{$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}
{$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}
-
-
+
+
<a class="prev-month" href="{$currentUrl}?glm_event_from={$query_prev_from}&glm_event_to={$query_prev_to}">Previous Month</a>
<a class="next-month" href="{$currentUrl}?glm_event_from={$query_next_from}&glm_event_to={$query_next_to}">Next Month</a>
{if !$eventId}
<div id="glm-events-search-form" class="small-12 columns">
<!-- {"$smarty.now +1 Month"|date_format:"%B %Y"}-->
- <h1 class="front-performances-title">Performances</h1>
+ <h1 class="front-performances-title">2018 Performances</h1>
</div>
{else}
<div class="front-event-img-container small-12 medium-2 columns">
{if $event.image}
<div class="front-event-image" style="background-image: url({$imgUrl}{$event.image})">
-
+
</div>
<!-- <img class="front-event-image" src="{$imgUrl}{$event.image}">-->
{/if}
</div>
-
+
<div class="small-12 medium-2 large-1 columns glm-event-cal">
<div class="glm-event-cal-day-container">
<span class="glm-event-cal-day">{$event.starting_timestamp|date_format:"%e"}</span>
<div class="no-events">No Events </div>
{/if}
</div>
- <a href="{php} echo get_permalink(832); {/php}" class="all-events front-event-link subscribe-link">See All Events</a>
+ <a href="{php} echo get_permalink(1129); {/php}" class="all-events front-event-link subscribe-link">See All Events</a>
</div>
<a class="prev-month bottom-prev-month" href="{$currentUrl}?glm_event_from={$query_prev_from}&glm_event_to={$query_prev_to}">Previous Month</a>
<script>
jQuery(document).ready(function($){
$('.prev-month').on("click", function(){
-
+
});
$('.next-month').on("click", function(){
-
+
});
});
</script>
-{/if}
\ No newline at end of file
+{/if}