primo commit
This commit is contained in:
167
components/com_phocagallery/views/detail/tmpl/default.php
Normal file
167
components/com_phocagallery/views/detail/tmpl/default.php
Normal file
@ -0,0 +1,167 @@
|
||||
<?php
|
||||
/*
|
||||
* @package Joomla
|
||||
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
|
||||
*
|
||||
* @component Phoca Gallery
|
||||
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Layout\FileLayout;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Component\ComponentHelper;
|
||||
|
||||
$layoutSVG = new FileLayout('svg_definitions', null, array('component' => 'com_phocagallery'));
|
||||
$layoutC = new FileLayout('comments', null, array('component' => 'com_phocagallery'));
|
||||
|
||||
// SVG Definitions
|
||||
$d = array();
|
||||
echo $layoutSVG->render($d);
|
||||
|
||||
echo '<div id="phocagallery" class="pg-detail-item-box'.$this->params->get( 'pageclass_sfx' ).'">';
|
||||
|
||||
// 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 '<div id="pgDetailTitle" data-title="' . $this->item->title . '" style="display:none"></div>';
|
||||
}
|
||||
|
||||
if ($this->t['detailwindow'] == 7) {
|
||||
echo '<div class="pg-detail-top-box-back-title">';
|
||||
echo '<a href="'.Route::_('index.php?option=com_phocagallery&view=category&id='. $this->item->catslug.'&Itemid='. $this->itemId).'"';
|
||||
echo ' title="'.Text::_( 'COM_PHOCAGALLERY_BACK_TO_CATEGORY' ).'">';
|
||||
echo '<svg class="ph-si ph-si-detail-top-back"><use xlink:href="#ph-si-back"></use></svg>';
|
||||
echo '</a></div>';
|
||||
}
|
||||
|
||||
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 = '<a href="#" onclick="'.$this->t['detailwindowclose'].'" style="margin:auto;padding:0">'.$this->item->linkimage.'</a>';
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
$classSuffix = ' popup';
|
||||
if ($this->t['detailwindow'] == 7) {
|
||||
$classSuffix = ' no-popup';
|
||||
}
|
||||
/*
|
||||
echo '<div class="ph-mc" style="padding-top:10px">'
|
||||
.'<table border="0" class="ph-w100 ph-mc" cellpadding="0" cellspacing="0">'
|
||||
.'<tr>'
|
||||
.'<td colspan="6" align="center" valign="middle"'
|
||||
.' style="'.$iH.'vertical-align: middle;" >'
|
||||
.'<div id="phocaGalleryImageBox" style="'.$iW.'margin: auto;padding: 0;">'
|
||||
.$closeImage;
|
||||
*/
|
||||
echo '<div class="pg-detail-item-image-box">'.$closeImage.'</div>';
|
||||
|
||||
|
||||
|
||||
$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 '<div class="pg-detail-item-desc-box">' .(HTMLHelper::_('content.prepare', $titleDesc . $this->item->description, 'com_phocagallery.item')).'</div>';
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
if ($this->t['detailbuttons'] == 1){
|
||||
echo '<div class="pg-detail-item-button-box">'
|
||||
.'<td align="left" width="30%" style="padding-left:48px">'.$this->item->prevbutton.'</td>'
|
||||
.'<td align="center">'.$this->item->slideshowbutton.'</td>'
|
||||
.'<td align="center">'.str_replace("%onclickreload%", $this->t['detailwindowreload'], $this->item->reloadbutton).'</td>'
|
||||
. $closeButton
|
||||
//.'<td align="right" width="30%" style="padding-right:48px">'.$this->item->nextbutton.'</td>'
|
||||
.'</div>';
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
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 '<div class="pg-detail-nav-box">';
|
||||
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 '<div class="ph-left"><a href="'.$linkPrev.'" class="btn btn-primary ph-image-navigation" role="button"><svg class="ph-si ph-si-prev-btn"><use xlink:href="#ph-si-prev"></use></svg> '.Text::_('COM_PHOCAGALLERY_PREVIOUS').'</a></div>';
|
||||
}
|
||||
|
||||
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 '<div class="ph-right"><a href="'.$linkNext.'" class="btn btn-primary ph-image-navigation" role="button">'.Text::_('COM_PHOCAGALLERY_NEXT').' <svg class="ph-si ph-si-next-btn"><use xlink:href="#ph-si-next"></use></svg></a></div>';
|
||||
}
|
||||
|
||||
echo '<div class="ph-cb"></div>';
|
||||
echo '</div>';
|
||||
|
||||
}
|
||||
|
||||
echo $this->loadTemplate('rating');
|
||||
|
||||
// Tags
|
||||
if ($this->t['displaying_tags_output'] != '') {
|
||||
echo '<div class="pg-detail-item-tag-box">'.$this->t['displaying_tags_output'].'</div>';
|
||||
}
|
||||
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 '</div>';
|
||||
?>
|
||||
@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/*
|
||||
* @package Joomla
|
||||
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
|
||||
*
|
||||
* @component Phoca Gallery
|
||||
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
|
||||
*/
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
?><div id="phocagallery-comments"><?php
|
||||
//echo '<div style="font-size:1px;height:1px;margin:0px;padding:0px;"> </div>';//because of IE bug
|
||||
|
||||
$uri = \Joomla\CMS\Uri\Uri::getInstance();
|
||||
$getParamsArray = explode(',', 'start,limitstart,template,fb_comment_id');
|
||||
if (!empty($getParamsArray) ) {
|
||||
foreach($getParamsArray as $key => $value) {
|
||||
$uri->delVar($value);
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->t['fb_comment_app_id'] == '') {
|
||||
echo JText::_('COM_PHOCAGALLERY_ERROR_FB_APP_ID_EMPTY');
|
||||
} else {
|
||||
|
||||
$cCount = '';
|
||||
if ((int)$this->t['fb_comment_count'] > 0) {
|
||||
$cCount = 'numposts="'.$this->t['fb_comment_count'].'"';
|
||||
}
|
||||
|
||||
?><fb:comments href="<?php echo $uri->toString(); ?>" simple="1" <?php echo $cCount;?> width="<?php echo (int)$this->t['fb_comment_width'] ?>"></fb:comments>
|
||||
<div id="fb-root"></div>
|
||||
<script>
|
||||
window.fbAsyncInit = function() {
|
||||
FB.init({
|
||||
appId: '<?php echo $this->t['fb_comment_app_id'] ?>',
|
||||
status: true,
|
||||
cookie: true,
|
||||
xfbml: true
|
||||
});
|
||||
};
|
||||
(function() {
|
||||
var e = document.createElement('script');
|
||||
e.type = 'text/javascript';
|
||||
e.src = document.location.protocol + '//connect.facebook.net/<?php echo $this->t['fb_comment_lang']; ?>/all.js';
|
||||
e.async = true;
|
||||
document.getElementById('fb-root').appendChild(e);
|
||||
}());
|
||||
</script>
|
||||
<?php } ?>
|
||||
</div>
|
||||
@ -0,0 +1,76 @@
|
||||
<?php
|
||||
/*
|
||||
* @package Joomla
|
||||
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
|
||||
*
|
||||
* @component Phoca Gallery
|
||||
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
|
||||
$title = $this->item->filename;
|
||||
$imgLink = HTMLHelper::_( 'image', 'images/phocagallery/'. $this->item->filenameno, '');
|
||||
|
||||
$extImage = PhocaGalleryImage::isExtImage($this->item->extid);
|
||||
if ($extImage) {
|
||||
$title = $this->item->title;
|
||||
$imgLink = HTMLHelper::_( 'image', $this->item->exto, '');
|
||||
}
|
||||
|
||||
if (isset($this->t['backbutton']) && $this->t['backbutton'] != '') {
|
||||
echo $this->t['backbutton'];
|
||||
|
||||
echo '<div id="download-box"><div style="overflow:scroll;width:'.$this->t['boxlargewidth'].'px;height:'.$this->t['boxlargeheight'].'px;margin:0px;padding:0px;">' . $imgLink . '</div>';
|
||||
echo '<div id="download-box"><div style="overflow:scroll;width:100%;height:'.$this->t['boxlargeheight'].'px;margin:0px;padding:0px;">' . $imgLink . '</div>';
|
||||
echo '<div id="download-msg-nopopup"><div>'
|
||||
.'<table width="360">'
|
||||
.'<tr><td align="left">' . Text::_('COM_PHOCAGALLERY_IMAGE_NAME') . ': </td><td>'.$title.'</td></tr>'
|
||||
.'<tr><td align="left">' . Text::_('COM_PHOCAGALLERY_IMAGE_FORMAT') . ': </td><td>'.$this->item->imagesize.'</td></tr>'
|
||||
.'<tr><td align="left">' . Text::_('COM_PHOCAGALLERY_IMAGE_SIZE') . ': </td><td>'.$this->item->filesize.'</td></tr>';
|
||||
|
||||
echo '<tr><td align="left"><a title="'. Text::_('COM_PHOCAGALLERY_IMAGE_DOWNLOAD').'" href="'. Route::_('index.php?option=com_phocagallery&view=detail&catid='.$this->item->catslug.'&id='.$this->item->slug.'&phocadownload=2'.'&Itemid='. $this->itemId ).'">'.Text::_('COM_PHOCAGALLERY_IMAGE_DOWNLOAD').'</a></td><td> </td>';
|
||||
|
||||
echo '</table>';
|
||||
echo '</div></div></div>';
|
||||
|
||||
|
||||
} else {
|
||||
|
||||
//echo '<div id="download-box"><div style="overflow:scroll;width:'.$this->t['boxlargewidth'].'px;height:'.$this->t['boxlargeheight'].'px;margin:0px;padding:0px;">' . $imgLink. '</div>';
|
||||
echo '<div id="download-box"><div style="overflow:scroll;width: 100%;height:'.$this->t['boxlargeheight'].'px;margin:0px;padding:0px;">' . $imgLink. '</div>';
|
||||
echo '<div id="download-msg"><div>'
|
||||
.'<table width="360">'
|
||||
.'<tr><td align="left">' . Text::_('COM_PHOCAGALLERY_IMAGE_NAME') . ': </td><td>'.$title.'</td></tr>'
|
||||
.'<tr><td align="left">' . Text::_('COM_PHOCAGALLERY_IMAGE_FORMAT') . ': </td><td>'.$this->item->imagesize.'</td></tr>'
|
||||
.'<tr><td align="left">' . Text::_('COM_PHOCAGALLERY_IMAGE_SIZE') . ': </td><td>'.$this->item->filesize.'</td></tr>'
|
||||
.'<tr><td colspan="2" align="left"><small>' . Text::_('COM_PHOCAGALLERY_DOWNLOAD_IMAGE') . '</small></td></tr>';
|
||||
|
||||
switch($this->t['detailwindow']) {
|
||||
case 3:
|
||||
case 4:
|
||||
case 5:
|
||||
case 7:
|
||||
case 9:
|
||||
case 10:
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
//echo '<tr><td> </td><td align="right">'.str_replace("%onclickclose%", $this->t['detailwindowclose'], $this->item->closetext).'</td></tr>';
|
||||
break;
|
||||
}
|
||||
|
||||
echo '</table>';
|
||||
echo '</div></div></div>';
|
||||
}
|
||||
echo '<div id="phocaGallerySlideshowC" style="display:none"></div>';//because of loaded slideshow js
|
||||
if ($this->t['detailwindow'] == 7) {
|
||||
echo PhocaGalleryUtils::getExtInfo();
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,193 @@
|
||||
<?php
|
||||
/*
|
||||
* @package Joomla
|
||||
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
|
||||
*
|
||||
* @component Phoca Gallery
|
||||
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
|
||||
*/
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
echo '<div id="phocagallery" class="pg-detail-view-multibox'.$this->params->get( 'pageclass_sfx' ).'">';
|
||||
if ($this->t['backbutton'] != '') {
|
||||
echo $this->t['backbutton'];
|
||||
echo '<p> </p>';
|
||||
}
|
||||
|
||||
// Min Width
|
||||
$wRightO = $wLeftO = $wLeftOIE = '';
|
||||
if ($this->t['multibox_fixed_cols'] == 1) {
|
||||
$wLeft = $this->t['large_image_width'];
|
||||
$wRight = (int)$this->t['multibox_width'] - (int)$wLeft - 20;//margin 4 x 5px
|
||||
$wRightO = 'min-width: '.$wRight.'px';
|
||||
$wLeftO = 'min-width: '.$wLeft.'px';
|
||||
$wLeftOIE = 'width: '.$wLeft.'px';
|
||||
|
||||
// IE7
|
||||
|
||||
$document = JFactory::getDocument();
|
||||
$document->addCustomTag("<!--[if lt IE 8 ]>\n<style type=\"text/css\"> \n"
|
||||
." #phocagallery.pg-detail-view-multibox table tr td.pg-multibox-lefttd {"
|
||||
." ".$wLeftOIE."; "
|
||||
."} \n"
|
||||
." </style>\n<![endif]-->");
|
||||
}
|
||||
|
||||
|
||||
// - - - - -
|
||||
// LEFT
|
||||
// - - - - -
|
||||
echo '<table id="pg-multibox-table" cellpadding="0" cellspacing="0" border="0" style="height: '.$this->t['multibox_height'].'px;">'. "\n";
|
||||
echo '<tr>'. "\n";
|
||||
|
||||
echo '<td valign="middle" align="center" class="pg-multibox-lefttd pg-dv-multibox-left">'. "\n";
|
||||
|
||||
$over = 'onmouseover="document.getElementById(\'phocagallerymultiboxnext\').style.display = \'block\';document.getElementById(\'phocagallerymultiboxprev\').style.display = \'block\';" ';
|
||||
$out = 'onmouseout="document.getElementById(\'phocagallerymultiboxnext\').style.display = \'none\';document.getElementById(\'phocagallerymultiboxprev\').style.display = \'none\';"';
|
||||
|
||||
echo '<div class="pg-multibox-left pg-dv-multibox-left" '.$over.$out.' style="'.$wLeftO.'">';
|
||||
|
||||
if ($this->item->download == 1) {
|
||||
echo $this->loadTemplate('download');
|
||||
} else {
|
||||
|
||||
if ($this->item->videocode != '') {
|
||||
$this->item->linkimage = $this->item->videocode;
|
||||
}
|
||||
|
||||
if ($this->item->nextbuttonhref != '') {
|
||||
echo '<a href="'.$this->item->nextbuttonhref.'">'.$this->item->linkimage.'</a>';
|
||||
} else {
|
||||
echo '<span >'.$this->item->linkimage.'</span>';
|
||||
}
|
||||
|
||||
echo $this->item->prevbutton;
|
||||
echo $this->item->nextbutton;
|
||||
}
|
||||
echo '</div>'. "\n";
|
||||
echo '</td>'. "\n";
|
||||
|
||||
// - - - - -
|
||||
// RIGHT
|
||||
// - - - - -
|
||||
echo '<td valign="top" class="pg-multibox-righttd pg-dv-multibox-right">'. "\n";
|
||||
echo '<div class="pg-multibox-right pg-dv-multibox-right" style="height: '.$this->t['multibox_height_overflow'].'px;'.$wRightO.'">'. "\n";
|
||||
|
||||
// Title
|
||||
if ($this->t['mb_title']) {
|
||||
echo '<div class="pg-multibox-title">'.$this->item->title.'</div>'. "\n";
|
||||
}
|
||||
|
||||
// Description
|
||||
if ($this->t['mb_desc']) {
|
||||
|
||||
//echo '<div class="pg-multibox-desc">'.$this->item->description.'</div>'. "\n";
|
||||
echo '<div class="pg-multibox-desc">'.Joomla\CMS\HTML\HTMLHelper::_('content.prepare', $this->item->description, 'com_phocagallery.item').'</div>'. "\n";
|
||||
}
|
||||
|
||||
// Uploaded By
|
||||
if ($this->t['mb_uploaded_by']) {
|
||||
echo '<div class="pg-multibox-user" >' . JText::_('COM_PHOCAGALLERY_UPLOADED_BY') . '</div>';
|
||||
if ($this->t['useravatarimg'] != '') {
|
||||
echo '<div class="pg-multibox-avatar">'.$this->t['useravatarimg'].'</div>';
|
||||
}
|
||||
echo '<div class="pg-multibox-username" style="padding-top: '.$this->t['useravatarmiddle'].'px;">'.$this->item->usernameno.'</div>';
|
||||
echo '<div style="clear:both"></div>';
|
||||
}
|
||||
|
||||
// Rating
|
||||
if ($this->t['mb_rating']) {
|
||||
echo "\n";
|
||||
echo $this->loadTemplate('rating');
|
||||
echo "\n";
|
||||
}
|
||||
|
||||
//Thumbnails
|
||||
if ($this->t['mb_thumbs']) {
|
||||
|
||||
|
||||
if (!empty($this->t['mb_thumbs_data'])) {
|
||||
echo '<div class="pg-multibox-thumbs-box" style="width: '.(int)$this->t['multibox_thubms_box_width'].'px;">';
|
||||
|
||||
foreach ($this->t['mb_thumbs_data'] as $k => $v) {
|
||||
$extImage = PhocaGalleryImage::isExtImage($v->extid);
|
||||
|
||||
//$altValue = PhocaGalleryRenderFront::getAltValue($this->t['altvalue'], $v->title, $v->description, $v->metadesc);
|
||||
$altValue = '';//Save resources - not necessary
|
||||
if ($extImage) {
|
||||
$img = Joomla\CMS\HTML\HTMLHelper::_( 'image', $v->exts, $altValue);
|
||||
} else {
|
||||
$linkthumbnailpath = PhocaGalleryImageFront::displayCategoryImageOrNoImage($v->filename, 'small');
|
||||
$img = Joomla\CMS\HTML\HTMLHelper::_( 'image', $linkthumbnailpath, $altValue);
|
||||
}
|
||||
|
||||
if ($this->t['detailwindow'] == 7) {
|
||||
$tCom = '';
|
||||
} else {
|
||||
$tCom = '&tmpl=component';
|
||||
}
|
||||
|
||||
echo '<div class="pg-multibox-thumbs-item"><a href="'.JRoute::_('index.php?option=com_phocagallery&view=detail&catid='. $v->catslug.'&id='.$v->slug.$tCom.'&Itemid='. $this->itemId).'">';
|
||||
echo $img;
|
||||
echo '</a></div>';
|
||||
|
||||
}
|
||||
echo '<div style="clear:both"></div>';
|
||||
echo '</div>';
|
||||
}
|
||||
}
|
||||
|
||||
// Map
|
||||
if ($this->t['mb_maps']) {
|
||||
$src = JRoute::_('index.php?option=com_phocagallery&view=map&catid='.$this->item->catid
|
||||
.'&id='.$this->item->id.'&mapwidth='
|
||||
.$this->t['multibox_map_width'].'&mapheight='
|
||||
.$this->t['multibox_map_height'].'&tmpl=component&Itemid='
|
||||
.$this->itemId );
|
||||
$this->t['multibox_map_width'] = $this->t['multibox_map_width'] + 20;
|
||||
$this->t['multibox_map_height'] = $this->t['multibox_map_height'] + 10;
|
||||
echo '<iframe src="'.$src.'" width="'
|
||||
.$this->t['multibox_map_width'].'" height="'
|
||||
.$this->t['multibox_map_height'].'" frameborder="0" style="border:none; overflow:hidden;padding:0px;margin:0px;" name="pgmap"></iframe>'. "\n";
|
||||
}
|
||||
|
||||
// Tags
|
||||
if ($this->t['mb_tags'] && $this->t['displaying_tags_output'] != '') {
|
||||
echo '<div class="pg-multibox-tags-box">';
|
||||
echo '<div class="pg-multibox-tags" >' . JText::_('COM_PHOCAGALLERY_TAGS') . '</div>';
|
||||
echo '<div class="pg-detail-tags-multibox">'.$this->t['displaying_tags_output'].'</div>';
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
// Comments
|
||||
if ($this->t['mb_comments']) {
|
||||
echo '<div class="pg-multibox-comments">';
|
||||
if ((int)$this->t['externalcommentsystem'] == 2) {
|
||||
echo $this->loadTemplate('comments-fb');
|
||||
} else if ((int)$this->t['externalcommentsystem'] == 1) {
|
||||
if (JComponentHelper::isEnabled('com_jcomments', true)) {
|
||||
include_once(JPATH_BASE.'/components/com_jcomments/jcomments.php');
|
||||
echo JComments::showComments($this->item->id, 'com_phocagallery_images', JText::_('COM_PHOCAGALLERY_IMAGE') .' '. $this->item->title);
|
||||
}
|
||||
} else {
|
||||
$src = JRoute::_('index.php?option=com_phocagallery&view=comment&catid='.$this->item->catid.'&id='.$this->item->id.'&tmpl=component&commentsi=1&Itemid='. $this->itemId );
|
||||
echo '<iframe src="'.$src.'" width="'.$this->t['multibox_comments_width'].'" height="'.$this->t['multibox_comments_height'].'" frameborder="0" class="pg-multibox-comments-iframe" name="pgcomment"></iframe>'. "\n";
|
||||
}
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
|
||||
echo '</div>'. "\n";
|
||||
echo '</td>'. "\n";
|
||||
|
||||
echo '</tr>'. "\n";
|
||||
echo '</table>'. "\n";
|
||||
|
||||
echo '</div>'. "\n";
|
||||
|
||||
if ($this->t['detailwindow'] == 7) {
|
||||
echo '<p> </p>';
|
||||
echo PhocaGalleryUtils::getExtInfo();
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/*
|
||||
* @package Joomla
|
||||
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
|
||||
*
|
||||
* @component Phoca Gallery
|
||||
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
|
||||
*/
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
$app = Factory::getApplication();
|
||||
$amp = PhocaGalleryUtils::setQuestionmarkOrAmp($this->t['action']);
|
||||
|
||||
//if ((int)$this->t['display_rating_img'] == 1 || $this->t['mb_rating']) {
|
||||
if ((int)$this->t['display_rating_img'] == 1) {
|
||||
// Leave message for already voted images
|
||||
$vote = $app->input->get('vote', 0, 'int');;
|
||||
if ($vote == 1) {
|
||||
$voteMsg = Text::_('COM_PHOCAGALLERY_ALREADY_RATED_IMG_THANKS');
|
||||
} else {
|
||||
$voteMsg = Text::_('COM_PHOCAGALLERY_ALREADY_RATE_IMG');
|
||||
}
|
||||
|
||||
echo '<table style="text-align:left" border="0">'
|
||||
.'<tr>'
|
||||
.'<td><strong>' . Text::_('COM_PHOCAGALLERY_RATING'). '</strong>: ' . $this->t['votesaverageimg'] .' / '.$this->t['votescountimg'] . ' ' . Text::_($this->t['votestextimg']). ' </td>';
|
||||
|
||||
if ($this->t['alreay_ratedimg']) {
|
||||
echo '<td style="text-align:left"><ul class="star-rating">'
|
||||
.'<li class="current-rating" style="width:'.$this->t['voteswidthimg'].'px"></li>'
|
||||
.'<li><span class="star1"></span></li>';
|
||||
|
||||
for ($i = 2;$i < 6;$i++) {
|
||||
echo '<li><span class="stars'.$i.'"></span></li>';
|
||||
}
|
||||
echo '</ul></td>';
|
||||
|
||||
if ($this->t['enable_multibox'] == 1) {
|
||||
echo '<td></td></tr>';
|
||||
echo '<tr><td style="text-align:left" colspan="4" class="pg-rating-msg">'.$voteMsg.'</td></tr>';
|
||||
} else {
|
||||
echo '<td style="text-align:left" colspan="4" class="pg-rating-msg"> '.$voteMsg.'</td></tr>';
|
||||
}
|
||||
|
||||
|
||||
} else if ($this->t['not_registered_img']) {
|
||||
|
||||
echo '<td style="text-align:left"><ul class="star-rating">'
|
||||
.'<li class="current-rating" style="width:'.$this->t['voteswidthimg'].'px"></li>'
|
||||
.'<li><span class="star1"></span></li>';
|
||||
|
||||
for ($i = 2;$i < 6;$i++) {
|
||||
echo '<li><span class="stars'.$i.'"></span></li>';
|
||||
}
|
||||
echo '</ul></td>';
|
||||
|
||||
if ($this->t['enable_multibox'] == 1) {
|
||||
echo '<td></td></tr>';
|
||||
echo '<tr><td style="text-align:left" colspan="4" class="pg-rating-msg">'.Text::_('COM_PHOCAGALLERY_COMMENT_ONLY_REGISTERED_LOGGED_RATE_IMAGE').'</td></tr>';
|
||||
} else {
|
||||
echo '<td style="text-align:left" colspan="4" class="pg-rating-msg"> ' . Text::_('COM_PHOCAGALLERY_COMMENT_ONLY_REGISTERED_LOGGED_RATE_IMAGE').'</td></tr>';
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
|
||||
echo '<td style="text-align:left"><ul class="star-rating">'
|
||||
.'<li class="current-rating" style="width:'.$this->t['voteswidthimg'].'px"></li>'
|
||||
//.'<li><a href="'.$this->t['action'].$amp.'controller=detail&task=rate&rating=1" title="1 '. JText::_('COM_PHOCAGALLERY_STAR_OUT_OF').' 5" class="star1">1</a></li>';
|
||||
|
||||
.'<li><a href="'.htmlspecialchars($this->t['action']).$amp.'controller=detail&task=rate&rating=1" title="'. Text::sprintf('COM_PHOCAGALLERY_STAR_OUT_OF', 1, 5). '" class="star1">1</a></li>';
|
||||
|
||||
for ($i = 2;$i < 6;$i++) {
|
||||
//echo '<li><a href="'.$this->t['action'].$amp.'controller=detail&task=rate&rating='.$i.'" title="'.$i.' '. JText::_('COM_PHOCAGALLERY_STARS_OUT_OF').' 5" class="stars'.$i.'">'.$i.'</a></li>';
|
||||
|
||||
echo '<li><a href="'.htmlspecialchars($this->t['action']).$amp.'controller=detail&task=rate&rating='.$i.'" title="'.Text::sprintf('COM_PHOCAGALLERY_STARS_OUT_OF', $i, 5). '" class="stars'.$i.'">'.$i.'</a></li>';
|
||||
}
|
||||
echo '</ul></td></tr>';
|
||||
}
|
||||
echo '</table>';
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,73 @@
|
||||
<?php
|
||||
/*
|
||||
* @package Joomla
|
||||
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
|
||||
*
|
||||
* @component Phoca Gallery
|
||||
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
|
||||
*/
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
echo '<div id="phocagallery" class="pg-detail-view'.$this->params->get( 'pageclass_sfx' ).'">';
|
||||
if ($this->t['backbutton'] != '') {
|
||||
echo $this->t['backbutton'];
|
||||
}
|
||||
|
||||
/*if($this->t['responsive'] == 1) {
|
||||
$iW = '100%';
|
||||
$iH = '100%';
|
||||
$iH = $this->t['largeheight']. 'px';
|
||||
$iW = $this->t['largewidth']. 'px';
|
||||
} else {*/
|
||||
$iW = $this->t['largewidth']. 'px';
|
||||
$iH = $this->t['largeheight']. 'px';
|
||||
//}
|
||||
|
||||
//echo '<div id="phocaGallerySlideshowC" style="width:'. $iW.';height:'.$iH .';padding:0;margin: auto"></div>';
|
||||
|
||||
echo '<div class="ph-mc">'
|
||||
.'<table border="0" class="ph-mc" cellpadding="0" cellspacing="0">'
|
||||
.'<tr>'
|
||||
.'<td colspan="6" valign="middle"'
|
||||
.' style="height:'.$iH.';width: '.$iW.';" >';
|
||||
|
||||
echo '<div id="phocaGallerySlideshowC" style="max-width:'. $iW.';max-height:'.$iH .';padding:0;margin: auto;">';
|
||||
|
||||
//.'<a href="#" onclick="'.$this->t['detailwindowclose'].'">'.$this->item->linkimage.'</a>';
|
||||
/*.'<script type="text/javascript" style="padding:0;margin:0;">';
|
||||
if ( $this->t['slideshowrandom'] == 1 ) {
|
||||
echo 'new fadeshow(fadeimages, '.$this->t['largewidth'] .', '. $this->t['largeheight'] .', 0, '. $this->t['slideshowdelay'] .', '. $this->t['slideshowpause'] .', \'R\')';
|
||||
} else {
|
||||
echo 'new fadeshow(fadeimages, '.$this->t['largewidth'] .', '. $this->t['largeheight'] .', 0, '. $this->t['slideshowdelay'] .', '. $this->t['slideshowpause'] .')';
|
||||
}
|
||||
echo '</script>';*/
|
||||
|
||||
echo '</div>';
|
||||
echo '</td>'
|
||||
.'</tr>';
|
||||
|
||||
echo '<tr><td colspan="6"><div style="padding:0;margin:0;height:3px;font-size:0px;"> </div></td></tr>';
|
||||
|
||||
// Standard Description (to get the same height as by not slideshow
|
||||
if ($this->t['displaydescriptiondetail'] == 1) {
|
||||
echo '<tr><td colspan="6" align="left" valign="top"><div></div></td></tr>';
|
||||
}
|
||||
|
||||
echo '<tr>'
|
||||
.'<td align="left" width="30%" style="padding-left:48px">'. $this->item->prevbutton .'</td>'
|
||||
.'<td align="center">'. $this->item->slideshowbutton .'</td>'
|
||||
.'<td align="center">'. str_replace("%onclickreload%", $this->t['detailwindowreload'], $this->item->reloadbutton).'</td>';
|
||||
if ($this->t['detailwindow'] == 4 || $this->t['detailwindow'] == 5 || $this->t['detailwindow'] == 7) {
|
||||
} else {
|
||||
echo '<td align="center">'. str_replace("%onclickclose%", $this->t['detailwindowclose'], $this->item->closebutton).'</td>';
|
||||
}
|
||||
echo '<td align="right" width="30%" style="padding-right:48px">'. $this->item->nextbutton .'</td>'
|
||||
.'</tr>'
|
||||
.'</table>'
|
||||
.'</div>';
|
||||
|
||||
if ($this->t['detailwindow'] == 7) {
|
||||
echo PhocaGalleryUtils::getExtInfo();
|
||||
}
|
||||
echo '</div>';
|
||||
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/*
|
||||
* @package Joomla
|
||||
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
|
||||
*
|
||||
* @component Phoca Gallery
|
||||
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
$document = JFactory::getDocument();
|
||||
//$document->addScript(JURI::base(true).'/media/com_phocagallery/js/jquery/jquery-1.6.4.min.js');
|
||||
Joomla\CMS\HTML\HTMLHelper::_('jquery.framework', false);// Load it here because of own nonConflict method (nonconflict is set below)
|
||||
$document->addScript(JURI::base(true).'/media/com_phocagallery/js/fadeslideshow/fadeslideshow.js');
|
||||
|
||||
if($this->t['responsive'] == 1) {
|
||||
$iW = '\'100%\'';
|
||||
$iH = '\'100%\''; // DOES NOT WORK IN FADESLIDESHOW
|
||||
//$iH = $this->t['largeheight'];
|
||||
} else {
|
||||
$iW = $this->t['largewidth'];
|
||||
$iH = $this->t['largeheight'];
|
||||
}
|
||||
|
||||
?><script type="text/javascript">
|
||||
/***********************************************
|
||||
* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
|
||||
* This notice MUST stay intact for legal use
|
||||
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
|
||||
***********************************************/
|
||||
var phocagallery=new fadeSlideShow({
|
||||
wrapperid: "phocaGallerySlideshowC",
|
||||
dimensions: [<?php echo $iW; ?>, <?php echo $iH; ?>],
|
||||
imagearray: [<?php echo $this->item->slideshowfiles ;?>],
|
||||
displaymode: {type:'auto', pause: <?php echo $this->t['slideshow_pause'] ?>, cycles:0, wraparound:false, randomize: <?php echo $this->t['slideshowrandom'] ?>},
|
||||
persist: false,
|
||||
fadeduration: <?php echo $this->t['slideshow_delay'] ?>,
|
||||
descreveal: "<?php echo $this->t['slideshow_description'] ?>",
|
||||
togglerid: "",
|
||||
})
|
||||
</script>
|
||||
240
components/com_phocagallery/views/detail/tmpl/default_video.php
Normal file
240
components/com_phocagallery/views/detail/tmpl/default_video.php
Normal file
@ -0,0 +1,240 @@
|
||||
<?php
|
||||
/*
|
||||
* @package Joomla
|
||||
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
|
||||
*
|
||||
* @component Phoca Gallery
|
||||
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Layout\FileLayout;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Component\ComponentHelper;
|
||||
|
||||
$layoutSVG = new FileLayout('svg_definitions', null, array('component' => 'com_phocagallery'));
|
||||
$layoutC = new FileLayout('comments', null, array('component' => 'com_phocagallery'));
|
||||
|
||||
// SVG Definitions
|
||||
$d = array();
|
||||
echo $layoutSVG->render($d);
|
||||
|
||||
if ($this->t['ytb_display'] == 1) {
|
||||
|
||||
/*$document = Factory::getDocument();
|
||||
/$document->addCustomTag( "<style type=\"text/css\"> \n"
|
||||
." body {overflow:hidden;} \n"
|
||||
." </style> \n");*/
|
||||
|
||||
echo '<div class="pg-ytb-full">'.$this->item->videocode.'</div>';
|
||||
} else {
|
||||
|
||||
|
||||
|
||||
|
||||
echo '<div id="phocagallery" class="pg-detail-item-box'.$this->params->get( 'pageclass_sfx' ).'">';
|
||||
|
||||
|
||||
if ($this->t['detailwindow'] == 7) {
|
||||
echo '<div class="pg-detail-top-box-back-title">';
|
||||
echo '<a href="'.Route::_('index.php?option=com_phocagallery&view=category&id='. $this->item->catslug.'&Itemid='. $this->itemId).'"';
|
||||
echo ' title="'.Text::_( 'COM_PHOCAGALLERY_BACK_TO_CATEGORY' ).'">';
|
||||
echo '<svg class="ph-si ph-si-detail-top-back"><use xlink:href="#ph-si-back"></use></svg>';
|
||||
echo '</a></div>';
|
||||
}
|
||||
|
||||
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 = '<a href="#" onclick="'.$this->t['detailwindowclose'].'" style="margin:auto;padding:0">'.$this->item->linkimage.'</a>';
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
$classSuffix = ' popup';
|
||||
if ($this->t['detailwindow'] == 7) {
|
||||
$classSuffix = ' no-popup';
|
||||
}
|
||||
/*
|
||||
echo '<div class="ph-mc" style="padding-top:10px">'
|
||||
.'<table border="0" class="ph-w100 ph-mc" cellpadding="0" cellspacing="0">'
|
||||
.'<tr>'
|
||||
.'<td colspan="6" align="center" valign="middle"'
|
||||
.' style="'.$iH.'vertical-align: middle;" >'
|
||||
.'<div id="phocaGalleryImageBox" style="'.$iW.'margin: auto;padding: 0;">'
|
||||
.$closeImage;
|
||||
*/
|
||||
|
||||
|
||||
//echo '<div class="pg-detail-item-image-box">'.$closeImage.'</div>';
|
||||
|
||||
echo '<div class="pg-ytb-detail">'.$this->item->videocode.'</div>';
|
||||
|
||||
|
||||
|
||||
$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 '<div class="pg-detail-item-desc-box">' .(HTMLHelper::_('content.prepare', $titleDesc . $this->item->description, 'com_phocagallery.item')).'</div>';
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
if ($this->t['detailbuttons'] == 1){
|
||||
echo '<div class="pg-detail-item-button-box">'
|
||||
.'<td align="left" width="30%" style="padding-left:48px">'.$this->item->prevbutton.'</td>'
|
||||
.'<td align="center">'.$this->item->slideshowbutton.'</td>'
|
||||
.'<td align="center">'.str_replace("%onclickreload%", $this->t['detailwindowreload'], $this->item->reloadbutton).'</td>'
|
||||
. $closeButton
|
||||
//.'<td align="right" width="30%" style="padding-right:48px">'.$this->item->nextbutton.'</td>'
|
||||
.'</div>';
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
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 '<div class="pg-detail-nav-box">';
|
||||
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 '<div class="ph-left"><a href="'.$linkPrev.'" class="btn btn-primary ph-image-navigation" role="button"><svg class="ph-si ph-si-prev-btn"><use xlink:href="#ph-si-prev"></use></svg> '.Text::_('COM_PHOCAGALLERY_PREVIOUS').'</a></div>';
|
||||
}
|
||||
|
||||
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 '<div class="ph-right"><a href="'.$linkNext.'" class="btn btn-primary ph-image-navigation" role="button">'.Text::_('COM_PHOCAGALLERY_NEXT').' <svg class="ph-si ph-si-next-btn"><use xlink:href="#ph-si-next"></use></svg></a></div>';
|
||||
}
|
||||
|
||||
echo '<div class="ph-cb"></div>';
|
||||
echo '</div>';
|
||||
|
||||
}
|
||||
|
||||
echo $this->loadTemplate('rating');
|
||||
|
||||
// Tags
|
||||
if ($this->t['displaying_tags_output'] != '') {
|
||||
echo '<div class="pg-detail-item-tag-box">'.$this->t['displaying_tags_output'].'</div>';
|
||||
}
|
||||
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 '</div>';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*echo '<div id="phocagallery" class="pg-detail-view'.$this->params->get( 'pageclass_sfx' ).'">';
|
||||
if ($this->t['backbutton'] != '') {
|
||||
echo $this->t['backbutton'];
|
||||
}
|
||||
|
||||
echo '<table border="0" style="width:'.$this->t['boxlargewidth'].'px;height:'.$this->t['boxlargeheight'].'px;">'
|
||||
.'<tr>'
|
||||
.'<td colspan="5" class="pg-center" align="center" valign="middle">'
|
||||
.$this->item->videocode
|
||||
.'</td>'
|
||||
.'</tr>';
|
||||
|
||||
$titleDesc = '';
|
||||
if ($this->t['display_title_description'] == 1) {
|
||||
$titleDesc .= $this->item->title;
|
||||
if ($this->item->description != '' && $titleDesc != '') {
|
||||
$titleDesc .= ' - ';
|
||||
}
|
||||
}
|
||||
|
||||
// Standard Description
|
||||
if ($this->t['displaydescriptiondetail'] == 1) {
|
||||
echo '<tr>'
|
||||
.'<td colspan="6" align="left" valign="top" class="pg-dv-desc">'
|
||||
.'<div class="pg-dv-desc">'
|
||||
. $titleDesc . $this->item->description . '</div>'
|
||||
.'</td>'
|
||||
.'</tr>';
|
||||
}
|
||||
|
||||
if ($this->t['detailbuttons'] == 1){
|
||||
echo '<tr>'
|
||||
.'<td align="left" width="30%" style="padding-left:48px">'.$this->item->prevbutton.'</td>'
|
||||
.'<td align="center"></td>'
|
||||
.'<td align="center">'.str_replace("%onclickreload%", $this->t['detailwindowreload'], $this->item->reloadbutton).'</td>';
|
||||
if ($this->t['detailwindow'] == 4 || $this->t['detailwindow'] == 5 || $this->t['detailwindow'] == 7) {
|
||||
} else {
|
||||
echo '<td align="center">' . str_replace("%onclickclose%", $this->t['detailwindowclose'], $this->item->closebutton). '</td>';
|
||||
}
|
||||
echo '<td align="right" width="30%" style="padding-right:48px">'.$this->item->nextbutton.'</td>'
|
||||
.'</tr>';
|
||||
}
|
||||
echo '</table>';
|
||||
echo $this->loadTemplate('rating');
|
||||
if ($this->t['detailwindow'] == 7) {
|
||||
echo PhocaGalleryUtils::getExtInfo();
|
||||
}
|
||||
echo '</div>';
|
||||
}
|
||||
*/
|
||||
?>
|
||||
1
components/com_phocagallery/views/detail/tmpl/index.html
Normal file
1
components/com_phocagallery/views/detail/tmpl/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
Reference in New Issue
Block a user