Smarty if isset
PHP Snippet 1:
<?php
$smarty->assign('logged_method',0);
$smarty->assign('logged_method_2',0);
if (isset($_SESSION['user']['id']))
{
$smarty->assign('logged_method',1);
}
if (Users::isuser())
{
$smarty->assign('logged_method_2',1);
}
?>
PHP Snippet 2:
{if $logged_method eq 1} You are logged in using method 1 {/if}
{if $logged_method_2 eq 1} You are logged in using method 2 {/if}