From fd5c5015e9a5f92c666172d563d35bbd28922883 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 21 Dec 2017 15:56:01 -0500 Subject: [PATCH] Setup popup for login Tried setting up ui theme but getting strange results. --- models/front/registrations/index.php | 9 ++- views/front/registrations/accountHeader.html | 71 ++++++++++++++++++-- 2 files changed, 74 insertions(+), 6 deletions(-) diff --git a/models/front/registrations/index.php b/models/front/registrations/index.php index 1a6cf98..df15033 100644 --- a/models/front/registrations/index.php +++ b/models/front/registrations/index.php @@ -79,8 +79,15 @@ class GlmMembersFront_registrations_index */ public function modelAction($actionData = false) { - + global $wp_scripts; $page = false; + $ui = $wp_scripts->query('jquery-ui-core'); + wp_enqueue_style( + 'jquery-ui-smoothness', + "//ajax.googleapis.com/ajax/libs/jqueryui/{$ui->ver}/themes/smoothness/jquery-ui.min.css", + false, + null + ); // Check for valid page - if not valid default to "list" $page = (isset($actionData['request']['page']) ? $actionData['request']['page']: false); diff --git a/views/front/registrations/accountHeader.html b/views/front/registrations/accountHeader.html index a360b6c..8e1b246 100644 --- a/views/front/registrations/accountHeader.html +++ b/views/front/registrations/accountHeader.html @@ -1,5 +1,5 @@
- +
Event Registration List @@ -68,7 +68,7 @@ Logged in as {$loggedIn.fname} {$loggedIn.lname} {else} - + Login