?
Path : /home/admin/public_html/old/components/com_sitemap/views/default/ |
Current File : /home/admin/public_html/old/components/com_sitemap/views/default/view.xml.php |
<?php /** * Qlue Sitemap * * @author Jon Boutell * @package QMap * @license GNU/GPL * @version 1.0 * * This component gathers information from various Joomla Components and * compiles them into a sitemap, supporting both an HTML view and an XML * format for search engines. * */ defined('_JEXEC') or die('Restricted Access'); class SitemapViewDefault extends JViewLegacy { protected $items = null; public function display($tpl = null) { $this->items = $this->get('Items'); $this->sitemap = $this->get('Item'); $this->url = substr(JURI::base(), 0, -1); $this->user = JFactory::getUser(); if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->setLayout('xml'); parent::display($tpl); } } ?>