mirror of
https://github.com/standardebooks/web.git
synced 2025-07-18 04:16:38 -04:00
Switch logged in user to static typed variable instead of in $GLOBALS
This commit is contained in:
parent
acb30b897c
commit
1449148989
25 changed files with 88 additions and 91 deletions
|
@ -1,6 +1,6 @@
|
|||
<section id="accessing-the-feeds">
|
||||
<h2>Accessing the feeds</h2>
|
||||
<? if($GLOBALS['User'] === null){ ?>
|
||||
<? if(Session::$User === null){ ?>
|
||||
<p>Our New Releases feeds are open to everyone. Our other feeds are a benefit of Patrons Circle membership.</p>
|
||||
<ul>
|
||||
<li>
|
||||
|
@ -19,7 +19,7 @@
|
|||
<p>
|
||||
<i>If you’re a Patrons Circle member, when prompted enter your email address and leave the password field blank to access a feed.</i>
|
||||
</p>
|
||||
<? }elseif($GLOBALS['User']->Benefits->CanAccessFeeds){ ?>
|
||||
<? }elseif(Session::$User->Benefits->CanAccessFeeds){ ?>
|
||||
<p>When prompted enter your email address and leave the password field blank to access a feed.</p>
|
||||
<? }else{ ?>
|
||||
<p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue