Knowledgebase

Joomlabamboo template and extension documentation

 

What is the Zenbridge Plugin?

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. 

 

How to install the Zenbridge Plugin?

Installation of the Zenbridge plugin is via the standard Joomla installer. Please see this documentation for more information.

 

Ensure that the Zenbridge Plugin is published.

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.joomla-extension-manager

 

2. Type the word zenbridge into the search filterfilter-for-extensions

 

3. Click the enable button to the left of the plugin nameenable-extension

 

How does the Zenbridge plugin work?

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.

 

What about the code?

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') ); }