From: Laury GvR Date: Wed, 19 Sep 2018 16:53:39 +0000 (-0400) Subject: Enqueued Materialize, autocomplete script comments X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=7ff31fce38d983a606d60e199fe443d74b76f641;p=WP-Plugins%2Fglm-member-db.git Enqueued Materialize, autocomplete script comments - Added autocomplete script as seen on the agenda view frontend of the events plugin. Commented it all out, just for reference now. - Enqueued materialize in the dashboard model --- diff --git a/models/admin/newDashboard/index.php b/models/admin/newDashboard/index.php index 852b24cc..570458c1 100644 --- a/models/admin/newDashboard/index.php +++ b/models/admin/newDashboard/index.php @@ -108,6 +108,18 @@ class GlmMembersAdmin_newDashboard_index extends GlmDataMembers $clickThroughCounts = array('day' => 0, 'week' => 0, 'month' => 0); $detailViewCounts = array('day' => 0, 'week' => 0, 'month' => 0); + // Enqueue Materialize + wp_register_script( + 'materialize', + GLM_MEMBERS_PLUGIN_URL . 'js/materialize.min.js', + array( + 'jquery' + ), + GLM_MEMBERS_PLUGIN_VERSION + ); + wp_enqueue_script('materialize', false, array('jquery'), false, true); + wp_enqueue_style('materialize-css', GLM_MEMBERS_PLUGIN_URL . 'css/materialize.min.css'); + // Check if there's a logged in user who is locked to their own entity. $lockedToMember = apply_filters( 'glm_members_locked_to_member_id', false ); $memberID = $lockedToMember; diff --git a/views/admin/members/summaryWidget.html b/views/admin/members/summaryWidget.html index 7cb804ba..74135139 100644 --- a/views/admin/members/summaryWidget.html +++ b/views/admin/members/summaryWidget.html @@ -1,6 +1,6 @@ \ No newline at end of file + + diff --git a/views/admin/newDashboard/index.html b/views/admin/newDashboard/index.html index 1c7caca4..34d72b15 100644 --- a/views/admin/newDashboard/index.html +++ b/views/admin/newDashboard/index.html @@ -14,11 +14,13 @@ +NewDashboard! -NewDashboard! + {include file='admin/footer.html'} \ No newline at end of file