[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/modules/mod_tags_similar/tmpl/ -> default.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Site
   5   * @subpackage  mod_tags_similar
   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\Router\Route;
  14  
  15  if (!$list) {
  16      return;
  17  }
  18  
  19  ?>
  20  <ul class="mod-tagssimilar tagssimilar mod-list">
  21      <?php foreach ($list as $i => $item) : ?>
  22      <li>
  23          <?php if (($item->type_alias === 'com_users.category') || ($item->type_alias === 'com_banners.category')) : ?>
  24              <?php if (!empty($item->core_title)) : ?>
  25                  <?php echo htmlspecialchars($item->core_title, ENT_COMPAT, 'UTF-8'); ?>
  26              <?php endif; ?>
  27          <?php else : ?>
  28              <a href="<?php echo Route::_($item->link); ?>">
  29                  <?php if (!empty($item->core_title)) : ?>
  30                      <?php echo htmlspecialchars($item->core_title, ENT_COMPAT, 'UTF-8'); ?>
  31                  <?php endif; ?>
  32              </a>
  33          <?php endif; ?>
  34      </li>
  35      <?php endforeach; ?>
  36  </ul>


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