<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header(); ?>
<div id="home-content">
<div id="slider">
<?php if (function_exists('easing_slider')){ easing_slider(); }; ?>
<div class="content-img"><a href="/new-to-hoh/welcome/"><img src="<?php bloginfo('template_directory'); ?>/images/hoh-welcome-video.png" /></a></div>
<div class="content-img"><a href="/calendar"><img src="<?php bloginfo('template_directory'); ?>/images/hoh-view-calendar.png" /></a></div>
<div class="content-img"><a href="/about-hoh/"><img src="<?php bloginfo('template_directory'); ?>/images/hoh-about.png" /></a></div>
</div><!-- end #slider -->
<div id="right-info">
<h2>Harvest of Hope</h2>
<p>Welcome to our church. We're glad you have checked us out and look forward to a chance to meet you. It is our hope to reach the Platte County area to inspire others in their relationship with Christ.
<div id="upcoming-events">
<h2>News & Events - view all</h2>
<?php
// get most recent post information and display in right sidebar on hompepage with title
$args = array( 'numberposts' => 3);
$lastposts = get_posts( $args );
foreach($lastposts as $post) : setup_postdata($post); ?>
<div id="home-info">
<div id="home-thumb">
<?php if(has_post_thumbnail()) {
echo get_the_post_thumbnail($post_id, array(50,50));
} else { ?>
<img src="<?php bloginfo('template_directory'); ?>/images/hoh-default-thumb.png" alt="<?php the_title(); ?>" width="50px"/>
<?php } ?>
</div><!-- end #home-thumb -->
<div id="home-text">
<p><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></p>
<?php echo substr(get_the_excerpt(), 0,50); ?>
</div><!-- end #home-text -->
<hr />
<?php endforeach; ?>
</div><!-- end #upcoming-events -->
</div><!-- end #right-info -->
</div><!-- end #home-content -->
<?php get_footer(); ?>
</div>
<?php get_footer(); ?>
<div id="home-info">
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header(); ?>
<div id="home-content">
<div id="slider">
<?php if (function_exists('easing_slider')){ easing_slider(); }; ?>
<div class="content-img">
<a href="/new-to-hoh/welcome/"><img src="<?php bloginfo('template_directory'); ?>/images/hoh-welcome-video.png" /></a>
</div>
<div class="content-img">
<a href="/calendar"><img src="<?php bloginfo('template_directory'); ?>/images/hoh-view-calendar.png" /></a>
</div>
<div class="content-img">
<a href="/about-hoh/"><img src="<?php bloginfo('template_directory'); ?>/images/hoh-about.png" /></a>
</div>
</div>
<!-- end #slider -->
<div id="right-info">
<h2>Harvest of Hope</h2>
<p>Welcome to our church. We're glad you have checked us out and look forward to a chance to meet you. It is our hope to reach the Platte County area to inspire others in their relationship with Christ.
<div id="upcoming-events">
<h2>News & Events - view all</h2>
<?php
// get most recent post information and display in right sidebar on hompepage with title
$args = array( 'numberposts' => 3);
$lastposts = get_posts( $args );
foreach($lastposts as $post) : setup_postdata($post); ?>
<div id="home-info">
<div id="home-thumb">
<?php if(has_post_thumbnail()) {
echo get_the_post_thumbnail($post_id, array(50,50));
} else { ?>
<img src="<?php bloginfo('template_directory'); ?>/images/hoh-default-thumb.png" alt="<?php the_title(); ?>" width="50px"/>
<?php } ?>
</div>
<!-- end #home-thumb -->
<div id="home-text">
<p><a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
</p>
<?php echo substr(get_the_excerpt(), 0,50); ?>
</div>
<!-- end #home-text -->
<hr />
</div>
<?php endforeach; ?>
</div>
<!-- end #upcoming-events -->
</div>
<!-- end #right-info -->
</div>
<!-- end #home-content -->
<?php get_footer(); ?>
<p>Welcome to our church. We're glad you have checked us out and look forward to a chance to meet you. It is our hope to reach the Platte County area to inspire others in their relationship with Christ.
Put footer dive outside div #wrapper.