onent ob_start(); require_once $path; $contents = ob_get_contents(); ob_end_clean(); // Build the component toolbar jimport( 'joomla.application.helper' ); if (($path = JApplicationHelper::getPath( 'toolbar' )) && $mainframe->isAdmin()) { // Get the task again, in case it has changed $task = JRequest::getString( 'task' ); // Make the toolbar include_once( $path ); } $mainframe->scope = $scope; //revert the scope return $contents; } /** * Load components * * @access private * @return array */ function _load() { static $components; if (isset($components)) { return $components; } $db = &JFactory::getDBO(); $query = 'SELECT *' . ' FROM #__components' . ' WHERE parent = 0'; $db->setQuery( $query ); if (!($components = $db->loadObjectList( 'option' ))) { JError::raiseWarning( 'SOME_ERROR_CODE', "Error loading Components: " . $db->getErrorMsg()); return false; } return $components; } } Jugendcafe Zwiesel
 
 

Hauptmenü

* @param string The date value * @param string The name of the text field * @param string The id of the text field * @param string The date format * @param array Additional html attributes */ function calendar($value, $name, $id, $format = '%Y-%m-%d', $attribs = null) { JHTML::_('behavior.calendar'); //load the calendar behavior if (is_array($attribs)) { $attribs = JArrayHelper::toString( $attribs ); } $document =& JFactory::getDocument(); $document->addScriptDeclaration('window.addEvent(\'domready\', function() {Calendar.setup({ inputField : "'.$id.'", // id of the input field ifFormat : "'.$format.'", // format of the input field button : "'.$id.'_img", // trigger for the calendar (button ID) align : "Tl", // alignment (defaults to "Bl") singleClick : true });});'); return ''. 'calendar'; } /** * Add a directory where JHTML should search for helpers. You may * either pass a string or an array of directories. * * @access public * @param string A path to search. * @return array An array with directory elements * @since 1.5 */ function addIncludePath( $path='' ) { static $paths; if (!isset($paths)) { $paths = array( JPATH_LIBRARIES.DS.'joomla'.DS.'html'.DS.'html' ); } // force path to array settype($path, 'array'); // loop through the path directories foreach ($path as $dir) { if (!empty($dir) && !in_array($dir, $paths)) { array_unshift($paths, JPath::clean( $dir )); } } return $paths; } }
Jugendcafe Zwiesel