By Michael Martin on Thursday, 12 April 2018
Replies 4
Likes 0
Views 9.5K
Votes 0
If you are like me and want to have direct links to Easy Blog and Easy Discuss on your Easy Social Toolbar I have the perfect solution for everyone! The following code should work perfectly for any website.

Code for Easy Social

<!-- BEGIN CUSTOM TOOLBAR -->

<li class="<?php echo $active == 'forums' ? ' is-active' : '';?>">
<a href="/<?php echo EDR::_('index.php?option=com_easydiscuss');?>" class="es-navbar__footer-link">
<span><?php echo JText::_('Forums');?></span>
</a>
</li>

<li class="<?php echo ($views->latest) ? 'is-active' : ''; ?>">
<a href="/<?php echo EBR::_('index.php?option=com_easyblog');?>" class="es-navbar__footer-link">
<span><?php echo JText::_('Blog');?></span>
</a>
</li>

<!-- END CUSTOM TOOLBAR -->


Code for Easy Blog


<!-- BEGIN CUSTOM TOOLBAR -->
<li class="<?php echo $highlight == 'Forums' ? 'is-active' : '';?>">
<a data-original-title="Forums"
data-placement="top"
data-es-provide="tooltip"
href="/forums" class="o-nav__link eb-toolbar__link">
<span>

<?php echo JText::_('Forums');?>

</span>
</a>
</li>
<li class="<?php echo $highlight == 'Community' ? 'is-active' : '';?>">
<a data-original-title="Community"
data-placement="top"
data-es-provide="tooltip"
href="/component/easysocial/?view=dashboard" class="o-nav__link eb-toolbar__link">
<span>

<?php echo JText::_('Community');?>

</span>
</a>
</li>
<!-- END CUSTOM TOOLBAR -->



Code for Easy Discuss

<!-- BEGIN CUSTOM TOOLBAR -->

<li class="<?php echo ($views->latest) ? 'is-active' : ''; ?>">
<a href="/<?php echo EBR::_('index.php?option=com_easyblog');?>" class="ed-navbar__footer-link">
<span><?php echo JText::_('Blog');?></span>
</a>
</li>

<li class="<?php echo ($views->community) ? 'is-active' : '';?>">
<a href="/<?php echo ESR::_('index.php?option=com_easysocial');?>" class="ed-navbar__footer-link">
<span><?php echo JText::_('Community');?></span>
</a>
</li>

<!-- END CUSTOM TOOLBAR -->


You have to change the default.php template file each component respectively:

Easy Social: /components/com_easysocial/themes/wireframe/toolbar/default.php
Easy Blog: /components/com_easyblog/themes/wireframe/toolbar/default.php
Easy Blog: /components/com_easydiscuss/themes/wireframe/toolbar/default.php

I hope that others find this useful.

Have a get day.
Superb Michael! Thanks for sharing a useful and informative to custom toolbar in each component
·
Thursday, 12 April 2018 11:18
·
0 Likes
·
0 Votes
·
0 Comments
·
I am happy to help whenever I can, Of course, you guys threw me a curve ball when you changed your coding for Easy Blog. I had to update to accommodate those changes.
·
Thursday, 12 April 2018 19:28
·
0 Likes
·
0 Votes
·
0 Comments
·
·
Friday, 13 April 2018 11:37
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post