<?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'));
