Created
September 2, 2013 09:56
-
-
Save sashtown/6411171 to your computer and use it in GitHub Desktop.
Kirby Auth Plugin: Stuff to redirect to the last page before the login/logout.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php snippet('header') ?> | |
<main role="main"> | |
<article class="content"> | |
<h1><?php echo html($page->title()) ?></h1> | |
<?php echo kirbytext($page->text()) ?> | |
<?php if($user = Auth::user()): ?> | |
<?php echo kirbytext($page->auth()) ?> | |
<?php endif ?> | |
</article> | |
</main> | |
<?php snippet('footer') ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $login = Auth::login() ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php Auth::logout() ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment