Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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;
- $urls = json_decode($displayData->urls);
- $urlarray = array(
- array($urls->urla)
- );
- ?>
- <?php $images = json_decode($displayData->images); ?>
- <?php if (isset($images->image_intro) && !empty($images->image_intro)) : ?>
- <?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
- <div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image">
- <?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
- <?php if (!empty($urlarray[0][0])) : ?>
- <a href="<?php echo $urlarray[0][0]; ?>"><img
- <?php if ($images->image_intro_caption):
- echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_intro_caption) . '"';
- endif; ?>
- src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>" itemprop="thumbnailUrl"/></a>
- <?php else : ?>
- <a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($displayData->slug, $displayData->catid, $displayData->language)); ?>"><img
- <?php if ($images->image_intro_caption):
- echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_intro_caption) . '"';
- endif; ?>
- src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>" itemprop="thumbnailUrl"/></a>
- <?php endif; ?>
- <?php else : ?><img
- <?php if ($images->image_intro_caption):
- echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_intro_caption) . '"';
- endif; ?>
- src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>" itemprop="thumbnailUrl"/>
- <?php endif; ?>
- </div>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement