. */ use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Version; defined('_JEXEC') or die(); $frequncyOptions = HTMLHelper::_('osmap.frequencyList'); array_walk( $frequncyOptions, function (string &$text, string $value) { $text = HTMLHelper::_('select.option', $value, $text); } ); $priorityOptions = array_map( function (float $priority) { return HTMLHelper::_('select.option', $priority, $priority); }, HTMLHelper::_('osmap.priorityList') ); $showItemUid = $this->osmapParams->get('show_item_uid', 0); $showExternalLinks = (int)$this->osmapParams->get('show_external_links', 0); $items = []; $this->sitemap->traverse( /** * @param object $item * * @return bool */ function (object $item) use (&$items, &$showItemUid, &$showExternalLinks) { if ( ($item->isInternal == false && $showExternalLinks === 0) || $item->hasCompatibleLanguage() == false ) : return false; endif; if ($showExternalLinks === 2) : // Display only in the HTML sitemap $item->addAdminNote('COM_OSMAP_ADMIN_NOTE_IGNORED_EXTERNAL_HTML'); endif; // Add notes about sitemap visibility if ($item->visibleForXML == false) : $item->addAdminNote('COM_OSMAP_ADMIN_NOTE_VISIBLE_HTML_ONLY'); endif; if ($item->visibleForHTML == false) : $item->addAdminNote('COM_OSMAP_ADMIN_NOTE_VISIBLE_XML_ONLY'); endif; if ($item->visibleForRobots == false) : $item->addAdminNote('COM_OSMAP_ADMIN_NOTE_INVISIBLE_FOR_ROBOTS'); endif; if ($item->parentIsVisibleForRobots == false) : $item->addAdminNote('COM_OSMAP_ADMIN_NOTE_PARENT_INVISIBLE_FOR_ROBOTS'); endif; $items[] = $item; return true; }, false, true ); $count = count($items); ?> $item) : ?>
published ? 'publish' : 'unpublish'; $title = $item->published ? 'COM_OSMAP_TOOLTIP_CLICK_TO_UNPUBLISH' : 'COM_OSMAP_TOOLTIP_CLICK_TO_PUBLISH'; ?>
getAdminNotesString()) : ?>
name ?? ''; ?>
priority); ?>
changefreq)); ?>