CoreFiles by mySites.guru
preview.php63 lines, 1,728 bytes, from Joomla_4.0.0-beta6-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta5
md5
8e846aa10d3710180350055a17c5b4f5
sha1
7c0cdd90d395516397f4dcd83171cb3a303a33c9
sha256
0c952cc5c7d42bf40763d27a0d6b29aff9738ce2a969eda0c54dae132a38be91
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_contenthistory
 *
 * @copyright   (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;
use Joomla\CMS\Session\Session;

Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));

?>
<div role="main">
	<h1>
		<?php echo Text::sprintf('COM_CONTENTHISTORY_PREVIEW_SUBTITLE_DATE', $this->item->save_date); ?>
	</h1>
	<?php if ($this->item->version_note) : ?>
		<h2>
			<?php echo Text::sprintf('COM_CONTENTHISTORY_PREVIEW_SUBTITLE', $this->item->version_note); ?>
		</h2>
	<?php endif; ?>

	<table class="table">
		<caption class="sr-only">
			<?php echo Text::_('COM_CONTENTHISTORY_PREVIEW_CAPTION'); ?>
		</caption>
		<thead>
			<tr>
				<th class="w-25"><?php echo Text::_('COM_CONTENTHISTORY_PREVIEW_FIELD'); ?></th>
				<th><?php echo Text::_('COM_CONTENTHISTORY_PREVIEW_VALUE'); ?></th>
			</tr>
		</thead>
		<tbody>
		<?php foreach ($this->item->data as $name => $value) : ?>
			<?php if (is_object($value->value)) : ?>
				<tr>
					<td colspan="2">
						<?php echo $value->label; ?>
					</td>
				</tr>
				<?php foreach ($value->value as $subName => $subValue) : ?>
					<?php if ($subValue) : ?>
						<tr>
							<th scope="row"><em>&nbsp;&nbsp;<?php echo $subValue->label; ?></em></th>
							<td><?php echo $subValue->value; ?></td>
						</tr>
					<?php endif; ?>
				<?php endforeach; ?>
			<?php else : ?>
				<tr>
					<th scope="row"><?php echo $value->label; ?></th>
					<td><?php echo $value->value; ?></td>
				</tr>
			<?php endif; ?>
		<?php endforeach; ?>
		</tbody>
	</table>
</div>

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