protected function _renderStyles()
    {
        $document = $this->getService('anahita:document');
        $html = '';

        // Generate stylesheet links
        foreach ($document->getStyleSheets() as $src => $attr) {

            $rel = 'stylesheet';

            if (strpos($src, '.less')) {
                $rel .= '/less';
            }

            $html .= '<link rel="'.$rel.'" href="'.$src.'" type="'.$attr['mime'].'"';

            if (isset($attr['media'])) {
                $html .= ' media="'.$attr['media'].'" ';
            }

            $html .= '/>';
        }

        foreach ($document->getStyle() as $type => $content) {
            $html .= '<style type="'.$type.'">'.$content.'</style>';
        }

        return $html;
    }
protected function _renderStyles()
    {
        $document = $this->getService('anahita:document');
        $html = '';

        // Generate stylesheet links
        foreach ($document->getStyleSheets() as $src => $attr) {

            $rel = 'stylesheet';

            if (strpos($src, '.less')) {
                $rel .= '/less';
            }

            $html .= '<link rel="'.$rel.'" href="'.$src.'" type="'.$attr['mime'].'"';

            if (isset($attr['media'])) {
                $html .= ' media="'.$attr['media'].'" ';
            }

            $html .= '/>';
        }

        foreach ($document->getStyle() as $type => $content) {
            $html .= '<style type="'.$type.'">'.$content.'</style>';
        }

        return $html;
    }
protected function _renderStyles ( ) { $ document = $ this -> getService ( 'anahita:document' ) ; $ html = '' ; // Generate stylesheet links foreach ( $ document -> getStyleSheets ( ) as $ src => $ attr ) { $ rel = 'stylesheet' ; if ( strpos ( $ src , '.less' ) ) { $ rel .= '/less' ; } $ html .= '<link rel="' . $ rel . '" href="' . $ src . '" type="' . $ attr [ 'mime' ] . '"' ; if ( isset ( $ attr [ 'media' ] ) ) { $ html .= ' media="' . $ attr [ 'media' ] . '" ' ; } $ html .= '/>' ; } foreach ( $ document -> getStyle ( ) as $ type => $ content ) { $ html .= '<style type="' . $ type . '">' . $ content . '</style>' ; } return $ html ; }
Return the document styles.

@return string
Return the document styles .