[ 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_tags 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\HTML\HTMLHelper; 14 use Joomla\CMS\Language\Text; 15 use Joomla\CMS\Router\Route; 16 use Joomla\CMS\Uri\Uri; 17 18 /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ 19 $wa = $this->document->getWebAssetManager(); 20 $wa->useScript('com_tags.tag-list'); 21 22 $listOrder = $this->escape($this->state->get('list.ordering')); 23 $listDirn = $this->escape($this->state->get('list.direction')); 24 ?> 25 <div class="com-tags-compact__items"> 26 <form action="<?php echo htmlspecialchars(Uri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm" class="com-tags-tag-list__items"> 27 <?php if ($this->params->get('filter_field')) : ?> 28 <div class="com-tags-tag__filter btn-group"> 29 <label class="filter-search-lbl visually-hidden" for="filter-search"> 30 <?php echo Text::_('COM_TAGS_TITLE_FILTER_LABEL'); ?> 31 </label> 32 <input 33 type="text" 34 name="filter-search" 35 id="filter-search" 36 value="<?php echo $this->escape($this->state->get('list.filter')); ?>" 37 class="inputbox" onchange="document.adminForm.submit();" 38 placeholder="<?php echo Text::_('COM_TAGS_TITLE_FILTER_LABEL'); ?>" 39 > 40 <button type="submit" name="filter_submit" class="btn btn-primary"><?php echo Text::_('JGLOBAL_FILTER_BUTTON'); ?></button> 41 <button type="reset" name="filter-clear-button" class="btn btn-secondary"><?php echo Text::_('JSEARCH_FILTER_CLEAR'); ?></button> 42 </div> 43 <?php endif; ?> 44 <?php if ($this->params->get('show_pagination_limit')) : ?> 45 <div class="btn-group float-end"> 46 <label for="limit" class="visually-hidden"> 47 <?php echo Text::_('JGLOBAL_DISPLAY_NUM'); ?> 48 </label> 49 <?php echo $this->pagination->getLimitBox(); ?> 50 </div> 51 <?php endif; ?> 52 53 <?php if (empty($this->items)) : ?> 54 <div class="alert alert-info"> 55 <span class="icon-info-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('INFO'); ?></span> 56 <?php echo Text::_('COM_TAGS_NO_ITEMS'); ?> 57 </div> 58 <?php else : ?> 59 <table class="com-tags-tag-list__category category table table-striped table-bordered table-hover"> 60 <?php if ($this->params->get('show_headings')) : ?> 61 <thead> 62 <tr> 63 <th scope="col" id="categorylist_header_title"> 64 <?php echo HTMLHelper::_('grid.sort', 'JGLOBAL_TITLE', 'c.core_title', $listDirn, $listOrder); ?> 65 </th> 66 <?php if ($date = $this->params->get('tag_list_show_date')) : ?> 67 <th scope="col" id="categorylist_header_date"> 68 <?php if ($date === 'created') : ?> 69 <?php echo HTMLHelper::_('grid.sort', 'COM_TAGS_' . $date . '_DATE', 'c.core_created_time', $listDirn, $listOrder); ?> 70 <?php elseif ($date === 'modified') : ?> 71 <?php echo HTMLHelper::_('grid.sort', 'COM_TAGS_' . $date . '_DATE', 'c.core_modified_time', $listDirn, $listOrder); ?> 72 <?php elseif ($date === 'published') : ?> 73 <?php echo HTMLHelper::_('grid.sort', 'COM_TAGS_' . $date . '_DATE', 'c.core_publish_up', $listDirn, $listOrder); ?> 74 <?php endif; ?> 75 </th> 76 <?php endif; ?> 77 </tr> 78 </thead> 79 <?php endif; ?> 80 <tbody> 81 <?php foreach ($this->items as $i => $item) : ?> 82 <?php if ($item->core_state == 0) : ?> 83 <tr class="system-unpublished cat-list-row<?php echo $i % 2; ?>"> 84 <?php else : ?> 85 <tr class="cat-list-row<?php echo $i % 2; ?>" > 86 <?php endif; ?> 87 <th scope="row" class="list-title"> 88 <?php if (($item->type_alias === 'com_users.category') || ($item->type_alias === 'com_banners.category')) : ?> 89 <?php echo $this->escape($item->core_title); ?> 90 <?php else : ?> 91 <a href="<?php echo Route::_($item->link); ?>"> 92 <?php echo $this->escape($item->core_title); ?> 93 </a> 94 <?php endif; ?> 95 <?php if ($item->core_state == 0) : ?> 96 <span class="list-published badge bg-warning text-light"> 97 <?php echo Text::_('JUNPUBLISHED'); ?> 98 </span> 99 <?php endif; ?> 100 </th> 101 <?php if ($this->params->get('tag_list_show_date')) : ?> 102 <td class="list-date"> 103 <?php 104 echo HTMLHelper::_( 105 'date', 106 $item->displayDate, 107 $this->escape($this->params->get('date_format', Text::_('DATE_FORMAT_LC3'))) 108 ); ?> 109 </td> 110 <?php endif; ?> 111 </tr> 112 <?php endforeach; ?> 113 </tbody> 114 </table> 115 <?php endif; ?> 116 117 <?php // Add pagination links ?> 118 <?php if (($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagesTotal > 1)) : ?> 119 <div class="com-tags-tag-list__pagination w-100"> 120 <?php if ($this->params->def('show_pagination_results', 1)) : ?> 121 <p class="counter float-end pt-3 pe-2"> 122 <?php echo $this->pagination->getPagesCounter(); ?> 123 </p> 124 <?php endif; ?> 125 <?php echo $this->pagination->getPagesLinks(); ?> 126 </div> 127 <?php endif; ?> 128 <input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>"> 129 <input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>"> 130 <input type="hidden" name="limitstart" value=""> 131 <input type="hidden" name="task" value=""> 132 </form> 133 </div>
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 |