Last active
August 11, 2016 18:07
-
-
Save uzielweb/1397fae0ae5d1e8c075b1ca8f6a22501 to your computer and use it in GitHub Desktop.
Change the default Logout button in JomSocial Toolbar in components/com_community/templates/jomsocial/layouts/toolbar/base.php line 441 With Joomsocial $logoutLink
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Change the default Logout button in JomSocial Toolbar in components/com_community/templates/jomsocial/layouts/toolbar/base.php line 441 | |
//Delete the entire code bettween <a> and </a> in the lines 441 at 449 | |
//Put the code bellow instead | |
?> | |
<form action="<?php echo JRoute::_('index.php', true); ?>" method="post" name="logoutForm"> | |
<span style="cursor:pointer;" name="Submit" class="joms-js--logout" onclick="document.logoutForm.submit()"> | |
<svg viewBox="0 0 16 16" class="joms-icon"> | |
<use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-switch"></use> | |
</svg> | |
</span> | |
<input type="hidden" name="option" value="com_users" /> | |
<input type="hidden" name="task" value="user.logout" /> | |
<input type="hidden" name="return" value="<?php echo $logoutLink; ?>" /> | |
<?php echo JHtml::_('form.token'); ?> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment