CoreFiles by mySites.guru
default.php99 lines, 4,045 bytes, from Joomla_4.0.0-alpha12-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha11
md5
0a940ee0f0d720154c753c673c9707b2
sha1
69eaa8b0b122e15ac94d64416d45892382af8ef7
sha256
2b6c65c9595739964ad47d5a25a38c6a0f3d15fa101bcb2b49eefdbc928d5389
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_mails
 *
 * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Router\Route;

$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));
?>
<form action="<?php echo Route::_('index.php?option=com_mails&view=templates'); ?>" method="post" name="adminForm" id="adminForm">
	<div class="row">
		<div class="col-md-12">
			<div id="j-main-container" class="j-main-container">
				<?php
				// Search tools bar
				echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this));
				?>
				<?php if (empty($this->items)) : ?>
					<joomla-alert type="warning"><?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?></joomla-alert>
				<?php else : ?>
					<table class="table" id="templateList">
						<caption id="captionTable" class="sr-only">
							<?php echo Text::_('COM_MAILS_TABLE_CAPTION'); ?>, <?php echo Text::_('JGLOBAL_SORTED_BY'); ?>
						</caption>
						<thead>
							<tr>
								<th scope="col" style="min-width:100px">
									<?php echo HTMLHelper::_('searchtools.sort', 'JGLOBAL_TITLE', 'a.title', $listDirn, $listOrder); ?>
								</th>
								<th scope="col" style="width:15%" class="d-none d-md-table-cell">
									<?php echo HTMLHelper::_('searchtools.sort', 'COM_MAILS_HEADING_COMPONENT', 'a.component', $listDirn, $listOrder); ?>
								</th>
								<th scope="col" style="width:15%"  class="d-md-table-cell">
									<?php echo Text::_('COM_MAILS_HEADING_LANGUAGES'); ?>
								</th>
								<th scope="col" style="width:30%" class="d-none d-md-table-cell">
									<?php echo Text::_('COM_MAILS_HEADING_DESCRIPTION'); ?>
								</th>
								<th scope="col" style="width:10%" class="d-none d-md-table-cell">
									<?php echo HTMLHelper::_('searchtools.sort', 'JGRID_HEADING_ID', 'a.id', $listDirn, $listOrder); ?>
								</th>
							</tr>
						</thead>
						<tbody>
						<?php foreach ($this->items as $i => $item) :
							list($component, $sub_id) = explode('.', $item->template_id, 2);
							?>
							<tr class="row<?php echo $i % 2; ?>">
								<td class="break-word">
									<?php echo Text::_($component . '_MAIL_' . $sub_id . '_TITLE'); ?>
								</td>
								<td class="d-none d-md-table-cell">
									<?php echo Text::_($component); ?>
								</td>
								<td class="d-md-table-cell">
									<?php foreach ($this->languages as $language) : ?>
										<?php $exists = in_array($language->lang_code, $item->languages); ?>
										<a href="<?php echo JRoute::_('index.php?option=com_mails&task=template.edit&template_id=' . $item->template_id . '&language=' . $language->lang_code); ?>"
											<?php echo !$exists ? ' style=""' : ''; ?>>
											<?php if ($language->image) : ?>
												<?php echo HTMLHelper::_('image', 'mod_languages/' . $language->image . '.gif', $language->title_native, array('title' => $language->title_native), true); ?>
											<?php else : ?>
												<span class="badge badge-secondary"><?php echo strtoupper($language->sef); ?></span>
											<?php endif; ?>
										</a>
									<?php endforeach; ?>
								</td>
								<td class="d-none d-md-table-cell">
									<?php echo Text::_($component . '_MAIL_' . $sub_id . '_DESC'); ?>
								</td>
								<td class="d-none d-md-table-cell">
									<?php echo $item->template_id; ?>
								</td>
							</tr>
						<?php endforeach; ?>
						</tbody>
					</table>

					<?php // load the pagination. ?>
					<?php echo $this->pagination->getListFooter(); ?>
				<?php endif; ?>

				<input type="hidden" name="task" value="">
				<input type="hidden" name="boxchecked" value="0">
				<?php echo HTMLHelper::_('form.token'); ?>
			</div>
		</div>
	</div>
</form>

No other release has this exact content. See every version of this file.