This repository has been archived by the owner on Jul 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from washingtonstateuniversity/template-fixes
Template fixes
- Loading branch information
Showing
13 changed files
with
119 additions
and
80 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
/** | ||
* Single Page Layout Template | ||
* | ||
* The template for layout out the content of page content in single page views. | ||
* | ||
* @package WSU_Human_Resources_Services | ||
* | ||
* @since 0.17.6 | ||
*/ | ||
?> | ||
|
||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'article-content' ); ?>> | ||
|
||
<?php if ( true === spine_get_option( 'articletitle_show' ) ) : ?> | ||
<header class="article-header"> | ||
<h1 class="article-title"><?php the_title(); ?></h1> | ||
</header> | ||
<?php endif; ?> | ||
|
||
<?php | ||
if ( spine_has_featured_image() ) : | ||
$image_caption = get_post( get_post_thumbnail_id() )->post_excerpt; | ||
?> | ||
<figure class="article-image feature-image"> | ||
<a href="<?php echo esc_url( spine_get_featured_image_src() ); ?>"> | ||
<?php spine_the_featured_image(); ?> | ||
</a> | ||
<?php if ( ! empty( $image_caption ) ) : ?> | ||
<figcaption class="wp-caption-text"><?php echo esc_html( $image_caption ); ?></figcaption> | ||
<?php endif; ?> | ||
</figure> | ||
<?php | ||
endif; | ||
|
||
the_content(); | ||
?> | ||
|
||
</article> |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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