'unit.html', 'gallery' => 'unit_gallery.html'); protected $sUnitViewDefault = 'gallery'; protected $sUnitViewParamName = 'unit_view'; function __construct($sMode = '', $aParams = array()) { parent::__construct($sMode, $aParams); $this->aGetParams = array($this->sUnitViewParamName); $this->sUnitTemplate = $this->aUnitViews[$this->sUnitViewDefault]; if (isset($this->aUnitViews[bx_get($this->sUnitViewParamName)])) $this->sUnitTemplate = $this->aUnitViews[bx_get($this->sUnitViewParamName)]; } function getDesignBoxMenu () { $aMenu = parent::getDesignBoxMenu (); if (!$aMenu) return false; return array_merge( array( array('name' => 'gallery', 'title' => _t('_sys_menu_title_gallery'), 'link' => $this->getCurrentUrl(array($this->sUnitViewParamName => 'gallery')), 'icon' => 'th'), array('name' => 'extended', 'title' => _t('_sys_menu_title_extended'), 'link' => $this->getCurrentUrl(array($this->sUnitViewParamName => 'extended')), 'icon' => 'list'), ), $aMenu ); } function _getPseud () { return array( 'id' => 'id', 'title' => 'title', 'text' => 'text', 'added' => 'added', 'author' => 'author', 'photo' => 'photo', ); } } /** @} */