How to make part of theme visible only to registered users

From JReviews Documentation
Revision as of 15:15, 9 July 2018 by Jreviews (Talk | contribs)

Jump to: navigation, search

Use this code in the theme files:

<?php if(!$this->auth->connected):?>
 
Register to View This Content
 
<?php else:?>
 
Content shown to registered users
 
<?php endif;?>