I want to check in layout.html template whether a user is logged in so I can hide/unhide certain parts of the layout (header and sidebars). What code would I use for this?
Is there a way to check whether they're viewing a certain page of not from the layout template? Like if I wanted different things to show on the thanks.php page?
This way better to modify exact template. For example thanks.html: {if $smarty.session._amember_user} {include file="header1.html"} {else} {include file="header2.html"} {/if}