fixing the text search link for the dashboard widgets
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 24 Sep 2018 20:40:36 +0000 (16:40 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 24 Sep 2018 20:40:36 +0000 (16:40 -0400)
setup/adminHooks.php

index b043812..f4dd338 100644 (file)
@@ -260,7 +260,7 @@ add_filter(
                 [
                     'id' => 'topButtons',
                     'order'     => -1,
-                    'template' => 'buttons',
+                    'template'  => 'buttons',
                     'buttons'   => [
                         'add-event' => [
                             'content'   => 'Add Event',
@@ -270,35 +270,35 @@ add_filter(
                     ],
                 ],
                 [
-                    'id' => 'quickLinks',
-                    'order' => 0,
-                    'template' => 'quickLinks',
-                    'quickLinks' => [
+                    'id'            => 'quickLinks',
+                    'order'         => 0,
+                    'template'      => 'quickLinks',
+                    'quickLinks'    => [
                         'dashboard' => [
-                            'content' => 'Dashboard',
-                            'url' => $eventsIndexPage . "&option=dashboard",
+                            'content'   => 'Dashboard',
+                            'url'       => $eventsIndexPage . "&option=dashboard",
                         ],
                         'search' => [
-                            'content' => 'Advanced Search',
-                            'url' => $eventsIndexPage . "&option=search",
+                            'content'   => 'Advanced Search',
+                            'url'       => $eventsIndexPage . "&option=search",
                         ],
                         'settings' => [
-                            'content' => 'Settings',
-                            'url' => '#set',
+                            'content'   => 'Settings',
+                            'url'       => '#set',
                         ]
                     ],
                 ],
                 [
-                    'id'    => 'entityAmount',
-                    'order' => 1,
-                    'template' => 'entityAmount',
-                    'table' => $eventsTable,
-                    'url' => $eventsIndexPage . "&option=search",
+                    'id'        => 'entityAmount',
+                    'order'     => 1,
+                    'template'  => 'entityAmount',
+                    'table'     => $eventsTable,
+                    'url'       => $eventsIndexPage . "&option=search",
                 ],
                 [
-                    'id' => 'textSearch', 
+                    'id'        => 'textSearch', 
                     'order'     => 2,
-                    'template' => 'textSearch',
+                    'template'  => 'textSearch',
                     'entityID'  => 'event',
                     'table'     => $eventsTable,
                     'fields'    => "id, name, image",
@@ -306,44 +306,28 @@ add_filter(
                     'where'     => 'name'
                 ],
                 [
-                    'id' => 'active',
-                    'title' => "Active events",
-                    'slug' => "active-events",
-                    'order' => 3,
-                    'template' => 'list',
+                    'id'        => 'active',
+                    'title'     => "Active events",
+                    'slug'      => "active-events",
+                    'order'     => 3,
+                    'template'  => 'list',
                     'entityID'  => 'eventID',
-                    'table' => $eventsTable,
-                    'fields' => "id, title, ref_dest",
-                    'where' => 'status='.$this->config['status_numb']['Active'] . '',
+                    'table'     => $eventsTable,
+                    'fields'    => "id, title, ref_dest",
+                    'where'     => 'status='.$this->config['status_numb']['Active'] . '',
                     'resultUrl' => $eventsEditPage,
                 ],
                 [
-                    'id'    => 'pending',
-                    'title' => "Pending Events",
-                    'slug' => "pending-events",
-                    'order' => 3,
-                    'template' => 'list',
+                    'id'        => 'pending',
+                    'title'     => "Pending Events",
+                    'slug'      => "pending-events",
+                    'order'     => 3,
+                    'template'  => 'list',
                     'entityID'  => 'eventID',
-                    'table' => $eventsTable,
-                    'fields' => "id, title, ref_dest",
-                    'where' => 'status='.$this->config['status_numb']['Pending'] . '',
+                    'table'     => $eventsTable,
+                    'fields'    => "id, title, ref_dest",
+                    'where'     => 'status='.$this->config['status_numb']['Pending'] . '',
                     'resultUrl' => $eventsEditPage,
-                ],
-                [
-                    "id" => 'expired', 
-                    'title' => "Expired Events",
-                    'slug' => "expired-events",
-                    'order' => 4,
-                    'template' => 'list',
-                    'entityID'  => 'eventID',
-                    'table' => $eventsTable,
-                    'fields' => "id, title, ref_dest",
-                    // 'fields' => [
-                    //     'id',
-                    //     'title',
-                    //     'ref_dest',
-                    // ],
-                    //'where' => 'status = '.$this->config['status_numb']['Expired']
                 ]
             ]
         ];