<?php if(($this->API->get('reg_link') == '1' && $userID == 0) || $this->API->modules('login')) : ?>
<div id="gkUserArea">
<?php if($this->API->modules('login')) : ?>
<a href="<?php echo $this->API->get('login_url', 'index.php?option=com_users&view=login'); ?>" id="gkLogin"><?php echo ($userID == 0) ? JText::_('TPL_GK_LANG_LOGIN') : JText::_('TPL_GK_LANG_LOGOUT'); ?><i class="gk-icon-arrow"></i></a>
<?php endif; ?>
<?php if($this->API->get('reg_link') == '1' && $userID == 0) : ?>
<a href="<?php echo $this->API->get('reg_url', '#'); ?>" id="gkRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?><i class="gk-icon-arrow"></i></a>
<?php endif; ?>
</div>
<?php endif; ?>