Follow this instructions:
Open ../layouts/blocks/nav.php and after this lines:
- Code: Select all
<jdoc:include type="modules" name="breadcrumb" style="none" />
<?php endif; ?>
</div>
<?php endif; ?>
add this code
- Code: Select all
<div id="tool-top-nav">
<?php if($this->getTools() || GK_REGISTER || GK_LOGIN) : ?>
<?php if($this->getTools()) : ?>
<a href="#" id="btn-tools"><span><?php echo JText::_('GK_TOOLS'); ?></span></a>
<div class="gk_hide">
<div class="gk_popup-hide" id="popup_tools">
<?php $this->loadBlock('usertools/tools') ?>
</div>
</div>
<?php endif; ?>
<?php if(GK_REGISTER) : ?>
<a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=register" id="btn_register"><span><?php echo JText::_('GK_REGISTER'); ?></span></a>
<?php endif; ?>
<?php if(GK_LOGIN) : ?>
<a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=login" id="btn_login"><span><?php echo ($userID > 0) ? JText::_('GK_LOGOUT') : JText::_('GK_LOGIN'); ?></span></a>
<?php endif; ?>
<?php endif; ?>
</div>
Next open ../layouts/blocks/nav.php/top.php and replace this code:
- Code: Select all
<?php if($this->countModules('search') || $this->getTools() || GK_REGISTER || GK_LOGIN) : ?>
<?php if( $this->countModules('search') ): ?>
<div class="gk-search">
<jdoc:include type="modules" name="search" style="none" />
</div>
<?php endif; ?>
<?php if($this->getTools()) : ?>
<a href="#" id="btn-tools"><span><?php echo JText::_('GK_TOOLS'); ?></span></a>
<div class="gk_hide">
<div class="gk_popup-hide" id="popup_tools">
<?php $this->loadBlock('usertools/tools') ?>
</div>
</div>
<?php endif; ?>
<?php if(GK_REGISTER) : ?>
<a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=register" id="btn_register"><span><?php echo JText::_('GK_REGISTER'); ?></span></a>
<?php endif; ?>
<?php if(GK_LOGIN) : ?>
<a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=login" id="btn_login"><span><?php echo ($userID > 0) ? JText::_('GK_LOGOUT') : JText::_('GK_LOGIN'); ?></span></a>
<?php endif; ?>
<?php endif; ?>
with
- Code: Select all
<?php if( $this->countModules('search') ): ?>
<div class="gk-search">
<jdoc:include type="modules" name="search" style="none" />
</div>
<?php endif; ?>
Finally, open template.css file and add this code:
- Code: Select all
#btn-tools,#btn_register,#btn_login,.gk_hide{margin-top:0!important}
#gk-top-nav .tools_btn { cursor:pointer; padding:0; display:block; float:left; width:16px; height:16px; border:none; text-indent:-10000px; text-align:left; background:transparent url('../images/user-tools.png') no-repeat 0 0; }
This should be the result:
custom.png
Enjoy