'com_phocagallery')); $layoutC = new FileLayout('comments', null, array('component' => 'com_phocagallery')); // SVG Definitions $d = array(); echo $layoutSVG->render($d); echo '
'; // Bootstrap Modal Popup - change dynamically the title in Bootstrap Modal Header (it is not reloaded when image is reloaded inside the iframe so we need to change it with help of JS - see // main.js pgFrameOnLoad() // pgFrameOnLoad() in iframe components/com_phocagallery/layouts/category_modal.php if ($this->t['detailwindow'] == 0) { echo ''; } if ($this->t['detailwindow'] == 7) { echo '
'; echo ''; echo ''; echo '
'; } switch ($this->t['detailwindow']) { case 4: case 7: case 9: case 10: case 11: $closeImage = $this->item->linkimage; $closeButton = ''; break; default: $closeButton = str_replace("%onclickclose%", $this->t['detailwindowclose'], $this->item->closebutton); $closeImage = ''.$this->item->linkimage.''; break; } $classSuffix = ' popup'; if ($this->t['detailwindow'] == 7) { $classSuffix = ' no-popup'; } /* echo '
' .'' .'' .'' .'' .'' . $closeButton //.'' .''; } */ if ((isset($this->itemnext[0]) && $this->itemnext[0]) || (isset($this->itemprev[0]) && $this->itemprev[0])) { $suffix = ''; if ($this->t['tmpl'] == 'component') { $suffix = 'tmpl=component'; } echo '
'; if(isset($this->itemprev[0]) && $this->itemprev[0]) { $p = $this->itemprev[0]; $linkPrev = Route::_(PhocaGalleryRoute::getImageRoute($p->id, $p->catid, $p->alias, $p->categoryalias, 'detail', $suffix)); echo ''; } if(isset($this->itemnext[0]) && $this->itemnext[0]) { $n = $this->itemnext[0]; $linkNext = Route::_(PhocaGalleryRoute::getImageRoute($n->id, $n->catid, $n->alias, $n->categoryalias, 'detail', $suffix)); echo ''; } echo '
'; echo '
'; } echo $this->loadTemplate('rating'); // Tags if ($this->t['displaying_tags_output'] != '') { echo '
'.$this->t['displaying_tags_output'].'
'; } if ($this->t['display_comment_img'] == 1 || $this->t['display_comment_img'] == 3 || ($this->t['display_comment_img'] == 2 && $this->t['tmpl'] == 'component')) { $d = array(); $d['t'] = $this->t; $d['form']['task'] = 'comment'; $d['form']['view'] = 'detail'; $d['form']['controller'] = 'detail'; $d['form']['tab'] = ''; $d['form']['id'] = $this->item->id; $d['form']['catid'] = $this->item->catid; $d['form']['itemid'] = $this->itemId; echo $layoutC->render($d); /*if ($this->t['externalcommentsystem'] == 1) { if (ComponentHelper::isEnabled('com_jcomments', true)) { include_once(JPATH_BASE.'/components/com_jcomments/jcomments.php'); echo JComments::showComments($this->item->id, 'com_phocagallery_images', Text::_('COM_PHOCAGALLERY_IMAGE') .' '. $this->item->title); } } else if ($this->t['externalcommentsystem'] == 2) { echo $this->loadTemplate('comments-fb'); }*/ echo PhocaGalleryUtils::getExtInfo(); } echo ''; ?>
' .'
' .$closeImage; */ echo '
'.$closeImage.'
'; $titleDesc = ''; if ($this->t['display_title_description'] == 1) { $titleDesc .= $this->item->title; if ($this->item->description != '' && $titleDesc != '') { $titleDesc .= ' - '; } } // Lightbox Description if ($this->t['displaydescriptiondetail'] == 2 && (!empty($this->item->description) || !empty($titleDesc))){ echo '
' .(HTMLHelper::_('content.prepare', $titleDesc . $this->item->description, 'com_phocagallery.item')).'
'; } /* if ($this->t['detailbuttons'] == 1){ echo '
' .'
'.$this->item->prevbutton.''.$this->item->slideshowbutton.''.str_replace("%onclickreload%", $this->t['detailwindowreload'], $this->item->reloadbutton).''.$this->item->nextbutton.'