From d1553d0e80c9853d625235e27c6e93dc2334a52b Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 10 Jan 2019 14:21:32 -0500 Subject: [PATCH] enqueue css for glm foundation --- controllers/front.php | 11 +++++++++++ index.php | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/controllers/front.php b/controllers/front.php index 4675a530..0fe89d99 100644 --- a/controllers/front.php +++ b/controllers/front.php @@ -206,6 +206,7 @@ class glmMembersFront extends GlmPluginSupport } $cssGridFileOld = GLM_MEMBERS_PLUGIN_PATH.'/css/glm-grid-old.css'; $cssGridFile = GLM_MEMBERS_PLUGIN_PATH.'/css/glm-grid.css'; + $cssGlmaFoundation = GLM_MEMBERS_PLUGIN_PATH.'/css/glma-foundation.min.css'; if (is_file($cssGridFileOld)) { @@ -228,6 +229,16 @@ class glmMembersFront extends GlmPluginSupport ); wp_enqueue_style($cssGridName); } + if (is_file($cssGlmaFoundation)) { + $cssGlmaFoundationName = 'glma-foundation-css'; + wp_register_style( + $cssGlmaFoundationName, + GLM_MEMBERS_PLUGIN_BASE_URL.'/css/glma-foundation.min.css', + false, + GLM_MEMBERS_PLUGIN_VERSION + ); + wp_enqueue_style($cssGlmaFoundationName); + } } /** diff --git a/index.php b/index.php index 8fea5408..61c3b2b8 100755 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Associate - Members Plugin * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media GLM Associate core plugin and Members database. - * Version: 2.10.47 + * Version: 2.10.48 * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersDatabase * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 2.10.47 + * @version 2.10.48 */ $GLOBALS['glmAssociateMemTracker'] = memory_get_usage(); @@ -47,7 +47,7 @@ if (!defined('ABSPATH')) { * */ -define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.47'); +define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.48'); define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.41'); // Check if plugin version is not current in WordPress option and if needed updated it -- 2.17.1