XF 2.2 Different Menu-Items in different styles?

Solution
Single style: $xf.style.style_id == 2

Multiple styles: in_array($xf.style.style_id, [2,4,8])

Not a single style: $xf.style.style_id != 2

Not multiple styles: !in_array($xf.style.style_id, [2,4,8])

Change the IDs as required.

Brogan

XenForo moderator
Staff member
Single style: $xf.style.style_id == 2

Multiple styles: in_array($xf.style.style_id, [2,4,8])

Not a single style: $xf.style.style_id != 2

Not multiple styles: !in_array($xf.style.style_id, [2,4,8])

Change the IDs as required.
 
Solution
Top