This repository has been archived by the owner. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Adding support for the post loop widget and 4 custom templates
- Loading branch information
Showing
5 changed files
with
143 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,22 @@ | ||
<?php | ||
/** | ||
* @package cs | ||
*/ | ||
?> | ||
|
||
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>> | ||
<header class="entry-header"> | ||
|
||
<?php the_title( sprintf( '<h2 class="entry-title-single"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> | ||
|
||
<?php if ( 'post' == get_post_type() ) : ?> | ||
<div class="entry-meta"> | ||
<span class="content-template-date"><?php the_time('F j, Y'); ?></span> | ||
</div><!-- .entry-meta --> | ||
<?php endif; ?> | ||
</header><!-- .entry-header --> | ||
|
||
|
||
<!--<?php edit_post_link( __( 'Edit', 'cs' ), '<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,32 @@ | ||
<?php | ||
/** | ||
* @package cs | ||
*/ | ||
?> | ||
|
||
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>> | ||
<header class="entry-header"> | ||
<?php the_post_thumbnail('large') ?> | ||
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> | ||
|
||
<?php if ( 'post' == get_post_type() ) : ?> | ||
<div class="entry-meta"> | ||
<span class="content-template-date"><?php the_time('F j, Y'); ?></span> | ||
</div><!-- .entry-meta --> | ||
<?php endif; ?> | ||
</header><!-- .entry-header --> | ||
|
||
<div class="entry-content"> | ||
<?php the_excerpt(); ?><span class="read_more"><a href="<?php the_permalink(); ?>">Read More »</a></span> | ||
<?php | ||
wp_link_pages( array( | ||
'before' => '<div class="page-links">' . __( 'Pages:', 'cs' ), | ||
'after' => '</div>', | ||
) ); | ||
?> | ||
</div><!-- .entry-content --> | ||
|
||
|
||
<!--<?php edit_post_link( __( 'Edit', 'cs' ), '<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,32 @@ | ||
<?php | ||
/** | ||
* @package cs | ||
*/ | ||
?> | ||
|
||
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>> | ||
<header class="entry-header"> | ||
|
||
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> | ||
|
||
<?php if ( 'post' == get_post_type() ) : ?> | ||
<div class="entry-meta"> | ||
<span class="content-template-date"><?php the_time('F j, Y'); ?></span> | ||
</div><!-- .entry-meta --> | ||
<?php endif; ?> | ||
</header><!-- .entry-header --> | ||
|
||
<div class="entry-content"> | ||
<?php the_excerpt(); ?><span class="read_more"><a href="<?php the_permalink(); ?>">Read More »</a></span> | ||
<?php | ||
wp_link_pages( array( | ||
'before' => '<div class="page-links">' . __( 'Pages:', 'cs' ), | ||
'after' => '</div>', | ||
) ); | ||
?> | ||
</div><!-- .entry-content --> | ||
|
||
|
||
<!--<?php edit_post_link( __( 'Edit', 'cs' ), '<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,19 @@ | ||
<?php | ||
/** | ||
* @package cs | ||
*/ | ||
?> | ||
|
||
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>> | ||
<header class="entry-header"> | ||
|
||
<?php the_title( sprintf( '<h2 class="entry-title-single"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> | ||
|
||
<?php if ( 'post' == get_post_type() ) : ?> | ||
|
||
<?php endif; ?> | ||
</header><!-- .entry-header --> | ||
|
||
|
||
</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