Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • fbsd Friend
    #192135

    Hello,
    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.


    1. Untitled
    Ninja Lead Moderator
    #511975

    You 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

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Ninja Lead 11 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum