From 4dffc4f2cf328c7488b0991dbedc320b1aaf2d26 Mon Sep 17 00:00:00 2001 From: Dave Olsen Date: Fri, 30 May 2014 22:43:40 -0400 Subject: [PATCH] unfinished css helper plugin --- .../Helpers/Plugins/CSSRuleSaverHelperPlugin.php | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 core/lib/PatternLab/PatternData/Helpers/Plugins/CSSRuleSaverHelperPlugin.php diff --git a/core/lib/PatternLab/PatternData/Helpers/Plugins/CSSRuleSaverHelperPlugin.php b/core/lib/PatternLab/PatternData/Helpers/Plugins/CSSRuleSaverHelperPlugin.php new file mode 100644 index 0000000..57b6cb0 --- /dev/null +++ b/core/lib/PatternLab/PatternData/Helpers/Plugins/CSSRuleSaverHelperPlugin.php @@ -0,0 +1,8 @@ +// set-up the mark-up for CSS Rule Saver so it can figure out which rules to save +$patternCSSExists = $this->enableCSS; +$patternCSS = ""; +if ($this->enableCSS) { + $this->cssRuleSaver->loadHTML($patternCodeRaw,false); + $patternCSS = $this->cssRuleSaver->saveRules(); + $this->patternCSS[$patternSubtypeItem["patternPartial"]] = $patternCSS; +} \ No newline at end of file