/**
  * includeHead
  *
  * @param RendererInterface|PhpRenderer $view
  * @param string                        $type
  * @param string                        $path
  *
  * @return void
  */
 public function includeHead(RendererInterface $view, $type, $path)
 {
     switch ($type) {
         case 'css':
             $view->headLink()->appendStylesheet($path);
             break;
         case 'js':
             $view->headScript()->appendFile($path);
             break;
     }
 }
Exemple #2
0
 public static function addCss(\Zend\View\Renderer\RendererInterface $renderer, $href, $media = 'screen', $conditionalStylesheet = '', $extras = array())
 {
     self::$renderer = $renderer;
     self::$renderer->headLink()->appendStylesheet(self::$renderer->basePath($href), $media, $conditionalStylesheet, $extras);
 }