CoreFiles by mySites.guru
preview.php48 lines, 1,510 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
f5cb733b1d7c6e6e6ee12008244c0e1c
sha1
aaea73babda0d08ad05f13484b4d00ed57e80fae
sha256
3d4c6e381a5c7fdc8b4977fa6aa6bfb7360bdddd75568ed8093e0cb37be58292
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_contenthistory
 *
 * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
JSession::checkToken('get') or die(JText::_('JINVALID_TOKEN'));

?>
<h3>
<?php echo JText::sprintf('COM_CONTENTHISTORY_PREVIEW_SUBTITLE_DATE', $this->item->save_date); ?>
<?php if ($this->item->version_note) : ?>
	&nbsp;&nbsp;<?php echo JText::sprintf('COM_CONTENTHISTORY_PREVIEW_SUBTITLE', $this->item->version_note); ?>
<?php endif; ?>
</h3>
<table class="table table-striped">
	<thead>
		<tr>
			<th style="width:25%"><?php echo JText::_('COM_CONTENTHISTORY_PREVIEW_FIELD'); ?></th>
			<th><?php echo JText::_('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>

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