[ 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_mails 6 * 7 * @copyright (C) 2019 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\Layout\LayoutHelper; 16 use Joomla\CMS\Router\Route; 17 18 HTMLHelper::_('bootstrap.dropdown', '.dropdown-toggle'); 19 20 /** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */ 21 $wa = $this->document->getWebAssetManager(); 22 $wa->useScript('table.columns'); 23 24 $listOrder = $this->escape($this->state->get('list.ordering')); 25 $listDirn = $this->escape($this->state->get('list.direction')); 26 ?> 27 <form action="<?php echo Route::_('index.php?option=com_mails&view=templates'); ?>" method="post" name="adminForm" id="adminForm"> 28 <div class="row"> 29 <div class="col-md-12"> 30 <div id="j-main-container" class="j-main-container"> 31 <?php 32 // Search tools bar 33 echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this)); 34 ?> 35 <?php if (empty($this->items)) : ?> 36 <div class="alert alert-info"> 37 <span class="icon-info-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('INFO'); ?></span> 38 <?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> 39 </div> 40 <?php else : ?> 41 <table class="table" id="mailtemplateList"> 42 <caption class="visually-hidden"> 43 <?php echo Text::_('COM_MAILS_TABLE_CAPTION'); ?>, 44 <span id="orderedBy"><?php echo Text::_('JGLOBAL_SORTED_BY'); ?> </span>, 45 <span id="filteredBy"><?php echo Text::_('JGLOBAL_FILTERED_BY'); ?></span> 46 </caption> 47 <thead> 48 <tr> 49 <th scope="col" class="w-20"> 50 <?php echo Text::_('JGLOBAL_TITLE'); ?> 51 </th> 52 <th scope="col" class="w-15 d-none d-md-table-cell"> 53 <?php echo Text::_('COM_MAILS_HEADING_EXTENSION'); ?> 54 </th> 55 <?php if (count($this->languages) > 1) : ?> 56 <th scope="col" class="w-10 text-center"> 57 <?php echo Text::_('COM_MAILS_HEADING_EDIT_TEMPLATES'); ?> 58 </th> 59 <?php endif; ?> 60 <th scope="col" class="w-25 d-none d-md-table-cell"> 61 <?php echo Text::_('COM_MAILS_HEADING_DESCRIPTION'); ?> 62 </th> 63 <th scope="col" class="w-20 d-none d-md-table-cell"> 64 <?php echo HTMLHelper::_('searchtools.sort', 'JGRID_HEADING_ID', 'a.template_id', $listDirn, $listOrder); ?> 65 </th> 66 </tr> 67 </thead> 68 <tbody> 69 <?php foreach ($this->items as $i => $item) : 70 list($component, $sub_id) = explode('.', $item->template_id, 2); 71 $sub_id = str_replace('.', '_', $sub_id); 72 ?> 73 <tr class="row<?php echo $i % 2; ?>"> 74 <th scope="row"> 75 <a href="<?php echo Route::_('index.php?option=com_mails&task=template.edit&template_id=' . $item->template_id . '&language=' . $this->defaultLanguage->lang_code); ?>"> 76 <?php echo Text::_($component . '_MAIL_' . $sub_id . '_TITLE'); ?> 77 </a> 78 </th> 79 <td class="d-none d-md-table-cell"> 80 <?php echo Text::_($component); ?> 81 </td> 82 <?php if (count($this->languages) > 1) : ?> 83 <td> 84 <ul class="list-unstyled d-flex justify-content-center"> 85 <?php foreach ($this->languages as $language) : ?> 86 <li class="p-1"> 87 <a href="<?php echo Route::_('index.php?option=com_mails&task=template.edit&template_id=' . $item->template_id . '&language=' . $language->lang_code); ?>"> 88 <?php if ($language->image) : ?> 89 <?php echo HTMLHelper::_('image', 'mod_languages/' . $language->image . '.gif', $language->title_native, array('title' => $language->title_native), true); ?> 90 <?php else : ?> 91 <span class="badge bg-secondary" title="<?php echo $language->title_native; ?>"><?php echo $language->lang_code; ?></span> 92 <?php endif; ?> 93 </a> 94 </li> 95 <?php endforeach; ?> 96 </ul> 97 </td> 98 <?php endif; ?> 99 <td class="d-none d-md-table-cell"> 100 <?php echo Text::_($component . '_MAIL_' . $sub_id . '_DESC'); ?> 101 </td> 102 <td class="d-none d-md-table-cell text-break"> 103 <?php echo $item->template_id; ?> 104 </td> 105 </tr> 106 <?php endforeach; ?> 107 </tbody> 108 </table> 109 110 <?php // load the pagination. ?> 111 <?php echo $this->pagination->getListFooter(); ?> 112 <?php endif; ?> 113 114 <input type="hidden" name="task" value=""> 115 <input type="hidden" name="boxchecked" value="0"> 116 <?php echo HTMLHelper::_('form.token'); ?> 117 </div> 118 </div> 119 </div> 120 </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 |