- Code: Select all
<?php if($this->API->get('register_link') && $userID == 0) : ?>
<a href="<?php echo $this->API->get('register_url', 'index.php?option=com_users&view=registration'); ?>" id="gkRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
<?php endif; ?>
<?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'); ?></a>
<?php endif; ?>
Another issue is that when I'm trying to link an article from the homepage, it basically just reloads the homepage. I changed the link from a href="#" (don't worry - it's not that) to an article location and it just jumps to the top of the homepage just like it would if there were a # there. Any ideas on what to do about that?
Thanks!
