Created
August 11, 2014 17:20
-
-
Save Sulcalibur/e2df4658af55dcf1230f to your computer and use it in GitHub Desktop.
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 if($page->hasPrevVisible()): ?> | |
<a href="<?php echo $page->prevVisible()->url() ?>">previous page</a> | |
<?php endif ?> | |
<?php if($page->hasNextVisible()): ?> | |
<a href="<?php echo $page->nextVisible()->url() ?>">next page</a> | |
<?php endif ?> | |
<div class="next-post-container"> | |
<section class="next-post" style="background: url(<?php echo $page->prevVisible()->url() ?>/<?php echo $page->prevVisible()->featimg() ?>) center center no-repeat; background-size: cover; opacity: 0.4;"> | |
<?php if($page->hasPrevVisible()): ?> | |
<h1><a href="<?php echo $page->prevVisible()->url() ?>"><?php echo $page->prevVisible()->title() ?></a></h1> | |
<h2><a href="<?php echo $page->prevVisible()->url() ?>"><?php echo $page->prevVisible()->subtitle() ?></a></h2> | |
<?php endif ?> | |
</div> | |
</section> | |
<?php foreach($page->files()->findByExtension('js') as $js): ?> | |
<?php echo js($js->url()) ?> | |
<?php endforeach ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment