Shape 5

Joomla Templates => Sportopolis - Club => : tcdllc September 17, 2009, 09:31:36 PM



: Bottom Row 1 - 3 modules (50%, 25%, 25%)?
: tcdllc September 17, 2009, 09:31:36 PM
What's the easiest way to utilize only 3 of the 4 modules but make the spacing 50%, 25% and 25% instead of it making all 3 33%?

Thanks in advance!!!


: Re: Bottom Row 1 - 3 modules (50%, 25%, 25%)?
: tcdllc September 17, 2009, 09:37:20 PM
uhggg. I should really look a little more before I ask.


I see all the code at the top of the index.php page.

Sorry about that!


: Re: Bottom Row 1 - 3 modules (50%, 25%, 25%)?
: tcdllc September 17, 2009, 09:52:12 PM
Well I guess it doesn't matter because I can't figure out what to add to make it the way I want it... any suggestions?


: Re: Bottom Row 1 - 3 modules (50%, 25%, 25%)?
: tcdllc September 17, 2009, 09:59:02 PM
Figured it out. All done in the index.php file

Stating around line 100. I added the % for all 4 positions
:
if ($this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="24.9%"; }
else if (!$this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="33.3%"; }
else if ($this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one_1="49.9%"; $bot_row_one_3="24.9%"; $bot_row_one_4="24.9%";  }
else if ($this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="33.3%"; }
else if ($this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="33.3%"; }
else if (!$this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="49.9%"; }
else if (!$this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="49.9%"; }
else if (!$this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="49.9%"; }
else if ($this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="49.9%"; }
else if ($this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="49.9%"; }
else if ($this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="49.9%"; }
else if (!$this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="100%"; }
else if (!$this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="100%"; }
else if (!$this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="100%"; }
else if ($this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="100%"; }


In the module position I added the new width name:
:
<?php if($this->countModules('bottom_row_one_2')) { ?>
<div id="s5_bottom_row_one_2_mod" style="width:<?php echo $bot_row_one_2 ?>">
<div id="s5_bottom_row_one_2_inner_mod"<?php if($this->countModules('bottom_row_one_3') || $this->countModules('bottom_row_one_4')) { ?> style="padding-right:14px"<?php ?>>
<jdoc:include type="modules" name="bottom_row_one_2" style="round_box" />
<div style="clear:both"></div>
</div>
</div>
<?php ?>
<?php if($this->countModules('bottom_row_one_3')) { ?>
<div id="s5_bottom_row_one_3_mod" style="width:<?php echo $bot_row_one_3 ?>">
<div id="s5_bottom_row_one_3_inner_mod"<?php if($this->countModules('bottom_row_one_4')) { ?> style="padding-right:14px"<?php ?>>
<jdoc:include type="modules" name="bottom_row_one_3" style="round_box" />
<div style="clear:both"></div>
</div>
</div>
<?php ?>
<?php if($this->countModules('bottom_row_one_4')) { ?>
<div id="s5_bottom_row_one_4_mod" style="width:<?php echo $bot_row_one_4 ?>">
<div id="s5_bottom_row_one_4_inner_mod">
<jdoc:include type="modules" name="bottom_row_one_4" style="round_box" />
<div style="clear:both"></div>
</div>
</div>
<?php ?>