[ 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 Layout 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\Language\Text; 14 use Joomla\Registry\Registry; 15 16 $data = $displayData; 17 18 // Receive overridable options 19 $data['options'] = !empty($data['options']) ? $data['options'] : array(); 20 21 if (is_array($data['options'])) { 22 $data['options'] = new Registry($data['options']); 23 } 24 25 // Options 26 $filterButton = $data['options']->get('filterButton', true); 27 $searchButton = $data['options']->get('searchButton', true); 28 29 $filters = $data['view']->filterForm->getGroup('filter'); 30 31 if (empty($filters['filter_search']) || !$searchButton) { 32 return; 33 } 34 ?> 35 36 <div class="filter-search-bar btn-group"> 37 <div class="input-group"> 38 <?php echo $filters['filter_search']->input; ?> 39 <?php if ($filters['filter_search']->description) : ?> 40 <div role="tooltip" id="<?php echo ($filters['filter_search']->id ?: $filters['filter_search']->name) . '-desc'; ?>" class="filter-search-bar__description"> 41 <?php echo htmlspecialchars(Text::_($filters['filter_search']->description), ENT_COMPAT, 'UTF-8'); ?> 42 </div> 43 <?php endif; ?> 44 <span class="filter-search-bar__label visually-hidden"> 45 <?php echo $filters['filter_search']->label; ?> 46 </span> 47 <button type="submit" class="filter-search-bar__button btn btn-primary" aria-label="<?php echo Text::_('JSEARCH_FILTER_SUBMIT'); ?>"> 48 <span class="filter-search-bar__button-icon icon-search" aria-hidden="true"></span> 49 </button> 50 </div> 51 </div> 52 <div class="filter-search-actions btn-group"> 53 <?php if ($filterButton) : ?> 54 <button type="button" class="filter-search-actions__button btn btn-primary js-stools-btn-filter"> 55 <?php echo Text::_('JFILTER_OPTIONS'); ?> 56 <span class="icon-angle-down" aria-hidden="true"></span> 57 </button> 58 <?php endif; ?> 59 <button type="button" class="filter-search-actions__button btn btn-primary js-stools-btn-clear"> 60 <?php echo Text::_('JSEARCH_FILTER_CLEAR'); ?> 61 </button> 62 </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 |