[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/plugins/content/pagenavigation/tmpl/ -> default.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Plugin
   5   * @subpackage  Content.pagenavigation
   6   *
   7   * @copyright   (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  defined('_JEXEC') or die;
  12  
  13  use Joomla\CMS\Factory;
  14  use Joomla\CMS\Language\Text;
  15  use Joomla\CMS\Router\Route;
  16  
  17  $lang = Factory::getLanguage(); ?>
  18  
  19  <nav class="pagenavigation">
  20      <span class="pagination ms-0">
  21      <?php if ($row->prev) :
  22          $direction = $lang->isRtl() ? 'right' : 'left'; ?>
  23              <a class="btn btn-sm btn-secondary" href="<?php echo Route::_($row->prev); ?>" rel="prev">
  24              <span class="visually-hidden">
  25                  <?php echo Text::sprintf('JPREVIOUS_TITLE', htmlspecialchars($rows[$location - 1]->title)); ?>
  26              </span>
  27              <?php echo '<span class="icon-chevron-' . $direction . '" aria-hidden="true"></span> <span aria-hidden="true">' . $row->prev_label . '</span>'; ?>
  28              </a>
  29      <?php endif; ?>
  30      <?php if ($row->next) :
  31          $direction = $lang->isRtl() ? 'left' : 'right'; ?>
  32              <a class="btn btn-sm btn-secondary" href="<?php echo Route::_($row->next); ?>" rel="next">
  33              <span class="visually-hidden">
  34                  <?php echo Text::sprintf('JNEXT_TITLE', htmlspecialchars($rows[$location + 1]->title)); ?>
  35              </span>
  36              <?php echo '<span aria-hidden="true">' . $row->next_label . '</span> <span class="icon-chevron-' . $direction . '" aria-hidden="true"></span>'; ?>
  37              </a>
  38      <?php endif; ?>
  39      </span>
  40  </nav>


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer