File manager - Edit - /home/opticamezl/www/newok/xsl.zip
Back
PK O��\PO?� view.xsl.phpnu &1i� <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Alledia\OSMap\Factory; use Alledia\OSMap\Helper\General; use Joomla\CMS\Application\SiteApplication; use Joomla\CMS\Language\Text; use Joomla\CMS\MVC\View\HtmlView; // phpcs:disable PSR1.Files.SideEffects defined('_JEXEC') or die(); // phpcs:enable PSR1.Files.SideEffects // phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace class OsmapViewXsl extends HtmlView { /** * @var SiteApplication */ protected $app = null; /** * @var string */ protected $pageHeading = null; /** * @var string */ protected $pageTitle = null; /** * @var string */ protected $language = null; /** * @inheritDoc * @throws Exception */ public function __construct($config = []) { parent::__construct($config); $this->app = Factory::getApplication(); } /** * @inheritDoc */ public function display($tpl = null) { $document = $this->app->getDocument(); $this->language = $document->getLanguage(); $menu = $this->app->getMenu()->getActive(); $isOsmap = $menu && $menu->query['option'] == 'com_osmap'; $params = $this->app->getParams(); $type = General::getSitemapTypeFromInput(); $sitemap = Factory::getSitemap($this->app->input->getInt('id'), $type); $title = $params->get('page_title', ''); if ($isOsmap == false) { $title = $sitemap->name ?: $title; } if (empty($title)) { $title = $this->app->get('sitename'); } elseif ($this->app->get('sitename_pagetitles', 0) == 1) { $title = Text::sprintf('JPAGETITLE', $this->app->get('sitename'), $title); } elseif ($this->app->get('sitename_pagetitles', 0) == 2) { $title = Text::sprintf('JPAGETITLE', $title, $this->app->get('sitename')); } $this->pageTitle = $this->escape($title); if ($isOsmap && $params->get('show_page_heading')) { $this->pageHeading = $this->escape($params->get('page_heading') ?: $sitemap->name); } // We're going to cheat Joomla here because some referenced urls MUST remain http/insecure header(sprintf('Content-Type: text/xsl; charset="%s"', $this->_charset)); header('Content-Disposition: inline'); parent::display($tpl); jexit(); } } PK O��\;y�{ { tmpl/news.phpnu &1i� <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Joomla\CMS\Language\Language; use Joomla\CMS\Language\Text; defined('_JEXEC') or die(); /** * @var OSMapViewXsl $this * @var string $template * @var string $layout * @var string $layoutTemplate * @var Language $lang * @var string $filetofind */ ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xna="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" exclude-result-prefixes="xna"> <xsl:output indent="yes" method="html" omit-xml-declaration="yes"/> <xsl:template match="/"> <html lang="<?php echo $this->language; ?>"> <head> <title><?php echo $this->pageTitle; ?></title> <style> <![CDATA[ body { font-family: tahoma, sans-serif; position: relative; } table { font-size: 11px; width: 100%; } th { background: #9f8Fbf; color: #fff; text-align: left; padding: 4px; } tr:nth-child(even) { background: #eeF8ff; } td { padding: 1px; } .data a { text-decoration: none; } .icon-new-tab { font-size: 10px; margin-left: 4px; color: #b5b5b5; } .count { font-size: 12px; margin-bottom: 10px; } tr.sitemap-url td { background: #e6e3ec; padding: 1px 2px; color: #b3b3b3; } tr.sitemap-url td a.url { color: #b3b3b3; } .image-url td { padding-left: 12px; position: relative; } ]]> </style> </head> <body> <div class="header"> <div class="title"> <?php if ($this->pageHeading) : ?> <h1><?php echo Text::_($this->pageHeading); ?></h1> <?php endif; ?> <div class="count"> <?php echo Text::_('COM_OSMAP_NUMBER_OF_URLS'); ?>: <xsl:value-of select="count(xna:urlset/xna:url)"/> </div> </div> </div> <table class="data"> <thead> <tr> <th><?php echo Text::_('COM_OSMAP_HEADING_URL'); ?></th> <th><?php echo Text::_('COM_OSMAP_HEADING_TITLE'); ?></th> <th><?php echo Text::_('COM_OSMAP_HEADING_PUBLICATION_DATE'); ?></th> </tr> </thead> <tbody> <xsl:for-each select="xna:urlset/xna:url"> <xsl:variable name="sitemapURL"> <xsl:value-of select="xna:loc"/> </xsl:variable> <tr> <td> <a href="{$sitemapURL}" target="_blank" class="url"> <xsl:value-of select="$sitemapURL"/> </a> <span class="icon-new-tab"></span> </td> <td> <xsl:value-of select="news:news/news:title" /> </td> <td> <xsl:value-of select="news:news/news:publication_date" /> </td> </tr> </xsl:for-each> </tbody> </table> </body> </html> </xsl:template> </xsl:stylesheet> PK O��\mI�� � tmpl/images.phpnu &1i� <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Joomla\CMS\Language\Language; use Joomla\CMS\Language\Text; defined('_JEXEC') or die(); /** * @var OSMapViewXsl $this * @var string $template * @var string $layout * @var string $layoutTemplate * @var Language $lang * @var string $filetofind */ ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xna="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" exclude-result-prefixes="xna"> <xsl:output indent="yes" method="html" omit-xml-declaration="yes"/> <xsl:template match="/"> <html lang="<?php echo $this->language; ?>"> <head> <title><?php echo $this->pageTitle; ?></title> <style> <![CDATA[ body { font-family: tahoma, sans-serif; position: relative; } table { font-size: 11px; width: 100%; } th { background: #9f8Fbf; color: #fff; text-align: left; padding: 4px; } tr:nth-child(even) { background: #eeF8ff; } td { padding: 1px; } .data a { text-decoration: none; } .icon-new-tab { font-size: 10px; margin-left: 4px; color: #b5b5b5; } .count { font-size: 12px; margin-bottom: 10px; } tr.sitemap-url td { background: #e6e3ec; padding: 1px 2px; color: #b3b3b3; } tr.sitemap-url td a.url { color: #b3b3b3; } .image-url td { padding-left: 12px; position: relative; } ]]> </style> </head> <body> <div class="header"> <div class="title"> <?php if ($this->pageHeading) : ?> <h1><?php echo Text::_($this->pageHeading); ?></h1> <?php endif; ?> <div class="count"> <?php echo Text::_('COM_OSMAP_NUMBER_OF_URLS'); ?>: <xsl:value-of select="count(xna:urlset/xna:url)"/> (<xsl:value-of select="count(xna:urlset/xna:url/image:image/image:loc)"/> <?php echo Text::_('COM_OSMAP_IMAGES'); ?>) </div> </div> </div> <table class="data"> <thead> <tr> <th><?php echo Text::_('COM_OSMAP_HEADING_URL'); ?></th> <th><?php echo Text::_('COM_OSMAP_HEADING_TITLE'); ?></th> </tr> </thead> <tbody> <xsl:for-each select="xna:urlset/xna:url"> <xsl:variable name="sitemapURL"> <xsl:value-of select="xna:loc"/> </xsl:variable> <tr class="sitemap-url"> <td> <a href="{$sitemapURL}" target="_blank" class="url"> <xsl:value-of select="$sitemapURL"/> </a> <span class="icon-new-tab"></span> (<xsl:value-of select="count(./image:image/image:loc)"/> <?php echo Text::_('COM_OSMAP_IMAGES'); ?>) </td> <td> <xsl:value-of select="./title"/> </td> </tr> <xsl:for-each select="image:image"> <xsl:variable name="imageURL"><xsl:value-of select="image:loc"/></xsl:variable> <tr class="image-url"> <td> <a href="{$imageURL}" target="_blank" class="image-url"> <xsl:value-of select="$imageURL"/> </a> <span class="icon-new-tab"></span> </td> <td> <xsl:value-of select="image:title"/> </td> </tr> </xsl:for-each> </xsl:for-each> </tbody> </table> </body> </html> </xsl:template> </xsl:stylesheet> PK O��\�X"[ [ tmpl/standard.phpnu &1i� <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Joomla\CMS\Language\Language; use Joomla\CMS\Language\Text; defined('_JEXEC') or die(); /** * @var OSMapViewXsl $this * @var string $template * @var string $layout * @var string $layoutTemplate * @var Language $lang * @var string $filetofind */ ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xna="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" exclude-result-prefixes="xna"> <xsl:output indent="yes" method="html" omit-xml-declaration="yes"/> <xsl:template match="/"> <html lang="<?php echo $this->language; ?>"> <head> <title><?php echo $this->pageTitle; ?></title> <style> <![CDATA[ body { font-family: tahoma, sans-serif; position: relative; } table { font-size: 11px; width: 100%; } th { background: #9f8Fbf; color: #fff; text-align: left; padding: 4px; } tr:nth-child(even) { background: #eeF8ff; } td { padding: 1px; } .data a { text-decoration: none; } .icon-new-tab { font-size: 10px; margin-left: 4px; color: #b5b5b5; } .count { font-size: 12px; margin-bottom: 10px; } ]]> </style> </head> <body> <div class="header"> <div class="title"> <?php if ($this->pageHeading) : ?> <h1><?php echo Text::_($this->pageHeading); ?></h1> <?php endif; ?> <div class="count"> <?php echo Text::_('COM_OSMAP_NUMBER_OF_URLS'); ?>: <xsl:value-of select="count(xna:urlset/xna:url)"/> </div> </div> </div> <table class="data"> <thead> <tr> <th><?php echo Text::_('COM_OSMAP_URL'); ?></th> <th><?php echo Text::_('COM_OSMAP_MODIFICATION_DATE'); ?></th> <th><?php echo Text::_('COM_OSMAP_CHANGE_FREQ'); ?></th> <th><?php echo Text::_('COM_OSMAP_PRIORITY_LABEL'); ?></th> </tr> </thead> <tbody> <xsl:for-each select="xna:urlset/xna:url"> <xsl:variable name="sitemapURL"> <xsl:value-of select="xna:loc"/> </xsl:variable> <tr> <td> <a href="{$sitemapURL}" target="_blank"> <xsl:value-of select="$sitemapURL"/> </a> <span class="icon-new-tab"></span> </td> <td> <xsl:value-of select="xna:lastmod"/> </td> <td> <xsl:value-of select="xna:changefreq"/> </td> <td> <xsl:value-of select="xna:priority"/> </td> </tr> </xsl:for-each> </tbody> </table> </body> </html> </xsl:template> </xsl:stylesheet> PK O��\PO?� view.xsl.phpnu &1i� PK O��\;y�{ { \ tmpl/news.phpnu &1i� PK O��\mI�� � tmpl/images.phpnu &1i� PK O��\�X"[ [ 2 tmpl/standard.phpnu &1i� PK 9 �D
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0 |
proxy
|
phpinfo
|
Settings