[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Site 5 * @subpackage com_newsfeeds 6 * 7 * @copyright (C) 2009 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 use Joomla\CMS\HTML\HTMLHelper; 12 use Joomla\CMS\Language\Text; 13 use Joomla\CMS\Router\Route; 14 use Joomla\Component\Newsfeeds\Site\Helper\RouteHelper; 15 16 defined('_JEXEC') or die; 17 18 ?> 19 <?php if ($this->maxLevel != 0 && count($this->children[$this->category->id]) > 0) : ?> 20 <ul> 21 <?php foreach ($this->children[$this->category->id] as $id => $child) : ?> 22 <?php if ($this->params->get('show_empty_categories') || $child->numitems || count($child->getChildren())) : ?> 23 <li> 24 <span class="item-title"> 25 <a href="<?php echo Route::_(RouteHelper::getCategoryRoute($child->id, $child->language)); ?>"> 26 <?php echo $this->escape($child->title); ?> 27 </a> 28 </span> 29 <?php if ($this->params->get('show_subcat_desc') == 1) : ?> 30 <?php if ($child->description) : ?> 31 <div class="category-desc"> 32 <?php echo HTMLHelper::_('content.prepare', $child->description, '', 'com_newsfeeds.category'); ?> 33 </div> 34 <?php endif; ?> 35 <?php endif; ?> 36 <?php if ($this->params->get('show_cat_items') == 1) : ?> 37 <span class="badge bg-info"> 38 <?php echo Text::_('COM_NEWSFEEDS_CAT_NUM'); ?> 39 <?php echo $child->numitems; ?> 40 </span> 41 <?php endif; ?> 42 <?php if (count($child->getChildren()) > 0) : ?> 43 <?php $this->children[$child->id] = $child->getChildren(); ?> 44 <?php $this->category = $child; ?> 45 <?php $this->maxLevel--; ?> 46 <?php echo $this->loadTemplate('children'); ?> 47 <?php $this->category = $child->getParent(); ?> 48 <?php $this->maxLevel++; ?> 49 <?php endif; ?> 50 </li> 51 <?php endif; ?> 52 <?php endforeach; ?> 53 </ul> 54 <?php endif;
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |