From 1ce395a174b348c7d1934bde816006a76b1b1e4a Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 19 Oct 2018 16:07:51 -0400 Subject: [PATCH] moving the buttons into the header of the summary dashboard widget --- setup/adminHooks.php | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/setup/adminHooks.php b/setup/adminHooks.php index 013bcb2..db356e7 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -90,6 +90,24 @@ add_filter( $leadsRefLink = GLM_MEMBERS_LEADS_PLUGIN_ADMIN_URL . '?page=glm-members-admin-menu-member&glm_action=index'; $content = [ 'title' => 'Leads', + 'widgetButtons' => [ + [ + 'id' => 'add-lead', + 'content' => 'Add', + 'url' => $leadsIndexPage . "&option=add", + 'classes' => '', + 'styles' => '', + 'data' => '' + ], + [ + 'id' => 'export-button', + 'content' => 'Export', + 'url' => '#', + 'classes' => 'btn-small widget-export-btn waves-effect waves-light btn modal-trigger', + 'styles' => '', + 'data' => 'leads' + ], + ], 'components' => [ [ 'id' => 'quickLinks', @@ -110,27 +128,6 @@ add_filter( ] ], ], - [ - 'id' => 'topButtons', - 'order' => 0, - 'template' => 'buttons', - 'buttons' => [ - 'add-event' => [ - 'content' => 'Add', - 'url' => $leadsIndexPage . "&option=add", - 'classes' => '', - 'styles' => '', - 'data' => '' - ], - 'export-button' => [ - 'content' => 'Export', - 'url' => '#', - 'classes' => 'btn-small widget-export-btn waves-effect waves-light btn modal-trigger', - 'styles' => '', - 'data' => 'leads' - ], - ], - ], [ 'id' => 'entityAmount', 'title' => 'Number of Leads', -- 2.17.1