From: Anthony Talarico Date: Fri, 23 Sep 2016 14:19:08 +0000 (-0400) Subject: enqueuing glm-grid.css styles in member db X-Git-Tag: v2.7.0^2~17^2~12^2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=b7a2975bde2bd28f70c391c80b8cd5e1012bf9fc;p=WP-Plugins%2Fglm-member-db.git enqueuing glm-grid.css styles in member db --- diff --git a/controllers/front.php b/controllers/front.php index 03b8dc1c..34ba106f 100644 --- a/controllers/front.php +++ b/controllers/front.php @@ -168,6 +168,7 @@ class glmMembersFront extends GlmPluginSupport // Register any front.css files in the css directory of any glm members plugin foreach ($this->config['addOns'] as $a) { $cssFile = GLM_MEMBERS_WORDPRESS_PLUGIN_PATH.$a['slug'].'/css/front.css'; + $cssGridFile = GLM_MEMBERS_WORDPRESS_PLUGIN_PATH.$a['slug'].'/css/glm-grid.css'; if (is_file($cssFile)) { $cssName = $a['slug'].'-front-css'; wp_register_style( @@ -178,6 +179,16 @@ class glmMembersFront extends GlmPluginSupport ); wp_enqueue_style($cssName); } + if (is_file($cssGridFile)) { + $cssGridName = $a['slug'].'-grid-front-css'; + wp_register_style( + $cssGridName, + GLM_MEMBERS_WORDPRESS_PLUGIN_URL.'/'.$a['slug'].'/css/glm-grid.css', + false, + GLM_MEMBERS_PLUGIN_VERSION + ); + wp_enqueue_style($cssGridName); + } } } diff --git a/css/glm-grid.css b/css/glm-grid.css index 7466a853..0da877d1 100644 --- a/css/glm-grid.css +++ b/css/glm-grid.css @@ -1,2 +1,3 @@ +.agenda-event-name{border:1px solid red} /*# sourceMappingURL=glm-grid.css.map */ diff --git a/css/glm-grid.css.map b/css/glm-grid.css.map index 5cd26453..b6b80f84 100644 --- a/css/glm-grid.css.map +++ b/css/glm-grid.css.map @@ -1 +1 @@ -{"version":3,"file":"glm-grid.css","sources":["app.scss","_glm-grid.scss","_settings.scss"],"sourcesContent":["@import 'glm-grid';\n@import 'settings';","",""],"mappings":"","names":[],"sourceRoot":"/source/"} \ No newline at end of file +{"version":3,"file":"glm-grid.css","sources":["app.scss","_glm-grid.scss","_settings.scss"],"sourcesContent":["@import 'glm-grid';\n@import 'settings';",".agenda-event-name{\n border: 1px solid red;\n}",""],"mappings":"ACAA,AAAA,kBAAkB,AAAA,CACd,MAAM,CAAE,aAAc,CACzB","names":[],"sourceRoot":"/source/"} \ No newline at end of file diff --git a/scss/_glm-grid.scss b/scss/_glm-grid.scss index e69de29b..10293fda 100644 --- a/scss/_glm-grid.scss +++ b/scss/_glm-grid.scss @@ -0,0 +1,3 @@ +.agenda-event-name{ + border: 1px solid red; +} \ No newline at end of file