Created
October 27, 2013 16:45
-
-
Save pratikdhaboo/7184777 to your computer and use it in GitHub Desktop.
Show Jomsocial toolbar everywhere in any Joomla page
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 | |
//Show Jomsocial toolbar everywhere in any Joomla page | |
//Script from http://www.filipponeri.net/jomsocial/show-jomsocial-toolbar-inside-any-joomla-page/ | |
require_once( JPATH_BASE . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'core.php'); | |
require_once( JPATH_BASE . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'toolbar.php'); | |
$toolbar = CToolbarLibrary::getInstance()->getHTML(); | |
echo '<div id="community-wrap">' . $toolbar . '</div>'; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment