This repository has been archived by the owner. It is now read-only.
Permalink
Cannot retrieve contributors at this time
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?
ucs/page-home.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
433 lines (388 sloc)
12.2 KB
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
<?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"> | |
<div class="row cork-container"> | |
<div class="span6 left-cork"> | |
<div class="cork-slideshow"> | |
<?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="span6 right-cork"> | |
<div class="cork-announcements"> | |
<h1><a href="index.php?category_name=announcements">Announcements</a></h1><span class="view-all-announcements"><a href="index.php?category_name=announcements">View All »</a></span> | |
<?php $the_query = new WP_Query( 'showposts=4&category_name=announcements' ); ?> | |
<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?> | |
<a href="<?php the_permalink() ?>"><?php the_title(); ?></a> | |
<?php the_excerpt(__('(more…)')); ?> | |
<?php endwhile;?> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div class="row"> | |
<div id="home2" class="span4" role="complementary"> | |
<?php if ( is_active_sidebar( 'home3' ) ) { ?> | |
<?php dynamic_sidebar( 'home3' ); ?> | |
<?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="span4" role="complementary"> | |
<?php if ( is_active_sidebar( 'home4' ) ) { ?> | |
<?php dynamic_sidebar( 'home4' ); ?> | |
<?php } else { ?> | |
<h1>Home3</h1> | |
<p>Go to Appearance > Widgets, and drag items into Home4 to edit this area.</p> | |
<?php }; ?> | |
</div> | |
<div id="home4" class="span4" role="complementary"> | |
<?php if ( is_active_sidebar( 'home5' ) ) { ?> | |
<?php dynamic_sidebar( 'home5' ); ?> | |
<?php } else { ?> | |
<h1>Home4</h1> | |
<p>Go to Appearance > Widgets, and drag items into Home5 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"> | |
<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"> | |
<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"> | |
<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"> | |
<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"> | |
<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"> | |
<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"> | |
<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"> | |
<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"> | |
<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"> | |
<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"> | |
<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 | |
} | |
get_footer(); | |
?> |