Skip to content

Commit

Permalink
Merge pull request weblab#106 from jmr06005/master
Browse files Browse the repository at this point in the history
Need more QA, we're above spelling mistakes!
  • Loading branch information
jmr06005 committed Feb 20, 2015
2 parents 3073383 + b04b289 commit a6d32bd
Showing 1 changed file with 47 additions and 47 deletions.
94 changes: 47 additions & 47 deletions page-home.php
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
<?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 tbe 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(); ?>

0 comments on commit a6d32bd

Please sign in to comment.