From 6990e8140568c673fa964ea565e0d763e605fdcb Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 19 Oct 2018 16:02:24 -0400 Subject: [PATCH] moving the buttons out of the component array for the dashboard summary widgets --- setup/adminHooks.php | 40 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/setup/adminHooks.php b/setup/adminHooks.php index 330a0cf..aa64de7 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -161,6 +161,24 @@ add_filter( $contactsRefLink = GLM_MEMBERS_CONTACTS_PLUGIN_ADMIN_URL . '?page=glm-members-admin-menu-member&glm_action=index'; $content = [ 'title' => 'Contacts', + 'widgetButtons' => [ + [ + 'id' => 'add-event', + 'content' => 'Add', + 'url' => $contactsIndexPage . "&option=create", + 'classes' => '', + 'styles' => '', + 'data' => '' + ], + [ + 'id' => 'export-button', + 'content' => 'Export', + 'url' => '#', + 'classes' => 'btn-small widget-export-btn waves-effect waves-light btn modal-trigger', + 'styles' => '', + 'data' => 'contacts' + ], + ], 'components' => [ [ 'id' => 'quickLinks', @@ -181,27 +199,7 @@ add_filter( ] ], ], - [ - 'id' => 'topButtons', - 'order' => 0, - 'template' => 'buttons', - 'buttons' => [ - 'add-event' => [ - 'content' => 'Add', - 'url' => $contactsIndexPage . "&option=create", - 'classes' => '', - 'styles' => '', - 'data' => '' - ], - 'export-button' => [ - 'content' => 'Export', - 'url' => '#', - 'classes' => 'btn-small widget-export-btn waves-effect waves-light btn modal-trigger', - 'styles' => '', - 'data' => 'contacts' - ], - ], - ], + [ 'id' => 'entityAmount', 'title' => 'Number of Contacts', -- 2.17.1