PHP Class WhGallery

Renders a gallery of blueimp Gallery
See also: http://blueimp.github.io/Gallery/
Author: Antonio Ramirez ([email protected])
Inheritance: extends CWidget
Show file Open project: 2amigos/yiiwheels Class Usage Examples

Public Properties

Property Type Description
$displayControls whether to display the controls on initialization
$htmlOptions array box HTML additional attributes
$items array
 'items' => array(
       array(
           'url' => 'big image',
           'src' => 'source image (thumb)',
           'options' => array(...) // link options
       )
)
$pluginOptions array

Public Methods

Method Description
init ( ) Widget's initialization
registerClientScript ( ) Registers client script
registerGalleryScriptFiles ( ) Registers gallery script files
renderLinks ( ) Renders links
renderTemplate ( ) Renders gallery template
run ( ) : null | void Renders widget

Method Details

init() public method

Widget's initialization
public init ( )

registerClientScript() public method

Registers client script

registerGalleryScriptFiles() public method

Registers gallery script files

renderTemplate() public method

Renders gallery template
public renderTemplate ( )

run() public method

Renders widget
public run ( ) : null | void
return null | void

Property Details

$displayControls public property

whether to display the controls on initialization
public $displayControls

$htmlOptions public property

box HTML additional attributes
public array $htmlOptions
return array

$items public property

 'items' => array(
       array(
           'url' => 'big image',
           'src' => 'source image (thumb)',
           'options' => array(...) // link options
       )
)
public array $items
return array

$pluginOptions public property

See also: https://github.com/blueimp/Gallery/blob/master/README.md#options
public array $pluginOptions
return array