if (mouseout == '1') { $('#ictip') .mouseout(function() { // $( "div:first", this ).text( "mouse out" ); $('#ictip').stop(true).fadeOut(300); }) .mouseover(function() { // $( "div:first", this ).text( "mouse over" ); $('#ictip').stop(true).fadeIn(300); }); } }); } }) (jQuery); </script> <?php if (!$setTodayTimezone && $server_date && $lang->getTag() != 'fa-IR') { $document->addScriptDeclaration(' jQuery(document).ready(function(){ jQuery("' . $mod_iccalendar . '").highlightToday("show_today"); }); '); } // For Dev. if ($time_loading) { $endtime_cal = iCLibrary::getMicrotime(); echo '<center style="font-size:8px;">Time to create calendar: ' . round($endtime_cal - $starttime_cal, 3) . ' seconds</center>'; }
/** * Execute and display a template script. * * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed A string if successful, otherwise a Error object. */ public function display($tpl = null) { $app = JFactory::getApplication(); $document = JFactory::getDocument(); $this->params = $app->getParams(); $params = $this->params; //+ FT li-de integráció if (JRequest::getVar('catid')) { $params->set('mcatid', array(JRequest::getVar('catid'))); } //+ FT li-de integráció // For Dev. $time_loading = $params->get('time_loading', ''); if ($time_loading) { $starttime_list = iCLibrary::getMicrotime(); } // loading data $this->data = $this->getModel()->getData(); echo count($this->data) . '<br>'; //+FT li-de témakör láthatóság kezeés //$this->getAllDates = icagendaEventsData::getAllDates(); // $this->getAllDates MYSQL -el az adott user által látható, // a mai napon vagy késöbb lévő eseményeket kell kigyüjteni. // tömb elem : éééé-hh-nn hh-ii_#### $this->getAllDates = iCModelItem::getAllDates(); //echo count($this->getAllDates).'<br>'; //-FT li-de témakör láthatóság $this->form = $this->getModel()->getForm(); // Registration Form $this->state = $this->get('State'); //Following variables used more than once // $this->sortColumn = $this->state->get('list.ordering'); // $this->sortDirection = $this->state->get('list.direction'); $this->searchterms = $this->state->get('filter.search'); // Menu Options $this->atlist = $params->get('atlist', 0); $this->template = $params->get('template'); $this->title = $params->get('title'); $this->number = $params->get('number', 5); $this->orderby = $params->get('orderby', 2); $this->time = $params->get('time', 1); // Component Options $this->iconPrint_global = $params->get('iconPrint_global', 0); $this->iconAddToCal_global = $params->get('iconAddToCal_global', 0); $this->iconAddToCal_options = $params->get('iconAddToCal_options', 0); $this->copy = $params->get('copy'); $this->navposition = $params->get('navposition', 1); $this->arrowtext = $params->get('arrowtext', 1); $this->GoogleMaps = $params->get('GoogleMaps', 1); $this->pagination = $params->get('pagination', 1); $this->day_display_global = $params->get('day_display_global', 1); $this->month_display_global = $params->get('month_display_global', 1); $this->year_display_global = $params->get('year_display_global', 1); $this->time_display_global = $params->get('time_display_global', 0); $this->venue_display_global = $params->get('venue_display_global', 1); $this->city_display_global = $params->get('city_display_global', 1); $this->country_display_global = $params->get('country_display_global', 1); $this->shortdesc_display_global = $params->get('shortdesc_display_global', ''); $this->statutReg = $params->get('statutReg', 0); $this->dates_display = $params->get('datesDisplay', 1); $this->reg_captcha = $params->get('reg_captcha', 0); $this->reg_form_validation = $params->get('reg_form_validation', ''); $this->cat_description = $params->get('displayCatDesc_menu', 'global') == 'global' ? $params->get('CatDesc_global', '0') : $params->get('displayCatDesc_menu', ''); $cat_options = $params->get('displayCatDesc_menu', 'global') == 'global' ? $params->get('CatDesc_checkbox', '') : $params->get('displayCatDesc_checkbox', ''); $this->cat_options = is_array($cat_options) ? $cat_options : array(); $this->pageclass_sfx = htmlspecialchars($params->get('pageclass_sfx')); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $vcal = $app->input->get('vcal'); if ($vcal) { $tpl = 'vcal'; } // Process the content plugins. JPluginHelper::importPlugin('content'); if (version_compare(JVERSION, '3.0', 'ge')) { $this->dispatcher = JEventDispatcher::getInstance(); } else { $this->dispatcher = JDispatcher::getInstance(); } $eventid = $app->input->get('id'); if ($eventid) { // Set Item Object $this_item = (array) $this->data->items; $item = array_shift($this_item); $this->actions = $this->dispatcher->trigger('onRegistrationActions', array('com_icagenda.actions', &$item, &$this->params)); } $this->_prepareDocument(); $isVcal = JRequest::getVar('vcal', ''); if (!$isVcal) { icagendaInfo::commentVersion(); } // Loads jQuery Library if (version_compare(JVERSION, '3.0', 'lt')) { // Joomla 2.5 JHtml::stylesheet('com_icagenda/icagenda-front.j25.css', false, true); JHtml::_('behavior.mootools'); // load jQuery, if not loaded before $scripts = array_keys($document->_scripts); $scriptFound = false; for ($i = 0; $i < count($scripts); $i++) { if (stripos($scripts[$i], 'jquery.min.js') !== false || stripos($scripts[$i], 'jquery.js') !== false) { $scriptFound = true; } } // jQuery Library Loader if (!$scriptFound) { // load jQuery, if not loaded before if (!$app->get('jquery')) { $app->set('jquery', true); // Add jQuery Library $document->addScript('https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'); JHtml::script('com_icagenda/jquery.noconflict.js', false, true); } } } else { JHtml::_('bootstrap.framework'); JHtml::_('jquery.framework'); } parent::display($tpl); // For Dev. if ($time_loading) { $endtime_list = iCLibrary::getMicrotime(); echo '<center style="font-size:8px;">Time to create page: ' . round($endtime_list - $starttime_list, 3) . ' seconds</center>'; } icagendaEvents::isListOfEvents(); $jlayout = JRequest::getCmd('layout', ''); $layouts_array = array('event', 'registration', 'actions'); $layout = in_array($jlayout, $layouts_array) ? $jlayout : ''; // Loading Script tipTip used for iCtips JHtml::script('com_icagenda/jquery.tipTip.js', false, true); if (!$layout || $layout == 'list') { // Add RSS Feeds $menu = $app->getMenu()->getActive()->id; $feed = 'index.php?option=com_icagenda&view=list&Itemid=' . (int) $menu . '&format=feed'; $rss = array('type' => 'application/rss+xml', 'title' => 'RSS 2.0'); $document->addHeadLink(JRoute::_($feed . '&type=rss'), 'alternate', 'rel', $rss); } }