- md5
- ad34317c6cdec00d2ab960c77d8b07fe
- sha1
- 263a12357661b50a66f2f8b43b097585dfb92299
- sha256
- 6af57c0898d2f09d265bbe64284d5e8c27a6d630ccdeaf0f3abeaddadbe9654a
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
<?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;
/** @var \Joomla\Component\Contenthistory\Administrator\View\Preview\HtmlView $this */
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->escape($this->item->version_note)); ?>
</h2>
<?php endif; ?>
<table class="table">
<caption class="visually-hidden">
<?php echo Text::_('COM_CONTENTHISTORY_PREVIEW_CAPTION'); ?>
</caption>
<thead>
<tr>
<th class="w-25" scope="col"><?php echo Text::_('COM_CONTENTHISTORY_PREVIEW_FIELD'); ?></th>
<th scope="col"><?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 && isset($subValue->value)) : ?>
<?php $subValue->value = (\is_object($subValue->value) || \is_array($subValue->value)) ? \json_encode($subValue->value, \JSON_UNESCAPED_UNICODE) : $subValue->value; ?>
<tr>
<th scope="row"><em> <?php echo $subValue->label; ?></em></th>
<td><?php echo $this->escape($subValue->value); ?></td>
</tr>
<?php endif; ?>
<?php endforeach; ?>
<?php else : ?>
<tr>
<th scope="row"><?php echo $value->label; ?></th>
<td><?php echo $this->escape($value->value); ?></td>
</tr>
<?php endif; ?>
<?php endforeach; ?>
</tbody>
</table>
</div>
The same content is in 10 releases, Joomla 5.4.6 to 5.4.10. See them all, or every version of this file.