<?php /** * @version 3.0.0 * @package K2 * @author JoomlaWorks http://www.joomlaworks.net * @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved. * @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html */ // no direct access defined('_JEXEC') or die; require_once dirname(__FILE__) . '/helper.php'; $items = ModK2ContentHelper::getItems($params); $componentParams = JComponentHelper::getParams('com_k2'); if (count($items)) { include dirname(__FILE__) . '/legacy.php'; require JModuleHelper::getLayoutPath('mod_k2_content', $params->get('template', 'Default') . '/default'); }
protected function getModuleItems() { // Import module helper jimport('joomla.application.module.helper'); // Get application $application = JFactory::getApplication(); // Get input $id = $application->input->get('id', 0, 'int'); if ($id) { $module = K2HelperUtilities::getModule($id); if ($module) { require_once JPATH_SITE . '/modules/mod_k2_content/helper.php'; $this->items = ModK2ContentHelper::getItems($module->params); } } }