Hi
This is considerate customisation and i shouldn't do this
... but here's a good start.
Step 1:
Open templateDetails.xml file on sporter directory and add this 2 modules positions, like this:
- Code: Select all
<!-- extra banner positions -->
<position>banner-topo1</position>
<position>banner-topo2</position>
Step 2:
Open ../gk_sporter/layouts/blocks/top.php and before this line:
- Code: Select all
<div id="gk-top" class="main">
add this fragment:
- Code: Select all
<?php
$topowidth = 'null';
if($this->countModules('banner-topo1 and banner-topo2'))
{
$topowidth = '50%';
}
else
{
$topowidth = '100%';
}
?>
<div id="banner-topo" class="main">
<?php if( $this->countModules('banner-topo1') ): ?>
<div class="topo1" style="width: <?php echo $topowidth; ?>;">
<jdoc:include type="modules" name="banner-topo1" style="gavickpro" />
</div>
<?php endif; ?>
<?php if( $this->countModules('banner-topo2') ): ?>
<div class="topo2" style="width: <?php echo $topowidth; ?>;">
<jdoc:include type="modules" name="banner-topo2" style="gavickpro" />
</div>
<?php endif; ?>
</div>
Step 3:
Open gk_stuff.css file on css directory and add this fragment at the end:
- Code: Select all
#banner-topo .moduletable_content {background:transparent;border:none}
#banner-topo .mod_banners h3, #banner-topo .mod_banners .item {border: none}
#banner-topo {max-height: 70px;display:inline-block;}
#banner-topo .topo1 {float:left;margin: 0 auto;}
#banner-topo .topo2 {float:right;}
#banner-topo .moduletable_content img {margin: 0 auto;display:block}
Step 4:
Populate respetive banner-topo1 and banner-topo2 module positions.
As example, this should be the result on frontend:
screen_2010-12-13.png
Enjoy
EDIT:
Tip tag: ADD_POSITION