[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Administrator 5 * @subpackage com_finder 6 * 7 * @copyright (C) 2011 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\Factory; 14 use Joomla\CMS\HTML\HTMLHelper; 15 use Joomla\CMS\Language\Multilanguage; 16 use Joomla\CMS\Language\Text; 17 use Joomla\CMS\Layout\LayoutHelper; 18 use Joomla\CMS\Router\Route; 19 use Joomla\Component\Finder\Administrator\Helper\LanguageHelper; 20 21 $listOrder = $this->escape($this->state->get('list.ordering')); 22 $listDirn = $this->escape($this->state->get('list.direction')); 23 $lang = Factory::getLanguage(); 24 25 /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ 26 $wa = $this->document->getWebAssetManager(); 27 $wa->useScript('multiselect') 28 ->useScript('table.columns'); 29 30 ?> 31 <form action="<?php echo Route::_('index.php?option=com_finder&view=index'); ?>" method="post" name="adminForm" id="adminForm"> 32 <div class="row"> 33 <div class="col-md-12"> 34 <div id="j-main-container" class="j-main-container"> 35 <?php echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?> 36 <?php if ($this->finderPluginId) : ?> 37 <?php $link = Route::_('index.php?option=com_plugins&client_id=0&task=plugin.edit&extension_id=' . $this->finderPluginId . '&tmpl=component&layout=modal'); ?> 38 <?php echo HTMLHelper::_( 39 'bootstrap.renderModal', 40 'plugin' . $this->finderPluginId . 'Modal', 41 array( 42 'url' => $link, 43 'title' => Text::_('COM_FINDER_EDIT_PLUGIN_SETTINGS'), 44 'height' => '400px', 45 'width' => '800px', 46 'bodyHeight' => '70', 47 'modalWidth' => '80', 48 'closeButton' => false, 49 'backdrop' => 'static', 50 'keyboard' => false, 51 'footer' => '<button type="button" class="btn btn-secondary" data-bs-dismiss="modal"' 52 . ' onclick="Joomla.iframeButtonClick({iframeSelector: \'#plugin' . $this->finderPluginId . 'Modal\', buttonSelector: \'#closeBtn\'})">' 53 . Text::_('JLIB_HTML_BEHAVIOR_CLOSE') . '</button>' 54 . '<button type="button" class="btn btn-primary" data-bs-dismiss="modal" onclick="Joomla.iframeButtonClick({iframeSelector: \'#plugin' . $this->finderPluginId . 'Modal\', buttonSelector: \'#saveBtn\'})">' 55 . Text::_("JSAVE") . '</button>' 56 . '<button type="button" class="btn btn-success" onclick="Joomla.iframeButtonClick({iframeSelector: \'#plugin' . $this->finderPluginId . 'Modal\', buttonSelector: \'#applyBtn\'}); return false;">' 57 . Text::_("JAPPLY") . '</button>' 58 ) 59 ); ?> 60 <?php endif; ?> 61 <?php if (empty($this->items)) : ?> 62 <div class="alert alert-info"> 63 <span class="icon-info-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('INFO'); ?></span> 64 <?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> 65 </div> 66 <?php else : ?> 67 <table class="table"> 68 <caption class="visually-hidden"> 69 <?php echo Text::_('COM_FINDER_INDEX_TABLE_CAPTION'); ?>, 70 <span id="orderedBy"><?php echo Text::_('JGLOBAL_SORTED_BY'); ?> </span>, 71 <span id="filteredBy"><?php echo Text::_('JGLOBAL_FILTERED_BY'); ?></span> 72 </caption> 73 <thead> 74 <tr> 75 <td class="w-1 text-center"> 76 <?php echo HTMLHelper::_('grid.checkall'); ?> 77 </td> 78 <th scope="col" class="w-1 text-center"> 79 <?php echo HTMLHelper::_('searchtools.sort', 'JSTATUS', 'l.published', $listDirn, $listOrder); ?> 80 </th> 81 <th scope="col"> 82 <?php echo HTMLHelper::_('searchtools.sort', 'JGLOBAL_TITLE', 'l.title', $listDirn, $listOrder); ?> 83 </th> 84 <th scope="col" class="w-10 d-none d-md-table-cell"> 85 <?php echo HTMLHelper::_('searchtools.sort', 'COM_FINDER_INDEX_HEADING_INDEX_TYPE', 't.title', $listDirn, $listOrder); ?> 86 </th> 87 <th scope="col" class="w-10 d-none d-md-table-cell text-center"> 88 <?php echo HTMLHelper::_('searchtools.sort', 'COM_FINDER_INDEX_HEADING_INDEX_DATE', 'l.indexdate', $listDirn, $listOrder); ?> 89 </th> 90 <?php if (Multilanguage::isEnabled()) : ?> 91 <th scope="col" class="w-10 nowrap d-none d-md-table-cell"> 92 <?php echo HTMLHelper::_('searchtools.sort', 'JGRID_HEADING_LANGUAGE', 'l.language', $listDirn, $listOrder); ?> 93 </th> 94 <?php endif; ?> 95 <th scope="col" class="w-15 d-none d-md-table-cell text-center"> 96 <?php echo Text::_('COM_FINDER_INDEX_HEADING_DETAILS'); ?> 97 </th> 98 <th scope="col" class="w-30 d-none d-md-table-cell"> 99 <?php echo HTMLHelper::_('searchtools.sort', 'COM_FINDER_INDEX_HEADING_LINK_URL', 'l.url', $listDirn, $listOrder); ?> 100 </th> 101 </tr> 102 </thead> 103 <tbody> 104 <?php $canChange = Factory::getUser()->authorise('core.manage', 'com_finder'); ?> 105 <?php foreach ($this->items as $i => $item) : ?> 106 <tr class="row<?php echo $i % 2; ?>"> 107 <td class="text-center"> 108 <?php echo HTMLHelper::_('grid.id', $i, $item->link_id, false, 'cid', 'cb', $item->title); ?> 109 </td> 110 <td class="text-center"> 111 <?php echo HTMLHelper::_('jgrid.published', $item->published, $i, 'index.', $canChange, 'cb'); ?> 112 </td> 113 <th scope="row"> 114 <?php echo $this->escape($item->title); ?> 115 </th> 116 <td class="small d-none d-md-table-cell"> 117 <?php 118 $key = LanguageHelper::branchSingular($item->t_title); 119 echo $lang->hasKey($key) ? Text::_($key) : $item->t_title; 120 ?> 121 </td> 122 <td class="small d-none d-md-table-cell text-center"> 123 <?php echo HTMLHelper::_('date', $item->indexdate, Text::_('DATE_FORMAT_LC4')); ?> 124 </td> 125 <?php if (Multilanguage::isEnabled()) : ?> 126 <td class="small d-none d-md-table-cell"> 127 <?php echo LayoutHelper::render('joomla.content.language', $item); ?> 128 </td> 129 <?php endif; ?> 130 <td class="text-center d-none d-md-table-cell text-center"> 131 <?php if ((int) $item->publish_start_date or (int) $item->publish_end_date or (int) $item->start_date or (int) $item->end_date) : ?> 132 <span tabindex="0"> 133 <span class="icon-calendar" aria-hidden="true"></span> 134 <span class="visually-hidden"><?php echo Text::_('COM_FINDER_INDEX_DATE_INFO_TITLE'); ?></span> 135 </span> 136 <div role="tooltip" id="tip<?php echo $i; ?>"> 137 <?php 138 $publishStartDate = $item->publish_start_date !== null ? HTMLHelper::_('date', $item->publish_start_date, Text::_('DATE_FORMAT_LC5'), 'UTC') : ''; 139 $publishEndDate = $item->publish_end_date !== null ? HTMLHelper::_('date', $item->publish_end_date, Text::_('DATE_FORMAT_LC5'), 'UTC') : ''; 140 $startDate = $item->start_date !== null ? HTMLHelper::_('date', $item->start_date, Text::_('DATE_FORMAT_LC5'), 'UTC') : ''; 141 $endDate = $item->end_date !== null ? HTMLHelper::_('date', $item->end_date, Text::_('DATE_FORMAT_LC5'), 'UTC') : ''; 142 ?> 143 <?php echo Text::sprintf('COM_FINDER_INDEX_DATE_INFO', $publishStartDate, $publishEndDate, $startDate, $endDate); ?> 144 </div> 145 <?php endif; ?> 146 </td> 147 <td class="small break-word d-none d-md-table-cell"> 148 <?php echo (strlen($item->url) > 80) ? substr($item->url, 0, 70) . '...' : $item->url; ?> 149 </td> 150 </tr> 151 <?php endforeach; ?> 152 </tbody> 153 </table> 154 155 <?php // load the pagination. ?> 156 <?php echo $this->pagination->getListFooter(); ?> 157 <?php endif; ?> 158 159 <input type="hidden" name="task" value="display"> 160 <input type="hidden" name="boxchecked" value="0"> 161 <?php echo HTMLHelper::_('form.token'); ?> 162 </div> 163 </div> 164 </div> 165 </form>
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 |