| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/components/com_djcatalog2/views/items/tmpl/ |
Upload File : |
<?php
/**
* @package DJ-Catalog2
* @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
* @license http://www.gnu.org/licenses GNU/GPL
* @author url: http://dj-extensions.com
* @author email contact@dj-extensions.com
*/
defined ('_JEXEC') or die('Restricted access');
use Joomla\CMS\Factory;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Language\Text;
?>
<?php
JURI::reset();
$app = Factory::getApplication();
$menu = $app->getMenu();
$juri = JURI::getInstance();
$uri = JURI::getInstance($juri->toString());
$query = $uri->getQuery(true);
$active = $app->input->get('l',$this->params->get('list_layout','items'));
unset($query['l']);
$query['option'] = 'com_djcatalog2';
$query['view'] = 'items';
$query['Itemid'] = $menu->getActive() ? $menu->getActive()->id : null;
$cid = $app->input->get('cid', false, 'string');
$pid = $app->input->get('pid', false, 'string');
if ($cid) {
$query['cid'] = $cid;
}
if ($pid) {
$query['pid'] = $pid;
}
$uri->setQuery($query);
$layoutUrl = 'index.php?'.$uri->getQuery(false);
/*
$layoutUrl = htmlspecialchars($uri->toString());
if (strpos($layoutUrl,'?') === false ) {
$layoutUrl .= '?';
} else {
$layoutUrl .= '&';
}
*/
JURI::reset();
?>
<div class="djc_layout_switch_in">
<ul class="djc_layout_buttons djc_clearfix btn-group">
<li><a class="btn btn-primary<?php if ($active == 'items') echo ' active'; ?>" href="<?php echo Route::_( $layoutUrl.'&l=items#tlb'); ?>" title="<?php echo Text::_('COM_DJCATALOG2_GRID_LAYOUT'); ?>"><img src="<?php echo DJCatalog2ThemeHelper::getThemeImage('grid.png');?>" alt="<?php echo Text::_('COM_DJCATALOG2_GRID_LAYOUT'); ?>" /></a></li>
<li><a class="btn btn-primary<?php if ($active == 'table') echo ' active'; ?>" href="<?php echo Route::_( $layoutUrl.'&l=table#tlb'); ?>" title="<?php echo Text::_('COM_DJCATALOG2_TABLE_LAYOUT'); ?>"><img src="<?php echo DJCatalog2ThemeHelper::getThemeImage('table.png');?>" alt="<?php echo Text::_('COM_DJCATALOG2_TABLE_LAYOUT'); ?>" /></a></li>
</ul>
</div>