Hi,
I have a problem with k2 and the item.php output. I have the up to date versions of k2 and simple image gallery pro installed.
the item.php source for the simple gallery looks like this:
<?php if($this->item->params->get('itemImageGallery') && !empty($this->item->gallery)): ?> <!-- Item image gallery --> <a name="itemImageGalleryAnchor" id="itemImageGalleryAnchor"></a> <h2><?php echo JText::_('Image Gallery'); ?></h2> <div class="itemImageGallery"> <?php echo $this->item->gallery; ?> </div> <?php endif; ?>
The output for an item with NO gallery uploaded is still:
<a id="itemImageGalleryAnchor" name="itemImageGalleryAnchor"> </a>
<h2>Title</h2>
<div class="itemImageGallery"> </div>
how can I remove the h2 title and the empty itemImageGallery container when there is no gallery uploaded for a specific item? The !empty function obviously does not work here I think.
I have a problem with k2 and the item.php output. I have the up to date versions of k2 and simple image gallery pro installed.
the item.php source for the simple gallery looks like this:
<?php if($this->item->params->get('itemImageGallery') && !empty($this->item->gallery)): ?> <!-- Item image gallery --> <a name="itemImageGalleryAnchor" id="itemImageGalleryAnchor"></a> <h2><?php echo JText::_('Image Gallery'); ?></h2> <div class="itemImageGallery"> <?php echo $this->item->gallery; ?> </div> <?php endif; ?>
The output for an item with NO gallery uploaded is still:
<a id="itemImageGalleryAnchor" name="itemImageGalleryAnchor"> </a>
<h2>Title</h2>
<div class="itemImageGallery"> </div>
how can I remove the h2 title and the empty itemImageGallery container when there is no gallery uploaded for a specific item? The !empty function obviously does not work here I think.