Beispiel #1
0
 protected function getInput()
 {
     $fieldname = $this->element['name'];
     $js = "RokSprocket.dynamicfields.add('" . $this->id . "', '" . $fieldname . "');";
     // Initialize variables.
     $html = array();
     $attr = '';
     $css_classes = explode(' ', (string) $this->element['class']);
     $css_classes = array_merge($css_classes, $this->getProviderClasses());
     $css_classes[] = strtolower($this->type);
     $css_classes[] = 'chzn-done';
     $css_classes = array_unique($css_classes);
     $attr .= ' class="' . implode(' ', $css_classes) . '"';
     // Initialize some field attributes.
     //		$this->element['class'] = $this->element['class'] ? (string)$this->element['class'] . " " . strtolower($this->type) : strtolower($this->type);
     //		$attr .= $this->element['class'] ? ' class="' . (string)$this->element['class'] . ' chzn-done"' : ' class="chzn-done"';
     // To avoid user's confusion, readonly="true" should imply disabled="true".
     if ((string) $this->element['readonly'] == 'true' || (string) $this->element['disabled'] == 'true') {
         $attr .= ' disabled="disabled"';
     }
     $attr .= $this->element['size'] ? ' size="' . (int) $this->element['size'] . '"' : '';
     $attr .= $this->multiple ? ' multiple="multiple"' : '';
     $attr .= $this->element['refresher'] ? ' data-refresher="true" ' : "";
     // Initialize JavaScript field attributes.
     $attr .= $this->element['onchange'] ? ' onchange="' . (string) $this->element['onchange'] . '"' : '';
     if ($this->element['attrs']) {
         $additional_attrs = explode(',', (string) $this->element['attrs']);
         foreach ($additional_attrs as $additional_attr) {
             $additional_attr = strtolower(trim($additional_attr));
             $attr .= $this->element[$additional_attr] ? sprintf(' %s="', $additional_attr) . (string) $this->element[$additional_attr] . '"' : '';
         }
     }
     // Get the field options.
     $options = (array) $this->getOptions();
     RokCommon_Header::addInlineScript($js);
     if ((string) $this->element['readonly'] == 'true') {
         $html[] = JHtml::_('select.genericlist', $options, '', trim($attr), 'value', 'text', $this->value, $this->id);
         $html[] = '<input type="hidden" name="' . $this->name . '" value="' . $this->value . '"/>';
     } else {
         if (count($options) == 1) {
             $icon = isset($options[0]->icon) ? $options[0]->icon : "";
             if (strlen($icon)) {
                 $icon_html = '<i data-dynamic="false" class="icon ' . $this->element['name'] . " " . $options[0]->value . '"></i>';
             } else {
                 $icon_html = "";
             }
             $html[] = '<div class="single-layout">' . $icon_html . ' ' . $options[0]->text . "</div>\n";
             $attr .= ' style="display: none;" ';
         }
         $listattr = array('list.attr' => $attr, 'id' => $this->id, 'list.select' => $this->value, 'option.text' => 'text', 'option.value' => 'value', 'option.attr' => 'attr');
         $list = JHtml::_('select.genericlist', $options, $this->name, $listattr);
         $html[] = $list;
     }
     return implode('', $html);
 }
 /**
  * Called to render headers that should be included only once per Layout type used
  */
 public function renderLayoutHeaders()
 {
     if (!self::$instanceHeadersRendered) {
         $instance = array();
         $instance[] = "window.addEvent('domready', function(){";
         $instance[] = "\t\tRokSprocket.instances.headlines = new RokSprocket.Headlines();";
         $instance[] = "});";
         RokCommon_Header::addInlineScript(implode("\n", $instance) . "\n");
         self::$instanceHeadersRendered = true;
     }
 }
 protected function getInput($name = RokCommon_Filter_Type::JAVASCRIPT_NAME_VARIABLE, $value = '')
 {
     $id = $this->generateIdFromName($name);
     // Load the modal behavior script.
     JHtml::_('behavior.modal', 'a.modal');
     //		  		// Build the script.
     //		  		$script = array();
     //		  		$script[] = '	function jSelectArticle_'.$id.'(id, title, catid, object) {';
     //		  		$script[] = '		document.id("'.$id.'_id").value = id;';
     //		  		$script[] = '		document.id("'.$id.'_name").value = title;';
     //		  		$script[] = '		SqueezeBox.close();';
     //		  		$script[] = '	}';
     // Add the script to the document head.
     //JFactory::getDocument()->addScriptDeclaration(implode("\n", $script));
     // Setup variables for display.
     $html = array();
     $link = 'index.php?option=com_easyblog&amp;view=blogs&amp;tmpl=component&amp;browse=1&amp;browsefunction=jSelectUser_Sprocket';
     //$link = 'index.php?option=com_roksprocket&amp;view=easyblogitems&amp;layout=model&amp;tmpl=component&amp;function=jSelectUser_Sprocket';
     $db = JFactory::getDBO();
     $db->setQuery('SELECT title' . ' FROM #__easyblog_post' . ' WHERE id = ' . (int) $value);
     $title = $db->loadResult();
     if ($error = $db->getErrorMsg()) {
         JError::raiseWarning(500, $error);
     }
     // Initialize some field attributes.
     $attr = $this->xmlnode['class'] ? ' class="' . (string) $this->xmlnode['class'] . '"' : '';
     $attr .= $this->xmlnode['size'] ? ' size="' . (int) $this->xmlnode['size'] . '"' : '';
     if (empty($title)) {
         $title = JText::_('COM_CONTENT_CHANGE_ARTICLE');
     }
     $title = htmlspecialchars($title, ENT_QUOTES, 'UTF-8');
     // The active item id field.
     if (0 == (int) $value) {
         $value = '';
     } else {
         $value = (int) $value;
     }
     // Build the script.
     $script = str_replace('%ID%', $id, $this->getJSelectArticle());
     // Add the script to the document head.
     if ($id != '|name|' && !self::$js_loaded) {
         RokCommon_Header::addInlineScript($script);
         self::$js_loaded = true;
     }
     $html[] = ' <input type="text" data-other="true" disabled="disabled" value="' . $title . '"' . ' ' . $attr . ' />';
     $html[] = '	  <a class="modal" title="' . JText::_('COM_CONTENT_CHANGE_ARTICLE') . '"' . ' href="' . $link . '&amp;' . JSession::getFormToken() . '=1"' . ' rel="{handler: \'iframe\', size: {x: 900, y: 500}}">';
     $html[] = '			<i class="icon tool article"></i>';
     $html[] = '	  </a>';
     // Create the real field, hidden, that stored the user id.
     $html[] = '<input type="hidden" name="' . $name . '" id="' . $id . '" data-name="' . $name . '" data-key="' . $this->getChunkType() . '" value="' . (int) $value . '" />';
     return implode("\n", $html);
 }
 protected function getInput($name = RokCommon_Filter_Type::JAVASCRIPT_NAME_VARIABLE, $value = '')
 {
     $id = $this->generateIdFromName($name);
     //if ($id == '|name|') return;
     // Initialize variables.
     $html = array();
     $groups = $this->getGroups();
     $excluded = $this->getExcluded();
     $link = 'index.php?option=com_users&amp;view=users&amp;layout=modal&amp;tmpl=component&amp;field=Sprocket' . (isset($groups) ? '&amp;groups=' . base64_encode(json_encode($groups)) : '') . (isset($excluded) ? '&amp;excluded=' . base64_encode(json_encode($excluded)) : '');
     // Initialize some field attributes.
     $attr = $this->xmlnode['class'] ? ' class="' . (string) $this->xmlnode['class'] . '"' : '';
     $attr .= $this->xmlnode['size'] ? ' size="' . (int) $this->xmlnode['size'] . '"' : '';
     // Initialize JavaScript field attributes.
     $onchange = (string) $this->xmlnode['onchange'];
     // Load the modal behavior script.
     JHtml::_('behavior.modal', 'a.modal');
     // Build the script.
     $script = str_replace('%ID%', $id, $this->getJSelectUser());
     // Add the script to the document head.
     if ($id != '|name|' && !self::$js_loaded) {
         RokCommon_Header::addInlineScript($script);
         self::$js_loaded = true;
     }
     // Load the current username if available.
     $table = JTable::getInstance('user');
     if ($value) {
         $table->load($value);
     } else {
         $table->username = JText::_('JLIB_FORM_SELECT_USER');
     }
     if (empty($table->name)) {
         $table->name = JText::_('JLIB_FORM_SELECT_USER');
     }
     $html[] = ' <input type="text" data-other="true" disabled="disabled" value="' . htmlspecialchars($table->name, ENT_COMPAT, 'UTF-8') . '"' . ' ' . $attr . ' />';
     $html[] = '	  <a class="modal" title="' . JText::_('JLIB_FORM_CHANGE_USER') . '"' . ' href="' . $link . '"' . ' rel="{handler: \'iframe\', size: {x: 800, y: 500}}">';
     $html[] = '			<i class="icon tool user"></i>';
     $html[] = '	  </a>';
     // Create the real field, hidden, that stored the user id.
     $html[] = '<input type="hidden" name="' . $name . '" id="' . $id . '" data-name="' . $name . '" data-key="' . $this->getChunkType() . '" value="' . (int) $value . '" />';
     return implode("\n", $html);
 }
Beispiel #5
0
 /**
  * Method to get the field input markup for a generic list.
  * Use the multiple attribute to enable multiselect.
  *
  * @return  string  The field input markup.
  *
  * @since   11.1
  */
 protected function getInput()
 {
     // Initialize variables.
     $html = array();
     $attr = '';
     if (!self::$js_loaded) {
         RokCommon_Header::addInlineScript($this->attachJavaScript());
         self::$js_loaded = true;
     }
     // Initialize some field attributes.
     $attr .= $this->element['class'] ? ' class="' . (string) $this->element['class'] . '"' : '';
     // To avoid user's confusion, readonly="true" should imply disabled="true".
     if ((string) $this->element['readonly'] == 'true' || (string) $this->element['disabled'] == 'true') {
         $attr .= ' disabled="disabled"';
     }
     $attr .= $this->element['size'] ? ' size="' . (int) $this->element['size'] . '"' : '';
     $attr .= $this->multiple ? ' multiple="multiple"' : '';
     // Initialize JavaScript field attributes.
     $attr .= $this->element['onchange'] ? ' onchange="' . (string) $this->element['onchange'] . '"' : '';
     if ($this->element['attrs']) {
         $additional_attrs = explode(',', (string) $this->element['attrs']);
         foreach ($additional_attrs as $additional_attr) {
             $additional_attr = strtolower(trim($additional_attr));
             $attr .= $this->element[$additional_attr] ? sprintf(' %s="', $additional_attr) . (string) $this->element[$additional_attr] . '"' : '';
         }
     }
     // Get the field options.
     $options = (array) $this->getOptions();
     // Create a read-only list (no name) with a hidden input to store the value.
     if ((string) $this->element['readonly'] == 'true') {
         $html[] = JHtml::_('select.genericlist', $options, '', trim($attr), 'value', 'text', $this->value, $this->id);
         $html[] = '<input type="hidden" name="' . $this->name . '" value="' . $this->value . '"/>';
     } else {
         $list = JHtml::_('select.genericlist', $options, $this->name, trim($attr), 'value', 'text', $this->value, $this->id);
         $html[] = $list;
     }
     return implode($html);
 }
 public function renderGlobalHeaders()
 {
     if (!self::$globalHeadersRendered) {
         RokCommon_Header::addScript(RokCommon_Composite::get($this->context_base . '.assets.js')->getUrl('mootools-mobile.js'));
         RokCommon_Header::addScript(RokCommon_Composite::get($this->context_base . '.assets.js')->getUrl('rokmediaqueries.js'));
         RokCommon_Header::addScript(RokCommon_Composite::get($this->context_base . '.assets.js')->getUrl('roksprocket.js'));
         $app = JFactory::getApplication();
         $menus = $app->getMenu('site');
         $active = $menus->getActive();
         if ($active === null) {
             $active = $menus->getDefault();
         }
         $ns = array();
         $ns[] = "if (typeof RokSprocket == 'undefined') RokSprocket = {};";
         $ns[] = "Object.merge(RokSprocket, {";
         $ns[] = "\tSiteURL: '" . str_replace('&', '&amp;', JRoute::_(JURI::root(true), true)) . "',";
         $ns[] = "\tCurrentURL: '" . str_replace('&', '&amp;', JRoute::_(JURI::current(true), true)) . "',";
         $ns[] = "\tAjaxURL: '" . str_replace('&', '&amp;', JRoute::_(JURI::root(true) . '/index.php?option=com_roksprocket&task=ajax&format=raw&ItemId=' . $active->id)) . "'";
         $ns[] = "});";
         RokCommon_Header::addInlineScript(implode("\n", $ns) . "\n");
         self::$globalHeadersRendered = true;
     }
 }
 /**
  * Called to render headers that should be included only once per Layout type used
  */
 public function renderLayoutHeaders()
 {
     if (!self::$instanceHeadersRendered) {
         $root_assets = RokCommon_Composite::get($this->basePackage . '.assets.js');
         $layout_assets = RokCommon_Composite::get($this->layoutPackage . '.assets.js');
         RokCommon_Header::addScript($root_assets->getUrl('moofx.js'));
         RokCommon_Header::addScript($root_assets->getUrl('roksprocket.request.js'));
         RokCommon_Header::addScript($layout_assets->getUrl('strips.js'));
         RokCommon_Header::addScript($layout_assets->getUrl('strips-speeds.js'));
         $instance = array();
         $instance[] = "window.addEvent('domready', function(){";
         $instance[] = "\t\tRokSprocket.instances.strips = new RokSprocket.Strips();";
         $instance[] = "});";
         RokCommon_Header::addInlineScript(implode("\n", $instance) . "\n");
         self::$instanceHeadersRendered = true;
     }
 }
 /**
  * Called to render headers that should be included only once per Layout type used
  */
 public function renderLayoutHeaders()
 {
     $rendered = self::$instanceHeadersRenderedTheme;
     if (!isset($rendered[$this->theme]) || !$rendered[$this->theme]) {
         $instance = array();
         $instance[] = "window.addEvent('domready', function(){";
         $instance[] = "\t\tRokSprocket.instances." . $this->theme . " = new RokSprocket." . ucfirst($this->theme) . "();";
         $instance[] = "});";
         RokCommon_Header::addInlineScript(implode("\n", $instance) . "\n");
         self::$instanceHeadersRenderedTheme[$this->theme] = true;
     }
     if (!self::$instanceHeadersRendered) {
         $root_assets = RokCommon_Composite::get($this->basePackage . '.assets.js');
         $layout_assets = RokCommon_Composite::get($this->layoutPackage . '.assets.js');
         RokCommon_Header::addScript($root_assets->getUrl('moofx.js'));
         RokCommon_Header::addScript($layout_assets->getUrl('features.js'));
         self::$instanceHeadersRendered = true;
     }
 }
Beispiel #9
0
    public function getInput()
    {
        $container = RokCommon_Service::getContainer();
        $empty_button_text = rc__('Create New Filter');
        $filter_file = $container[(string) $this->element['filterlocationparam']] . '/' . (string) $this->element['filterfile'];
        if (!file_exists($filter_file)) {
            throw new RokSprocket_Exception(rc__('Unable to find filter file %s', $filter_file));
        }
        $xmlfile = simplexml_load_file($filter_file);
        $this->filter = new RokCommon_Filter($xmlfile);
        if (isset($this->element['emptybuttontext'])) {
            $empty_button_text = rc__((string) $this->element['emptybuttontext']);
        }
        if (!self::$base_js_loaded) {
            RokCommon_Header::addInlineScript('
		                var RokSprocketFilters = {
		                    filters: {},
		                    template: \'<li><span data-filter-container="true"></span> <span class="controls"> <i class="icon tool minus" data-filter-action="removeRow"></i> <i class="icon tool plus" data-filter-action="addRow"></i></span></li>\'
		                };
		            ');
            self::$base_js_loaded = true;
        }
        $html = array();
        /*
        	After everything fine, i'll handle via js and domready the call to filters ajax model
        	Something along these lines:
        
        		model: 'Filters',
        		action: 'getData',
        		params: JSON.encoded(
        			[{
        				id1: {pathrefs: .., file: ..}
        			}],
        			[{
        				id2: {pathrefs: .., file: ..}
        			}],
        			[{
        				id3: {pathrefs: .., file: ..}
        			}],
        			...
        		)
        */
        /*        // OLD Script
          RokCommon_Header::addInlineScript('
        	window.addEvent(\'load\', function(){
        		RokSprocket.filters.addDataSet(\'' . $this->id . '\', {
        			pathsref: \''. (string)$this->element['filterlocationparam'] .'\',
        			file: \'' . (string)$this->element['filterfile'] .'\',
        			template: \'<li><span data-filter-container="true"></span> <span class="controls"> <i class="icon tool minus" data-filter-action="removeRow"></i> <i class="icon tool plus" data-filter-action="addRow"></i></span></li>\'
        		});
        	});
        ');*/
        RokCommon_Header::addInlineScript("\n\t \t\t\t            RokSprocketFilters.filters['" . $this->id . "'] = {\n\t \t\t\t                pathsref: '" . (string) $this->element['filterlocationparam'] . "',\n\t \t\t\t                file: '" . (string) $this->element['filterfile'] . "'\n\t \t\t\t            }");
        $classes = explode(' ', $this->element['class']);
        $classes[] = 'roksprocket-filters';
        if (!is_array($this->value)) {
            $classes[] = 'empty';
        }
        $classes = implode(' ', $classes);
        $html[] = '<ul class="' . $classes . '" data-filter="' . $this->id . '" data-filter-name="' . $this->name . '">';
        $html[] = '     <li class="create-new"><div class="btn btn-primary" data-filter-action="addRow">' . $empty_button_text . '</div></li>';
        if (is_array($this->value)) {
            foreach ($this->value as $rownum => $row) {
                $firstRow = $rownum == 1 ? ' class="first"' : '';
                RokCommon_Utils_ArrayHelper::fromObject($row);
                $html[] = '     <li data-row="true"' . $firstRow . '><span data-filter-container="true">' . $this->filter->renderLine($row, $this->name . '[' . $rownum . ']') . '</span><span class="controls"><i data-filter-action="removeRow" class="icon tool minus"></i><i data-filter-action="addRow" class="icon tool plus"></i></span></li>';
            }
        }
        $html[] = '	</ul>';
        if ($this->element['notice'] && strlen($this->element['notice'])) {
            $html[] = '<div data-cookie="' . $this->id . '" class="roksprocket-filters-description alert alert-info"><a class="close" data-dismiss="alert">&times;</a>' . JText::_($this->element['notice']) . '</div>';
        }
        return implode("\n", $html);
    }
Beispiel #10
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     JHtml::_('behavior.framework', true);
     JHtml::_('behavior.keepalive');
     $this->container = RokCommon_Service::getContainer();
     $this->form = $this->get('Form');
     $this->item = $this->get('Item');
     $this->state = $this->get('State');
     $this->articles = $this->getModel()->getArticles($this->item->id, $this->item->params);
     $this->layout = isset($this->item->params['layout']) ? $this->item->params['layout'] : $this->form->getFieldAttribute('layout', 'default', 'text', 'params');
     $this->provider = isset($this->item->params['provider']) ? $this->item->params['provider'] : $this->form->getFieldAttribute('provider', 'default', 'text', 'params');
     if (!isset($this->container[sprintf('roksprocket.layouts.%s', $this->layout)])) {
         JError::raiseWarning(500, rc__(ROKSPROCKET_UNABLE_TO_FIND_LAYOUT_ERROR, $this->layout));
         $app = JFactory::getApplication();
         $app->redirect(JRoute::_(sprintf('index.php?option=%s&view=modules', RokSprocket_Helper::getRedirectionOption()), false));
         return false;
     }
     $this->perItemForm = $this->getModel()->getPerItemsForm($this->layout);
     /** @var $i18n RokCommon_I18N */
     /** @var $i18n RokCommon_I18N */
     $i18n = $this->container->i18n;
     foreach ($this->container['roksprocket.layouts'] as $layout_type => $layoutinfo) {
         $layout_lang_paths = $this->container[sprintf('roksprocket.layouts.%s.paths', $layout_type)];
         foreach ($layout_lang_paths as $lang_path) {
             @$i18n->loadLanguageFiles('roksprocket_layout_' . $layout_type, $lang_path);
         }
     }
     $load_more_total = count($this->articles);
     $module_params = new RokCommon_Registry($this->item->params);
     $limit = 10;
     if ($load_more_total > $limit) {
         $this->articles = $this->articles->trim($limit);
         $load_more = 'true';
     } else {
         $load_more = 'false';
     }
     $load_more_script = sprintf('RokSprocket.Paging = {more: %s, page: 1, next_page: 2, amount: %d};', $load_more, $load_more_total);
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     // Read cookie for showing/hide per-article items
     if (!isset($_COOKIE['roksprocket-showitems'])) {
         $showitems_cookie = 1;
         setcookie("roksprocket-showitems", $showitems_cookie, time() + 60 * 60 * 24 * 365, '/');
     } else {
         $showitems_cookie = $_COOKIE['roksprocket-showitems'];
     }
     $this->showitems = (bool) $showitems_cookie;
     $siteURL = JURI::root(true);
     $adminURL = JURI::base(true);
     $this->addToolbar();
     $this->compileLess();
     $this->compileJS();
     RokCommon_Header::addInlineScript("RokSprocket.params = 'jform_params';RokSprocket.SiteURL = '" . $siteURL . "'; RokSprocket.AdminURL = '" . $adminURL . "'; RokSprocket.URL = RokSprocket.AdminURL + '/index.php?option=" . JFactory::getApplication()->input->getString('option') . "&task=ajax&format=raw';" . $load_more_script);
     RokCommon_Header::addStyle($siteURL . '/components/com_roksprocket/fields/filters/css/datepicker.css');
     $template_path_param = sprintf('roksprocket.providers.registered.%s.templatepath', strtolower($this->provider));
     if ($this->container->hasParameter($template_path_param)) {
         RokCommon_Composite::addPackagePath('roksprocket', $this->container->getParameter($template_path_param), 30);
     }
     parent::display($tpl);
 }
    $renderer->config = $parameters->getParams($config->toObject(), JPATH_ADMINISTRATOR . '/components/com_advancedmodules/config.xml');
}
if (!isset($renderer->assignments)) {
    $xmlfile = JPATH_ADMINISTRATOR . '/components/com_advancedmodules/assignments.xml';
    $assignments = new JForm('assignments', array('control' => 'advancedparams'));
    $assignments->loadFile($xmlfile, 1, '//config');
    $assignments->bind($renderer->item->advancedparams);
    $renderer->assignments = $assignments;
}
if ($renderer->config->show_color) {
    $colors = explode(',', $renderer->config->main_colors);
    foreach ($colors as $i => $c) {
        $colors[$i] = strtoupper('#' . preg_replace('#[^a-z0-9]#i', '', $c));
    }
    $script = "\n\t\tmainColors = new Array( '" . implode("', '", $colors) . "' );";
    RokCommon_Header::addInlineScript($script);
}
?>
<fieldset class="adminform">
	<div class="advanced-module-manager">
		<!-- opening divs twice for fixing joomla accordions -->
		<?php 
if ($renderer->config->show_color) {
    ?>
		<?php 
    echo $renderer->render($renderer->assignments, 'color');
    ?>
		<?php 
}
?>
Beispiel #12
0
 /**
  * @param null $ajax_path
  */
 public function renderGlobalHeaders($ajax_path = null)
 {
     if (!self::$globalHeadersRendered) {
         if (defined('_JEXEC')) {
             JHtml::_('behavior.framework');
         }
         RokCommon_Header::addScript(RokCommon_Composite::get($this->context_base . '.assets.js')->getUrl('mootools-mobile.js'));
         RokCommon_Header::addScript(RokCommon_Composite::get($this->context_base . '.assets.js')->getUrl('rokmediaqueries.js'));
         RokCommon_Header::addScript(RokCommon_Composite::get($this->context_base . '.assets.js')->getUrl('roksprocket.js'));
         /** @var $platforminfo RokCommon_IPlatformInfo */
         $platforminfo = $this->container->getService('platforminfo');
         $ns = array();
         $ns[] = "if (typeof RokSprocket == 'undefined') RokSprocket = {};";
         $ns[] = "Object.merge(RokSprocket, {";
         $ns[] = "\tSiteURL: '" . str_replace('&', '&amp;', $platforminfo->getSEOUrl($platforminfo->getRootUrl(), true)) . "',";
         $ns[] = "\tCurrentURL: '" . str_replace('&', '&amp;', $platforminfo->getSEOUrl($platforminfo->getRootUrl(), true)) . "',";
         $ns[] = "\tAjaxURL: '" . str_replace('&', '&amp;', $platforminfo->getSEOUrl($platforminfo->getRootUrl() . $ajax_path)) . "'";
         $ns[] = "});";
         RokCommon_Header::addInlineScript(implode("\n", $ns) . "\n");
         self::$globalHeadersRendered = true;
     }
 }
Beispiel #13
0
<?php

/**
 * @version   $Id$
 * @author    RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
 */
RokCommon_Header::addStyle(RokCommon_Composite::get($that->context)->getUrl('gallerymanager.css') . '?version=2.0');
RokCommon_Header::addScript(RokCommon_Composite::get($that->context)->getUrl('../../assets/application/Scrollbar.js') . '?version=2.0');
RokCommon_Header::addScript(RokCommon_Composite::get($that->context)->getUrl('gallerymanager.js') . '?version=2.0');
RokCommon_Header::addInlineScript(RokCommon_Composite::get($that->context)->load('javascript.php', array('that' => $that)));
Beispiel #14
0
<?php

/**
 * @version   $Id$
 * @author    RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
 */
RokCommon_Header::addStyle(RokCommon_Composite::get($that->context)->getUrl('detail.css'));
RokCommon_Header::addStyle(RokCommon_Composite::get($that->style_context)->getUrl('style.css'));
RokCommon_Header::addInlineScript(RokCommon_Composite::get($that->style_context)->load('js-settings.php', array('that' => $that)));