В файле default.php расположенному в components/com_joomgallery/views/detail/tmpl
Ищем строчку:
<img src="<?php echo $this->image->img_src; ?>" class="jg_photo" id="jg_photo_big" width="<?php echo $this->image->width; ?>" height="<?php echo $this->image->height; ?>" alt="<?php echo $this->image->imgtitle;?>" <?php echo $this->extra; ?>/>
Заменяем на:
<img src="<?php echo $this->image->img_src; ?>" class="jg_photo" id="jg_photo_big" width="<?php echo $this->image->width; ?>" height="<?php echo $this->image->height; ?>" alt="<?php echo $this->image->imgtitle;?>" <?php echo $this->extra; ?> usemap="#Navigation"/>
И где-нибудь в конце файла у меня это после
if(!empty($this->slider)): ?>
</div>
<?php endif; ?>
</div>
пишем следующее:
<?php
$width = ($this->image->img_width) /2;
$height = $this->image->img_height;
$width1 = ($this->image->img_width);
?>
<p><map name="Navigation">
<?php if($this->params->get('show_next_link')): ?>
<?php if($this->_config->get('jg_cursor_navigation') == 1): ?>
<?php endif;?>
<area shape="rect" coords="<?php echo "$width,0,$width1,$height" ?>" href="<?php echo $this->pagination['next']['link']; ?>" alt="Пердыдущая фотография" onFocus = "this.blur()">
<?php endif;?>
<?php if($this->params->get('show_previous_link')): ?>
<?php if($this->_config->get('jg_cursor_navigation') == 1): ?>
<?php endif;?>
<area shape="rect" coords="<?php echo "0,0,$width,$height" ?>" href="<?php echo $this->pagination['previous']['link']; ?>" alt="следующая фотография" onFocus = "this.blur()">
<?php endif;?>
</map></p>
И теперь клик по правой части фото переходим к следующему, а по левой к предыдущему.
Думаю будет не актуально если включены всплывающие окна, хотя зону ссылки можно и справа и слева сузить через переменную $width, чтобы оставить место в центре для клика для открытия всплывающего окна.