forked from weblab/cornerstone
-
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.
2 new page templates for Page Builder + Styles
- Loading branch information
briandunnigan
authored and
briandunnigan
committed
Feb 11, 2016
1 parent
d1186c1
commit f3cfe4a
Showing
6 changed files
with
194 additions
and
7 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,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,30 @@ | ||
<?php | ||
/** | ||
Template Name: Page Builder - Cards | ||
*/ | ||
|
||
get_header(); ?> | ||
<div id="page-page-builder-cards"> | ||
<?php include('inc/sidebar-check.php')?> | ||
<?php while ( have_posts() ) : the_post(); ?> | ||
<?php include('inc/submenu-check.php')?> | ||
<div class="row"> | ||
<div class="col-sm-<?php echo (is_active_sidebar( $sidebar )?9:12); ?>"> | ||
<div id="primary" class="content-area subpage"> | ||
<main id="main" class="site-main" role="main"> | ||
<?php get_template_part( 'content', 'blank' ); ?> | ||
<?php | ||
// If comments are open or we have at least one comment, load up the comment template | ||
if ( comments_open() || '0' != get_comments_number() ) : | ||
comments_template(); | ||
endif; | ||
?> | ||
</main> | ||
</div> | ||
</div> | ||
<?php include('inc/sidebar-if-active.php')?> | ||
</div> | ||
<?php include('inc/submenu-closing-tags.php')?> | ||
<?php endwhile; // end of the loop. ?> | ||
</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
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