Use this code in the theme files:
<?php if($this->Access->_user->id == 0):?> Register to View This Content <?php else:?> Content shown to registered users <?php endif;?>