Common Events
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 4 Aug 2014 18:26:20 +0000 (14:26 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 4 Aug 2014 18:26:20 +0000 (14:26 -0400)
output the event list. No category blocks thing on first page.

static/10.phtml

index 1258eee..4642746 100755 (executable)
@@ -1,5 +1,11 @@
 <?php
 if (defined('COMMON_EVENTS') && COMMON_EVENTS) {
+    $search  = filter_var($_REQUEST['search'], FILTER_VALIDATE_BOOLEAN);
+    $t       = filter_var($_REQUEST['t']);
+    $eventId = filter_var($_REQUEST['eventid'], FILTER_VALIDATE_INT);
+    if (!$t && !$search && !$eventId) {
+        $_REQUEST['t'] = '30';
+    }
     $calendarDateArray = filter_var_array(
         $_REQUEST,
         array(