-
Notifications
You must be signed in to change notification settings - Fork 63
Flexslider
Petar Tuovic edited this page Nov 19, 2013
·
5 revisions
redRAD integrates flexslider support for creating image slider.
To load flexslider libraries in any page add:
<?php
JHtml::_('rjquery.flexslider');That will load basic flexslider libraries and tie it to all divs with class flexslider.
For specif selector, use following:
<?php
JHtml::_('rjquery.flexslider', '.example-class');Where example-class is wanted selector.
You can also provide options array with specific settings for slider.
<?php
JHtml::_('rjquery.flexslider', '.example-class', array('animation' => 'slide'));This way, slider animation will be slide.
For more info on available slider options checkout this page
This is the full function definition for reference.
<?php
public static function flexslider($selector = '.flexslider', $options = null)redCORE documentation menu: