function fetchElement($name, $value, &$node, $control_name) { $doc =& JFactory::getDocument(); $doc->addScript(JURI::Root(true)."/templates/rt_hybrid_j15/elements/childtype.js"); return null; }
function loadScripts(&$menu) { $enablejs = $menu->getParameter('roknavmenu_fusion_enable_js', '1'); $opacity = $menu->getParameter('roknavmenu_fusion_opacity', 1); $effect = $menu->getParameter('roknavmenu_fusion_effect', 'slidefade'); $hidedelay = $menu->getParameter('roknavmenu_fusion_hidedelay', 500); $menu_animation = $menu->getParameter('roknavmenu_fusion_menu_animation', 'Quad.easeOut'); $menu_duration = $menu->getParameter('roknavmenu_fusion_menu_duration', 400); $pill = $menu->getParameter('roknavmenu_fusion_pill', 0); $pill_animation = $menu->getParameter('roknavmenu_fusion_pill_animation', 'Back.easeOut'); $pill_duration = $menu->getParameter('roknavmenu_fusion_pill_duration', 400); $tweakInitial_x = $menu->getParameter('roknavmenu_fusion_tweakInitial_x', '0'); $tweakInitial_y = $menu->getParameter('roknavmenu_fusion_tweakInitial_y', '0'); $tweakSubsequent_x = $menu->getParameter('roknavmenu_fusion_tweakSubsequent_x', '0'); $tweakSubsequent_y = $menu->getParameter('roknavmenu_fusion_tweakSubsequent_y', '0'); if ($effect == 'slidefade') { $effect = "slide and fade"; } $doc =& JFactory::getDocument(); JHTML::_('behavior.mootools'); if (FusionScriptLoader::isIe(6)) { $doc->addScript(JURI::Root(true) . '/modules/mod_roknavmenu/themes/fusion/js/sfhover.js'); } if (FusionScriptLoader::isIe() && $effect == 'slide and fade') { $effect = "slide"; } if ($enablejs) { $doc->addScript(JURI::Root(true) . '/modules/mod_roknavmenu/themes/fusion/js/fusion.js'); $initialization = "\n\t\t window.addEvent('domready', function() {\n\t\t\t\t\tnew Fusion('ul.menutop', {\n\t\t\t\t\t\tpill: {$pill},\n\t\t\t\t\t\teffect: '{$effect}',\n\t\t\t\t\t\topacity: {$opacity},\n\t\t\t\t\t\thideDelay: {$hidedelay},\n\t\t\t\t\t\ttweakInitial: {'x': " . $tweakInitial_x . ", 'y': " . $tweakInitial_y . "},\n \t\t\t\ttweakSubsequent: {'x': " . $tweakSubsequent_x . ", 'y': " . $tweakSubsequent_y . "},\n\t\t\t\t\t\tmenuFx: {duration: {$menu_duration}, transition: Fx.Transitions.{$menu_animation}},\n\t\t\t\t\t\tpillFx: {duration: {$pill_duration}, transition: Fx.Transitions.{$pill_animation}}\n\t\t\t\t\t});\n\t });"; $doc->addScriptDeclaration($initialization); } }
function fetchElement($name, $value, &$node, $control_name) { $output = ''; $document =& JFactory::getDocument(); if (defined('ROKSTORIES_ADMIN')) return; define('ROKSTORIES_ADMIN', 1); if (!ROKMODULE_CHECK) return "You need RokModule in order to install Sample Data."; $module_id = JRequest::getVar('cid', null); if(is_array($module_id)) $module_id = $module_id[0]; if (!$module_id) $module_id = JRequest::getVar('id', null); $document->addScript(JURI::Root(true)."/modules/mod_rokstories/admin/importData.js"); $document->addStyleSheet(JURI::Root(true)."/modules/mod_rokstories/admin/rokstories-admin.css"); $document->addScriptDeclaration(" window.RokStoriesAdminPath = '".JURI::Root(true)."/index.php?option=com_rokmodule&tmpl=component&type=raw&moduleid=$module_id';"); $output .= "<div id='rokstories-admin-wrapper'> <div> <button>Import Sample Data</button> </div> </div>"; return $output; }
function loadIcons($name, $value, $template) { $path = JPATH_SITE . DS . "modules" . DS . "mod_roktabs" . DS . "images" . DS; $urlPath = JURI::Root(true) . "/modules/mod_roktabs/images/"; if ($this->form->getValue('tabs_iconpath', 'params') != '') { $path = JPATH_SITE . DS . $this->form->getValue('tabs_iconpath', 'params'); $urlPath = JURI::Root(true) . "/" . $this->form->getValue('tabs_iconpath', 'params'); } $path = str_replace('__template__', 'templates' . DS . $template, $path); $urlPath = str_replace('__template__', 'templates/' . $template, $urlPath); $path = str_replace('__module__', 'modules/mod_roktabs', $path); $urlPath = str_replace('__module__', 'modules/mod_roktabs', $urlPath); $icons = array('__none__'); $html = ""; if ($handle = @opendir($path)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { $ext = strtolower(substr($file, strrpos($file, '.') + 1)); if ($ext == 'gif' || $ext == 'bmp' || $ext == 'jpg' || $ext == 'png') { array_push($icons, $file); } } } closedir($handle); } foreach ($icons as $icon) { if ($icon == $value) { $selected = "selected='selected'"; } else { $selected = ""; } $html .= "<option alt='" . $urlPath . $icon . "' {$selected}>" . $icon . "</option>"; } return $html; }
public function loadScripts(&$params) { JHTML::_('behavior.mootools'); $doc =& JFactory::getDocument(); $doc->addScript(JURI::Root(true) . '/modules/mod_rokminievents/tmpl/js/rokminievents' . self::_getJSVersion() . '.js'); $doc->addScript(JURI::Root(true) . '/modules/mod_rokminievents/tmpl/js/rokslider' . self::_getJSVersion() . '.js'); }
function inizialize($css_style, $offset, &$params) { global $mainframe; $theme = $params->get('theme', 'blue'); JHTML::_('behavior.mootools'); $doc =& JFactory::getDocument(); $css = modRokajaxsearchHelper::getCSSPath('rokajaxsearch.css', 'mod_rokajaxsearch'); $iebrowser = modRokajaxsearchHelper::getBrowser(); if ($css_style == 1 && $css != false) { $doc->addStyleSheet($css); $doc->addStyleSheet(JURI::Root(true) . "/modules/mod_rokajaxsearch/themes/{$theme}/rokajaxsearch-theme.css"); if ($iebrowser) { $style = JURI::Root(true) . "/modules/mod_rokajaxsearch/themes/{$theme}/rokajaxsearch-theme-ie{$iebrowser}"; $check = dirname(__FILE__) . "/themes/{$theme}/rokajaxsearch-theme-ie{$iebrowser}"; if (file_exists($check . ".css")) { $doc->addStyleSheet($style . ".css"); } elseif (file_exists($check . ".php")) { $doc->addStyleSheet($style . ".php"); } } } $doc->addScript(JURI::Root(true) . "/modules/mod_rokajaxsearch/js/rokajaxsearch.js"); /* RokAjaxSearch Init */ $websearch = $params->get('websearch', 0) ? 1 : 0; $blogsearch = $params->get('blogsearch', 0) ? 1 : 0; $imagesearch = $params->get('imagesearch', 0) ? 1 : 0; $videosearch = $params->get('videosearch', 0) ? 1 : 0; $ras_init = "window.addEvent((window.webkit) ? 'load' : 'domready', function() {\n\t\t\t\twindow.rokajaxsearch = new RokAjaxSearch({\n\t\t\t\t\t'results': '" . JText::_('RESULTS') . "',\n\t\t\t\t\t'close': '',\n\t\t\t\t\t'websearch': " . $websearch . ",\n\t\t\t\t\t'blogsearch': " . $blogsearch . ",\n\t\t\t\t\t'imagesearch': " . $imagesearch . ",\n\t\t\t\t\t'videosearch': " . $videosearch . ",\n\t\t\t\t\t'imagesize': '" . $params->get('image_size', 'MEDIUM') . "',\n\t\t\t\t\t'safesearch': '" . $params->get('safesearch', 'MODERATE') . "',\n\t\t\t\t\t'search': '" . JText::_('SEARCH') . "',\n\t\t\t\t\t'readmore': '" . JText::_('READMORE') . "',\n\t\t\t\t\t'noresults': '" . JText::_('NORESULTS') . "',\n\t\t\t\t\t'advsearch': '" . JText::_('ADVSEARCH') . "',\n\t\t\t\t\t'page': '" . JText::_('PAGE') . "',\n\t\t\t\t\t'page_of': '" . JText::_('PAGE_OF') . "',\n\t\t\t\t\t'searchlink': '" . JURI::Base() . htmlentities($params->get('search_page')) . "',\n\t\t\t\t\t'advsearchlink': '" . JURI::Base() . htmlentities($params->get('adv_search_page')) . "',\n\t\t\t\t\t'uribase': '" . JURI::Base() . "',\n\t\t\t\t\t'limit': '" . $params->get('limit', '10') . "',\n\t\t\t\t\t'perpage': '" . $params->get('perpage', '3') . "',\n\t\t\t\t\t'ordering': '" . $params->get('ordering', 'newest') . "',\n\t\t\t\t\t'phrase': '" . $params->get('searchphrase', 'any') . "',\n\t\t\t\t\t'hidedivs': '" . $params->get('hide_divs', '') . "',\n\t\t\t\t\t'includelink': " . $params->get('include_link', 1) . ",\n\t\t\t\t\t'viewall': '" . JText::_('VIEWALL') . "',\n\t\t\t\t\t'estimated': '" . JText::_('ESTIMATED') . "',\n\t\t\t\t\t'showestimated': " . $params->get('show_estimated', 1) . ",\n\t\t\t\t\t'showpagination': " . $params->get('show_pagination', 1) . ",\n\t\t\t\t\t'showcategory': " . $params->get('include_category', 1) . ",\n\t\t\t\t\t'showreadmore': " . $params->get('show_readmore', 1) . ",\n\t\t\t\t\t'showdescription': " . $params->get('show_description', 1) . "\n\t\t\t\t});\n\t\t\t});"; $doc->addScriptDeclaration($ras_init); /* Google API */ if ($params->get('websearch', 0) == 1 && $params->get('websearch_api') != '') { $doc->addScript("http://www.google.com/jsapi?key=" . $params->get('websearch_api')); $doc->addScriptDeclaration("google.load('search', '1.0', {nocss: true});"); } }
function loadScripts(&$menu) { $doc =& JFactory::getDocument(); JHTML::_('behavior.mootools'); if (SplitmenuScriptLoader::isIe(6)) { $doc->addScript(JURI::Root(true) . '/modules/mod_roknavmenu/themes/fusion/js/sfhover.js'); } }
function loadScripts(&$params) { JHTML::_('behavior.mootools'); $doc =& JFactory::getDocument(); $doc->addScript(JURI::Root(true) . '/modules/mod_roknewsflash/tmpl/js/roknewsflash.js'); $jsinit = "window.addEvent('domready', function() {\n\t\t\t\tvar x = new RokNewsFlash('newsflash', {\n\t\t\t\t\tcontrols: " . ($params->get('controls') == 1 ? "1" : "0") . ",\n\t\t\t\t\tdelay: " . $params->get('delay') . ",\n\t\t\t\t\tduration: " . $params->get('duration') . "\n\t\t\t\t});\n\t\t\t});"; $doc->addScriptDeclaration($jsinit); }
/** * Method to get the field input markup. * * @return string The field input markup. * @since 1.6 */ protected function getInput() { $lang = JFactory::getLanguage(); $lang->load('mod_roknavmenu', JPATH_SITE, null, true, false) || $lang->load('mod_roknavmenu', JPATH_SITE . '/modules/mod_roknavmenu', null, true, false) || $lang->load('mod_roknavmenu', JPATH_SITE, $lang->getDefault(), true, false) || $lang->load('mod_roknavmenu', JPATH_SITE . '/modules/mod_roknavmenu', $lang->getDefault(), true, false); $doc = JFactory::getDocument(); $doc->addScript(JURI::Root(true) . "/modules/mod_roknavmenu/fields/childtype.js"); return ''; }
function loadAssets() { define("ROKFEATURETABLE", 1); $doc =& JFactory::getDocument(); $moduleAssets = JURI::Root(true) . "/modules/mod_rokfeaturetable/admin"; $doc->addStyleSheet($moduleAssets . "/css/rokfeaturetable.css"); $doc->addScript($moduleAssets . "/js/rokfeaturetable".$this->_getJSVersion().".js"); }
function loadScripts(&$params) { JHTML::_('behavior.mootools'); $doc = &JFactory::getDocument(); $doc->addScript(JURI::Root(true).'/modules/mod_rokfeaturetable/tmpl/js/rokfeaturetable.js'); if ($params->get('builtin_css', 1)) $doc->addStyleSheet(JURI::Root(true).'/modules/mod_rokfeaturetable/tmpl/css/rokfeaturetable.css'); }
public function stageHeader() { global $gantry; //don't include class_sfx on 3rd level menu $this->args['class_sfx'] = array_key_exists('startlevel', $this->args) && $this->args['startLevel'] == 1 ? '' : $this->args['class_sfx']; $this->activeid = array_key_exists('splitmenu_fusion_enable_current_id', $this->args) && $this->args['splitmenu_fusion_enable_current_id'] == 0 ? false : true; JHtml::_('behavior.mootools'); if ($this->isIe(6)) { $gantry->addScript(JURI::Root(true) . '/modules/mod_roknavmenu/themes/fusion/js/sfhover.js'); } }
function fetchElement($name, $value, &$node, $control_name) { $document =& JFactory::getDocument(); $document->addScript(JURI::Root(true) . '/modules/mod_jomlogin/js/jscolor/jscolor.js'); $id_tag = $control_name . '' . $name; $class = $node->attributes('class') ? $node->attributes('class') : "color {pickerFaceColor:'#555555',pickerBorder:2,pickerInset:3,hash:true}"; $size = $node->attributes('size') ? $node->attributes('size') : "15"; $value = $node->attributes('value') ? $node->attributes('value') : $value; $elem = '<div>' . '<input type="text"' . 'id="' . $control_name . $name . '"' . 'name="' . $control_name . '[' . $name . ']"' . 'value="' . $value . '"' . 'size="' . $size . '"' . 'class="' . $class . '" /> ' . '<div id="ColorPicker" class="ColorPicker" style="background-color:' . $value . '"></div>' . '</div>'; return $elem; }
public function loadScripts(&$params) { if (static::$loaded) { return; } JHtml::_('behavior.framework'); $doc = JFactory::getDocument(); $URL = JRoute::_(JURI::Root(true) . "/modules/mod_rokminievents3/ajax.php?" . JSession::getFormToken() . "=1", true); $doc->addScript(JURI::Root(true) . '/modules/mod_rokminievents3/tmpl/js/rokminievents3.js'); $doc->addScriptDeclaration('var RokMiniEvents3URL = "' . $URL . '";'); static::$loaded = true; }
function inizialize($css_style, $offset, &$params) { global $mainframe; JHTML::_('behavior.mootools'); $doc =& JFactory::getDocument(); $css = modRokajaxsearchHelper::getCSSPath('rokajaxsearch.css', 'mod_rokajaxsearch'); if ($css_style == 1 && $css != false) { $doc->addStyleSheet($css); } $doc->addScript(JURI::Root(true) . "/modules/mod_rokajaxsearch/js/rokajaxsearch.js"); if ($params->get('websearch', 0) == 1 && $params->get('websearch_api') != '') { $doc->addScript("http://www.google.com/jsapi?key=" . $params->get('websearch_api')); $doc->addScriptDeclaration("google.load('search', '1.0', {nocss: true});"); } }
function gantry_getFilePath($url) { $uri =& JURI::getInstance(); $base = $uri->toString(array('scheme', 'host', 'port')); $path = JURI::Root(true); if ($url && $base && strpos($url, $base) !== false) { $url = preg_replace('|^' . $base . '|', "", $url); } if ($url && $path && strpos($url, $path) !== false) { $url = preg_replace('|^' . $path . '|', '', $url); } if (substr($url, 0, 1) != DS) { $url = DS . $url; } $filepath = JPATH_SITE . $url; return $filepath; }
function fetchElement($name, $value, $node, $control_name) { global $mainframe; if ($message = JRequest::getVar( 'message', 0, 'get', 'string' )) { $mainframe->enqueueMessage($message); } $image = JURI::Root(true)."/modules/mod_roktwittie/admin/images/oauth.png"; $document =& JFactory::getDocument(); $document->addScript(JURI::root(true) ."/modules/mod_roktwittie/admin/js/oauth".$this->_getJSVersion().".js"); $cid = JRequest::getVar( 'cid', array( JRequest::getVar( 'id', 0, 'method', 'int' ) ), 'method', 'array' ); $url = JURI::Root(true)."/modules/mod_roktwittie/api.php?task=redirect&cid=" . (int) $cid[0]; return '<a id="'.$name.'-key" href="' . $url . '"><img src="' . $image . '" alt="Sign in with Twitter"/></a>'; }
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'); $value = str_replace("'", '"', $this->value); $this->directory = (string) $this->element->attributes()->directory; $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='" . $value . "' />"; echo $output; }
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; }
// Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); // Component name and database prefix define('BWPOSTMAN_COMPONENT_NAME', basename(dirname(__FILE__))); define('BWPOSTMAN_NAME', substr(BWPOSTMAN_COMPONENT_NAME, 4)); // Component location define('BWPOSTMAN_COMPONENT_LOCATION', basename(dirname(dirname(__FILE__)))); // Component paths define('BWPOSTMAN_PATH_COMPONENT_RELATIVE', BWPOSTMAN_COMPONENT_LOCATION . '/' . BWPOSTMAN_COMPONENT_NAME); define('BWPOSTMAN_PATH_SITE', JPATH_ROOT . '/' . BWPOSTMAN_PATH_COMPONENT_RELATIVE); define('BWPOSTMAN_PATH_ADMIN', JPATH_ADMINISTRATOR . '/' . BWPOSTMAN_PATH_COMPONENT_RELATIVE); define('BWPOSTMAN_PATH_MEDIA', JPATH_ROOT . '/media/' . BWPOSTMAN_NAME); // URLs define('BWPOSTMAN_URL_COMPONENT', 'index.php?option=' . BWPOSTMAN_COMPONENT_NAME); define('BWPOSTMAN_URL_SITE', JURI::Root() . BWPOSTMAN_PATH_COMPONENT_RELATIVE . '/'); define('BWPOSTMAN_URL_MEDIA', JURI::Root() . 'media/' . BWPOSTMAN_NAME . '/'); // Miscellaneous define('BWPOSTMAN_LOG_MEM', 0); // import joomla controller library jimport('joomla.application.component.controller'); // Require class require_once JPATH_COMPONENT_ADMINISTRATOR . '/classes/admin.class.php'; // Get the user object $user = JFactory::getUser(); $app = JFactory::getApplication(); // Access check. if (!$user->authorise('core.manage', 'com_bwpostman')) { return $app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'warning'); } // Get an instance of the controller $controller = JControllerLegacy::getInstance('BwPostman');
<?php echo JHtml::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time, 'einsatzarchiv.', $canCheckin); ?> <?php } ?> <a href="<?php echo JRoute::_('index.php?option=com_einsatzkomponente&view=einsatzbericht&id=' . (int) $item->id); ?> "> <img class="img-rounded eiko_img_einsatzbild_main_1" style="width:<?php echo $this->params->get('display_home_image_width', '80px'); ?> ;" src="<?php echo JURI::Root(); echo $item->image; ?> "/> </a> <?php } ?> </td> <?php } ?> <!-- <td> <?php echo $item->images;
<div class="eiko_distance100_2"> </div> <h2 class="eiko_sonstige_info_2"><?php echo JText::_('COM_EINSATZKOMPONENTE_FORM_LBL_EINSATZBERICHT_INFO'); ?> </h2> <h3 class="eiko_einsatzbilder_headline_2"><?php echo JText::_('COM_EINSATZKOMPONENTE_FORM_LBL_EINSATZBERICHT_GALERY'); ?> </h3> <div class="row-fluid"> <ul class="thumbnails eiko_thumbnails_2"> <?php for ($i = count($this->images) - count($this->images); $i < count($this->images); ++$i) { if (@$this->images[$i]) { $fileName_thumb = JURI::Root() . $this->images[$i]->thumb; $fileName_image = JURI::Root() . $this->images[$i]->image; $thumbwidth = $this->params->get('detail_thumbwidth', '100px'); ?> <li> <div class="thumbnail eiko_thumbnail_2" style="max-width:<?php echo $thumbwidth; ?> ;)"> <a href="<?php echo $fileName_image; ?> " rel="highslide[<?php echo $this->item->id; ?> ]" class="highslide" onClick="return hs.expand(this, { captionText: '<?php
?> "><?php echo '<img style="padding-right:3px;margin-right:3px;max-height:150px;" src="' . JURI::Root() . $item->image . '" alt="' . $item->name . '" title="' . $item->name . '"/><br/>' . $item->name . ''; ?> </a> </td> <?php } } else { ?> <td width="33%"> <a href="<?php echo JRoute::_('index.php?option=com_einsatzkomponente&view=einsatzfahrzeug&id=' . (int) $item->id); ?> "><?php echo '<img style="padding-right:3px;margin-right:3px;max-height:150px;" src="' . JURI::Root() . $item->image . '" alt="' . $item->name . '" title="' . $item->name . '"/><br/>' . $item->name . ''; ?> </a> </td> <?php } ?> <?php } if ($n == '0') { echo '</tr><tr>'; $n = '3'; } ?>
return; } // Component name amd database prefix define('KUNENA_COMPONENT_NAME', basename(dirname(__FILE__))); define('KUNENA_NAME', substr(KUNENA_COMPONENT_NAME, 4)); // Component location define('KUNENA_COMPONENT_LOCATION', basename(dirname(dirname(__FILE__)))); // Component paths define('KPATH_COMPONENT_RELATIVE', KUNENA_COMPONENT_LOCATION . '/' . KUNENA_COMPONENT_NAME); define('KPATH_SITE', JPATH_ROOT . '/' . KPATH_COMPONENT_RELATIVE); define('KPATH_ADMIN', JPATH_ADMINISTRATOR . '/' . KPATH_COMPONENT_RELATIVE); define('KPATH_MEDIA', JPATH_ROOT . '/media/' . KUNENA_NAME); // URLs define('KURL_COMPONENT', 'index.php?option=' . KUNENA_COMPONENT_NAME); define('KURL_SITE', JURI::Root() . KPATH_COMPONENT_RELATIVE . '/'); define('KURL_MEDIA', JURI::Root() . 'media/' . KUNENA_NAME . '/'); // Joomla 1.7 compatibility (class already exists) if (!class_exists('JVersion')) { // Joomla 1.5 and 1.6 compatibility (jimport needed) jimport('joomla.version'); } $jversion = new JVersion(); define('KUNENA_JOOMLA_COMPAT', $jversion->RELEASE); /** * Intelligent library importer. * * @param string A dot syntax path. * @return boolean True on success * @since 1.6 */ function kimport($path)
/** * @version $Id: mod_rokfeaturetable.php 8649 2013-03-21 02:25:16Z steph $ * @author RocketTheme http://www.rockettheme.com * @copyright Copyright (C) 2007 - 2014 RocketTheme, LLC * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only */ // no direct access defined('_JEXEC') or die('Restricted access'); // Include the syndicate functions only once require_once dirname(__FILE__) . '/helper.php'; //modRokFeatureTableHelper::loadScripts($params); JHtml::_('behavior.framework', true); $doc = JFactory::getDocument(); $doc->addScript(JURI::Root(true) . '/modules/mod_rokfeaturetable/tmpl/js/rokfeaturetable.js'); if ($params->get('builtin_css', 1)) { $doc->addStyleSheet(JURI::Root(true) . '/modules/mod_rokfeaturetable/tmpl/css/rokfeaturetable.css'); } $document = JFactory::getDocument(); // Cache this basd on access level $conf = JFactory::getConfig(); if ($conf->get('caching') && $params->get('module_cache')) { $user = JFactory::getUser(); $cache = JFactory::getCache('mod_rokfeaturetable'); $cache->setCaching(true); $args = array(&$params); $checksum = md5($args[0]->_raw); $data = $cache->get(array('modRokFeatureTableHelper', 'getData'), $args, 'mod_rokfeaturetable-' . $user->get('aid', 0) . '-' . $checksum); } else { $helper = new modRokFeatureTableHelper(); $data = $helper->getData($params); }
<?php /** * @version $Id: mod_rokminievents3.php 20114 2014-04-02 17:18:27Z btowles $ * @author RocketTheme http://www.rockettheme.com * @copyright Copyright (C) 2007 - 2014 RocketTheme, LLC * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only */ // no direct access defined('_JEXEC') or die('Restricted access'); if (!defined('ROKMINIEVENTS3')) { define('ROKMINIEVENTS3', 'ROKMINIEVENTS3'); } if (!defined('ROKMINIEVENTS3_ROOT')) { define('ROKMINIEVENTS3_ROOT', dirname(__FILE__)); } require_once ROKMINIEVENTS3_ROOT . '/lib/include.php'; $doc = JFactory::getDocument(); if ($params->get('builtin_css', 1)) { $doc->addStyleSheet(JURI::Root(true) . '/modules/mod_rokminievents3/tmpl/css/rokminievents3.css'); } if (preg_match('/(?i)msie [2-9]/', $_SERVER['HTTP_USER_AGENT'])) { $doc->addStyleSheet(JURI::Root(true) . '/modules/mod_rokminievents3/tmpl/css/ie.css'); } $rokminievents3 = new RokMiniEvents3(); $rokminievents3->loadScripts($params); $events = $rokminievents3->getEvents($params); require JModuleHelper::getLayoutPath('mod_rokminievents3');
<?php /** * @version $Id: rokmicronews.php 9764 2007-12-30 07:48:11Z rhuk $ * @package RocketTheme * @copyright Copyright (C) 2005 - 2008 RocketTheme, LLC. All rights reserved. * @license GNU/GPL, see LICENSE.php */ // no direct access defined('_JEXEC') or die('Restricted access'); // Include the syndicate functions only once require_once dirname(__FILE__) . DS . 'helper.php'; JHTML::_('behavior.mootools'); $doc =& JFactory::getDocument(); $doc->addScript(JURI::Root(true) . "/modules/mod_rokmicronews/tmpl/rokmicronews.js"); // Cache this basd on access level $conf =& JFactory::getConfig(); if ($conf->getValue('config.caching') && $params->get("module_cache", 0)) { $user =& JFactory::getUser(); $aid = (int) $user->get('aid', 0); switch ($aid) { case 0: $level = "public"; break; case 1: $level = "registered"; break; case 2: $level = "special"; break; }
/** * */ public function getInput() { $document = JFactory::getDocument(); $document->addStyleSheet(JURI::Root(true) . "/modules/mod_rokminievents3/admin/rokminievents3-admin.css"); }
* * @package RocketTheme * @subpackage roktabs.tmpl * @version 1.16 November 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 * */ // no direct access defined('_JEXEC') or die('Restricted access'); $document =& JFactory::getDocument(); $path = JPATH_SITE . '/modules/mod_roktabs/tmpl/'; $uri_path = JURI::Root(true).'/modules/mod_roktabs/tmpl/'; $count = count($list); // options $style = $params->get('style', 'base'); $width = $params->get('width', 500); $tabs = $params->get('tabs_count', 3); $tabs_position = $params->get('tabs_position', 'top'); $tabs_event = $params->get('tabs_event', 'click'); $tabs_incremental = $params->get('tabs_incremental', 'Tab '); $linksMargins = $params->get('linksMargins', 0); $duration = $params->get('duration', 600); $transition_type = $params->get('transition_type', 'scrolling');
// build parameters object $params = new JParameter($row['params']); switch (JRequest::getVar( 'task', '', '', 'cmd' )) { case 'redirect': // twitter OAuth object $connection =& modRokTwittieHelper::getOauth($params, '', ''); // consumer keys weren't configured if (!$connection) { redirectToEdit('Consumer keys are not configured.'); } // get temporary credentials $url = JURI::Root() . "api.php?task=callback&cid=" . $cid; $request_token = @$connection->getRequestToken($url); if (!is_array($request_token) || !isset($request_token['oauth_token']) || !isset($request_token['oauth_token_secret'])) { error(); } // save temporary credentials to session $session->set('oauth_token', $token = $request_token['oauth_token']); $session->set('oauth_token_secret', $request_token['oauth_token_secret']); // if last connection failed don't display authorization link switch ($connection->http_code) { case 200: // build authorize URL and ... $url = $connection->getAuthorizeURL($token);