Ciao Tonicopi,
mi domandavo se potevi dirmi dove aggiungere quella riga in questo template, ho provato ad aggiungerlo secondo le tue istruzioni e a fare delle prove ma niente, non ci sono riuscito. Poi volevo sapere, ma funzionerà anche con i componenti? Ti ringrazio...
Francesco
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$showLeftColumn = (bool) $this->countModules('left');
$showRightColumn = (bool) $this->countModules('right');
$showRightColumn &= JRequest::getCmd('layout') != 'form';
$showRightColumn &= JRequest::getCmd('task') != 'edit';
$margin = 30;
$outermargin = 44;
$logoText = $this->params->get("logoText");
$slogan = $this->params->get("slogan");
$pageWidth = 980;
$pageWidth = $pageWidth - $outermargin;
$rightColumnWidth = $this->params->get("rightColumnWidth", "100");
$leftColumnWidth = $this->params->get("leftColumnWidth", "100");
$logoWidth = $this->params->get("logoWidth", "330");
$logoHeight = 70;
if($this->countModules('user4')){
$searchWidth = 240;
$sloganWidth = $pageWidth + $outermargin - $logoWidth - $searchWidth - 3*$margin;
} else {
$searchWidth = 0;
$sloganWidth = $pageWidth + $outermargin - $logoWidth - 2*$margin;
}
$headerHeight = $logoHeight;
$headerrightWidth = $pageWidth + $outermargin - $logoWidth - $margin;
$searchHeight = $logoHeight;
$sloganHeight = $searchHeight;
if ($showLeftColumn && $showRightColumn) {
$contentWidth = $pageWidth - $leftColumnWidth - $rightColumnWidth - 3*$margin;
} elseif (!$showLeftColumn && $showRightColumn) {
$contentWidth = $pageWidth - $rightColumnWidth - 2*$margin ;
} elseif ($showLeftColumn && !$showRightColumn) {
$contentWidth = $pageWidth - $leftColumnWidth - 2*$margin ;
} else {
$contentWidth = $pageWidth - $margin ;
}
?>
<!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; ?>" >
<head>
<?php
$menu = &JSite::getMenu();
$view = JRequest::getVar('view');
$homepage = ($menu->getActive() == $menu->getDefault() && $view == 'frontpage');
$user =& JFactory::getUser();
$head = $this->getHeadData();
if (($homepage || ($view == 'category')) && ($user->get('guest') == 1 || $user->usertype == 'Registered')){
foreach($head['scripts'] as $key => $value){
if(preg_match('/mootools/', $key)) unset($head['scripts'][$key]);
if(preg_match('/caption/', $key)) unset($head['scripts'][$key]);
}
}
$this->setHeadData($head);
?>
<jdoc:include type="head" />
<link rel="stylesheet" href="templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/grey.css" type="text/css" />
<!--[if IE 6]>
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/ie6.css" type="text/css" />
<style type="text/css">
img, div, a, input { behavior: url(templates/<?php echo $this->template ?>/iepngfix.htc) }
</style>
<script src="templates/<?php echo $this->template ?>/js/iepngfix_tilebg.js" type="text/javascript"></script>
<![endif]-->
<!--[if lte IE 7]>
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/ie67.css" type="text/css" />
<![endif]-->
</head>
<body>
<div id="headerwrap" class="gainlayout">
<div class="clr"></div>
</div>
<div class="clr"></div>
</div>
<div class="clr"></div>
</div>
<div id="allwrap" class="gainlayout" style="width:<?php echo $pageWidth + $outermargin; ?>px;">
<div id="topmenuwrap" class="gainlayout">
</div>
<div id="wrap" class="gainlayout">
<?php if($this->countModules('breadcrumb')) : ?>
<div id="pathway" class="gainlayout">
<jdoc:include type="module" name="breadcrumbs" style="none" />
</div>
<?php endif; ?>
<div id="cbody" class="gainlayout">
<?php if($showLeftColumn) : ?>
<div id="sidebar" style="width:100px;">
<jdoc:include type="modules" name="left" style="xhtml" />
</div>
<?php endif; ?>
<div id="content60" style="width:496px;">
<?php if($this->countModules('user1')) : ?>
<div id="topmenu" class="gainlayout">
<jdoc:include type="modules" name="user1" style="xhtml" />
<div class="clr"></div>
</div>
<div class="clr"></div>
<?php endif; ?>
<?php if ($this->getBuffer('message')) : ?>
<div class="error">
<h2>
<?php echo JText::_('Message'); ?>
</h2>
<jdoc:include type="message" />
</div>
<?php endif; ?>
<div id="content">
<jdoc:include type="component" />
<?php if($this->countModules('user2')) : ?>
<div id="topmenu" class="gainlayout">
<jdoc:include type="modules" name="user2" style="xhtml" />
<div class="clr"></div>
</div>
<div class="clr"></div>
<?php endif; ?>
</div>
</div>
<?php if($showRightColumn) : ?>
<div id="sidebar-2" style="width:100px;">
<jdoc:include type="modules" name="right" style="xhtml" />
</div>
<?php endif; ?>
<div class="clr"></div>
</div>
<!--end of wrap-->
</div>
<div id="footer" class="gainlayout">
<?php if($this->countModules('footer')) : ?>
<jdoc:include type="modules" name="footer" style="xhtml" />
<?php endif; ?>
</div>
<!--end of allwrap-->
</div>
<div id="footerwrap" class="gainlayout" style="width:<?php echo $pageWidth + $outermargin; ?>px;">
<div id="a4j"><a href="http://xxxxxxxxxxxxx.it/">Created by XX xxxxxxxx</a></div>
</div>
</body>
</html>