/** * Class init. * * @param string $layoutId * @param \JDocument $template * @param string $basePath * @param array $options */ public function __construct($layoutId, \JDocument $template = null, $basePath = null, $options = null) { $this->tpl = $template ?: Template::getTemplate(); parent::__construct($layoutId, $basePath, $options); }
/** * countRight * * @return int */ public static function countRight() { $tpl = Template::getTemplate(); return $tpl->countModules('right') ? $tpl->params->get('right_col_width', 3) : 0; }