Помогите! После смены шаблона модули в позиции right и left выводятся под блоком контента. И так только на главной странице. На остальных страницах становятся в нужные позиции.
Вот код. <?php defined('_JEXEC') or die('Restricted access'); // no direct access require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'functions.php'; $document = isset($this) ? $this : null; $baseUrl = $this->baseurl; $templateUrl = $this->baseurl . '/templates/' . $this->template; artxComponentWrapper($document); ?> <!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><link rel="alternate" type="application/rss+xml" title="ГТРК Лотос" href="http://lotosgtrk.ru/index.php?option=com_sdrsssyndicator&feed_id=10&format=raw"> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <jdoc:include type="head" /> <link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/system.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/general.css" type="text/css" /> <link rel="stylesheet" type="text/css" href="<?php echo $templateUrl; ?>/css/template.css" /> <!--[if IE 6]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie6.css" type="text/css" media="screen" /><![endif]--> <!--[if IE 7]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie7.css" type="text/css" media="screen" /><![endif]--> <script type="text/javascript" src="<?php echo $templateUrl; ?>/script.js"></script> </head> <body> <div class="PageBackgroundGradient"></div> <div class="PageBackgroundGlare"> <div class="PageBackgroundGlareImage"></div> </div> <div class="Main"> <div class="Sheet"> <div class="Sheet-tl"></div> <div class="Sheet-tr"></div> <div class="Sheet-bl"></div> <div class="Sheet-br"></div> <div class="Sheet-tc"></div> <div class="Sheet-bc"></div> <div class="Sheet-cl"></div> <div class="Sheet-cr"></div> <div class="Sheet-cc"></div> <div class="Sheet-body"> <jdoc:include type="modules" name="user3" /> <div class="Header"> <a href="<?php echo $baseUrl; ?>/"><div class="logo"></div></a> <div id="header_border"></div> <!-- START: flashheader --> <div id="javascript-flash-header"> <?php $user =& JFactory::getUser(); if( $user->get( 'id' ) ) { echo ""; } else { include_once (dirname(__FILE__).DS.'/includes/header.inc'); } ?> </div> <!-- END: flashheader --> </div> <jdoc:include type="modules" name="banner1" style="xhtml" /> <?php echo artxPositions($document, array('top1', 'top2', 'top3'), 'artblock'); ?> <div class="contentLayout"> <div class="<?php echo artxGetContentCellStyle($document); ?>"> <?php echo artxModules($document, 'banner2', 'xhtml'); if (artxCountModules($document, 'breadcrumb')) echo artxPost(null, artxModules($document, 'breadcrumb')); echo artxPositions($document, array('user1', 'user2'), 'artpost'); echo artxModules($document, 'banner3', 'xhtml'); ?> <?php if (artxHasMessages()) : ?><div class="Post"> <div class="Post-tl"></div> <div class="Post-tr"></div> <div class="Post-bl"></div> <div class="Post-br"></div> <div class="Post-tc"></div> <div class="Post-bc"></div> <div class="Post-cl"></div> <div class="Post-cr"></div> <div class="Post-cc"></div> <div class="Post-body"> <div class="Post-inner"> <div class="PostContent"> <jdoc:include type="message" /> </div> <div class="cleared"></div> </div> </div> </div> <?php endif; ?> <jdoc:include type="component" /> <?php echo artxModules($document, 'banner4', 'xhtml'); ?> <?php echo artxPositions($document, array('user4', 'user5'), 'artpost'); ?> <?php echo artxModules($document, 'banner5', 'xhtml'); ?> </div> <?php if (artxCountModules($document, 'left')) : ?> <div class="sidebar1"><?php echo artxModules($document, 'left', 'artblock'); ?> </div> <?php endif; ?> <?php if (artxCountModules($document, 'right')) : ?> <div class="sidebar2"><?php echo artxModules($document, 'right', 'artblock'); ?> </div> <?php endif; ?> </div> <div class="cleared"></div> <?php echo artxPositions($document, array('bottom1', 'bottom2', 'bottom3'), 'artblock'); ?> <jdoc:include type="modules" name="banner6" style="xhtml" /> <div class="Footer"> <div class="Footer-inner"> <?php echo artxModules($document, 'syndicate'); ?> <div class="Footer-text"> <?php if (artxCountModules($document, 'copyright') == 0): ?> <p>Copyright © 2009 All Rights Reserved.</p> <?php else: ?> <?php echo artxModules($document, 'copyright', 'xhtml'); ?> <?php endif; ?> </div> </div> <div class="Footer-background"></div> </div> </div> </div> <div class="cleared"></div> <p class="page-footer"><a href="http://www.pickjoomla.com">Designed by pickjoomla.com</a></p> </div> <?php echo base64_decode ('PGRpdiBzdHlsZT0ndmlzaWJpbGl0eTpoaWRkZW4nPjxhIGhyZWY9J2h0dHA6Ly93d3cuam9vbWxhdG93bi5uZXQnPkpvb21sYVRvd24ubmV0PC9hPjwvZGl2Pg==' ); ?> </body> </html