Yuzu Theme
from meowapps.com
This commit is contained in:
52
page.php
Normal file
52
page.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
|
||||
<div class="single-page">
|
||||
<?php
|
||||
while ( have_posts() ) :
|
||||
the_post();
|
||||
?>
|
||||
<div class="page-header medium-container">
|
||||
<h1 class="page-title"><?= get_the_title(); ?></h1>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$featured_image = get_the_post_thumbnail_url(get_the_ID(),'large');
|
||||
if($featured_image) { ?>
|
||||
<div class="page-featured-image fullwidth-container">
|
||||
<img src="<?= $featured_image; ?>">
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="entry-content fullwidth-container">
|
||||
<?php the_content(); ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
// If comments are open or we have at least one comment, load up the comment template.
|
||||
if ( comments_open() || get_comments_number() ) :
|
||||
?>
|
||||
<div class="comments-section">
|
||||
<?php
|
||||
comments_template();
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
endwhile; // End of the loop.
|
||||
?>
|
||||
</div>
|
||||
|
||||
</main><!-- #main -->
|
||||
</div><!-- #primary -->
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
Reference in New Issue
Block a user