4 columns in top1?

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Aug 30, 2013 2:47 pm
Reply with quote
Report this post
Hi,

is it possible to have 4 columns at top1 position instead of 3?

Thanks
User avatar
Junior Boarder

GK User
Fri Aug 30, 2013 3:35 pm
Reply with quote
Report this post
Yes, but you have to make a small modification in CSS/PHP.

1) gk_startup\layouts\default.php
line 127
from
Code: Select all
<section id="gkTop1" class="gkCols3

to
Code: Select all
<section id="gkTop1" class="gkCols4
User avatar
Platinum Boarder

GK User
Fri Aug 30, 2013 3:42 pm
Reply with quote
Report this post
and change in line 129
from
Code: Select all
modcol="3" />

to
Code: Select all
modcol="4" />
User avatar
Platinum Boarder

GK User
Fri Aug 30, 2013 3:42 pm
Reply with quote
Report this post
Hi,

Just solved it by changing the following in default.php :

Code: Select all
<?php if($this->API->modules('top1')) : ?>
         <section id="gkTop1" class="gkCols3<?php if($this->API->modules('top1') > 1) : ?> gkNoMargin<?php endif; ?>">
            <div>
               <jdoc:include type="modules" name="top1" style="<?php echo $this->module_styles['top1']; ?>"  modnum="<?php echo $this->API->modules('top1'); ?>" modcol="3" />
            </div>
         </section>
         <?php endif; ?>



Changed to :

Code: Select all
<?php if($this->API->modules('top1')) : ?>
         <section id="gkTop1" class="gkCols4<?php if($this->API->modules('top1') > 1) : ?> gkNoMargin<?php endif; ?>">
            <div>
               <jdoc:include type="modules" name="top1" style="<?php echo $this->module_styles['top1']; ?>"  modnum="<?php echo $this->API->modules('top1'); ?>" modcol="4" />
            </div>
         </section>
         <?php endif; ?>


Thanks
User avatar
Junior Boarder

GK User
Fri Aug 30, 2013 3:51 pm
Reply with quote
Report this post
exactly you did as I wrote few seconds ago :D :D

Remember about this change of code in next template update.
User avatar
Platinum Boarder

GK User
Fri Aug 30, 2013 3:51 pm
Reply with quote
Report this post
Thanks Pawel :)
User avatar
Junior Boarder


cron