public function getStylesheets()
 {
     parent::getStylesheets();
     $styleSheets = parent::getStylesheets();
     //  $styleSheets['/orangehrmLeavePlugin/css/viewHolidayListSuccessSearch.css'] = 'screen';
     return $styleSheets;
 }
Ejemplo n.º 2
0
 public function getStylesheets()
 {
     $styleSheets = parent::getStylesheets();
     return $styleSheets;
 }
Ejemplo n.º 3
0
/**
 * 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;
}
Ejemplo n.º 4
0
 /**
  *
  * @return array
  */
 public function getStylesheets()
 {
     $styleSheets = parent::getStylesheets();
     $styleSheets['/orangehrmCoreLeavePlugin/css/assignLeaveSuccess.css'] = 'all';
     $styleSheets['/orangehrmCoreLeavePlugin/css/common.css'] = 'all';
     return $styleSheets;
 }
Ejemplo n.º 5
0
/**
 * 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));
    }
}
Ejemplo n.º 6
0
/**
 * 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;
}
Ejemplo n.º 7
0
 /**
  *
  * @return array
  */
 public function getStylesheets()
 {
     $styleSheets = parent::getStylesheets();
     $styleSheets[plugin_web_path('orangehrmLeavePlugin', 'css/applyLeaveSuccess.css')] = 'all';
     return $styleSheets;
 }