[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_content/tmpl/category/ -> blog_links.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Site
   5   * @subpackage  com_content
   6   *
   7   * @copyright   (C) 2006 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  use Joomla\Component\Content\Site\Helper\RouteHelper;
  15  
  16  ?>
  17  
  18  <ol class="com-content-blog__links">
  19      <?php foreach ($this->link_items as $item) : ?>
  20          <li class="com-content-blog__link">
  21              <a href="<?php echo Route::_(RouteHelper::getArticleRoute($item->slug, $item->catid, $item->language)); ?>">
  22                  <?php echo $item->title; ?></a>
  23          </li>
  24      <?php endforeach; ?>
  25  </ol>


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