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