-
AuthorPosts
-
fbsd Friend
fbsd
- Join date:
- February 2013
- Posts:
- 20
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
November 10, 2013 at 2:01 pm #192135Hello,
Is it possible to display image gallery on behind text when enter to item. In red border i will mark where is wont to put gallery.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
November 12, 2013 at 12:21 pm #511975You must change to override the items of K2 component on JA Lens Template
Open templates/ja_lens/html/com_k2/ja_lens/item.php file
and move code script as below
<?php if($this->item->params->get('itemImage') && !empty($this->item->image)): ?>
<!-- Item Image -->
<div class="itemImageBlock">
<span class="itemImage">
<?php
$tplComponent = JRequest::getVar('tmpl', '') == 'component';if(!$tplComponent){
?>
<a class="modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>">
<?php
}
?>
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
<?php
if(!$tplComponent){
?>
</a>
<?php
}
?>
</span><?php if($this->item->params->get('itemImageMainCaption') && !empty($this->item->image_caption)): ?>
<!-- Image caption -->
<span class="itemImageCaption"><?php echo $this->item->image_caption; ?></span>
<?php endif; ?><?php if($this->item->params->get('itemImageMainCredits') && !empty($this->item->image_credits)): ?>
<!-- Image credits -->
<span class="itemImageCredits"><?php echo $this->item->image_credits; ?></span>
<?php endif; ?><div class="clr"></div>
</div>
<?php endif; ?>
and paste it next to :
<!-- Plugins: AfterDisplayTitle -->
<?php echo $this->item->event->AfterDisplayTitle; ?>
Once done clear cache from Admin area
AuthorPostsViewing 2 posts - 1 through 2 (of 2 total)This topic contains 2 replies, has 2 voices, and was last updated by Ninja Lead 10 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Item image gallery
Viewing 2 posts - 1 through 2 (of 2 total)