Hello,
you need to replace all the code for the images by that:
<div class="col-md-8">
<?php
if (count($this->content->images) == 0)
$image_found = 0;
else
$image_found = 1;
if ($image_found == 0) {
?>
<div class="row detailDesc rowDesc">
<div class="col-md-12">
<?php if (!empty($this->fDisplay[3])) {
$strtitle = @JText::_($this->positions[2]->title);
if ($strtitle != "") echo "<h2 class='section-header'>".@$strtitle."</h2>";
foreach($this->fDisplay[3] as $field) {
$c = $this->field->showFieldValue($this->content,$field);
if (($c !== "")&&($c !== null)) {
$title = $this->field->showFieldTitle(@$this->content->catid,$field);
echo "<span class='f".$field->name."'>";
if ($title != "")
echo "<b>".htmlspecialchars($title)."</b>: ";
echo "$c<br/>";
echo "</span>";
}
}
}?>
</div>
</div>
<?php } else { ?>
<?php
switch($this->conf->image_display)
{
default:
$thumbnailcarousel = "";?>
<div id="adgallery">
<a class="btn btn-primary" id="fullscreen"><span class="glyphicon glyphicon-fullscreen"></span></a>
<div id="slider" class="flexslider">
<ul class="slides">
<?php
break;
}
foreach($this->content->images as $img)
{
$thumbnail = JURI_IMAGES_FOLDER."/".$img->thumbnail;
$image = JURI_IMAGES_FOLDER."/".$img->image;
switch($this->conf->image_display)
{
default:
?>
<li>
<span class="alignver"></span>
<img u="image" src="/<?php echo $image?>" />
</li>
<?php
$thumbnailcarousel .= '<li><img u="thumb" src="'.$thumbnail.'" /></li>';
break;
}
}
switch($this->conf->image_display)
{
default:
?>
</div>
<?php
if (count($this->content->images) > 1) {
?>
<div id="carousel" class="flexslider">
<ul class="slides">
<?php echo $thumbnailcarousel ?>
</div>
<?php
}
?>
</div>
<?php
break;
}
}
?>
</div>
Best regards.