CoreFiles by mySites.guru
default_updated_files.php92 lines, 3,486 bytes, from Joomla_4.0.0-beta4-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta3
md5
c5d96d09f5c7b91ab546cc663dc98774
sha1
7d18200eafc4995b2f73e074b15e25708e47b14e
sha256
1df2af0066b4832cf67c6351b388d10e85abbff5ccbbba2421f145558749ccaa
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_templates
 *
 * @copyright   Copyright (C) 2005 - 2020 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\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;

$input = Factory::getApplication()->input;
?>

<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">
	<div class="row mt-3">
		<div class="col-md-12">
			<div class="card">
				<div class="card-body">
				<?php if (count($this->updatedList) !== 0) : ?>
					<table class="table">
						<thead>
							<tr>
								<td class="w-5 text-center">
									<?php echo HTMLHelper::_('grid.checkall'); ?>
								</td>
								<th scope="col" class="w-7">
									<?php echo Text::_('COM_TEMPLATES_OVERRIDE_CHECKED'); ?>
								</th>
								<th scope="col" class="w-30">
									<?php echo Text::_('COM_TEMPLATES_OVERRIDE_TEMPLATE_FILE'); ?>
								</th>
								<th scope="col">
									<?php echo Text::_('COM_TEMPLATES_OVERRIDE_CREATED_DATE'); ?>
								</th>
								<th scope="col">
									<?php echo Text::_('COM_TEMPLATES_OVERRIDE_MODIFIED_DATE'); ?>
								</th>
								<th scope="col">
									<?php echo Text::_('COM_TEMPLATES_OVERRIDE_SOURCE'); ?>
								</th>
							</tr>
						</thead>
						<tbody>
							<?php foreach ($this->updatedList as $i => $value) : ?>
								<tr class="row<?php echo $i % 2; ?>">
									<td class="text-center">
										<?php echo HTMLHelper::_('grid.id', $i, $value->hash_id, false, 'cid', 'cb', '', 'updateForm'); ?>
									</td>
									<td>
										<?php echo HTMLHelper::_('jgrid.published', $value->state, $i, 'template.', 1, 'cb', null, null, 'updateForm'); ?>
									</td>
									<td>
										<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>
									</td>
									<td>
										<?php $created_date = $value->created_date; ?>
										<?php echo $created_date > 0 ? HTMLHelper::_('date', $created_date, Text::_('DATE_FORMAT_FILTER_DATETIME')) : '-'; ?>
									</td>
									<td>
										<?php if (is_null($value->modified_date)) : ?>
											<span class="badge badge-warning"><?php echo Text::_('COM_TEMPLATES_OVERRIDE_CORE_REMOVED'); ?></span>
										<?php else : ?>
											<?php echo HTMLHelper::_('date', $value->modified_date, Text::_('DATE_FORMAT_FILTER_DATETIME')); ?>
										<?php endif; ?>
									</td>
									<td>
										<span class="badge badge-info"><?php echo $value->action; ?></span>
									</td>
								</tr>
							<?php endforeach; ?>
						</tbody>
					</table>
					<input type="hidden" name="task" value="">
					<input type="hidden" name="boxchecked" value="0">
					<?php echo HTMLHelper::_('form.token'); ?>
				<?php else : ?>
					<div class="alert alert-success">
						<span class="fas fa-check-circle" aria-hidden="true"></span><span class="sr-only"><?php echo Text::_('NOTICE'); ?></span>
						<?php echo Text::_('COM_TEMPLATES_OVERRIDE_UPTODATE'); ?>
					</div>
				<?php endif; ?>
				</div>
			</div>
		</div>
	</div>
</form>

The same content is in 5 releases, Joomla 4.0.0-beta to 4.0.0-beta5. See them all, or every version of this file.