function __construct($params) { $params->set('gkmenu', 1); parent::__construct($params); $doc = JFactory::getDocument(); $doc->addStyleDeclaration('.gkcol { width: ' . $this->getParam('menu_col_width', 200) . 'px; }'); }
function __construct($params) { $params->set('gkmenu', 1); $template_params = JFactory::getApplication()->getTemplate(true)->params; parent::__construct($params); $doc = JFactory::getDocument(); $doc->addStyleDeclaration(' .childcontent { padding: ' . $template_params->get('submenu_padding', '16px') . '; } .childcontent .gkcol { width: ' . $this->getParam('menu_col_width', 200) . 'px; } '); }
function __construct($params) { parent::__construct($params); //To show sub menu on a separated place $this->showSeparatedSub = true; }
function __construct($params) { $params->set('gkmenu', 1); parent::__construct($params); }