Quantcast
Viewing latest article 1
Browse Latest Browse All 6

If User is Logged in, Display or Do This

Sometimes, when building a theme for concrete5 you might need to display some text or code that appears when a user is logged in to their site. Here is how you do that:

<?php global $u; 
if ($u -> isLoggedIn ()) { ?>
//Do Something
<?php } ?>

Viewing latest article 1
Browse Latest Browse All 6

Trending Articles