defined('_JEXEC') or die('Restricted access'); require_once JPATH_BASE . DS . 'components' . DS . 'com_zonales' . DS . 'helper.php'; require JPATH_BASE . DS . 'components' . DS . 'com_eqzonales' . DS . 'helper.php'; require_once JPATH_BASE . DS . 'components' . DS . 'com_eqzonales' . DS . 'controllers' . DS . 'eq.php'; require_once JPATH_BASE . DS . 'components' . DS . 'com_eqzonales' . DS . 'controllers' . DS . 'band.php'; require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_eqzonales' . DS . 'helper' . DS . 'helper.php'; JTable::addIncludePath(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_eqzonales' . DS . 'tables'); setlocale(LC_ALL, 'es_AR.utf8'); setlocale(LC_ALL, "es_ES@america", "es_ES", "buenos_aires"); $eq_z_com = new EqZonalesControllerEq(); $eq_z_com->addModelPath(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_eqzonales' . DS . 'models'); $user =& JFactory::getUser(); $eq_actual = $eq_z_com->retrieveUserEqImpl($user->id); if (!$zonal) { $zonal_com = new comZonalesHelper(); $zonal_actual_label = $zonal_com->getZonalActualLabel(); } else { $zonal_actual_label = $zonal->label; } include 'nocache.php'; $mainframe = JFactory::getApplication(); ?> <!-- 26042011 --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?> " lang="<?php echo $this->language; ?> " >
function display($tpl = null) { global $mainframe, $option; // Initialize some variables $user =& JFactory::getUser(); $uri =& JFactory::getURI(); $document =& JFactory::getDocument(); $pathway =& $mainframe->getPathway(); // Get the menu item object $menus =& JSite::getMenu(); $menu = $menus->getActive(); // Get the page/component configuration $params = clone $mainframe->getParams('com_content'); // Request variables $layout = JRequest::getCmd('layout'); $task = JRequest::getCmd('task'); // Parameters $params->def('num_leading_articles', 1); $params->def('num_intro_articles', 4); $params->def('num_columns', 2); $params->def('num_links', 4); $params->def('show_headings', 1); $params->def('show_pagination', 2); $params->def('show_pagination_results', 1); $params->def('show_pagination_limit', 1); $params->def('filter', 1); if ($params->def('filter_type', 'title') != 'hits' && $params->def('filter_type', 'title') != 'author') { $params->set('filter_type', 'title'); } $intro = $params->get('num_intro_articles'); $leading = $params->get('num_leading_articles'); $links = $params->get('num_links'); $limitstart = JRequest::getVar('limitstart', 0, '', 'int'); if ($layout == 'blog') { $default_limit = $intro + $leading + $links; } else { $params->def('display_num', $mainframe->getCfg('list_limit')); $default_limit = $params->get('display_num'); } $limit = $mainframe->getUserStateFromRequest('com_content.' . $this->getLayout() . '.limit', 'limit', $default_limit, 'int'); JRequest::setVar('limit', (int) $limit); $contentConfig =& JComponentHelper::getParams('com_content'); $params->def('show_page_title', $contentConfig->get('show_title')); // Get some data from the model $items =& $this->get('Data'); $total =& $this->get('Total'); $category =& $this->get('Category'); //add alternate feed link if ($params->get('show_feed_link', 1) == 1) { $link = '&format=feed&limitstart='; $attribs = array('type' => 'application/rss+xml', 'title' => 'RSS 2.0'); $document->addHeadLink(JRoute::_($link . '&type=rss'), 'alternate', 'rel', $attribs); $attribs = array('type' => 'application/atom+xml', 'title' => 'Atom 1.0'); $document->addHeadLink(JRoute::_($link . '&type=atom'), 'alternate', 'rel', $attribs); } // Create a user access object for the user $access = new stdClass(); $access->canEdit = $user->authorize('com_content', 'edit', 'content', 'all'); $access->canEditOwn = $user->authorize('com_content', 'edit', 'content', 'own'); $access->canPublish = $user->authorize('com_content', 'publish', 'content', 'all'); // Set page title per category // because the application sets a default page title, we need to get it // right from the menu item itself /*if (is_object( $menu )) { $menu_params = new JParameter( $menu->params ); if (!$menu_params->get( 'page_title')) { $params->set('page_title', $category->title); } } else { $params->set('page_title', $category->title); }*/ // Zonal - lista de zonales, zonal actualmente seleccionado require_once JPATH_BASE . DS . 'components' . DS . 'com_zonales' . DS . 'helper.php'; $helper = new comZonalesHelper(); $zonal = $helper->getZonalActualLabel(); $banda = JRequest::getVar('banda', null); $document->setTitle(JText::_('Zonales - ') . ($zonal ? $zonal : JText::_('Portada'))); $this->assignRef('zonal', $zonal); $this->assignRef('banda', $banda); //set breadcrumbs if (is_object($menu) && $menu->query['view'] != 'category') { $pathway->addItem($category->title, ''); } // Prepare category description $category->description = JHTML::_('content.prepare', $category->description); $params->def('date_format', JText::_('DATE_FORMAT_LC2')); // Keep a copy for safe keeping this is soooooo dirty -- must deal with in a later version // @todo -- oh my god we need to find this reference issue in 1.6 :) $this->_params = $params->toArray(); jimport('joomla.html.pagination'); //In case we are in a blog view set the limit if ($layout == 'blog') { $pagination = new JPagination($total, $limitstart, $limit - $links); } else { $pagination = new JPagination($total, $limitstart, $limit); } $this->assign('total', $total); $this->assign('action', str_replace('&', '&', $uri->toString())); $this->assignRef('items', $items); $this->assignRef('params', $params); $this->assignRef('category', $category); $this->assignRef('user', $user); $this->assignRef('access', $access); $this->assignRef('pagination', $pagination); parent::display($tpl); }