Hi,
I have the following code set up for a TBMenu. I am using YiiBooster 4.01 in Yii 1.1.15.
As you can see below I am using a glyphicon for the first menu item then a font-awesome icon for the second. Both of these are within the yiibooster extension.
$this->widget('booster.widgets.TbMenu',
array(
'type' => 'list',
'items' => array(
array(
'label' => 'Website',
'icon' => 'glyphicon glyphicon-cloud',
'url' => $forg->orgwebsite,
'linkOptions' => array('target'=>'_blank'),
'itemOptions' => array('class' => 'orgmenu', 'id' => 'orgwebsite'),
),
array(
'label' => 'Facebook',
'icon' => 'fa fa-facebook-square',
'url' => $forg->orgfacebook,
'linkOptions' => array('target'=>'_blank'),
'itemOptions' => array('class' => 'orgmenu', 'id' => 'orgfacebook'),
),
)
)
);
In my dev environment which is a WampServer on my Windows 7 PC, the menu item for facebook renders as expected and looks the same as the others. The html code generated is as follows:
<li class="orgmenu" id="orgwebsite">
<a target="_blank" href="http://www.xxx.com.au">
<i class='glyphicon glyphicon-cloud'></i>Website</a></li>
<li class="orgmenu" id="orgfacebook">
<a target="_blank" href="https://www.facebook.com/blablabla">
<i class='fa fa-facebook-square'></i>Facebook</a></li>
However, when I load up this version to my website which is hosted on a linux server, the css seems to go haywire - the facebook entry has a class called "nav-header" added to the "li" tag and the "a" tag is missing completely, see the generated html code below…
<li class="orgmenu" id="orgwebsite">
<a target="_blank" href="http://www.xxx.com.au">
<i class='glyphicon glyphicon-cloud'></i>Website</a></li>
<li class="orgmenu nav-header" id="orgfacebook">
<i class='fa-facebook-square'></i>Facebook</li>
I have no idea where to start looking for this. to see the behaviour in test environment you can see it at http://www.test.poolstat.net.au, then click on organisations in the top menu.
It might be to do with the fact that windows systems are not case sensitive and linux is so could be a capitalised letter somewhere that shouldnt be.
Any advice would be greatly appreciated.
Regards
Greg J