Difference between revisions of "How to make part of theme visible only to registered users"
From JReviews Documentation
Line 2: | Line 2: | ||
<source lang="php"> | <source lang="php"> | ||
− | <?php if($this->Access-> | + | <?php if($this->Access->isGuest()):?> |
Register to View This Content | Register to View This Content |
Revision as of 07:40, 27 July 2013
Use this code in the theme files:
<?php if($this->Access->isGuest()):?> Register to View This Content <?php else:?> Content shown to registered users <?php endif;?>