Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
2 new page templates for Page Builder + Styles
  • Loading branch information
briandunnigan authored and briandunnigan committed Feb 11, 2016
1 parent d1186c1 commit f3cfe4a
Show file tree
Hide file tree
Showing 6 changed files with 194 additions and 7 deletions.
32 changes: 32 additions & 0 deletions content-featured_image.php
@@ -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-## -->
30 changes: 30 additions & 0 deletions page-pagebuilder-cards.php
@@ -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(); ?>
18 changes: 11 additions & 7 deletions page-pagebuilder.php
Expand Up @@ -10,13 +10,17 @@ get_header(); ?>
<?php include('inc/submenu-check.php')?>
<div class="row">
<div class="col-sm-<?php echo (is_active_sidebar( $sidebar )?9:12); ?>">
<?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;
?>
<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>
Expand Down
58 changes: 58 additions & 0 deletions sass/_page-builder.scss
Expand Up @@ -20,3 +20,61 @@
}
}

#page-page-builder {
#primary {
#main {
.page {
h3.widget-title {
margin-top:0px;
margin-bottom:0.75em;
font-weight:500;

}
}
}
}
}

#page-page-builder-cards {
#primary {
#main {
background-color:transparent;
border:none;
padding-left:0px;
padding-right:0px;

.page {

.entry-content {
margin-top:0;

h3.widget-title {
margin-top:0px;
margin-bottom:0.75em;
font-weight:500;

}
.widget {
background-color:white;
border:1px solid #eaeaea;
padding:2em;
margin-bottom:10px;
}
}

}
.panel-grid {
margin-bottom:0px;
margin-left:-5px;
margin-right:-5px;

.panel-grid-cell {
padding-left:5px;
padding-right:5px;
}
}
}
}
}


16 changes: 16 additions & 0 deletions sass/_widgets.scss
Expand Up @@ -817,6 +817,22 @@
}


/* Post Loop Styling */

.widget_siteorigin-panels-postloop {
.content-template-date {
font-size:12px;
}
h2.entry-title {
line-height:1.25em;
}
.entry-content {
margin-top:0.75em;
}
}






47 changes: 47 additions & 0 deletions style.css
Expand Up @@ -7462,6 +7462,17 @@ button.close {
color: #474747 !important;
}

/* Post Loop Styling */
.widget_siteorigin-panels-postloop .content-template-date {
font-size: 12px;
}
.widget_siteorigin-panels-postloop h2.entry-title {
line-height: 1.25em;
}
.widget_siteorigin-panels-postloop .entry-content {
margin-top: 0.75em;
}

/* - - - - - - - - - - - - - - - - - - -
== Content
- - - - - - - - - - - - - - - - - - - */
Expand Down Expand Up @@ -10629,3 +10640,39 @@ input[type="button"]#footers.btn-block {
display: none !important;
content: none !important;
}

#page-page-builder #primary #main .page h3.widget-title {
margin-top: 0px;
margin-bottom: 0.75em;
font-weight: 500;
}

#page-page-builder-cards #primary #main {
background-color: transparent;
border: none;
padding-left: 0px;
padding-right: 0px;
}
#page-page-builder-cards #primary #main .page .entry-content {
margin-top: 0;
}
#page-page-builder-cards #primary #main .page .entry-content h3.widget-title {
margin-top: 0px;
margin-bottom: 0.75em;
font-weight: 500;
}
#page-page-builder-cards #primary #main .page .entry-content .widget {
background-color: white;
border: 1px solid #eaeaea;
padding: 2em;
margin-bottom: 10px;
}
#page-page-builder-cards #primary #main .panel-grid {
margin-bottom: 0px;
margin-left: -5px;
margin-right: -5px;
}
#page-page-builder-cards #primary #main .panel-grid .panel-grid-cell {
padding-left: 5px;
padding-right: 5px;
}

0 comments on commit f3cfe4a

Please sign in to comment.