function isConfigured(&$params) { if ($params->get('quickfields') == '[]') { echo '<p>' . JTEXT::sprintf('MC_RQL_CONFIGURE_IT', rokQuickLinksHelper::getConfigureLink()) . '</p>'; return false; } else { return true; } }
<?php /** * @package RokQuickLinks - RocketTheme * @version 1.5.0 September 1, 2010 * @author RocketTheme http://www.rockettheme.com * @copyright Copyright (C) 2007 - 2010 RocketTheme, LLC * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only * */ /** ensure this file is being included by a parent file */ defined('_JEXEC') or die('Restricted access'); $doc = JFactory::getDocument(); $doc->addStyleSheet('modules/mod_rokquicklinks/tmpl/rokquicklinks.css'); // Include the syndicate functions only once require_once dirname(__FILE__) . DS . 'helper.php'; // check to see if things are configured yet... if (!rokQuickLinksHelper::isConfigured($params)) { return; } $modulepath = rokQuickLinksHelper::getConfigureLink($module); $quicklinks = rokQuickLinksHelper::getLinks($params); $iconpath = JURI::root(true) . rokQuickLinksHelper::cleanPath($params->get('iconpath', '/administrator/modules/mod_rokquicklinks/tmpl/icons/')); require JModuleHelper::getLayoutPath('mod_rokquicklinks');
<?php // no direct access defined('_JEXEC') or die('Restricted access'); ?> <div class="rok-quicklinks-customize mc-button"> <span class="button"> <a href="<?php echo rokQuickLinksHelper::getConfigureLink(); ?> "><?php echo JTEXT::_('MC_RQL_CUSTOMIZE'); ?> </a> </span> </div> <div id="rok-quicklinks"> <ul> <?php foreach ($quicklinks as $ql) { ?> <?php if ($ql != null) { ?> <li> <a href="<?php echo $ql[1]; ?> "> <span class="rok-quicklink-box"> <img src="<?php