Esempio n. 1
0
 /**
  * Initializes the HeadLink element
  * @return $this
  */
 public function initHeadLink()
 {
     $cssPath = $this->options->getCss()->getPath();
     $stylesheets = $this->orderByPriority($this->options->getCss()->getStylesheets());
     foreach ($stylesheets as $css) {
         if (isset($css["media"])) {
             $this->headLink->appendStylesheet($cssPath . "/" . $css["name"], $css["media"], false, array());
         } else {
             $this->headLink->appendStylesheet($cssPath . "/" . $css["name"], 'screen', false, array());
         }
     }
     return $this;
 }
Esempio n. 2
0
 private function include_css($url_file, $browser = "")
 {
     if (file_exists(getcwd() . "/public" . $url_file)) {
         switch ($browser) {
             case "IE":
                 $this->_headLink->appendStylesheet($url_file, array("screen", "print"), "IE", null);
                 break;
             default:
                 $this->_headLink->appendStylesheet($url_file, array("screen", "print"));
                 break;
         }
     }
 }
Esempio n. 3
0
 /**
  * @issue ZF-10345
  */
 public function testIdAttributeIsSupported()
 {
     $this->helper->appendStylesheet(array('href' => '/bar/baz', 'id' => 'foo'));
     $this->assertContains('id="foo"', $this->helper->toString());
 }