Уважаемые форумчане. Помогите с проблемкой. Реализовал на сайте с Joomla модуль JUNewsUltra Pro (для вывода блока с случайными статьями). Также на главной странице реализован модуль последние новости. Проблема в том, что не могу правильно подобрать позицию с правильными параметрами для JUNewsUltra Pro. Вот код html шаблона: Код (CODE): <?php /** * @package Joomla.Site * @subpackage Templates.beez5 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // No direct access. defined('_JEXEC') or die; JHtml::_('behavior.framework', true); // get params $color = $this->params->get('templatecolor'); $logo = $this->params->get('logo'); $navposition = $this->params->get('navposition'); $app = JFactory::getApplication(); $doc = JFactory::getDocument(); $templateparams = $app->getTemplate(true)->params; $Itemid = JRequest::getInt( 'Itemid', 1, 'get' ); ?> <?php if(!$templateparams->get('html5', 0)): ?> <?php $req_patch = $_SERVER['REQUEST_URI']; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?php else: ?> <?php echo '<!DOCTYPE html>'; ?> <?php endif; ?> <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/garage/css/style.css" type="text/css" /> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-37612377-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <? $myabsoluteurl=JURI::current(); //var_dump($myabsoluteurl); ?> <?php if($myabsoluteurl == 'http://g23.lviv.ua/ua/' || $myabsoluteurl == 'http://g23.lviv.ua/' || $myabsoluteurl == 'http://g23.lviv.ua/ua' || $myabsoluteurl == 'http://g23.lviv.ua/ru' || $myabsoluteurl == 'http://g23.lviv.ua/ru/' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu?start=0' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu?start=1' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu?start=2' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu?start=3' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu?start=4' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu?start=5' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu?start=6' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu?start=7' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu?start=8' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu?start=9' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu?start=10' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu?start=11' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu?start=12' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu?start=13' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu?start=14' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu?start=15' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu?start=16' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu?start=17' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu?start=18' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu?start=19' || $myabsoluteurl == 'http://g23.lviv.ua/ua/novunu' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu?start=0' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu?start=1' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu?start=2' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu?start=3' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu?start=4' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu?start=5' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu?start=6' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu?start=7' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu?start=8' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu?start=9' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu?start=10' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu?start=11' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu?start=12' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu?start=13' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu?start=14' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu?start=15' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu?start=16' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu?start=17' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu?start=18' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu?start=19' || $myabsoluteurl == 'http://g23.lviv.ua/ru/novunu'){ ?> <style type="text/css"> .img-intro-left{ display: none !important; } </style> <?php //die(); ?> <?php } ?> <a href="https://plus.google.com/109816277659713075446" rel="publisher"></a> </head> <body> <div class="head"> <div class="header"> <div class="logo"><a href=""><img src="<?php echo $this->baseurl ?>/templates/garage/images/logo.png" /></a></div> <div class="slogan"> <? if ($this->language =='uk-ua') {?> <img src="<?php echo $this->baseurl ?>/templates/garage/images/slogan.png" /> <? } else {?> <img src="<?php echo $this->baseurl ?>/templates/garage/images/slogan_ru.png" /> <?}?> </div> <div class="topmenu"> <jdoc:include type="modules" name="topmenu" /> </div> <div class="lang"> <jdoc:include type="modules" name="lang" /> </div> </div> </div> <div class="main"> <div class="mainer"> <div class="l"> <img src="<?php echo $this->baseurl ?>/templates/garage/images/menutop.png" /> <jdoc:include type="modules" name="leftmenu" /><img src="<?php echo $this->baseurl ?>/templates/garage/images/menubott.png" /> </div> <div class="r"> <? if ($Itemid==101) {?> <jdoc:include type="modules" name="slider" /> <div style="clear:both"> </div> <div class="im<?php echo $this->language; ?>"> <div style="float:left;margin-top:5px;margin-left:5px;text-align:center;"> <a href="zakhyst-avto-antyhraviinoiu-plivkoiu"><img src="<?php echo $this->baseurl ?>/templates/garage/images/transp.gif" /></a> <div style="height:5px;"> </div> <a href="zakhyst-avto-antyhraviinoiu-plivkoiu"</a></div> <div style="float:left;margin-top:5px;margin-left:35px;text-align:center;"> <a href="avtoakustyka"><img src="<?php echo $this->baseurl ?>/templates/garage/images/transp.gif" /></a> <div style="height:5px;"> </div> <a href="avtoakustyka"</a></div> <div style="float:left;margin-top:5px;margin-left:34px;text-align:center;"> <a href="adaptatsiia-amerykanskykh-avto"><img src="<?php echo $this->baseurl ?>/templates/garage/images/transp.gif" /></a> <div style="height:5px;"> </div> </div> </div> <?} else {?> <jdoc:include type="component" /> <?}?> </div> <div style="clear:both"></div> [COLOR="Red"]<div class="l"> <jdoc:include type="modules" name="junews" /> </div>[/COLOR] <? $myabsoluteurl=JURI::current(); //var_dump($myabsoluteurl); ?> <?php if( $myabsoluteurl == 'http://g23.lviv.ua/ua/' || $myabsoluteurl == 'http://g23.lviv.ua/' || $myabsoluteurl == 'http://g23.lviv.ua/ua' || $myabsoluteurl == 'http://g23.lviv.ua/ru' || $myabsoluteurl == 'http://g23.lviv.ua/ru/' ){ ?> <style type="text/css"> .moduletable{ width: 655px; margin-left: 310px; } .moduletable h3{ padding-bottom: 10px; } </style> <jdoc:include type="modules" name="atomic-bottommiddle" style="xhtml" /> <?php }else{ ?> <!-- no news loaded --> <?php } ?> <div style="clear:both"> </div> <div class="footer"> <div class="foot1"><br /> <a href="http://vk.com/garage23"><img alt="" src="http://g23.lviv.ua/images/vkontakte.png" /></a> <a href="http://www.facebook.com/g23.lviv.ua"><img alt="" src="http://g23.lviv.ua/images/facebook.png" /></a><a href="http://www.odnoklassniki.ru/group/51887114813615"><img alt="" src="http://g23.lviv.ua/images/odnoklassniki.png" /> <a href="http://www.youtube.com/user/Garage23Lviv"><img alt="" src="http://g23.lviv.ua/images/youtube.png" /></a> </div> <div class="foot2"> <?php echo JText::_('TPL_FOOT2'); ?> </div> <div class="foot3"> <?php echo JText::_('TPL_PHONE'); ?> <br /> +3 8 (067) 341-03-43<br /> +3 8 (067) 340-26-13<br /> +3 8 (032) 244-42-34 </div> <div class="foot5"><a href="http://goldweb.com.ua/" target="_blank"><img src="<?php echo $this->baseurl ?>/templates/garage/images/logo_goldweb.png" /></a></div> </div> </div> </div> </body> </html> Красным выделен плагин. При такой позиции, на главной странице всё хорошо, но если я устанавливаю отображения модуля на каких либо страницах с контентом то параметр <div style="clear:both"></div> который над ним опускает его после контента, как на скринах. Пробовал убирать <div style="clear:both"></div> , на страницах с контентом, тогда всё хорошо, но на главной странице, там где подключен модуль Последние новости, заголовок модуля уезжает вверх под баннеры. Очень прошу помощи, уже который день бьюсь безрезультатно. Сайт главная страница: g23.lviv.ua Страница с контентом: http://g23.lviv.ua/ua/novunu (наглядно показано куда уезжают блоки)