-
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.
All foundations are setup. Development can begin.
- Loading branch information
1 parent
d905f8f
commit 90bd8bc
Showing
38 changed files
with
879 additions
and
1,928 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 |
---|---|---|
@@ -1,63 +1,49 @@ | ||
<?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. | ||
* The template for displaying archive pages. | ||
* | ||
* @link https://codex.wordpress.org/Template_Hierarchy | ||
* | ||
* @package NC Template | ||
* @package NC_Template | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<div id="primary" class="content-area"> | ||
<main id="main" class="site-main" role="main"> | ||
|
||
<?php if ( have_posts() ) : ?> | ||
<?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 --> | ||
|
||
</header> | ||
<?php | ||
// Start the Loop. | ||
/* 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( 'template-parts/content', get_post_format() ); | ||
get_template_part( 'components/post/content', get_post_format() ); | ||
|
||
// End the loop. | ||
endwhile; | ||
|
||
// Previous/next page navigation. | ||
the_posts_pagination( array( | ||
'prev_text' => __( 'Previous page', 'nc-template' ), | ||
'next_text' => __( 'Next page', 'nc-template' ), | ||
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'nc-template' ) . ' </span>', | ||
) ); | ||
the_posts_navigation(); | ||
|
||
// If no content, include the "No posts found" template. | ||
else : | ||
get_template_part( 'template-parts/content', 'none' ); | ||
|
||
endif; | ||
?> | ||
get_template_part( 'components/post/content', 'none' ); | ||
|
||
</main><!-- .site-main --> | ||
</div><!-- .content-area --> | ||
endif; ?> | ||
|
||
<?php get_sidebar(); ?> | ||
<?php get_footer(); ?> | ||
</main> | ||
</div> | ||
<?php | ||
get_sidebar(); | ||
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
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,12 @@ | ||
<?php | ||
/** | ||
* Template part for displaying the content footer. | ||
* | ||
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials | ||
* | ||
* @package NC_Template | ||
*/ | ||
|
||
?><footer class="entry-footer"> | ||
<?php nc_template_entry_footer(); ?> | ||
</footer><!-- .entry-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,12 @@ | ||
<?php | ||
/** | ||
* Template part for displaying the content meta. | ||
* | ||
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials | ||
* | ||
* @package NC_Template | ||
*/ | ||
|
||
?><div class="entry-meta"> | ||
<?php nc_template_posted_on(); ?> | ||
</div><!-- .entry-meta --> |
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,36 @@ | ||
<?php | ||
/** | ||
* Template part for displaying a message that posts cannot be found. | ||
* | ||
* @link https://codex.wordpress.org/Template_Hierarchy | ||
* | ||
* @package NC_Template | ||
*/ | ||
|
||
?> | ||
|
||
<section class="no-results not-found"> | ||
<header class="page-header"> | ||
<h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'nc-template' ); ?></h1> | ||
</header> | ||
<div class="page-content"> | ||
<?php | ||
if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> | ||
|
||
<p><?php printf( wp_kses( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'nc-template' ), array( 'a' => array( 'href' => array() ) ) ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p> | ||
|
||
<?php elseif ( is_search() ) : ?> | ||
|
||
<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'nc-template' ); ?></p> | ||
<?php | ||
get_search_form(); | ||
|
||
else : ?> | ||
|
||
<p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'nc-template' ); ?></p> | ||
<?php | ||
get_search_form(); | ||
|
||
endif; ?> | ||
</div> | ||
</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,39 @@ | ||
<?php | ||
/** | ||
* Template part for displaying page content in page.php. | ||
* | ||
* @link https://codex.wordpress.org/Template_Hierarchy | ||
* | ||
* @package NC_Template | ||
*/ | ||
|
||
?> | ||
|
||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | ||
<header class="entry-header"> | ||
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> | ||
</header> | ||
<div class="entry-content"> | ||
<?php | ||
the_content(); | ||
|
||
wp_link_pages( array( | ||
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'nc-template' ), | ||
'after' => '</div>', | ||
) ); | ||
?> | ||
</div> | ||
<footer class="entry-footer"> | ||
<?php | ||
edit_post_link( | ||
sprintf( | ||
/* translators: %s: Name of current post */ | ||
esc_html__( 'Edit %s', 'nc-template' ), | ||
the_title( '<span class="screen-reader-text">"', '"</span>', false ) | ||
), | ||
'<span class="edit-link">', | ||
'</span>' | ||
); | ||
?> | ||
</footer> | ||
</article><!-- #post-## --> |
Oops, something went wrong.