Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
19322e055c
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
651 lines (598 sloc) 18.4 KB
<?php
/*
Template Name: Home
*/
get_header();
$homepageLayout = get_theme_mod( 'homepagelayout','3-3');
if($homepageLayout == '1-3') {
/*
Template Name: Homepage 1-3
*/
?>
<div id="home">
<div class="row" id="row1">
<div id="home1" class="span12" role="complementary">
<?php if ( is_active_sidebar( 'home1' ) ) { ?>
<?php dynamic_sidebar( 'home1' ); ?>
<?php } else { ?>
<h1>Home1</h1>
<p>Go to Appearance > Widgets, and drag items into Home1 to edit this area.</p>
<?php }; ?>
</div>
</div>
<div class="row" id="row2">
<div id="home2" class="span4" role="complementary">
<?php if ( is_active_sidebar( 'home2' ) ) { ?>
<?php dynamic_sidebar( 'home2' ); ?>
<?php } else { ?>
<h1>Home2</h1>
<p>Go to Appearance > Widgets, and drag items into Home2 to edit this area.</p>
<?php }; ?>
</div>
<div id="home3" class="span4" role="complementary">
<?php if ( is_active_sidebar( 'home3' ) ) { ?>
<?php dynamic_sidebar( 'home3' ); ?>
<?php } else { ?>
<h1>Home3</h1>
<p>Go to Appearance > Widgets, and drag items into Home3 to edit this area.</p>
<?php }; ?>
</div>
<div id="home4" class="span4" role="complementary">
<?php if ( is_active_sidebar( 'home4' ) ) { ?>
<?php dynamic_sidebar( 'home4' ); ?>
<?php } else { ?>
<h1>Home4</h1>
<p>Go to Appearance > Widgets, and drag items into Home4 to edit this area.</p>
<?php }; ?>
</div>
</div>
</div>
<?php
} elseif($homepageLayout == '2L-3') {
/*
Template Name: Homepage 2L-3
*/
?>
<div id="home">
<div class="row" id="row1">
<div id="home1" class="span8" role="complementary">
<?php if ( is_active_sidebar( 'home1' ) ) { ?>
<?php dynamic_sidebar( 'home1' ); ?>
<?php } else { ?>
<h1>Home1</h1>
<p>Go to Appearance > Widgets, and drag items into Home1 to edit this area.</p>
<?php }; ?>
</div>
<div id="home2" class="span4" role="complementary">
<?php if ( is_active_sidebar( 'home2' ) ) { ?>
<?php dynamic_sidebar( 'home2' ); ?>
<?php } else { ?>
<h1>Home2</h1>
<p>Go to Appearance > Widgets, and drag items into Home2 to edit this area.</p>
<?php }; ?>
</div>
</div>
<div class="row" id="row2">
<div id="home3" class="span4" role="complementary">
<?php if ( is_active_sidebar( 'home3' ) ) { ?>
<?php dynamic_sidebar( 'home3' ); ?>
<?php } else { ?>
<h1>Home3</h1>
<p>Go to Appearance > Widgets, and drag items into Home3 to edit this area.</p>
<?php }; ?>
</div>
<div id="home4" class="span4" role="complementary">
<?php if ( is_active_sidebar( 'home4' ) ) { ?>
<?php dynamic_sidebar( 'home4' ); ?>
<?php } else { ?>
<h1>Home4</h1>
<p>Go to Appearance > Widgets, and drag items into Home4 to edit this area.</p>
<?php }; ?>
</div>
<div id="home5" class="span4" role="complementary">
<?php if ( is_active_sidebar( 'home5' ) ) { ?>
<?php dynamic_sidebar( 'home5' ); ?>
<?php } else { ?>
<h1>Home5</h1>
<p>Go to Appearance > Widgets, and drag items into Home5 to edit this area.</p>
<?php }; ?>
</div>
</div>
</div>
<?php
} elseif($homepageLayout == '2R-3') {
/*
Template Name: Homepage 2R-3
*/
?>
<div id="home">
<div class="row" id="row1">
<div id="home1" class="span4" role="complementary">
<?php if ( is_active_sidebar( 'home1' ) ) { ?>
<?php dynamic_sidebar( 'home1' ); ?>
<?php } else { ?>
<h1>Home1</h1>
<p>Go to Appearance > Widgets, and drag items into Home1 to edit this area.</p>
<?php }; ?>
</div>
<div id="home2" class="span8" role="complementary">
<?php if ( is_active_sidebar( 'home2' ) ) { ?>
<?php dynamic_sidebar( 'home2' ); ?>
<?php } else { ?>
<h1>Home2</h1>
<p>Go to Appearance > Widgets, and drag items into Home2 to edit this area.</p>
<?php }; ?>
</div>
</div>
<div class="row" id="row2">
<div id="home3" class="span4" role="complementary">
<?php if ( is_active_sidebar( 'home3' ) ) { ?>
<?php dynamic_sidebar( 'home3' ); ?>
<?php } else { ?>
<h1>Home3</h1>
<p>Go to Appearance > Widgets, and drag items into Home3 to edit this area.</p>
<?php }; ?>
</div>
<div id="home4" class="span4" role="complementary">
<?php if ( is_active_sidebar( 'home4' ) ) { ?>
<?php dynamic_sidebar( 'home4' ); ?>
<?php } else { ?>
<h1>Home4</h1>
<p>Go to Appearance > Widgets, and drag items into Home4 to edit this area.</p>
<?php }; ?>
</div>
<div id="home5" class="span4" role="complementary">
<?php if ( is_active_sidebar( 'home5' ) ) { ?>
<?php dynamic_sidebar( 'home5' ); ?>
<?php } else { ?>
<h1>Home5</h1>
<p>Go to Appearance > Widgets, and drag items into Home5 to edit this area.</p>
<?php }; ?>
</div>
</div>
</div>
<?php
} elseif($homepageLayout == '3-3') {
/*
Template Name: Homepage 3-3
*/
?>
<div id="home">
<div class="row" id="row1">
<div id="home1" class="span3" role="complementary">
<?php if ( is_active_sidebar( 'home1' ) ) { ?>
<?php dynamic_sidebar( 'home1' ); ?>
<?php } else { ?>
<h1>Home1</h1>
<p>Go to Appearance > Widgets, and drag items into Home1 to edit this area.</p>
<?php }; ?>
</div>
<div id="home2" class="span6" role="complementary">
<?php if ( is_active_sidebar( 'home2' ) ) { ?>
<?php dynamic_sidebar( 'home2' ); ?>
<?php } else { ?>
<h1>Home2</h1>
<p>Go to Appearance > Widgets, and drag items into Home2 to edit this area.</p>
<?php }; ?>
</div>
<div id="home3" class="span3" role="complementary">
<?php if ( is_active_sidebar( 'home3' ) ) { ?>
<?php dynamic_sidebar( 'home3' ); ?>
<?php } else { ?>
<h1>Home3</h1>
<p>Go to Appearance > Widgets, and drag items into Home3 to edit this area.</p>
<?php }; ?>
</div>
</div>
<div class="row" id="row2">
<div id="home4" class="span3" role="complementary">
<?php if ( is_active_sidebar( 'home4' ) ) { ?>
<?php dynamic_sidebar( 'home4' ); ?>
<?php } else { ?>
<h1>Home4</h1>
<p>Go to Appearance > Widgets, and drag items into Home4 to edit this area.</p>
<?php }; ?>
</div>
<div id="home5" class="span6" role="complementary">
<?php if ( is_active_sidebar( 'home5' ) ) { ?>
<?php dynamic_sidebar( 'home5' ); ?>
<?php } else { ?>
<h1>Home5</h1>
<p>Go to Appearance > Widgets, and drag items into Home5 to edit this area.</p>
<?php }; ?>
</div>
<div id="home6" class="span3" role="complementary">
<?php if ( is_active_sidebar( 'home6' ) ) { ?>
<?php dynamic_sidebar( 'home6' ); ?>
<?php } else { ?>
<h1>Home6</h1>
<p>Go to Appearance > Widgets, and drag items into Home6 to edit this area.</p>
<?php }; ?>
</div>
</div>
</div>
<?php
} elseif($homepageLayout == '3-4') {
/*
Template Name: Homepage 3-4
*/
?>
<div id="home">
<div class="row" id="row1">
<div id="home1" class="span3" role="complementary">
<?php if ( is_active_sidebar( 'home1' ) ) { ?>
<?php dynamic_sidebar( 'home1' ); ?>
<?php } else { ?>
<h1>Home1</h1>
<p>Go to Appearance > Widgets, and drag items into Home1 to edit this area.</p>
<?php }; ?>
</div>
<div id="home2" class="span6" role="complementary">
<?php if ( is_active_sidebar( 'home2' ) ) { ?>
<?php dynamic_sidebar( 'home2' ); ?>
<?php } else { ?>
<h1>Home2</h1>
<p>Go to Appearance > Widgets, and drag items into Home2 to edit this area.</p>
<?php }; ?>
</div>
<div id="home3" class="span3" role="complementary">
<?php if ( is_active_sidebar( 'home3' ) ) { ?>
<?php dynamic_sidebar( 'home3' ); ?>
<?php } else { ?>
<h1>Home3</h1>
<p>Go to Appearance > Widgets, and drag items into Home3 to edit this area.</p>
<?php }; ?>
</div>
</div>
<div class="row" id="row2">
<div id="home4" class="span3" role="complementary">
<?php if ( is_active_sidebar( 'home4' ) ) { ?>
<?php dynamic_sidebar( 'home4' ); ?>
<?php } else { ?>
<h1>Home4</h1>
<p>Go to Appearance > Widgets, and drag items into Home4 to edit this area.</p>
<?php }; ?>
</div>
<div id="home5" class="span3" role="complementary">
<?php if ( is_active_sidebar( 'home5' ) ) { ?>
<?php dynamic_sidebar( 'home5' ); ?>
<?php } else { ?>
<h1>Home5</h1>
<p>Go to Appearance > Widgets, and drag items into Home5 to edit this area.</p>
<?php }; ?>
</div>
<div id="home6" class="span3" role="complementary">
<?php if ( is_active_sidebar( 'home6' ) ) { ?>
<?php dynamic_sidebar( 'home6' ); ?>
<?php } else { ?>
<h1>Home6</h1>
<p>Go to Appearance > Widgets, and drag items into Home6 to edit this area.</p>
<?php }; ?>
</div>
<div id="home7" class="span3" role="complementary">
<?php if ( is_active_sidebar( 'home7' ) ) { ?>
<?php dynamic_sidebar( 'home7' ); ?>
<?php } else { ?>
<h1>Home7</h1>
<p>Go to Appearance > Widgets, and drag items into Home6 to edit this area.</p>
<?php }; ?>
</div>
</div>
</div>
<?php
} elseif($homepageLayout == '2L') {
/*
Template Name: Homepage 2L
*/
?>
<!-- 2L -->
<div id="home">
<div class="row" id="row1">
<div id="home1" class="span8" role="complementary">
<?php if ( is_active_sidebar( 'home1' ) ) { ?>
<?php dynamic_sidebar( 'home1' ); ?>
<?php } else { ?>
<h1>Home1</h1>
<p>Go to Appearance > Widgets, and drag items into Home1 to edit this area.</p>
<?php }; ?>
</div>
<div id="home2" class="span4" role="complementary">
<?php if ( is_active_sidebar( 'home2' ) ) { ?>
<?php dynamic_sidebar( 'home2' ); ?>
<?php } else { ?>
<h1>Home2</h1>
<p>Go to Appearance > Widgets, and drag items into Home2 to edit this area.</p>
<?php }; ?>
</div>
</div>
</div>
<?php
} elseif($homepageLayout == '2R') {
/*
Template Name: Homepage 2R
*/
?>
<!-- 2R -->
<div id="home">
<div class="row" id="row1">
<div id="home1" class="span4" role="complementary">
<?php if ( is_active_sidebar( 'home1' ) ) { ?>
<?php dynamic_sidebar( 'home1' ); ?>
<?php } else { ?>
<h1>Home1</h1>
<p>Go to Appearance > Widgets, and drag items into Home1 to edit this area.</p>
<?php }; ?>
</div>
<div id="home2" class="span8" role="complementary">
<?php if ( is_active_sidebar( 'home2' ) ) { ?>
<?php dynamic_sidebar( 'home2' ); ?>
<?php } else { ?>
<h1>Home2</h1>
<p>Go to Appearance > Widgets, and drag items into Home2 to edit this area.</p>
<?php }; ?>
</div>
</div>
</div>
<?php
} elseif($homepageLayout == '3') {
/*
Template Name: Homepage 3
*/
?>
<!-- 3 -->
<div id="home">
<div class="row" id="row1">
<div id="home1" class="span4" role="complementary">
<?php if ( is_active_sidebar( 'home1' ) ) { ?>
<?php dynamic_sidebar( 'home1' ); ?>
<?php } else { ?>
<h1>Home1</h1>
<p>Go to Appearance > Widgets, and drag items into Home1 to edit this area.</p>
<?php }; ?>
</div>
<div id="home2" class="span4" role="complementary">
<?php if ( is_active_sidebar( 'home2' ) ) { ?>
<?php dynamic_sidebar( 'home2' ); ?>
<?php } else { ?>
<h1>Home2</h1>
<p>Go to Appearance > Widgets, and drag items into Home2 to edit this area.</p>
<?php }; ?>
</div>
<div id="home3" class="span4" role="complementary">
<?php if ( is_active_sidebar( 'home3' ) ) { ?>
<?php dynamic_sidebar( 'home3' ); ?>
<?php } else { ?>
<h1>Home3</h1>
<p>Go to Appearance > Widgets, and drag items into Home3 to edit this area.</p>
<?php }; ?>
</div>
</div>
</div>
<?php
} elseif($homepageLayout == '2R_sub') {
/*
Template Name: Homepage 2R_sub
*/
?>
<!-- 3 -->
<div id="home">
<div class="row" id="row1">
<div id="home1" class="span3" role="complementary">
<?php if ( is_active_sidebar( 'home1' ) ) { ?>
<?php dynamic_sidebar( 'home1' ); ?>
<?php } else { ?>
<h1>Home1</h1>
<p>Go to Appearance > Widgets, and drag items into Home1 to edit this area.</p>
<?php }; ?>
</div>
<div class="span9" role="complementary">
<div class="row" id="row2">
<div class="span9" id="home2" >
<?php if ( is_active_sidebar( 'home2' ) ) { ?>
<?php dynamic_sidebar( 'home2' ); ?>
<?php } else { ?>
<h1>Home2</h1>
<p>Go to Appearance > Widgets, and drag items into Home2 to edit this area.</p>
<?php }; ?>
</div>
</div>
<div class="row" id="row3">
<div class="span6" id="home3" role="complementary">
<?php if ( is_active_sidebar( 'home3' ) ) { ?>
<?php dynamic_sidebar( 'home3' ); ?>
<?php } else { ?>
<h1>Home3</h1>
<p>Go to Appearance > Widgets, and drag items into Home3 to edit this area.</p>
<?php }; ?>
</div>
<div id="home4" class="span3" role="complementary">
<?php if ( is_active_sidebar( 'home4' ) ) { ?>
<?php dynamic_sidebar( 'home4' ); ?>
<?php } else { ?>
<h1>Home4</h1>
<p>Go to Appearance > Widgets, and drag items into Home4 to edit this area.</p>
<?php }; ?>
</div>
</div>
</div>
</div>
</div>
<?php
} elseif($homepageLayout == '2L_sub') {
/*
Template Name: Homepage 2L_sub
*/
?>
<!-- 3 -->
<div id="home">
<div class="row" id="row1">
<div class="span9" role="complementary">
<div class="row" id="row2">
<div class="span9" id="home1" >
<?php if ( is_active_sidebar( 'home1' ) ) { ?>
<?php dynamic_sidebar( 'home1' ); ?>
<?php } else { ?>
<h1>Home1</h1>
<p>Go to Appearance > Widgets, and drag items into Home2 to edit this area.</p>
<?php }; ?>
</div>
</div>
<div class="row" id="row3">
<div class="span3" id="home2" role="complementary">
<?php if ( is_active_sidebar( 'home2' ) ) { ?>
<?php dynamic_sidebar( 'home2' ); ?>
<?php } else { ?>
<h1>Home2</h1>
<p>Go to Appearance > Widgets, and drag items into Home3 to edit this area.</p>
<?php }; ?>
</div>
<div id="home3" class="span6" role="complementary">
<?php if ( is_active_sidebar( 'home3' ) ) { ?>
<?php dynamic_sidebar( 'home3' ); ?>
<?php } else { ?>
<h1>Home3</h1>
<p>Go to Appearance > Widgets, and drag items into Home4 to edit this area.</p>
<?php }; ?>
</div>
</div>
</div>
<div id="home4" class="span3" role="complementary">
<?php if ( is_active_sidebar( 'home4' ) ) { ?>
<?php dynamic_sidebar( 'home4' ); ?>
<?php } else { ?>
<h1>Home4</h1>
<p>Go to Appearance > Widgets, and drag items into Home1 to edit this area.</p>
<?php }; ?>
</div>
</div>
</div>
<?php
} elseif($homepageLayout == '1-2') {
/*
Template Name: Homepage 1-2
*/
?>
<!-- 3 -->
<div id="home">
<div class="row" id="row1">
<div id="home1" class="span12" role="complementary">
<?php if ( is_active_sidebar( 'home1' ) ) { ?>
<?php dynamic_sidebar( 'home1' ); ?>
<?php } else { ?>
<h1>Home1</h1>
<p>Go to Appearance > Widgets, and drag items into Home1 to edit this area.</p>
<?php }; ?>
</div>
<div class="span6" id="home2" >
<?php if ( is_active_sidebar( 'home2' ) ) { ?>
<?php dynamic_sidebar( 'home2' ); ?>
<?php } else { ?>
<h1>Home2</h1>
<p>Go to Appearance > Widgets, and drag items into Home2 to edit this area.</p>
<?php }; ?>
</div>
<div class="span6" id="home3" role="complementary">
<?php if ( is_active_sidebar( 'home3' ) ) { ?>
<?php dynamic_sidebar( 'home3' ); ?>
<?php } else { ?>
<h1>Home3</h1>
<p>Go to Appearance > Widgets, and drag items into Home3 to edit this area.</p>
<?php }; ?>
</div>
</div>
</div>
<?php
} elseif($homepageLayout == '3W') {
/*
Template Name: Homepage 3W
*/
?>
<!-- 3 -->
<div id="home">
<div class="row" id="row1">
<div id="home1" class="span3" role="complementary">
<?php if ( is_active_sidebar( 'home1' ) ) { ?>
<?php dynamic_sidebar( 'home1' ); ?>
<?php } else { ?>
<h1>Home1</h1>
<p>Go to Appearance > Widgets, and drag items into Home1 to edit this area.</p>
<?php }; ?>
</div>
<div class="span6" id="home2" >
<?php if ( is_active_sidebar( 'home2' ) ) { ?>
<?php dynamic_sidebar( 'home2' ); ?>
<?php } else { ?>
<h1>Home2</h1>
<p>Go to Appearance > Widgets, and drag items into Home2 to edit this area.</p>
<?php }; ?>
</div>
<div class="span3" id="home3" role="complementary">
<?php if ( is_active_sidebar( 'home3' ) ) { ?>
<?php dynamic_sidebar( 'home3' ); ?>
<?php } else { ?>
<h1>Home3</h1>
<p>Go to Appearance > Widgets, and drag items into Home3 to edit this area.</p>
<?php }; ?>
</div>
</div>
</div>
<?php
} elseif($homepageLayout == '3W_sub') {
/*
Template Name: Homepage 3W_sub
*/
?>
<!-- 3 -->
<div id="home">
<div class="row" id="row1">
<div id="home1" class="span3" role="complementary">
<?php if ( is_active_sidebar( 'home1' ) ) { ?>
<?php dynamic_sidebar( 'home1' ); ?>
<?php } else { ?>
<h1>Home1</h1>
<p>Go to Appearance > Widgets, and drag items into Home1 to edit this area.</p>
<?php }; ?>
</div>
<div class="span6">
<div class="row"><div class="span6" id="home2" >
<?php if ( is_active_sidebar( 'home2' ) ) { ?>
<?php dynamic_sidebar( 'home2' ); ?>
<?php } else { ?>
<h1>Home2</h1>
<p>Go to Appearance > Widgets, and drag items into Home2 to edit this area.</p>
<?php }; ?>
</div>
</div>
<div class="row">
<div id="home4" class="span3" role="complementary">
<?php if ( is_active_sidebar( 'home4' ) ) { ?>
<?php dynamic_sidebar( 'home4' ); ?>
<?php } else { ?>
<h1>Home4</h1>
<p>Go to Appearance > Widgets, and drag items into Home4 to edit this area.</p>
<?php }; ?>
</div>
<div id="home5" class="span3" role="complementary">
<?php if ( is_active_sidebar( 'home5' ) ) { ?>
<?php dynamic_sidebar( 'home5' ); ?>
<?php } else { ?>
<h1>Home5</h1>
<p>Go to Appearance > Widgets, and drag items into Home5 to edit this area.</p>
<?php }; ?>
</div>
</div>
</div>
<div class="span3" id="home3" role="complementary">
<?php if ( is_active_sidebar( 'home3' ) ) { ?>
<?php dynamic_sidebar( 'home3' ); ?>
<?php } else { ?>
<h1>Home3</h1>
<p>Go to Appearance > Widgets, and drag items into Home3 to edit this area.</p>
<?php }; ?>
</div>
</div>
</div>
<?php
}
get_footer();
?>