AAAAindex.html000066600000000037151372107610006550 0ustar00 newsfeeds.php000066600000005661151372107610007257 0ustar00id.'(id, name, object) {'; $script[] = ' document.id("'.$this->id.'_id").value = id;'; $script[] = ' document.id("'.$this->id.'_name").value = name;'; $script[] = ' SqueezeBox.close();'; $script[] = ' }'; // Add the script to the document head. JFactory::getDocument()->addScriptDeclaration(implode("\n", $script)); // Build the script. $script = array(); $script[] = ' window.addEvent("domready", function() {'; $script[] = ' var div = new Element("div").setStyle("display", "none").inject(document.id("menu-types"), "before");'; $script[] = ' document.id("menu-types").inject(div, "bottom");'; $script[] = ' });'; // Add the script to the document head. JFactory::getDocument()->addScriptDeclaration(implode("\n", $script)); // Get the title of the linked chart $db = JFactory::getDBO(); $db->setQuery( 'SELECT name' . ' FROM #__newsfeeds' . ' WHERE id = '.(int) $this->value ); $title = $db->loadResult(); if ($error = $db->getErrorMsg()) { JError::raiseWarning(500, $error); } if (empty($title)) { $title = JText::_('COM_NEWSFEEDS_SELECT_A_FEED'); } $link = 'index.php?option=com_newsfeeds&view=newsfeeds&layout=modal&tmpl=component&function=jSelectChart_'.$this->id; JHtml::_('behavior.modal', 'a.modal'); $html = "\n".'
'; $html .= '
'.JText::_('COM_NEWSFEEDS_CHANGE_FEED_BUTTON').'
'."\n"; // The active newsfeed id field. if (0 == (int)$this->value) { $value = ''; } else { $value = (int)$this->value; } // class='required' for client side validation $class = ''; if ($this->required) { $class = ' class="required modal-value"'; } $html .= ''; return $html; } } .htaccess000066600000000177151372107610006356 0ustar00 Order allow,deny Deny from all