Quantcast
Channel: c5mix Blog » Tips
Viewing all articles
Browse latest Browse all 6

If User is Logged in, Display or Do This

$
0
0

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 all articles
Browse latest Browse all 6

Trending Articles