| Current Path : /home/megadansyp/www/plugins/system/t3/base-bs3/html/layouts/joomla/content/ |
| Current File : /home/megadansyp/www/plugins/system/t3/base-bs3/html/layouts/joomla/content/fulltext_image.php |
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
$params = $displayData['params'];
$item = $displayData['item'];
$images = json_decode($item->images);
if (empty($images->image_fulltext)) return ;
$imgfloat = (empty($images->float_fulltext)) ? $params->get('float_fulltext') : $images->float_fulltext;
?>
<div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image article-image article-image-full">
<span itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
<img
<?php if ($images->image_fulltext_caption): ?>
<?php echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_fulltext_caption) . '"'; ?>
<?php endif; ?>
src="<?php echo htmlspecialchars($images->image_fulltext); ?>"
alt="<?php echo htmlspecialchars($images->image_fulltext_alt); ?>" itemprop="url" />
<meta itemprop="height" content="auto" />
<meta itemprop="width" content="auto" />
</span>
</div>