From 8d77a6931bf263f216e0345dfd7b8ab05212fc9a Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 2 Oct 2018 12:24:35 -0400 Subject: [PATCH] Switched position of quicklinks and topbuttons --- setup/adminHooks.php | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/setup/adminHooks.php b/setup/adminHooks.php index b830060..94e431d 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -284,9 +284,28 @@ add_filter( $content = [ 'title' => 'Events', 'components' => [ + [ + 'id' => 'quickLinks', + 'order' => -1, + 'template' => 'quickLinks', + 'quickLinks' => [ + 'dashboard' => [ + 'content' => 'Dashboard', + 'url' => $eventsIndexPage . "&option=dashboard", + ], + 'search' => [ + 'content' => 'Advanced Search', + 'url' => $eventsIndexPage . "&option=search", + ], + 'settings' => [ + 'content' => 'Settings', + 'url' => '#set', + ] + ], + ], [ 'id' => 'topButtons', - 'order' => -1, + 'order' => 0, 'template' => 'buttons', 'buttons' => [ 'add-event' => [ @@ -305,25 +324,6 @@ add_filter( ], ], ], - [ - 'id' => 'quickLinks', - 'order' => 0, - 'template' => 'quickLinks', - 'quickLinks' => [ - 'dashboard' => [ - 'content' => 'Dashboard', - 'url' => $eventsIndexPage . "&option=dashboard", - ], - 'search' => [ - 'content' => 'Advanced Search', - 'url' => $eventsIndexPage . "&option=search", - ], - 'settings' => [ - 'content' => 'Settings', - 'url' => '#set', - ] - ], - ], [ 'id' => 'entityAmount', 'title' => 'Number of Events', -- 2.17.1