I am using a SJ Flat
menu module and some of my menu items have the Target windows set to New window with navigation.
Unfortunately, the module removed that attribute and it has a new declaration of the Target behavior.
Below is the code
$target = "";
$link_target = $params->get('link_target','_self');
switch ($link_target) {
default:
case '_self':
break;
case '_blank':
case '_parent':
case '_top':
$target = 'target="'.$link_target.'"';
break;
case '_windowopen':
$target = "onclick=\"window.open(this.href,'targetWindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,false');return false;\"";
break;
case '_modal':
// user process
break;
}
$icon_menu = ($menus[$i]->menu_image != '')
? '<img src='.JURI::base().$menus[$i]->menu_image.' alt='.$menus[$i]->title.' title='.$menus[$i]->title.' />'
: '';
$divLink = "<div class='fm-link' ".$style.">
<a ".$target." href='".$menus[$i]->flink."'>".$icon_menu.$menus[$i]->title."</a>
</div>";
Now I want to use the module but will have the natural way of linking.
The situation right now is, I set Target Window to New Window With Navigation in the menu item, see below screencap
But the problem is, the target window is being cleared in the module because the module that I am using has a target window setting also. But if you set the target window in the module it will affect all the menu item.
So after checking the codes of the module, I found the above code.
Now I want to disregard the setting in the module and inherit the setting from the menu item