$args['limit'] = 12;
return $args;
}
-add_filter( 'widget_archives_args', 'my_limit_archives' );
\ No newline at end of file
+add_filter( 'widget_archives_args', 'my_limit_archives' );
+add_filter('is_page', function($page){
+ $page_function = "is_".$page;
+
+ if(function_exists($page_function)){
+ return $page_function();
+ }else {
+ return false;
+ }
+});
\ No newline at end of file
<div id="glm-event-wrapper">
<div class="row">
- {if $smarty.request.s }
+ {if $smarty.request.s || apply_filters("is_page", 'search')}
{if $eventsByDate}
<hr>
<h1>Related Events for: {$smarty.request.s}</h1>
+ {apply_filters("is_page", "search")}
{/if}
{else}
{include file='front/events/searchForm.html'}