[ 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_templates 6 * 7 * @copyright (C) 2018 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\Text; 16 use Joomla\CMS\Router\Route; 17 18 HTMLHelper::_('bootstrap.dropdown', '.dropdown-toggle'); 19 20 $input = Factory::getApplication()->input; 21 ?> 22 23 <?php if (count($this->updatedList) === 0) : ?> 24 <div class="alert alert-success"> 25 <span class="icon-check-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('NOTICE'); ?></span> 26 <?php echo Text::_('COM_TEMPLATES_OVERRIDE_UPTODATE'); ?> 27 </div> 28 <?php else : ?> 29 <div class="alert alert-info"> 30 <span class="icon-info-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('INFO'); ?></span> 31 <?php echo Text::_('COM_TEMPLATES_OVERRIDE_NOT_UPTODATE'); ?> 32 </div> 33 <form action="<?php echo Route::_('index.php?option=com_templates&view=template&id=' . $input->getInt('id') . '&file=' . $this->file); ?>" method="post" name="updateForm" id="updateForm"> 34 <div class="row mt-2"> 35 <div class="col-md-12"> 36 <table class="table"> 37 <thead> 38 <tr> 39 <td class="w-5 text-center"> 40 <?php echo HTMLHelper::_('grid.checkall'); ?> 41 </td> 42 <th scope="col" class="w-7"> 43 <?php echo Text::_('COM_TEMPLATES_OVERRIDE_CHECKED'); ?> 44 </th> 45 <th scope="col" class="w-30"> 46 <?php echo Text::_('COM_TEMPLATES_OVERRIDE_TEMPLATE_FILE'); ?> 47 </th> 48 <th scope="col"> 49 <?php echo Text::_('COM_TEMPLATES_OVERRIDE_CREATED_DATE'); ?> 50 </th> 51 <th scope="col"> 52 <?php echo Text::_('COM_TEMPLATES_OVERRIDE_MODIFIED_DATE'); ?> 53 </th> 54 <th scope="col"> 55 <?php echo Text::_('COM_TEMPLATES_OVERRIDE_SOURCE'); ?> 56 </th> 57 </tr> 58 </thead> 59 <tbody> 60 <?php foreach ($this->updatedList as $i => $value) : ?> 61 <tr class="row<?php echo $i % 2; ?>"> 62 <td class="text-center"> 63 <?php echo HTMLHelper::_('grid.id', $i, $value->hash_id, false, 'cid', 'cb', '', 'updateForm'); ?> 64 </td> 65 <td> 66 <?php echo HTMLHelper::_('jgrid.published', $value->state, $i, 'template.', 1, 'cb', null, null, 'updateForm'); ?> 67 </td> 68 <td> 69 <a href="<?php echo Route::_('index.php?option=com_templates&view=template&id=' . (int) $value->extension_id . '&file=' . $value->hash_id); ?>" title="<?php echo Text::_('JACTION_EDIT'); ?>"><?php echo base64_decode($value->hash_id); ?></a> 70 </td> 71 <td> 72 <?php $created_date = $value->created_date; ?> 73 <?php echo $created_date > 0 ? HTMLHelper::_('date', $created_date, Text::_('DATE_FORMAT_FILTER_DATETIME')) : '-'; ?> 74 </td> 75 <td> 76 <?php if (is_null($value->modified_date)) : ?> 77 <span class="badge bg-warning text-dark"><?php echo Text::_('COM_TEMPLATES_OVERRIDE_CORE_REMOVED'); ?></span> 78 <?php else : ?> 79 <?php echo HTMLHelper::_('date', $value->modified_date, Text::_('DATE_FORMAT_FILTER_DATETIME')); ?> 80 <?php endif; ?> 81 </td> 82 <td> 83 <span class="badge bg-info"><?php echo $value->action; ?></span> 84 </td> 85 </tr> 86 <?php endforeach; ?> 87 </tbody> 88 </table> 89 <input type="hidden" name="task" value=""> 90 <input type="hidden" name="boxchecked" value="0"> 91 <?php echo HTMLHelper::_('form.token'); ?> 92 </div> 93 </div> 94 </form> 95 <?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 |