The Zenbridge Plugin is a free Joomla 3 plugin that is used in conjunction with Zen Grid Bridge based Joomla templates in order to provide support for the bootstrap css framework.
The plugin is required to provide Zen Grid Bridge based themes support for the bootstrap display used in Joomla 3.
Installation of the Zenbridge plugin is via the standard Joomla installer. Please see this documentation for more information.
It is important that you also ensure that the plugin is published. To do so please:
1. Navigate to the extensions > plugin manager in your Joomla administrator.
2. Type the word zenbridge into the search filter
3. Click the enable button to the left of the plugin name
The Zenbridge plugin compiles the specified files into the css/framework.css file whenever the template settings are saved int he Joomla administrator. There is a small delay when the user clicks the save button which indicates that the compiler is compiling the less code into css.
The plugin looks a file called template.php located in the template's include folder. If the file is found and the file contains an array specifying the files to be compiled then the plugin triggers the lessphp script which processes the less files.
The files to be compiled are specified by using a simple array as per the following code:
if ($params->get('bootstrap', 1)) { $bsless = 'bootstrap.less'; } else { $bsless = ''; }
if ($params->get('lesscompiler', 1)) { $filesToCompile = array( 'framework.css' => array($bsless,'bridge.less'), 'theme-patch.css' => array('theme-patch.less') ); }