public function adapters($config = array()) { $config = new KConfig($config); $config->append(array('value' => 'value', 'text' => 'text', 'name' => 'adapter', 'options' => array(array('text' => 'Please select your adapter', 'value' => null), array('text' => 'YouTube', 'value' => 'youtube'), array('text' => 'Vimeo', 'value' => 'vimeo')))); return parent::optionlist($config); }
/** * Overridden to fix the Bootstrap problem with size=1 select boxes * * @see KTemplateHelperSelect::optionlist() */ public function optionlist($config = array()) { $html = parent::optionlist($config); $html = preg_replace('#size="1"#', '', $html, 1); return $html; }