From 47957d086c528593f17c9dfba8b03c25798d46a3 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 2 Oct 2018 12:24:47 -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 727979d2..d6bb3116 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -457,9 +457,28 @@ add_filter( $content = [ 'title' => 'Members', 'components' => [ + [ + 'id' => 'quickLinks', + 'order' => -1, + 'template' => 'quickLinks', + 'quickLinks' => [ + 'dashboard' => [ + 'content' => 'Dashboard', + 'url' => $membersIndexPage . "&option=dashboard", + ], + 'search' => [ + 'content' => 'Advanced Search', + 'url' => $membersIndexPage . "&option=search", + ], + 'settings' => [ + 'content' => 'Settings', + 'url' => $membersSettingsPage, + ] + ], + ], [ 'id' => 'topButtons', - 'order' => -1, + 'order' => 0, 'template' => 'buttons', 'buttons' => [ 'add-member' => [ @@ -478,25 +497,6 @@ add_filter( ], ], ], - [ - 'id' => 'quickLinks', - 'order' => 0, - 'template' => 'quickLinks', - 'quickLinks' => [ - 'dashboard' => [ - 'content' => 'Dashboard', - 'url' => $membersIndexPage . "&option=dashboard", - ], - 'search' => [ - 'content' => 'Advanced Search', - 'url' => $membersIndexPage . "&option=search", - ], - 'settings' => [ - 'content' => 'Settings', - 'url' => $membersSettingsPage, - ] - ], - ], [ 'id' => 'entityAmount', 'title' => 'Number of ' . $this->config['terms']['term_member_plur_cap'], -- 2.17.1