- Автор темы
- #1
Сползает контент, вот код шаблона на Joomla
<!--Begin Main Column--><div>
<div id="maincol" style="width: <?php echo getMainWidth(); ?>px">
<div class="padding">
<?php if ($this->countModules('breadcrumb')) : ?>
<div id="breadcrumbs">
<jdoc:include type="modules" name="breadcrumb" style="xhtml" />
</div>
<?php endif; ?>
<?php if ($this->countModules('featured')) : ?>
<div id="featured-block">
<jdoc:include type="modules" name="featured" style="featured" />
</div>
<?php endif; ?>
<?php $mClasses = modulesClasses('case1'); if ($this->countModules('user1') or $this->countModules('user2') or $this->countModules('user3')) : ?>
<div id="mainmodules" class="spacer<?php echo $mainmod_width; ?>">
<?php if ($this->countModules('user1')) : ?>
<div class="block <?php echo $mClasses['user1'][0]; ?>" style="width: <?php echo $mClasses['user1'][1]; ?>px">
<jdoc:include type="modules" name="user1" style="main" />
</div>
<?php endif; ?>
<?php if ($this->countModules('user2')) : ?>
<div class="block <?php echo $mClasses['user2'][0]; ?>" style="width: <?php echo $mClasses['user2'][1]; ?>px">
<jdoc:include type="modules" name="user2" style="main" />
</div>
<?php endif; ?>
<?php if ($this->countModules('user3')) : ?>
<div class="block <?php echo $mClasses['user3'][0]; ?>" style="width: <?php echo $mClasses['user3'][1]; ?>px">
<jdoc:include type="modules" name="user3" style="main" />
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($this->countModules('rokmininews')) : ?>
<div id="rokmininews-block"><div id="rokmininews">
<jdoc:include type="modules" name="rokmininews" style="rokmininews" />
</div></div>
<?php endif; ?>
<div id="main-content">
<?php if ($this->countModules('inset2') and !$editmode) : ?>
<div id="inset-block-right"><div class="right-padding">
<jdoc:include type="modules" name="inset2" style="main" />
</div></div>
<?php endif; ?>
<?php if ($this->countModules('inset') and !$editmode) : ?>
<div id="inset-block-left"><div class="left-padding">
<jdoc:include type="modules" name="inset" style="main" />
</div></div>
<?php endif; ?>
<div id="maincontent-block">
<jdoc:include type="message" />
<?php if (!($frontpage_component == 'hide' and JRequest::getVar('view') == 'frontpage') ?>
<jdoc:include type="component" />
<?php endif; ?>
</div>
</div>
</div>
<div class="clr"></div>
<?php $mClasses = modulesClasses('case2'); if ($this->countModules('user4') or $this->countModules('user5') or $this->countModules('user6')) : ?>
<div id="mainmodules2" class="spacer<?php echo $mainmod2_width; ?>">
<?php if ($this->countModules('user4')) : ?>
<div class="block <?php echo $mClasses['user4'][0]; ?>" style="width: <?php echo $mClasses['user4'][1]; ?>px">
<jdoc:include type="modules" name="user4" style="main" />
</div>
<?php endif; ?>
<?php if ($this->countModules('user5')) : ?>
<div class="block <?php echo $mClasses['user5'][0]; ?>" style="width: <?php echo $mClasses['user5'][1]; ?>px">
<jdoc:include type="modules" name="user5" style="main" />
</div>
<?php endif; ?>
<?php if ($this->countModules('user6')) : ?>
<div class="block <?php echo $mClasses['user6'][0]; ?>" style="width: <?php echo $mClasses['user6'][1]; ?>px">
<jdoc:include type="modules" name="user6" style="main" />
</div>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<!--End Main Column-->
<div class="clr"></div></div>
<!-- Begin Bottom Main Modules --><div class="clr">
<?php $mClasses = modulesClasses('case3'); if ($this->countModules('user7') or $this->countModules('user8') or $this->countModules('user9')) : ?>
<div id="mainmodules3" class="spacer<?php echo $mainmod3_width; ?>">
<?php if ($this->countModules('user7')) : ?>
<div class="block <?php echo $mClasses['user7'][0]; ?>">
<jdoc:include type="modules" name="user7" style="main" />
</div>
<?php endif; ?>
<?php if ($this->countModules('user8')) : ?>
<div class="block <?php echo $mClasses['user8'][0]; ?>">
<jdoc:include type="modules" name="user8" style="main" />
</div>
<?php endif; ?>
<?php if ($this->countModules('user9')) : ?>
<div class="block <?php echo $mClasses['user9'][0]; ?>">
<jdoc:include type="modules" name="user9" style="main" />
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($this->countModules('advertisement5')) : ?>
<div class="ad-block-bottom"><jdoc:include type="modules" name="advertisement5" style="xhtml" /></div>
<?php endif; ?>
<!-- End Bottom Main Modules -->
<!--End Main Content Area-->
Получется что когда я публикую модули в inset2 или inset1 то maincontent-block сползает
В чем может быть проблема?
<!--Begin Main Column--><div>
<div id="maincol" style="width: <?php echo getMainWidth(); ?>px">
<div class="padding">
<?php if ($this->countModules('breadcrumb')) : ?>
<div id="breadcrumbs">
<jdoc:include type="modules" name="breadcrumb" style="xhtml" />
</div>
<?php endif; ?>
<?php if ($this->countModules('featured')) : ?>
<div id="featured-block">
<jdoc:include type="modules" name="featured" style="featured" />
</div>
<?php endif; ?>
<?php $mClasses = modulesClasses('case1'); if ($this->countModules('user1') or $this->countModules('user2') or $this->countModules('user3')) : ?>
<div id="mainmodules" class="spacer<?php echo $mainmod_width; ?>">
<?php if ($this->countModules('user1')) : ?>
<div class="block <?php echo $mClasses['user1'][0]; ?>" style="width: <?php echo $mClasses['user1'][1]; ?>px">
<jdoc:include type="modules" name="user1" style="main" />
</div>
<?php endif; ?>
<?php if ($this->countModules('user2')) : ?>
<div class="block <?php echo $mClasses['user2'][0]; ?>" style="width: <?php echo $mClasses['user2'][1]; ?>px">
<jdoc:include type="modules" name="user2" style="main" />
</div>
<?php endif; ?>
<?php if ($this->countModules('user3')) : ?>
<div class="block <?php echo $mClasses['user3'][0]; ?>" style="width: <?php echo $mClasses['user3'][1]; ?>px">
<jdoc:include type="modules" name="user3" style="main" />
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($this->countModules('rokmininews')) : ?>
<div id="rokmininews-block"><div id="rokmininews">
<jdoc:include type="modules" name="rokmininews" style="rokmininews" />
</div></div>
<?php endif; ?>
<div id="main-content">
<?php if ($this->countModules('inset2') and !$editmode) : ?>
<div id="inset-block-right"><div class="right-padding">
<jdoc:include type="modules" name="inset2" style="main" />
</div></div>
<?php endif; ?>
<?php if ($this->countModules('inset') and !$editmode) : ?>
<div id="inset-block-left"><div class="left-padding">
<jdoc:include type="modules" name="inset" style="main" />
</div></div>
<?php endif; ?>
<div id="maincontent-block">
<jdoc:include type="message" />
<?php if (!($frontpage_component == 'hide' and JRequest::getVar('view') == 'frontpage') ?>
<jdoc:include type="component" />
<?php endif; ?>
</div>
</div>
</div>
<div class="clr"></div>
<?php $mClasses = modulesClasses('case2'); if ($this->countModules('user4') or $this->countModules('user5') or $this->countModules('user6')) : ?>
<div id="mainmodules2" class="spacer<?php echo $mainmod2_width; ?>">
<?php if ($this->countModules('user4')) : ?>
<div class="block <?php echo $mClasses['user4'][0]; ?>" style="width: <?php echo $mClasses['user4'][1]; ?>px">
<jdoc:include type="modules" name="user4" style="main" />
</div>
<?php endif; ?>
<?php if ($this->countModules('user5')) : ?>
<div class="block <?php echo $mClasses['user5'][0]; ?>" style="width: <?php echo $mClasses['user5'][1]; ?>px">
<jdoc:include type="modules" name="user5" style="main" />
</div>
<?php endif; ?>
<?php if ($this->countModules('user6')) : ?>
<div class="block <?php echo $mClasses['user6'][0]; ?>" style="width: <?php echo $mClasses['user6'][1]; ?>px">
<jdoc:include type="modules" name="user6" style="main" />
</div>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<!--End Main Column-->
<div class="clr"></div></div>
<!-- Begin Bottom Main Modules --><div class="clr">
<?php $mClasses = modulesClasses('case3'); if ($this->countModules('user7') or $this->countModules('user8') or $this->countModules('user9')) : ?>
<div id="mainmodules3" class="spacer<?php echo $mainmod3_width; ?>">
<?php if ($this->countModules('user7')) : ?>
<div class="block <?php echo $mClasses['user7'][0]; ?>">
<jdoc:include type="modules" name="user7" style="main" />
</div>
<?php endif; ?>
<?php if ($this->countModules('user8')) : ?>
<div class="block <?php echo $mClasses['user8'][0]; ?>">
<jdoc:include type="modules" name="user8" style="main" />
</div>
<?php endif; ?>
<?php if ($this->countModules('user9')) : ?>
<div class="block <?php echo $mClasses['user9'][0]; ?>">
<jdoc:include type="modules" name="user9" style="main" />
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($this->countModules('advertisement5')) : ?>
<div class="ad-block-bottom"><jdoc:include type="modules" name="advertisement5" style="xhtml" /></div>
<?php endif; ?>
<!-- End Bottom Main Modules -->
<!--End Main Content Area-->
Получется что когда я публикую модули в inset2 или inset1 то maincontent-block сползает
В чем может быть проблема?