public function getStylesheets() { parent::getStylesheets(); $styleSheets = parent::getStylesheets(); // $styleSheets['/orangehrmLeavePlugin/css/viewHolidayListSuccessSearch.css'] = 'screen'; return $styleSheets; }
public function getStylesheets() { $styleSheets = parent::getStylesheets(); return $styleSheets; }
/** * Returns <link> tags for all stylesheets associated with the given form. * * The stylesheets are set by implementing the getStyleSheets() method in the * corresponding widget. * * <code> * class MyWidget extends sfWidgetForm * { * public function getStyleSheets() * { * return array('/path/to/a/file.css'); * } * } * </code> * * @return string <link> tags */ function get_stylesheets_for_form(sfForm $form) { $html = ''; foreach ($form->getStylesheets() as $file => $media) { $html .= stylesheet_tag($file, array('media' => $media)); } return $html; }
/** * * @return array */ public function getStylesheets() { $styleSheets = parent::getStylesheets(); $styleSheets['/orangehrmCoreLeavePlugin/css/assignLeaveSuccess.css'] = 'all'; $styleSheets['/orangehrmCoreLeavePlugin/css/common.css'] = 'all'; return $styleSheets; }
/** * Adds stylesheets from the supplied form to the response object. * * @param sfForm $form */ function use_stylesheets_for_form(sfForm $form) { $response = sfContext::getInstance()->getResponse(); foreach ($form->getStylesheets() as $file => $media) { $response->addStylesheet($file, '', array('media' => $media)); } }
/** * Returns <link> tags for all stylesheets associated with the given form. * @return string <link> tags */ function dm_get_stylesheets_for_form(sfForm $form) { $html = ''; foreach ($form->getStylesheets() as $file => $media) { if (is_numeric($file) && is_string($media)) { $file = $media; $media = 'all'; } $file = sfContext::getInstance()->getResponse()->calculateAssetPath('css', $file); $html .= stylesheet_tag($file, array('media' => $media)); } return $html; }
/** * * @return array */ public function getStylesheets() { $styleSheets = parent::getStylesheets(); $styleSheets[plugin_web_path('orangehrmLeavePlugin', 'css/applyLeaveSuccess.css')] = 'all'; return $styleSheets; }