Initial Commit
This commit is contained in:
parent
4c352bf02e
commit
1ab6e5f0b0
1085 changed files with 195258 additions and 0 deletions
30
template-parts/content-page.php
Normal file
30
template-parts/content-page.php
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
/**
|
||||
* The template used for displaying page content.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Sixteen
|
||||
* @since Twenty Sixteen 1.0
|
||||
*/
|
||||
?>
|
||||
|
||||
<article id="wrapper" <?php post_class(); ?>>
|
||||
<header style="background-image: url('<?php the_post_thumbnail_url(); ?>');">
|
||||
<div>
|
||||
<h1 id="post-title"><?php echo get_the_title(); ?></h1>
|
||||
<?php if ($subtitle = get_post_meta(get_the_ID(), 'Subtitle', true)): ?>
|
||||
<h2 id="post-subtitle"><?php echo $subtitle ?></h2>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<main id="page-body" class="body">
|
||||
<?php
|
||||
if (get_the_content()):
|
||||
the_content();
|
||||
else:
|
||||
echo get_the_excerpt();
|
||||
endif;
|
||||
?>
|
||||
</main><!-- .entry-content -->
|
||||
</article><!-- #post-## -->
|
Reference in a new issue