enqueuing glm-grid.css styles in member db
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 23 Sep 2016 14:19:08 +0000 (10:19 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 23 Sep 2016 14:19:08 +0000 (10:19 -0400)
controllers/front.php
css/glm-grid.css
css/glm-grid.css.map
scss/_glm-grid.scss

index 03b8dc1..34ba106 100644 (file)
@@ -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);
+            }
         }
     }
 
index 7466a85..0da877d 100644 (file)
@@ -1,2 +1,3 @@
+.agenda-event-name{border:1px solid red}
 
 /*# sourceMappingURL=glm-grid.css.map */
index 5cd2645..b6b80f8 100644 (file)
@@ -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
index e69de29..10293fd 100644 (file)
@@ -0,0 +1,3 @@
+.agenda-event-name{
+    border: 1px solid red;
+}
\ No newline at end of file