SchmitzIT
Well-known member
We use navtab icons for all navigation tabs in vB. I've put in place icons in the default navigation template to accomplish the same, but currently find myself wondering how to do that for tabs created by means of the event listeners?
What I want to accomplish is simple. Right before the phrase defining the title of the tab, I add an image tag, which I close after the phrase. However, I'm not certain that the array used in the dynamic code will allow me to do this.
Could anyone provide me with a pointer on how to accomplish this, please?
Here's sample code (Jaxel's XenMedio):
What I want to accomplish is simple. Right before the phrase defining the title of the tab, I add an image tag, which I close after the phrase. However, I'm not certain that the array used in the dynamic code will allow me to do this.
Could anyone provide me with a pointer on how to accomplish this, please?
Here's sample code (Jaxel's XenMedio):
Code:
class EWRmedio_Listener_NavTabs
{
public static function listen(array &$extraTabs, $selectedTabId)
{
$permsModel = new EWRmedio_Model_Perms();
$perms = $permsModel->getPermissions();
$extraTabs['media'] = array(
'title' => new XenForo_Phrase('media'),
'href' => XenForo_Link::buildPublicLink('full:media'),
'position' => 'middle',
'linksTemplate' => 'EWRmedio_Navtabs',
'perms' => $perms,
);
}
}