joomla_test/modules/mod_roknavmenu/lib/renderers/RokNavMenu2XRenderer.php

25 lines
833 B
PHP
Raw Normal View History

2020-01-02 22:20:31 +07:00
<?php
/**
* @version $Id: RokNavMenu2XRenderer.php 4585 2012-10-27 01:44:54Z btowles $
* @author RocketTheme http://www.rockettheme.com
* @copyright Copyright (C) 2007 - 2013 RocketTheme, LLC
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
*/
class RokNavMenu2XRenderer extends RokMenuDefaultRenderer
{
public function renderHeader(){
parent::renderHeader();
$doc = JFactory::getDocument();
foreach($this->layout->getScriptFiles() as $script){
$doc->addScript($script['relative']);
}
foreach($this->layout->getStyleFiles() as $style){
$doc->addStyleSheet($style['relative']);
}
$doc->addScriptDeclaration($this->layout->getInlineScript());
$doc->addStyleDeclaration($this->layout->getInlineStyle());
}
}