public function showroom(
        $model = null,
        $model_id = null,
        $album_id = null,
        $style = 'medium',
        $html_options = array('jquery' => true, 'swipebox' => true))
    {

        $album = $this->getAlbum($model, $model_id, $album_id);

        if (!empty($album)) {
            # Load scripts for the showroom (jquery, bootstrap, swipebox)
            $this->_loadScripts($html_options);

            # Render the showroom
            $this->showroomTmpl($album, $style);
        } else {
            # Album doesn't exists
            $this->_noPhotosMessageTmpl();
        }

        return;
    }
public function showroom(
        $model = null,
        $model_id = null,
        $album_id = null,
        $style = 'medium',
        $html_options = array('jquery' => true, 'swipebox' => true))
    {

        $album = $this->getAlbum($model, $model_id, $album_id);

        if (!empty($album)) {
            # Load scripts for the showroom (jquery, bootstrap, swipebox)
            $this->_loadScripts($html_options);

            # Render the showroom
            $this->showroomTmpl($album, $style);
        } else {
            # Album doesn't exists
            $this->_noPhotosMessageTmpl();
        }

        return;
    }
public function showroom ( $ model = null , $ model_id = null , $ album_id = null , $ style = 'medium' , $ html_options = array ( 'jquery' => true , 'swipebox' => true ) ) { $ album = $ this -> getAlbum ( $ model , $ model_id , $ album_id ) ; if ( ! empty ( $ album ) ) { # Load scripts for the showroom (jquery, bootstrap, swipebox) $ this -> _loadScripts ( $ html_options ) ; # Render the showroom $ this -> showroomTmpl ( $ album , $ style ) ; } else { # Album doesn't exists $ this -> _noPhotosMessageTmpl ( ) ; } return ; }
Render a gallery with thumbnails

@example
<?php $this->Gallery->showroom('product', 10) ?>

@param null $model
@param null $model_id
@param null $album_id
@return string
Render a gallery with thumbnails