XF 1.3 How do I identify public pages in templates?

Stuart Wright

Well-known member
I want to activate the AddThis sidebar widget in public pages only. (By 'sidebar' in this context, I mean the AddThis slide-out column of buttons which appears on the left or right edge of the screen).
I added the AddThis JS in page_container_js_body but the widget is activating on all pages and I want to restrict it to public pages only.
What xen conditional do I need to wrap around it to only display it on pages viewable by guests (member 0 on AVForums)?
Thanks
 
I want to wrap the conditional round the script which displays the share buttons.
If I use the above it will only be displayed to guests. I want it displayed to all members, but only on the pages which are publicly visible.
 
Back
Top Bottom