Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 71 lines (60 sloc) 2.731 kb
b1adeb2 @indyplanets Stepped on a few interface bugs
indyplanets authored
1 <?php
2 /**
be1ff4b @indyplanets removed 3colnews and flickr photos template
indyplanets authored
3 *
b1adeb2 @indyplanets Stepped on a few interface bugs
indyplanets authored
4 * @package WordPress
5 */
6
7 get_header(); ?>
8 <?php get_sidebar( 'left' ); ?>
9 <div id="wrap">
10 <div id="content" role="main">
11 <?php $my_query = new WP_Query('meta_key=feature-homepage&meta_value=1&showposts=5&post_type=any');
12 $count = 0; ?>
13 <?php if ( $my_query->have_posts() ) : ?>
14 <div class="flex-container">
15 <div class="flexslider">
16 <ul class="slides">
17 <?php while ($my_query->have_posts()) : $my_query->the_post();
18 global $post;
19 $count++;
20 $feature_title = get_post_meta($post->ID,'feature-title',true);?>
21 <li class="feature-item-<?php echo $count;?> flex-slider-item">
22 <a href="<?php the_permalink();?>"><?php the_post_thumbnail('featured');?></a>
23 <p class="flex-caption">
24 <a href="<?php the_permalink();?>"><?php if($feature_title !== '') { echo $feature_title; }else{ echo get_the_title(); } ?></a>
25 </p><!-- end .flex-caption -->
26 </li><!-- end .feature-item -->
27 <?php endwhile; wp_reset_query; ?>
28 </ul>
29 </div>
30 </div>
31
32 <?php endif;?>
33
34
35 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
36
37 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
38 <?php if ( is_front_page() ) { ?>
39 <h2 class="entry-title"><?php the_title(); ?></h2>
40 <?php } else { ?>
41 <h1 class="entry-title"><?php the_title(); ?></h1>
42 <?php } ?>
43
44 <div class="entry-content">
45 <?php the_content(); ?>
46 <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'county_ext' ), 'after' => '</div>' ) ); ?>
47 <?php edit_post_link( __( 'Edit', 'county_ext' ), '<span class="edit-link">', '</span>' ); ?>
48 </div><!-- .entry-content -->
49 </div><!-- #post-## -->
50
51 <?php endwhile; ?>
52
53 <div id="home-middle-bg">
54 <div id="home-middle">
55
56 <div class="home-middle-1">
57 <?php if (!dynamic_sidebar('Home Page Bottom')) : ?>
58 <div class="widget">
59 <h2><?php _e("Home Page Bottom Widget", 'county_ext'); ?></h2>
60 <p><?php _e("This is a widgeted area which is called Home Middle #1. To get started, log into your WordPress dashboard, and then go to the Appearance > Widgets screen. There you can drag the widget into the Home Middle #1 widget area on the right hand side. To get the image to display, simply upload an image through the media uploader on the edit post screen and publish your page. The Featured Page widget will know to display the post image as long as you select that option in the widget interface.", 'genesis'); ?></p>
61 </div>
62 <?php endif; ?>
63 </div><!-- end .home-middle-1 -->
64
65 </div><!-- end #home-middle -->
66 </div><!-- end #home-middle-bg -->
67
68 </div><!-- #content -->
69 </div><!-- #wrap -->
70 <?php get_sidebar(); ?>
71 <?php get_footer(); ?>
Something went wrong with that request. Please try again.