| Current Path : /home/lejardintz/www/components/com_kunena/layout/widget/ |
| Current File : /home/lejardintz/www/components/com_kunena/layout/widget/module.php |
<?php
/**
* Kunena Component
*
* @package Kunena.Site
* @subpackage Controllers.Misc
*
* @copyright (C) 2008 - 2016 Kunena Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link https://www.kunena.org
**/
defined('_JEXEC') or die;
/**
* KunenaLayoutWidgetModule
*
* @since K4.0
*
*/
class KunenaLayoutWidgetModule extends KunenaLayout
{
public $position = null;
/**
* Renders module position.
*
* @return string
*/
public function renderPosition()
{
$document = JFactory::getDocument();
if ($this->position && $document->countModules($this->position))
{
$renderer = $document->loadRenderer('modules');
$options = array('style' => 'xhtml');
return (string) $renderer->render($this->position, $options, null);
}
return '';
}
}