t['backbutton'] != '' && $this->t['enable_multibox_iframe'] != 1) { echo $this->t['backbutton']; } echo '
'; if (($this->t['detailwindow'] == 7 || $this->t['display_comment_nopup'] == 1) && $this->t['enable_multibox_iframe'] != 1) { echo '
'.$this->item->linkimage.'
'; } 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) { $uri = \Joomla\CMS\Uri\Uri::getInstance(); $getParamsArray = explode(',', 'start,limitstart,template,fb_comment_id,tmpl'); if (!empty($getParamsArray) ) { foreach($getParamsArray as $key => $value) { $uri->delVar($value); } } echo '
'; if ($this->t['fb_comment_app_id'] == '') { echo Text::_('COM_PHOCAGALLERY_ERROR_FB_APP_ID_EMPTY'); } else { $cCount = ''; if ((int)$this->t['fb_comment_count'] > 0) { $cCount = 'numposts="'.$this->t['fb_comment_count'].'"'; } ?> width="t['fb_comment_width'] ?>">
'; } } else { if (!empty($this->t['commentitem'])){ //$userImage = JHtml::_( 'image', 'media/com_phocagallery/images/icon-user.png', ''); $userImage = PhocaGalleryRenderFront::renderIcon('user', 'media/com_phocagallery/images/icon-user.png', ''); $smileys = PhocaGalleryComment::getSmileys(); foreach ($this->t['commentitem'] as $itemValue) { $date = HTMLHelper::_('date', $itemValue->date, Text::_('DATE_FORMAT_LC2') ); $comment = $itemValue->comment; $comment = PhocaGalleryComment::bbCodeReplace($comment); foreach ($smileys as $smileyKey => $smileyValue) { $comment = str_replace($smileyKey, HTMLHelper::_( 'image', 'media/com_phocagallery/images/'.$smileyValue .'.png',''), $comment); } echo '

'.$userImage.' '.$itemValue->name.'

' .'

'.PhocaGalleryText::wordDelete($itemValue->title, 50, '...').'

' .'

'.$comment.'

' .'

'.$date.'

'; } } echo '

'.Text::_('COM_PHOCAGALLERY_ADD_COMMENT').'

'; if ($this->t['already_commented']) { echo '

'.Text::_('COM_PHOCAGALLERY_COMMENT_ALREADY_SUBMITTED').'

'; } else if ($this->t['not_registered']) { echo '

'.Text::_('COM_PHOCAGALLERY_COMMENT_ONLY_REGISTERED_LOGGED_SUBMIT_COMMENT').'

'; } else { echo '
' .'' .'' .'' .'' .''; echo '' .'' .'' .''; echo '' .'' .'' .''; echo '' .'' .'' .''; echo '' .'' .'' .''; echo '' .'' .'' .''; echo '
'.Text::_('COM_PHOCAGALLERY_NAME').':'.$this->t['name'].'
'.Text::_('COM_PHOCAGALLERY_TITLE').':
 ' .'' . PhocaGalleryRenderFront::renderIcon('bold', $this->t['icon_path'].'icon-b.png', Text::_('COM_PHOCAGALLERY_BOLD')) .' ' .'' . PhocaGalleryRenderFront::renderIcon('italic', $this->t['icon_path'].'icon-i.png', Text::_('COM_PHOCAGALLERY_ITALIC')) .' ' .'' . PhocaGalleryRenderFront::renderIcon('underline', $this->t['icon_path'].'icon-u.png', Text::_('COM_PHOCAGALLERY_UNDERLINE')) .'  ' .'' . PhocaGalleryRenderFront::renderIcon('smile', $this->t['icon_path'].'icon-s-smile.png', Text::_('COM_PHOCAGALLERY_SMILE')) .' ' .'' . PhocaGalleryRenderFront::renderIcon('lol', $this->t['icon_path'].'icon-s-lol.png', Text::_('COM_PHOCAGALLERY_LOL')) .' ' .'' . PhocaGalleryRenderFront::renderIcon('sad', $this->t['icon_path'].'icon-s-sad.png', Text::_('COM_PHOCAGALLERY_SAD')) .' ' .'' . PhocaGalleryRenderFront::renderIcon('confused', $this->t['icon_path'].'icon-s-confused.png', Text::_('COM_PHOCAGALLERY_CONFUSED')) .' ' .'' . PhocaGalleryRenderFront::renderIcon('wink', $this->t['icon_path'].'icon-s-wink.png', Text::_('COM_PHOCAGALLERY_WINK')) .' ' .'
 ' .'' .'
 ' . Text::_('COM_PHOCAGALLERY_CHARACTERS_WRITTEN').' ' . Text::_('COM_PHOCAGALLERY_AND_LEFT_FOR_COMMENT').' ' .'
 ' .'' .'
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo HTMLHelper::_( 'form.token' ); echo '
'; } } echo '
'; if ($this->t['detailwindow'] == 7 || $this->t['display_comment_nopup'] == 1) { echo PhocaGalleryUtils::getExtInfo(); } ?>