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
Adding class for content area widgets
  • Loading branch information
andrewmbacon committed Jun 1, 2015
1 parent 3db55d6 commit e19f0fa
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 89 deletions.
2 changes: 1 addition & 1 deletion content-single.php
Expand Up @@ -23,7 +23,7 @@

</header><!-- .entry-header -->

<div class="entry-content clearfix">
<div class="entry-content clearfix subpage">


<?php the_content(); ?>
Expand Down
2 changes: 1 addition & 1 deletion page-az.php
Expand Up @@ -12,7 +12,7 @@ get_header(); ?>
<?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">
<div id="primary" class="content-area subpage">
<main id="main" class="site-main" role="main">
<?php get_template_part( 'content', 'az' ); ?>
</main>
Expand Down
2 changes: 1 addition & 1 deletion page-blog.php
Expand Up @@ -10,7 +10,7 @@ get_header(); ?>
<?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">
<div id="primary" class="content-area subpage">
<main id="main" class="site-main" role="main">
<?php
the_content();
Expand Down
93 changes: 46 additions & 47 deletions page-home.php
@@ -1,47 +1,46 @@
<?php
/**
Template Name: Home
* The template for displaying the homepage.
*
* @package cornerstone
*/
$rows = get_theme_mod('homepagerows', '2');
$count = 1;
get_header();
?>

<div id="page-home">
<?php while ( have_posts() ) : the_post(); ?>
<?php for($i=0; $i<$rows; $i++){ /* Begin Homepage Builder... */?>
<div class="row">
<?php
$widths = get_theme_mod('homepage_'.$i, '12');
$widths = explode(',',$widths);
if(count($widths) == 1) $widths[0] = 12;
foreach($widths as $width){
if($width == 0) break;
?>
<div class="col-sm-<?php echo $width; ?>">
<div class="home-section" id="home-section-<?php echo $count; ?>">
<?php if ( is_active_sidebar( 'home'.$count ) ) {
dynamic_sidebar( 'home'.$count );
} elseif(isset( $wp_customize )) {
?>
<div class="widget widget-placeholder">
<h3>Home <?php echo $count; ?></h3>
<p>This is a placeholder and will not be visible to the public. Add content to this section with the "Widgets" tool.</p>
</div>
<?php
} else {

}?>
</div>
</div>
<?php $count ++; } ?>
</div>
<!-- /row-->
<?php } /* ... end Homepage Builder */?>
<?php endwhile; // end of the loop. ?>
</div>
<?php get_footer(); ?>
<?php
/**
Template Name: Home
* The template for displaying the homepage.
*
* @package cornerstone
*/
$rows = get_theme_mod('homepagerows', '2');
$count = 1;
get_header();
?>
<div id="page-home">
<?php while ( have_posts() ) : the_post(); ?>
<?php for($i=0; $i<$rows; $i++){ /* Begin Homepage Builder... */?>
<div class="row">
<?php
$widths = get_theme_mod('homepage_'.$i, '12');
$widths = explode(',',$widths);
if(count($widths) == 1) $widths[0] = 12;
foreach($widths as $width){
if($width == 0) break;
?>
<div class="col-sm-<?php echo $width; ?>">
<div class="home-section" id="home-section-<?php echo $count; ?>">
<?php if ( is_active_sidebar( 'home'.$count ) ) {
dynamic_sidebar( 'home'.$count );
} elseif(isset( $wp_customize )) {
?>
<div class="widget widget-placeholder">
<h3>Home <?php echo $count; ?></h3>
<p>This is a placeholder and will not be visible to the public. Add content to this section with the "Widgets" tool.</p>
</div>
<?php
} else {

}?>
</div>
</div>
<?php $count ++; } ?>
</div>
<!-- /row-->
<?php } /* ... end Homepage Builder */?>
<?php endwhile; // end of the loop. ?>
</div>
<?php get_footer(); ?>
2 changes: 1 addition & 1 deletion page-private.php
Expand Up @@ -11,7 +11,7 @@ get_header(); ?>
<div class="row">
<div class="col-sm-<?php echo (is_active_sidebar( $sidebar )?9:12); ?>">

<div id="primary" class="content-area">
<div id="primary" class="content-area subpage">
<main id="main" class="site-main" role="main">
<?php get_template_part( 'content', 'page' ); ?>
</main>
Expand Down
2 changes: 1 addition & 1 deletion page-user-profile.php
Expand Up @@ -19,7 +19,7 @@ get_header();
<?php uup_display_user();?>
</div>
<div class="col-sm-9">
<div id="primary" class="content-area">
<div id="primary" class="content-area subpage">
<main id="main" class="site-main" role="main">
<?php get_template_part( 'content', 'page' ); ?>
<?php
Expand Down
74 changes: 37 additions & 37 deletions page.php
@@ -1,37 +1,37 @@
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package cornerstone
*/

get_header(); ?>
<?php include('inc/sidebar-check.php')?>
<div id="page-page">
<?php if (have_posts()) : 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">
<main id="main" class="site-main" role="main">
<?php get_template_part( 'content', 'page' ); ?>
<?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; endif; // end of the loop. ?>
</div>
<?php get_footer(); ?>
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package cornerstone
*/

get_header(); ?>
<?php include('inc/sidebar-check.php')?>
<div id="page-page">
<?php if (have_posts()) : 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', 'page' ); ?>
<?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; endif; // end of the loop. ?>
</div>
<?php get_footer(); ?>

0 comments on commit e19f0fa

Please sign in to comment.