Server : LiteSpeed System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : alsaif ( 1057) PHP Version : 7.4.33 Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/alsaif/public_html/components/com_phocagallery/views/category/tmpl/ |
<?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-category-view'.$this->params->get( 'pageclass_sfx' ).' pg-cv">';
// Heading
$heading = '';
if ($this->params->get( 'page_heading' ) != '') {
$heading .= $this->params->get( 'page_heading' );
}
// Category Name Title
if ( $this->t['display_cat_name_title'] == 1) {
if (isset($this->category->title) && $this->category->title != '') {
if ($heading != '') {
$heading .= ' - ';
}
$heading .= $this->category->title;
}
}
// Pagetitle
if ($this->t['show_page_heading'] != 0) {
if ( $heading != '') {
echo '<div class="page-header"><h1>'. $this->escape($heading) . '</h1></div>';
}
}
if (isset($this->category->id) && (int)$this->category->id > 0) {
echo '<div id="pg-icons">';
echo PhocaGalleryRenderFront::renderFeedIcon('category', 1, $this->category->id, $this->category->alias);
echo '</div>';
}
echo '<div style="clear:both"></div>';
// Category Description
if (isset($this->category->description) && $this->category->description != '' ) {
echo '<div class="pg-cv-desc">'. Joomla\CMS\HTML\HTMLHelper::_('content.prepare', $this->category->description) .'</div>'. "\n";
}
$this->checkRights = 1;
if ((int)$this->tagId > 0) {
// Search by tags
$this->checkRights = 1;
// Categories View in Category View
if ($this->t['display_categories_cv']) {
echo $this->loadTemplate('categories');
}
echo $this->loadTemplate('images');
echo '<div class="ph-cb"></div><div> </div>';
echo $this->loadTemplate('pagination');
//echo '</div>'. "\n";
} else {
// Standard category displaying
$this->checkRights = 0;
// Switch image
$noBaseImg = false;
$noBaseImg = preg_match("/phoca_thumb_l_no_image/i", $this->t['basic_image']);
if ($this->t['switch_image'] == 1 && $noBaseImg == false) {
$switchImage = PhocaGalleryImage::correctSwitchSize($this->t['switch_height'], $this->t['switch_width']);
echo '<div class="main-switch-image"><center>'
.'<table border="0" cellspacing="5" cellpadding="5" class="main-switch-image-table">'
.'<tr>'
.'<td align="center" valign="middle" style="text-align:center;'
.'width: '.$switchImage['width'].'px;'
.'height: '.$switchImage['height'].'px;'
.'background: url(\''.$this->t['wait_image'].'\') '
.$switchImage['centerw'] .'px '
.$switchImage['centerh'].'px no-repeat;margin:0px;padding:0px;">'
.$this->t['basic_image'] .'</td>'
.'</tr></table></center></div>'. "\n";
}
// Categories View in Category View
if ($this->t['display_categories_cv']) {
echo $this->loadTemplate('categories');
}
// Rendering images
echo $this->loadTemplate('images');
echo '<div class="ph-cb"> </div>';
echo $this->loadTemplate('pagination');
if ($this->t['displaytabs'] > 0) {
$tabItems = array();
$tabItemsI = 0;
phocagalleryimport('phocagallery.render.rendertabs');
$tabs = new PhocaGalleryRenderTabs();
echo $tabs->startTabs();
if ((int)$this->t['display_rating'] == 1) {
$tabItems[$tabItemsI] = array('id' => 'pgvotes', 'title' => JText::_('COM_PHOCAGALLERY_RATING'), 'image' => 'vote', 'icon' => 'vote');
$tabItemsI++;
}
if ((int)$this->t['display_comment'] == 1) {
if ($this->t['externalcommentsystem'] == 2) {
$tabItems[$tabItemsI] = array('id' => 'pgcomments', 'title' => JText::_('COM_PHOCAGALLERY_COMMENTS'), 'image' => 'comment-fb-small', 'icon' => 'comment-fb');
} else {
$tabItems[$tabItemsI] = array('id' => 'pgcomments', 'title' => JText::_('COM_PHOCAGALLERY_COMMENTS'), 'image' => 'comment', 'icon' => 'comment');
}
$tabItemsI++;
}
if ((int)$this->t['displaycategorystatistics'] == 1) {
$tabItems[$tabItemsI] = array('id' => 'pgstatistics', 'title' => JText::_('COM_PHOCAGALLERY_STATISTICS'), 'image' => 'statistics', 'icon' => 'statistics');
$tabItemsI++;
}
if ((int)$this->t['displaycategorygeotagging'] == 1) {
if ($this->map['longitude'] == '' || $this->map['latitude'] == '') {
//echo '<p>' . JText::_('COM_PHOCAGALLERY_ERROR_MAP_NO_DATA') . '</p>';
} else {
$tabItems[$tabItemsI] = array('id' => 'pggeotagging', 'title' => JText::_('COM_PHOCAGALLERY_GEOTAGGING'), 'image' => 'geo', 'icon' => 'geo');
$tabItemsI++;
}
}
if ((int)$this->t['displaycreatecat'] == 1) {
$tabItems[$tabItemsI] = array('id' => 'pgnewcategory', 'title' => JText::_('COM_PHOCAGALLERY_CATEGORY'), 'image' => 'subcategories', 'icon' => 'subcategory');
$tabItemsI++;
}
if ((int)$this->t['displayupload'] == 1) {
$tabItems[$tabItemsI] = array('id' => 'pgupload', 'title' => JText::_('COM_PHOCAGALLERY_UPLOAD'), 'image' => 'upload', 'icon' => 'upload');
$tabItemsI++;
}
if ((int)$this->t['ytbupload'] == 1 && $this->t['displayupload'] == 1 ) {
$tabItems[$tabItemsI] = array('id' => 'pgytbupload', 'title' => JText::_('COM_PHOCAGALLERY_YTB_UPLOAD'), 'image' => 'upload-ytb', 'icon' => 'upload-ytb');
$tabItemsI++;
}
if((int)$this->t['enablemultiple'] == 1 && (int)$this->t['displayupload'] == 1) {
$tabItems[$tabItemsI] = array('id' => 'pgmultipleupload', 'title' => JText::_('COM_PHOCAGALLERY_MULTIPLE_UPLOAD'), 'image' => 'upload-multiple', 'icon' => 'upload-multiple');
$tabItemsI++;
}
if($this->t['enablejava'] == 1 && (int)$this->t['displayupload'] == 1) {
$tabItems[$tabItemsI] = array('id' => 'pgjavaupload', 'title' => JText::_('COM_PHOCAGALLERY_JAVA_UPLOAD'), 'image' => 'upload-java', 'icon' => 'upload-java');
$tabItemsI++;
}
$tabs->setActiveTab(isset($tabItems[$this->t['tab']]['id']) ? $tabItems[$this->t['tab']]['id'] : 0);
echo $tabs->renderTabsHeader($tabItems);
//echo '<div id="phocagallery-pane">';
//echo Joomla\CMS\HTML\HTMLHelper::_('tabs.start', 'config-tabs-com_phocagallery-category', array('useCookie'=>1, 'startOffset'=> $this->t['tab']));
if ((int)$this->t['display_rating'] == 1) {
echo $tabs->startTab('pgvotes');
echo $this->loadTemplate('rating');
echo $tabs->endTab();
//echo Joomla\CMS\HTML\HTMLHelper::_('tabs.panel', PhocaGalleryRenderFront::renderIcon('vote', 'media/com_phocagallery/images/icon-vote.png', ''). ' '. JText::_('COM_PHOCAGALLERY_RATING'), 'pgvotes' );
}
if ((int)$this->t['display_comment'] == 1) {
//$commentImg = ($this->t['externalcommentsystem'] == 2) ? 'icon-comment-fb' : 'icon-comment';
//echo Joomla\CMS\HTML\HTMLHelper::_('tabs.panel', Joomla\CMS\HTML\HTMLHelper::_( 'image', 'media/com_phocagallery/images/'.$commentImg.'.png','') . ' '.JText::_('COM_PHOCAGALLERY_COMMENTS'), 'pgcomments' );
echo $tabs->startTab('pgcomments');
/*if ($this->t['externalcommentsystem'] == 2) {
echo Joomla\CMS\HTML\HTMLHelper::_('tabs.panel', PhocaGalleryRenderFront::renderIcon('comment-fb', 'media/com_phocagallery/images/icon-comment-fb-small.png', ''). ' '.JText::_('COM_PHOCAGALLERY_COMMENTS'), 'pgcomments' );
} else {
echo Joomla\CMS\HTML\HTMLHelper::_('tabs.panel', PhocaGalleryRenderFront::renderIcon('comment', 'media/com_phocagallery/images/icon-comment.png', ''). ' '.JText::_('COM_PHOCAGALLERY_COMMENTS'), 'pgcomments' );
}*/
if ($this->t['externalcommentsystem'] == 1) {
if (JComponentHelper::isEnabled('com_jcomments', true)) {
include_once(JPATH_BASE.'/components/com_jcomments/jcomments.php');
echo JComments::showComments($this->category->id, 'com_phocagallery', JText::_('COM_PHOCAGALLERY_CATEGORY') .' '. $this->category->title);
}
} else if($this->t['externalcommentsystem'] == 2) {
echo $this->loadTemplate('comments-fb');
} else {
echo $this->loadTemplate('comments');
}
echo $tabs->endTab();
}
if ((int)$this->t['displaycategorystatistics'] == 1) {
//echo Joomla\CMS\HTML\HTMLHelper::_('tabs.panel', Joomla\CMS\HTML\HTMLHelper::_( 'image', 'media/com_phocagallery/images/icon-statistics.png', '') . ' '.JText::_('COM_PHOCAGALLERY_STATISTICS'), 'pgstatistics' );
//echo Joomla\CMS\HTML\HTMLHelper::_('tabs.panel', PhocaGalleryRenderFront::renderIcon('statistics', 'media/com_phocagallery/images/icon-statistics.png', '') . ' '.JText::_('COM_PHOCAGALLERY_STATISTICS'), 'pgstatistics' );
echo $tabs->startTab('pgstatistics');
echo $this->loadTemplate('statistics');
echo $tabs->endTab();
}
if ((int)$this->t['displaycategorygeotagging'] == 1) {
if ($this->map['longitude'] == '' || $this->map['latitude'] == '') {
//echo '<p>' . JText::_('COM_PHOCAGALLERY_ERROR_MAP_NO_DATA') . '</p>';
} else {
//echo Joomla\CMS\HTML\HTMLHelper::_('tabs.panel', Joomla\CMS\HTML\HTMLHelper::_( 'image', 'media/com_phocagallery/images/icon-geo.png','') . ' '.JText::_('COM_PHOCAGALLERY_GEOTAGGING'), 'pggeotagging' );
//echo Joomla\CMS\HTML\HTMLHelper::_('tabs.panel', PhocaGalleryRenderFront::renderIcon('geo', 'media/com_phocagallery/images/icon-geo.png', '') . ' '.JText::_('COM_PHOCAGALLERY_GEOTAGGING'), 'pggeotagging' );
echo $tabs->startTab('pggeotagging');
if ($this->t['map_type'] == 2){
echo $this->loadTemplate('geotagging_osm');
} else {
echo $this->loadTemplate('geotagging');
}
echo $tabs->endTab();
}
}
if ((int)$this->t['displaycreatecat'] == 1) {
echo $tabs->startTab('pgnewcategory');
//echo Joomla\CMS\HTML\HTMLHelper::_('tabs.panel', PhocaGalleryRenderFront::renderIcon('subcategory', 'media/com_phocagallery/images/icon-subcategories.png', '') . ' '.JText::_('COM_PHOCAGALLERY_CATEGORY'), 'pgnewcategory' );
echo $this->loadTemplate('newcategory');
echo $tabs->endTab();
}
if ((int)$this->t['displayupload'] == 1) {
echo $tabs->startTab('pgupload');
//echo Joomla\CMS\HTML\HTMLHelper::_('tabs.panel', PhocaGalleryRenderFront::renderIcon('upload', 'media/com_phocagallery/images/icon-upload.png', '') . ' '.JText::_('COM_PHOCAGALLERY_UPLOAD'), 'pgupload' );
echo $this->loadTemplate('upload');
echo $tabs->endTab();
}
if ((int)$this->t['ytbupload'] == 1 && $this->t['displayupload'] == 1 ) {
echo $tabs->startTab('pgytbupload');
//echo Joomla\CMS\HTML\HTMLHelper::_('tabs.panel', PhocaGalleryRenderFront::renderIcon('upload-ytb', 'media/com_phocagallery/images/icon-upload-ytb.png', '') . ' '.JText::_('COM_PHOCAGALLERY_YTB_UPLOAD'), 'pgytbupload' );
echo $this->loadTemplate('ytbupload');
echo $tabs->endTab();
}
if((int)$this->t['enablemultiple'] == 1 && (int)$this->t['displayupload'] == 1) {
echo $tabs->startTab('pgmultipleupload');
//echo Joomla\CMS\HTML\HTMLHelper::_('tabs.panel', PhocaGalleryRenderFront::renderIcon('upload-multiple', 'media/com_phocagallery/images/icon-upload-multiple.png', '') . ' '.JText::_('COM_PHOCAGALLERY_MULTIPLE_UPLOAD'), 'pgmultipleupload' );
echo $this->loadTemplate('multipleupload');
echo $tabs->endTab();
}
if($this->t['enablejava'] == 1 && (int)$this->t['displayupload'] == 1) {
echo $tabs->startTab('pgjavaupload');
//echo Joomla\CMS\HTML\HTMLHelper::_('tabs.panel', PhocaGalleryRenderFront::renderIcon('upload-java', 'media/com_phocagallery/images/icon-upload-java.png', ''). ' '.JText::_('COM_PHOCAGALLERY_JAVA_UPLOAD'), 'pgjavaupload' );
echo $this->loadTemplate('javaupload');
echo $tabs->endTab();
}
echo $tabs->endTabs();
//echo Joomla\CMS\HTML\HTMLHelper::_('tabs.end');
//echo '</div>'. "\n";// end phocagallery-pane
}
}
if ($this->t['detail_window'] == 6) {
?><script type="text/javascript">
var gjaks = new SZN.LightBox(dataJakJs, optgjaks);
</script><?php
}
if ($this->t['detail_window'] == 14) {
echo PhocaGalleryRenderDetailWindow::loadPhotoswipeBottom();
}
echo PhocaGalleryUtils::getExtInfo();
echo '</div>';
?>