| cssMinifier |
Plugin |
<p>Advanced CSS minifier plugin for CMS Made Simple. Minifies CSS strings and loads stylesheets directly from database. Features preloading, cache control, multiple file support, and automatic admin detection for development mode.</p>
<h4>Installation</h4>
<p>Upload function.cssMinifier.php to your assets/plugins/ folder</p>
<p>Use in your template's <head> section</p>
<p><strong>Database CSS (Recommended):</strong></p>
<pre><code>{cssMinifier cssname="homepage"}
{cssMinifier cssname="style1,style2,style3"}</code></pre>
<p><strong>CSS String (v2.0 Compatible):</strong></p>
<pre><code>{cssMinifier css=$my_css_content}</code></pre>
<h3>Examples</h3>
<p><strong>Performance Mode:</strong></p>
<pre><code>{cssMinifier cssname="homepage" preload=1}</code></pre>
<p><strong>Development Mode:</strong></p>
<pre><code>{cssMinifier cssname="homepage" nominify=1 cache=0}</code></pre>
<p><strong>Inline Styles:</strong></p>
<pre><code>{cssMinifier cssname="homepage" inline=1}</code></pre>
|