-
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.
Merge pull request #4 from thoughtis/day-four
Day Four
- Loading branch information
Showing
10 changed files
with
176 additions
and
5 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/** | ||
* Page | ||
* | ||
* @package Cata | ||
*/ | ||
|
||
get_header(); | ||
?> | ||
<div class="site__content" id="content"> | ||
<section class="site__primary area--content" id="primary"> | ||
<main class="site__main" id="main"> | ||
<?php | ||
while ( have_posts() ) : | ||
|
||
the_post(); | ||
|
||
get_template_part( 'template-parts/content/content', get_post_type() ); | ||
|
||
the_post_navigation(); | ||
|
||
if ( comments_open() ) : | ||
comments_template(); | ||
endif; | ||
|
||
endwhile; | ||
?> | ||
</main> | ||
</section> | ||
<?php get_sidebar(); ?> | ||
</div> | ||
<?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,33 @@ | ||
<?php | ||
/** | ||
* Single | ||
* | ||
* @package Cata | ||
*/ | ||
|
||
get_header(); | ||
?> | ||
<div class="site__content" id="content"> | ||
<section class="site__primary area--content" id="primary"> | ||
<main class="site__main" id="main"> | ||
<?php | ||
while ( have_posts() ) : | ||
|
||
the_post(); | ||
|
||
get_template_part( 'template-parts/content/content', get_post_type() ); | ||
|
||
the_post_navigation(); | ||
|
||
if ( comments_open() ) : | ||
comments_template(); | ||
endif; | ||
|
||
endwhile; | ||
?> | ||
</main> | ||
</section> | ||
<?php get_sidebar(); ?> | ||
</div> | ||
<?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,29 @@ | ||
<?php | ||
/** | ||
* Content | ||
* content-*.php templates are used for singular posts. | ||
* | ||
* @see /template-parts/preview/preview-*.php for posts in archives. | ||
* @package Cata | ||
*/ | ||
|
||
?> | ||
<article <?php post_class(); ?>> | ||
<header> | ||
<h1><?php the_title(); ?></h1> | ||
</header> | ||
<?php if ( has_post_thumbnail() ) : ?> | ||
<figure> | ||
<?php the_post_thumbnail(); ?> | ||
<?php if ( '' !== get_the_post_thumbnail_caption() ) : ?> | ||
<figcaption> | ||
<?php the_post_thumbnail_caption(); ?> | ||
</figcaption> | ||
<?php endif; ?> | ||
</figure> | ||
<?php endif; ?> | ||
<div> | ||
<?php the_content(); ?> | ||
</div> | ||
<footer></footer> | ||
</article> |
File renamed without changes.
File renamed without changes.
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,31 @@ | ||
<?php | ||
/** | ||
* Preview | ||
* preview-*.php templates are used for posts within archives. | ||
* | ||
* @see /template-parts/content/content-*.php for singular posts. | ||
* @package Cata | ||
*/ | ||
|
||
?> | ||
<article <?php post_class(); ?>> | ||
<header> | ||
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> | ||
</header> | ||
<?php if ( has_post_thumbnail() ) : ?> | ||
<figure> | ||
<a href="<?php the_permalink(); ?>"> | ||
<?php the_post_thumbnail(); ?> | ||
</a> | ||
<?php if ( '' !== get_the_post_thumbnail_caption() ) : ?> | ||
<figcaption> | ||
<?php the_post_thumbnail_caption(); ?> | ||
</figcaption> | ||
<?php endif; ?> | ||
</figure> | ||
<?php endif; ?> | ||
<div> | ||
<?php the_excerpt(); ?> | ||
</div> | ||
<footer></footer> | ||
</article> |