/** * Initializes the widget */ public function init() { $this->assets = array('js' => YII_DEBUG ? 'foundation/foundation.clearing.js' : 'foundation.min.js'); Html::addCssClass($this->htmlOptions, Enum::CLEARING_THUMBS); ArrayHelper::addValue('data-clearing', 'data-clearing', $this->htmlOptions); parent::init(); }
/** * Initilizes the widget */ public function init() { $this->assets = array('js' => YII_DEBUG ? 'foundation/foundation.section.js' : 'foundation.min.js'); Html::addCssClass($this->htmlOptions, Enum::SECTION_CONTAINER); Html::addCssClass($this->htmlOptions, $this->style); ArrayHelper::addValue('data-section', $this->style, $this->htmlOptions); $this->registerClientScript(); parent::init(); }
/** * Initializes the widget */ public function init() { $this->assets = array('js' => YII_DEBUG ? 'foundation/foundation.dropdown.js' : 'foundation.min.js'); Html::addCssClass($this->htmlOptions, Enum::DROPDOWN_LIST); ArrayHelper::addValue('data-dropdown-content', '-', $this->htmlOptions); if ($this->type === Enum::DROPDOWN_CONTENT) { Html::addCssClass($this->htmlOptions, Enum::CONTENT); } parent::init(); }
/** * Initializes the widget * @throws \foundation\exception\InvalidConfigException */ public function init() { if (is_string($this->config)) { throw new InvalidConfigException('"config" must be of type array.'); } $this->assets = array('js' => YII_DEBUG ? 'foundation/foundation.alerts.js' : 'foundation.min.js'); if (!isset($this->config)) { $this->config = array(Enum::COLOR_REGULAR => array(), Enum::COLOR_ALERT => array(), Enum::COLOR_SECONDARY => array(), Enum::COLOR_SUCCESS => array()); } $this->htmlOptions = ArrayHelper::defaultValue('id', $this->getId(), $this->htmlOptions); parent::init(); }
/** * Initializes the widget */ public function init() { $this->assets = array('js' => YII_DEBUG ? 'foundation/foundation.tooltips.js' : 'foundation.min.js'); Html::addCssClass($this->htmlOptions, Enum::TOOLTIP); Html::addCssClass($this->htmlOptions, $this->position); ArrayHelper::addValue('title', $this->tip, $this->htmlOptions); ArrayHelper::addValue('data-tooltip', 'data-tooltip', $this->htmlOptions); if ($this->tip === null || $this->text === null) { throw new InvalidConfigException('"tip" and "text" cannot be null.'); } $this->registerClientScript(); parent::init(); }
/** * Initializes the widget * @throws InvalidConfigException */ public function init() { if ($this->source === null) { throw new InvalidConfigException('"source" cannot be null.'); } Html::addCssClass($this->htmlOptions, Enum::VIDEO_FLEXVIDEO); if ($this->widescreen) { Html::addCssClass($this->htmlOptions, Enum::VIDEO_WIDESCREEN); } if ($this->vimeo) { Html::addCssClass($this->htmlOptions, Enum::VIDEO_VIMEO); } parent::init(); }
/** * Widget's initialization widget */ public function init() { $this->assets = array('js' => YII_DEBUG ? 'foundation/foundation.magellan.js' : 'foundation.min.js'); $this->htmlOptions['data-magellan-expedition'] = Enum::NAV_FIXED; parent::init(); }
/** * Widget's init method */ public function init() { parent::init(); $this->initItems(); }
/** * Initializes the widget */ public function init() { $this->assets = array('js' => YII_DEBUG ? 'foundation/foundation.reveal.js' : 'foundation.min.js'); Html::addCssClass($this->htmlOptions, Enum::DIALOG); $this->setId(ArrayHelper::removeValue($this->htmlOptions, 'id', $this->getId())); $this->registerClientScript(); parent::init(); $this->htmlOptions['id'] = $this->getId(); echo $this->renderToggleButton() . "\n"; echo \CHtml::openTag('div', $this->htmlOptions) . "\n"; echo $this->renderHeader() . "\n"; }
/** * Initializes the widget */ public function init() { $this->assets = array('js' => YII_DEBUG ? 'foundation/foundation.orbit.js' : 'foundation.min.js'); Html::addCssClass($this->htmlOptions, Enum::ORBIT_WRAPPER); $this->setId(ArrayHelper::removeValue($this->htmlOptions, 'id', $this->getId())); $this->registerClientScript(); parent::init(); }
/** * Initializes the widget */ public function init() { $this->assets = array('js' => YII_DEBUG ? 'foundation/foundation.topbar.js' : 'foundation.min.js'); Html::addCssClass($this->htmlOptions, Enum::NAV_TOPBAR); if ($this->fixed) { Html::addCssClass($this->htmlOptions, Enum::NAV_FIXED); } if ($this->sticky) { Html::addCssClass($this->htmlOptions, Enum::NAV_STICKY); } if ($this->containToGrid) { Html::addCssClass($this->htmlOptions, Enum::NAV_CONTAINED); } parent::init(); }
/** * Initializes the widget */ public function init() { $this->assets = array('js' => YII_DEBUG ? 'foundation/foundation.joyride.js' : 'foundation.min.js'); Html::addCssClass($this->htmlOptions, Enum::JOYRIDE_LIST); ArrayHelper::addValue('data-joyride', 'data-joyride', $this->htmlOptions); $this->registerClientScript(); parent::init(); }