Add PHPCS config, lint files
This commit is contained in:
parent
3c30f664b8
commit
c5a41ae9ea
24 changed files with 1686 additions and 1427 deletions
|
@ -1,30 +1,30 @@
|
|||
<?php
|
||||
/**
|
||||
* The template used for displaying page content.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Sixteen
|
||||
* @since Twenty Sixteen 1.0
|
||||
*/
|
||||
* 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>
|
||||
<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>
|
||||
<?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();
|
||||
<?php
|
||||
if ( get_the_content() ) :
|
||||
the_content();
|
||||
else :
|
||||
echo get_the_excerpt();
|
||||
endif;
|
||||
?>
|
||||
?>
|
||||
</main><!-- .entry-content -->
|
||||
</article><!-- #post-## -->
|
||||
|
|
Reference in a new issue