Стоит шаблон Gavick GK Gamebox - в нем есть шаблон для iphone и Other Handheld devices, хоть в настройках я их и отключил они всеравно включаются, как их вырубить полностью, как я понимаю они включаются с помощью component.php который лежит в папке templates
вот его код
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<?php
$db = & JFactory::getDbo();
$query = 'SELECT template'
. ' FROM #__templates_menu'
. ' WHERE client_id = 0 AND menuid = 0';
$db->setQuery($query);
$template = $db->loadResult();
if($this->direction == 'rtl' && !file_exists(JPATH_THEMES.DS.$template.DS.'css/template_rtl.css') || !file_exists(JPATH_THEMES.DS.$template.DS.'css/template.css')) : ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/template_rtl.css" type="text/css" />
<?php elseif($this->direction == 'rtl' ) : ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $template; ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $template; ?>/css/template_rtl.css" type="text/css" />
<?php elseif($this->direction == 'ltr' && !file_exists(JPATH_THEMES.DS.$template.DS.'css/template.css')) : ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/template.css" type="text/css" />
<?php elseif($this->direction == 'ltr' ) : ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $template; ?>/css/template.css" type="text/css" />
<?php endif; ?>
</head>
<body class="contentpane">
<jdoc:include type="message" />
<jdoc:include type="component" />
</body>
</html>
вот код index.php
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
include_once (dirname(__FILE__).DS.'libs'.DS.'gk.template.helper.php');
$tmpl = GKTemplateHelper::getInstance($this, array('ui', GK_TOOL_SCREEN, GK_TOOL_MENU, 'main_layout', 'direction'));
//Calculate the width of template
$tmplWidth = '';
$tmplWrapMin = '100%';
switch ($tmpl->getParam(GK_TOOL_SCREEN)){
case 'auto':
$tmplWidth = '97%';
break;
case 'fluid':
$tmplWidth = intval($tmpl->getParam('gk_screen-fluid-fix-gk_screen_width'));
$tmplWidth = $tmplWidth ? $tmplWidth.'%' : '90%';
break;
case 'fix':
$tmplWidth = intval($tmpl->getParam('gk_screen-fluid-fix-gk_screen_width'));
$tmplWrapMin = $tmplWidth ? ($tmplWidth+1).'px' : '771px';
$tmplWidth = $tmplWidth ? $tmplWidth.'px' : '770px';
break;
default:
$tmplWidth = intval($tmpl->getParam(GK_TOOL_SCREEN));
$tmplWrapMin = $tmplWidth ? ($tmplWidth+1).'px' : '983px';
$tmplWidth = $tmplWidth ? $tmplWidth.'px' : '982px';
break;
}
$tmpl->setParam ('tmplWidth', $tmplWidth);
$tmpl->setParam ('tmplWrapMin', $tmplWrapMin);
//Main navigation
$gk_menutype = $tmpl->getMenuType();
$gkmenu = null;
if ($gk_menutype && $gk_menutype != 'none') {
$gkparams = new JParameter('');
$gkparams->set( 'menutype', $tmpl->getParam('menutype', 'mainmenu') );
$gkparams->set( 'menu_images_align', 'left' );
$gkparams->set( 'menupath', $tmpl->templateurl().'/gk_menus');
$gkparams->set('menu_images', 1); //0: not show image, 1: show image which set in menu item
$gkparams->set('menu_background', 1); //0: image, 1: background
$gkparams->set('mega-colwidth', 200); //Megamenu only: Default column width
$gkparams->set('mega-style', 1); //Megamenu only: Menu style.
$gkparams->set('rtl',($tmpl->getParam('direction')=='rtl' || $tmpl->direction == 'rtl'));
$gkmenu = $tmpl->loadMenu($gkparams, $gk_menutype);
}
//End for main navigation
$layout = $tmpl->getLayout ();
if ($layout) {
$tmpl->display($layout);
}
проблема в том что когда заходит пользователь с одного из этих девайсов, страница сохраняется в кеше, и отдается потом остальным, в случае с одним из девайсов меню сайта не менется на обычное, а в случае с другим из 2х шаблон вообще не грузится и сайт открывается без шаблона, поэтому я хочу оставить только один стандартный для всех