<?php /** * @package mod_pf_gantt * * @author Tobias Kuhn (eaxs) * @copyright Copyright (C) 2006-2013 Tobias Kuhn. All rights reserved. * @license http://www.gnu.org/licenses/gpl.html GNU/GPL, see LICENSE.txt **/ defined('_JEXEC') or die; if (!jimport('projectfork.framework')) { echo JText::_('MOD_PF_GANTT_PROJECTFORK_LIB_NOT_INSTALLED'); return; } if (!PFApplicationHelper::exists('com_projectfork')) { echo JText::_('MOD_PF_GANTT_PROJECTFORK_NOT_INSTALLED'); return; } // Do nothing if the module is set to hide the overview chart if ((int) $params->get('show_overview', 1) == 0 && PFApplicationHelper::getActiveProjectId() == 0) { return ''; } // Get the helper class require_once dirname(__FILE__) . '/helper.php'; modPFganttHelper::init($params, $module->id); $items = modPFganttHelper::getItems(); // Include layout $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx')); require JModuleHelper::getLayoutPath('mod_pf_gantt', $params->get('layout', 'default'));