Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (41 sloc) 1.66 KB
<?php
/*
Template Name: Home Page
*/
get_header(); ?>
<div id="feature" class="pics"> <!-- feature -->
<?php
$catID = get_cat_id('Featured'); // Get the category ID for the Featured category used to display rotating images on homepage
query_posts('cat='.$catID.''); // Retrieve the latest post from the Featured category
if (have_posts())
{
while (have_posts())
{
the_post(); // Start the Featured loop
if (has_post_thumbnail()) the_post_thumbnail('full', array('title' => ''));
}
}
?>
</div> <!-- feature -->
<div id="columnleft"> <!-- columnleft -->
<ul>
<?php /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Home Page') ) : ?>
<li><h2>Widget Content!</h2>
<p>This is a Widgetized section of the home page. Why not add some text about yourself and your contact details?.</p>
<p>Log in then go to "Dashboard > Appearance > Widgets" and select Home Page to change what's displayed here.</p>
</li>
<?php endif; ?>
</ul>
</div> <!-- columnleft -->
<div id="columnright"> <!-- columnright -->
<h2>Latest</h2>
<ul id="latestworkgallery">
<?php include(TEMPLATEPATH . '/includes/hpthumbs.php'); ?>
</ul>
<div class="clearall">&nbsp;</div>
<p class="morebutton"><a href="<?php echo get_option('home'); ?>/gallery" title="<?php bloginfo('name'); ?> - Gallery" class="button">&nbsp;</a></p>
</div> <!-- columnright -->
<p class="clearall">&nbsp;</p>
</div> <!-- content -->
<?php get_footer(); ?>