Created
February 28, 2025 16:27
-
-
Save mreidsma/fe7648b4d20bcdf45e01bc128020fd3a to your computer and use it in GitHub Desktop.
Simplepages template file for views>public>page>show.php
This file contains 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 | |
$bodyclass = 'page simple-page'; | |
if ($is_home_page): | |
$bodyclass .= ' simple-page-home'; | |
endif; | |
echo head(array( | |
'title' => metadata('simple_pages_page', 'title'), | |
'bodyclass' => $bodyclass, | |
'bodyid' => metadata('simple_pages_page', 'slug') | |
)); | |
?> | |
<div id="primary"> | |
<?php if (!$is_home_page): ?> | |
<div class="wrapper"> | |
<div class="content" style="padding-top: 0; padding-bottom: 0;"> | |
<div class="row"> | |
<div class="col-12"> | |
<h1 class="h2"><?php echo metadata('simple_pages_page', 'title'); ?></h1> | |
<?php endif; ?> | |
<?php | |
$text = metadata('simple_pages_page', 'text', array('no_escape' => true)); | |
echo $this->shortcodes($text); | |
?> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<?php echo foot(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment