Hi. I didn´t find solution for this. I use Latest K2 and Latest SIG PRO.
In item view i want to show pics what is in the gallery only but when the gallery is empty i want to show picture what i have downloaded to K2..
Here is code:
<?php if($this->item->params->get('itemImage') && !empty($this->item->image)): ?>
<!-- Item Image -->
<div class="itemImageBlock">
<?php if($this->item->params->get('itemImageGallery') && !empty($this->item->gallery)): ?>
<!-- Item image gallery -->
<a name="itemImageGalleryAnchor" id="itemImageGalleryAnchor"></a>
<div class="itemImageGallery">
<h3><?php echo JText::_('Image Gallery'); ?></h3>
<?php echo $this->item->gallery; ?>
</div>
<?php endif; ?>
<?php if($this->item->params->get('itemImage') && !empty($this->item->image)): ?>
<!-- Item Image -->
<div class="itemImageBlock">
<span class="itemImage">
<a class="modal" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('Klikkaa suuremmaksi'); ?>">
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo $this->item->image_caption; else echo $this->item->title; ?>" style="width:auto; height:auto;" />
</a>
</span>
</div>
<?php endif; ?>
It shows both now and of course only K2 picture when gallery is empty.. So how to make it that when there is pics in SIGPro gallery it doesn´t show K2 image..? :'(
Can anyone help me with this...? :'(