-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f3ae197
Showing
146 changed files
with
35,015 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php | ||
// Silence is golden. |
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,2 @@ | ||
<?php | ||
// Silence is golden. |
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,2 @@ | ||
<?php | ||
// Silence is golden. |
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,30 @@ | ||
<?php | ||
/** | ||
* The template for displaying 404 pages (not found) | ||
* | ||
* @package WordPress | ||
* @subpackage Twenty_Fifteen | ||
* @since Twenty Fifteen 1.0 | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<div id="primary" class="content-area"> | ||
<main id="main" class="site-main" role="main"> | ||
|
||
<section class="error-404 not-found"> | ||
<header class="page-header"> | ||
<h1 class="page-title"><?php _e( 'Oops! That page can’t be found.', 'twentyfifteen' ); ?></h1> | ||
</header><!-- .page-header --> | ||
|
||
<div class="page-content"> | ||
<p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentyfifteen' ); ?></p> | ||
|
||
<?php get_search_form(); ?> | ||
</div><!-- .page-content --> | ||
</section><!-- .error-404 --> | ||
|
||
</main><!-- .site-main --> | ||
</div><!-- .content-area --> | ||
|
||
<?php get_footer(); ?> |
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,64 @@ | ||
<?php | ||
/** | ||
* The template for displaying archive pages | ||
* | ||
* Used to display archive-type pages if nothing more specific matches a query. | ||
* For example, puts together date-based pages if no date.php file exists. | ||
* | ||
* If you'd like to further customize these archive views, you may create a | ||
* new template file for each one. For example, tag.php (Tag archives), | ||
* category.php (Category archives), author.php (Author archives), etc. | ||
* | ||
* @link https://codex.wordpress.org/Template_Hierarchy | ||
* | ||
* @package WordPress | ||
* @subpackage Twenty_Fifteen | ||
* @since Twenty Fifteen 1.0 | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<section id="primary" class="content-area"> | ||
<main id="main" class="site-main" role="main"> | ||
|
||
<?php if ( have_posts() ) : ?> | ||
|
||
<header class="page-header"> | ||
<?php | ||
the_archive_title( '<h1 class="page-title">', '</h1>' ); | ||
the_archive_description( '<div class="taxonomy-description">', '</div>' ); | ||
?> | ||
</header><!-- .page-header --> | ||
|
||
<?php | ||
// Start the Loop. | ||
while ( have_posts() ) : the_post(); | ||
|
||
/* | ||
* Include the Post-Format-specific template for the content. | ||
* If you want to override this in a child theme, then include a file | ||
* called content-___.php (where ___ is the Post Format name) and that will be used instead. | ||
*/ | ||
get_template_part( 'content', get_post_format() ); | ||
|
||
// End the loop. | ||
endwhile; | ||
|
||
// Previous/next page navigation. | ||
the_posts_pagination( array( | ||
'prev_text' => __( 'Previous page', 'twentyfifteen' ), | ||
'next_text' => __( 'Next page', 'twentyfifteen' ), | ||
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>', | ||
) ); | ||
|
||
// If no content, include the "No posts found" template. | ||
else : | ||
get_template_part( 'content', 'none' ); | ||
|
||
endif; | ||
?> | ||
|
||
</main><!-- .site-main --> | ||
</section><!-- .content-area --> | ||
|
||
<?php get_footer(); ?> |
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 | ||
/** | ||
* The template for displaying Author bios | ||
* | ||
* @package WordPress | ||
* @subpackage Twenty_Fifteen | ||
* @since Twenty Fifteen 1.0 | ||
*/ | ||
?> | ||
|
||
<div class="author-info"> | ||
<h2 class="author-heading"><?php _e( 'Published by', 'twentyfifteen' ); ?></h2> | ||
<div class="author-avatar"> | ||
<?php | ||
/** | ||
* Filter the author bio avatar size. | ||
* | ||
* @since Twenty Fifteen 1.0 | ||
* | ||
* @param int $size The avatar height and width size in pixels. | ||
*/ | ||
$author_bio_avatar_size = apply_filters( 'twentyfifteen_author_bio_avatar_size', 56 ); | ||
|
||
echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size ); | ||
?> | ||
</div><!-- .author-avatar --> | ||
|
||
<div class="author-description"> | ||
<h3 class="author-title"><?php echo get_the_author(); ?></h3> | ||
|
||
<p class="author-bio"> | ||
<?php the_author_meta( 'description' ); ?> | ||
<a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> | ||
<?php printf( __( 'View all posts by %s', 'twentyfifteen' ), get_the_author() ); ?> | ||
</a> | ||
</p><!-- .author-bio --> | ||
|
||
</div><!-- .author-description --> | ||
</div><!-- .author-info --> |
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,74 @@ | ||
<?php | ||
/** | ||
* The template for displaying comments | ||
* | ||
* The area of the page that contains both current comments | ||
* and the comment form. | ||
* | ||
* @package WordPress | ||
* @subpackage Twenty_Fifteen | ||
* @since Twenty Fifteen 1.0 | ||
*/ | ||
|
||
/* | ||
* If the current post is protected by a password and | ||
* the visitor has not yet entered the password we will | ||
* return early without loading the comments. | ||
*/ | ||
if ( post_password_required() ) { | ||
return; | ||
} | ||
?> | ||
|
||
<div id="comments" class="comments-area"> | ||
|
||
<?php if ( have_comments() ) : ?> | ||
<h2 class="comments-title"> | ||
<?php | ||
$comments_number = get_comments_number(); | ||
if ( '1' === $comments_number ) { | ||
/* translators: %s: post title */ | ||
printf( _x( 'One thought on “%s”', 'comments title', 'twentyfifteen' ), get_the_title() ); | ||
} else { | ||
printf( | ||
/* translators: 1: number of comments, 2: post title */ | ||
_nx( | ||
'%1$s thought on “%2$s”', | ||
'%1$s thoughts on “%2$s”', | ||
$comments_number, | ||
'comments title', | ||
'twentyfifteen' | ||
), | ||
number_format_i18n( $comments_number ), | ||
get_the_title() | ||
); | ||
} | ||
?> | ||
</h2> | ||
|
||
<?php twentyfifteen_comment_nav(); ?> | ||
|
||
<ol class="comment-list"> | ||
<?php | ||
wp_list_comments( array( | ||
'style' => 'ol', | ||
'short_ping' => true, | ||
'avatar_size' => 56, | ||
) ); | ||
?> | ||
</ol><!-- .comment-list --> | ||
|
||
<?php twentyfifteen_comment_nav(); ?> | ||
|
||
<?php endif; // have_comments() ?> | ||
|
||
<?php | ||
// If comments are closed and there are comments, let's leave a little note, shall we? | ||
if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : | ||
?> | ||
<p class="no-comments"><?php _e( 'Comments are closed.', 'twentyfifteen' ); ?></p> | ||
<?php endif; ?> | ||
|
||
<?php comment_form(); ?> | ||
|
||
</div><!-- .comments-area --> |
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,60 @@ | ||
<?php | ||
/** | ||
* The template for displaying link post formats | ||
* | ||
* Used for both single and index/archive/search. | ||
* | ||
* @package WordPress | ||
* @subpackage Twenty_Fifteen | ||
* @since Twenty Fifteen 1.0 | ||
*/ | ||
?> | ||
|
||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | ||
<?php twentyfifteen_post_thumbnail(); ?> | ||
|
||
<header class="entry-header"> | ||
<?php | ||
if ( is_single() ) : | ||
the_title( sprintf( '<h1 class="entry-title"><a href="%s">', esc_url( twentyfifteen_get_link_url() ) ), '</a></h1>' ); | ||
else : | ||
the_title( sprintf( '<h2 class="entry-title"><a href="%s">', esc_url( twentyfifteen_get_link_url() ) ), '</a></h2>' ); | ||
endif; | ||
?> | ||
</header> | ||
<!-- .entry-header --> | ||
|
||
<div class="entry-content"> | ||
<?php | ||
/* translators: %s: Name of current post */ | ||
the_content( sprintf( | ||
__( 'Continue reading %s', 'twentyfifteen' ), | ||
the_title( '<span class="screen-reader-text">', '</span>', false ) | ||
) ); | ||
|
||
wp_link_pages( array( | ||
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>', | ||
'after' => '</div>', | ||
'link_before' => '<span>', | ||
'link_after' => '</span>', | ||
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', | ||
'separator' => '<span class="screen-reader-text">, </span>', | ||
) ); | ||
?> | ||
</div> | ||
<!-- .entry-content --> | ||
|
||
<?php | ||
// Author bio. | ||
if ( is_single() && get_the_author_meta( 'description' ) ) : | ||
get_template_part( 'author-bio' ); | ||
endif; | ||
?> | ||
|
||
<footer class="entry-footer"> | ||
<?php twentyfifteen_entry_meta(); ?> | ||
<?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?> | ||
</footer> | ||
<!-- .entry-footer --> | ||
|
||
</article><!-- #post-## --> |
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,37 @@ | ||
<?php | ||
/** | ||
* The template part for displaying a message that posts cannot be found | ||
* | ||
* Learn more: {@link https://codex.wordpress.org/Template_Hierarchy} | ||
* | ||
* @package WordPress | ||
* @subpackage Twenty_Fifteen | ||
* @since Twenty Fifteen 1.0 | ||
*/ | ||
?> | ||
|
||
<section class="no-results not-found"> | ||
<header class="page-header"> | ||
<h1 class="page-title"><?php _e( 'Nothing Found', 'twentyfifteen' ); ?></h1> | ||
</header><!-- .page-header --> | ||
|
||
<div class="page-content"> | ||
|
||
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> | ||
|
||
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfifteen' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p> | ||
|
||
<?php elseif ( is_search() ) : ?> | ||
|
||
<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfifteen' ); ?></p> | ||
<?php get_search_form(); ?> | ||
|
||
<?php else : ?> | ||
|
||
<p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentyfifteen' ); ?></p> | ||
<?php get_search_form(); ?> | ||
|
||
<?php endif; ?> | ||
|
||
</div><!-- .page-content --> | ||
</section><!-- .no-results --> |
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,37 @@ | ||
<?php | ||
/** | ||
* The template used for displaying page content | ||
* | ||
* @package WordPress | ||
* @subpackage Twenty_Fifteen | ||
* @since Twenty Fifteen 1.0 | ||
*/ | ||
?> | ||
|
||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | ||
<?php | ||
// Post thumbnail. | ||
twentyfifteen_post_thumbnail(); | ||
?> | ||
|
||
<header class="entry-header"> | ||
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> | ||
</header><!-- .entry-header --> | ||
|
||
<div class="entry-content"> | ||
<?php the_content(); ?> | ||
<?php | ||
wp_link_pages( array( | ||
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>', | ||
'after' => '</div>', | ||
'link_before' => '<span>', | ||
'link_after' => '</span>', | ||
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', | ||
'separator' => '<span class="screen-reader-text">, </span>', | ||
) ); | ||
?> | ||
</div><!-- .entry-content --> | ||
|
||
<?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->' ); ?> | ||
|
||
</article><!-- #post-## --> |
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,37 @@ | ||
<?php | ||
/** | ||
* The template part for displaying results in search pages | ||
* | ||
* Learn more: {@link https://codex.wordpress.org/Template_Hierarchy} | ||
* | ||
* @package WordPress | ||
* @subpackage Twenty_Fifteen | ||
* @since Twenty Fifteen 1.0 | ||
*/ | ||
?> | ||
|
||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | ||
<?php twentyfifteen_post_thumbnail(); ?> | ||
|
||
<header class="entry-header"> | ||
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> | ||
</header><!-- .entry-header --> | ||
|
||
<div class="entry-summary"> | ||
<?php the_excerpt(); ?> | ||
</div><!-- .entry-summary --> | ||
|
||
<?php if ( 'post' == get_post_type() ) : ?> | ||
|
||
<footer class="entry-footer"> | ||
<?php twentyfifteen_entry_meta(); ?> | ||
<?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?> | ||
</footer><!-- .entry-footer --> | ||
|
||
<?php else : ?> | ||
|
||
<?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->' ); ?> | ||
|
||
<?php endif; ?> | ||
|
||
</article><!-- #post-## --> |
Oops, something went wrong.