public function getStylesheets() { $stylesheets = array(); if (is_null($this->getOption('theme'))) { return parent::getStylesheets(); } else { $themes = sfConfig::get('dm_dmDatePickerPlugin_themes'); if (isset($themes[$this->getOption('theme')]) && isset($themes[$this->getOption('theme')]['css_files']) && $themes[$this->getOption('theme')]['css_files']) { $files = is_array($themes[$this->getOption('theme')]['css_files']) ? $themes[$this->getOption('theme')]['css_files'] : array_map('trim', explode(',', $themes[$this->getOption('theme')]['css_files'])); foreach ($files as $file) { $stylesheets[$file] = null; } } // Time picker $themes = sfConfig::get('dm_dmTimePickerPlugin_themes'); if (isset($themes[$this->getOption('theme')]) && isset($themes[$this->getOption('theme')]['css_files']) && $themes[$this->getOption('theme')]['css_files']) { $files = is_array($themes[$this->getOption('theme')]['css_files']) ? $themes[$this->getOption('theme')]['css_files'] : array_map('trim', explode(',', $themes[$this->getOption('theme')]['css_files'])); foreach ($files as $file) { $stylesheets[$file] = null; } } } return array_merge(parent::getStylesheets(), $stylesheets); }
public function getStylesheets() { return array_merge(parent::getStylesheets(), array("/dcReloadedFormExtraPlugin/css/alTimepicker/jquery.ui.timepicker.css?v=0.2.5" => "screen", "/dcReloadedFormExtraPlugin/css/alTimepicker/reset-tables.css" => "screen")); }