Ejemplo n.º 1
0
 function isConfigured(&$params)
 {
     if ($params->get('quickfields') == '[]') {
         echo '<p>' . JTEXT::sprintf('MC_RQL_CONFIGURE_IT', rokQuickLinksHelper::getConfigureLink()) . '</p>';
         return false;
     } else {
         return true;
     }
 }
Ejemplo n.º 2
0
 public function getInput()
 {
     $document = JFactory::getDocument();
     $path = JURI::Root(true) . "/administrator/modules/mod_rokquicklinks/";
     $document->addStyleSheet($path . 'admin/css/quickfields.css');
     $document->addScript($path . 'admin/js/quickfields' . $this->_getJSVersion() . '.js?' . CURRENT_VERSION);
     $directory = $this->form->getValue('iconpath', 'params', $this->form->getFieldAttribute('iconpath', 'default', null, 'params'));
     $this->directory = rokQuickLinksHelper::cleanPath($directory);
     $value = str_replace("|", "'", str_replace("'", '"', $this->value));
     $output = "";
     // hackish way to close tables that we don't want to use
     //$output .= '</td></tr><tr><td colspan="2">';
     // real layout
     $output .= '<div id="quicklinks-admin">' . "\n";
     $output .= $this->populate($value);
     $output .= '</div>' . "\n";
     $output .= "<input id='quicklinks-dir' value=\"" . JURI::Root(true) . $this->directory . "\" type='hidden' />";
     $output .= "<input id='" . $this->id . "' name='" . $this->name . "' type='hidden' value=\"" . $this->value . "\" />";
     echo $output;
 }
Ejemplo n.º 3
0
<?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');
Ejemplo n.º 4
0
<?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;
}
$quicklinks = rokQuickLinksHelper::getLinks($params);
require JModuleHelper::getLayoutPath('mod_rokquicklinks');
Ejemplo n.º 5
0
<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 
        echo rokQuickLinksHelper::getImagePathUrl($ql[0]);
        ?>
" alt="<?php 
        echo $ql[2];
        ?>
" /><br />
					<strong><?php 
        echo $ql[2];
        ?>
</strong>
				</span>
			</a>
		</li>
		<?php 
    }
    ?>