CoreFiles by mySites.guru
preview.php52 lines, 1,554 bytes, from Joomla_4.0.0-alpha7-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha6
md5
b0def1320e26fe50c1547c2f8a01dd0a
sha1
1ec15750eb5287ad9d351cfc3f968c142153fec0
sha256
5946a304f53a22dd69f3ff667a590b2bf620c4c07f1f5da6506668f74ad3f125
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_contenthistory
 *
 * @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\Language\Text;
use Joomla\CMS\Session\Session;

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

?>
<h3>
<?php echo Text::sprintf('COM_CONTENTHISTORY_PREVIEW_SUBTITLE_DATE', $this->item->save_date); ?>
<?php if ($this->item->version_note) : ?>
	&nbsp;&nbsp;<?php echo Text::sprintf('COM_CONTENTHISTORY_PREVIEW_SUBTITLE', $this->item->version_note); ?>
<?php endif; ?>
</h3>
<table class="table">
	<thead>
		<tr>
			<th style="width: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) : ?>
		<tr>
		<?php if (is_object($value->value)) : ?>
			<td><strong><?php echo $value->label; ?></strong></td>
			<td>&nbsp;</td>
			<?php foreach ($value->value as $subName => $subValue) : ?>
				<?php if ($subValue) : ?>
					<tr>
						<td><i>&nbsp;&nbsp;<?php echo $subValue->label; ?></i></td>
						<td><?php echo $subValue->value; ?></td>
					</tr>
				<?php endif; ?>
			<?php endforeach; ?>
		<?php else : ?>
			<td><strong><?php echo $value->label; ?></strong></td>
			<td><?php echo $value->value; ?></td>
		<?php endif; ?>
		</tr>
	<?php endforeach; ?>
	</tbody>
</table>

The same content is in 2 releases, Joomla 4.0.0-alpha7 to 4.0.0-alpha8. See them all, or every version of this file.