<?php
/**
 * @package     Joomla.Site
 * @subpackage  Layout
 *
 * @copyright   Copyright (C) 2005 - 2015 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;
$images = json_decode($displayData->images);
?>
<?php
$attribs1 = json_decode($displayData->attribs);
?>

<?php if (isset($images->image_fulltext) && !empty($images->image_fulltext)) : ?>
	<?php $imgfloat = (empty($images->float_fulltext)) ? $params->get('float_fulltext') : $images->float_fulltext; ?>
	<div class="entry-image full-image"> <img
		<?php if ($images->image_fulltext_caption):
		echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_fulltext_caption) . '"';
		endif; ?>
		src="<?php echo htmlspecialchars($images->image_fulltext); ?>" alt="<?php echo htmlspecialchars($images->image_fulltext_alt); ?>" itemprop="image"/> </div>
<?php elseif(isset($attribs1->spfeatured_image) && $attribs1->spfeatured_image != '') : ?>
	<div class="entry-image featured-image <?php echo $custom_class; ?>">
		<div class="scale_animation">
			<img src="<?php echo JURI::root().$attribs1->spfeatured_image;?>" alt="">
		</div>
	</div>
<?php endif; ?>
