One Member with Developer Subscription ask us support to make a small change on Penguimmail template, to have the logo on top of main menu and also with extra module position on its right side (for banner use, for example).
We decide to share with other Members also. So if you want to use this layout change, follow this instructions:
Step 1:
Open ../layouts/blocks/nav.php and find this line:
- Code: Select all
<div id="gk-nav" class="clearfix">
Before this line, add this code:
- Code: Select all
<div id="top-wrapper">
<?php if ($this->getParam('logoType')=='image'): ?>
<h1 class="logo">
<a href="index.php" title="<?php echo $this->sitename(); ?>"><span><?php echo $this->sitename(); ?></span></a>
</h1>
<?php elseif($this->getParam('logoType')=='text') : ?>
<div class="logo text">
<h1>
<a href="index.php" title="<?php echo $this->sitename(); ?>"><span><?php echo GK_LOGO; ?></span></a>
</h1>
<p class="site-slogan"><?php echo GK_SLOGAN;?></p>
</div>
<?php endif; ?>
<?php if($this->countModules('top_mod')) : ?>
<div id="top_mod_wrapper" class="normal clearfix clear">
<jdoc:include type="modules" name="top_mod" style="gavickpro" />
</div>
<?php endif; ?>
</div>
Step 2:
Open ../layouts/blocks/header.php and remove this lines:
- Code: Select all
<?php if ($this->getParam('logoType')=='image'): ?>
<h1 class="logo">
<a href="index.php" title="<?php echo $this->sitename(); ?>"><span><?php echo $this->sitename(); ?></span></a>
</h1>
<?php elseif($this->getParam('logoType')=='text') : ?>
<div class="logo text">
<h1>
<a href="index.php" title="<?php echo $this->sitename(); ?>"><span><?php echo GK_LOGO; ?></span></a>
</h1>
<p class="site-slogan"><?php echo GK_SLOGAN;?></p>
</div>
<?php endif; ?>
Step 3:
Open templateDetails.xml file and find this line:
- Code: Select all
<!-- template specific positions -->
After this line, add this one:
- Code: Select all
<position>top_mod</position>
Step 4:
Go to template parameters and enable override.css file.
Step 5:
Open override.css file from css directory and add this code:
- Code: Select all
#top-wrapper {height: 100px;width: 100%;overflow: hidden}
#top-wrapper h1.logo {position: absolute;margin-top: 15px;}
#top_mod_wrapper {float: right;width: 650px;margin: 10px 0;overflow: hidden;}
#top_mod_wrapper .moduletable {float: right;padding: 0 10px;margin-top:-5px}
#top_mod_wrapper .moduletable_content div{border: none;}
#gk-nav,#gk-subnav {-moz-border-radius: 6px!important;-webkit-border-radius: 6px!important;border-radius: 6px!important;}
That's it.
If the new module position "top_mod" is populated, for example with a banner, it should look like this:
Enjoy
