<?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
<div class="img-intro-<?php echo $images->float_intro ? $images->float_intro : $params->get('float_intro'); ?>">
<img
<?php if ($images->image_intro_caption):
echo 'class="caption"'.' title="' .$images->image_intro_caption .'"';
endif; ?>
<?php if (empty($images->float_intro)):?>
style="float:<?php echo $params->get('float_intro') ?>"
<?php else: ?>
style="float:<?php echo $images->float_intro ?>"
<?php endif; ?>
src="<?php echo $images->image_intro; ?>" alt="<?php echo $images->image_intro_alt; ?>"/>
</div>
<?php endif; ?>
<?php if ($params->get('show_title')) : ?>
<header>
<h1 itemprop="name">
<?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>" itemprop="url"><?php echo $this->escape($this->item->title); ?></a>
<?php else : ?>
<?php echo $this->escape($this->item->title); ?>
<?php endif; ?>
</h1>
<?php if (!$params->get('show_intro')) : ?>
<?php echo $this->item->event->afterDisplayTitle; ?>
<?php endif; ?>
<?php echo $this->item->event->beforeDisplayContent; ?>
</header>
<?php endif; ?>