Marcus
Well-known member
Example: My forum has a navtab "horror". There is a route horror and it works with that. But there are also other routes horrorbooks and horrormovies.
How could I combine all three routes in 'selected' => ($selectedTabId == 'horror')?
Home Forums Horror Members Help
Horror-General Horror-Books Horror-Movies
How could I combine all three routes in 'selected' => ($selectedTabId == 'horror')?
PHP:
<?php
class MyProduct_Listener
{
public static function navTabs(array &$extraTabs, $selectedTabId)
{
$extraTabs['product'] = array(
'title' => 'horror',
'href' => XenForo_Link::buildPublicLink('full:horror'),
'selected' => ($selectedTabId == 'horror'),
'position' => 'middle',
'linksTemplate' => 'horror_navtab',
);
}