- Home.php
- <?php get_header(); ?>
- <div class="col12">
- <div id="homepage">
- <?php
- /* Run the loop to output the posts.
- * If you want to overload this in a child theme then include a file
- * called loop-index.php and that will be used instead.
- */
- get_template_part( 'loop', 'home' );
- ?>
- </div><!-- #homepage -->
- </div>
- <?php get_footer(); ?>
- loop-home.php
- <div id="row1">
- <div class="col3">
- <?php query_posts( 'posts_per_page=1&category_name=reviews' ); ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'seven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php if ( has_post_thumbnail() ) { the_post_thumbnail(array(250,250)); } ?></a>
- <h3 class="homepage-subtitle"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'seven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
- </div><!-- #post-## -->
- <?php endwhile; // End the loop. Whew. ?>
- <?php rewind_posts(); ?>
- </div><!--col3-->
- <div class="col3">
- <?php query_posts( 'posts_per_page=1&category_name=reviews&offset=1' ); ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'seven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php if ( has_post_thumbnail() ) { the_post_thumbnail(array(250,250)); } ?></a>
- <h3 class="homepage-subtitle"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'seven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
- </div><!-- #post-## -->
- <?php endwhile; // End the loop. Whew. ?>
- <?php rewind_posts(); ?>
- </div><!--col3-->
- <div class="col3">
- <?php query_posts( 'posts_per_page=1&category_name=reviews&offset=2' ); ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'seven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php if ( has_post_thumbnail() ) { the_post_thumbnail(array(250,250)); } ?></a>
- <h3 class="homepage-subtitle"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'seven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
- </div><!-- #post-## -->
- <?php endwhile; // End the loop. Whew. ?>
- <?php rewind_posts(); ?>
- </div><!--col3-->
- <div class="col3">
- <?php query_posts( 'posts_per_page=1&category_name=reviews&offset=3' ); ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'seven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php if ( has_post_thumbnail() ) { the_post_thumbnail(array(250,250)); } ?></a>
- <h3 class="homepage-subtitle"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'seven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
- </div><!-- #post-## -->
- <?php endwhile; // End the loop. Whew. ?>
- <?php rewind_posts(); ?>
- </div><!--col3-->
- </div><!--row1-->
- <div id="row2">
- <div class="col3">
- <a href="http://booktrib.com" target="_blank"><img src="/images/book-trib-thumb.jpg"></a>
- <h3 class="homepage-subtitle"><a href="http://booktrib.com" target="_blank">Reviews from our friends at Book Trib</a></h3>
- <?php if(function_exists('fetch_feed')) {
- include_once(ABSPATH . WPINC . '/feed.php'); // include the required file
- $feed = fetch_feed('http://booktrib.com/feed/'); // specify the source feed
- $limit = $feed->get_item_quantity(5); // specify number of items
- $items = $feed->get_items(0, $limit); // create an array of items
- }
- if ($limit == 0) echo '<div>The feed is either empty or unavailable.</div>';
- else foreach ($items as $item) : ?>
- <ul class="homepage">
- <a href="<?php echo $item->get_permalink(); ?>"
- title="<?php echo $item->get_date('j F Y @ g:i a'); ?>" target="_blank">
- <?php echo $item->get_title(); ?>
- </a>
- </ul>
- <?php endforeach; ?>
- </div><!--col3-->
- <div class="col3">
- <a href="http://www.bluearchipelagoreviews.com/review/twilight-saga/"><img src="/images/twilight-thumb.jpg"></a>
- <h3 class="homepage-subtitle"><a href="http://www.bluearchipelagoreviews.com/review/twilight-saga/">Twilight news and reviews</a></h3>
- <?php
- query_posts('posts_per_page=5&category_name=twilight-saga');
- while(have_posts()) : the_post();
- ?>
- <ul>
- <li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
- </ul>
- <?php endwhile; // End the loop. Whew. ?>
- <?php rewind_posts(); ?></div><!-- col3-->
- <div class="col3">
- <?php
- query_posts('posts_per_page=1&category_name=interviews');
- while(have_posts()) : the_post();
- ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'seven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php if ( has_post_thumbnail() ) { the_post_thumbnail(array(200,200)); } ?></a>
- <h3 class="homepage-subtitle"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'seven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
- </div><!-- #post-## -->
- <?php endwhile; // End the loop. Whew. ?>
- </div><!-- col3-->
- <div class="col3">
- <?php
- query_posts('posts_per_page=1&category_name=interviews&offset=1');
- while(have_posts()) : the_post();
- ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'seven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php if ( has_post_thumbnail() ) { the_post_thumbnail(array(200,200)); } ?></a>
- <h3 class="homepage-subtitle"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'seven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
- </div><!-- #post-## -->
- <?php endwhile; // End the loop. Whew. ?>
- </div><!-- col3-->
- </div><!-- row2 -->
- <div id="row3">
- <div class="col6">
- <?php
- query_posts('p=942');
- while(have_posts()) : the_post();
- ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'seven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img src="/images/kindle-thumb.jpg"></a>
- <h3 class="homepage-subtitle"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'seven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
- <?php the_excerpt(); ?>
- </div><!-- #post-## -->
- <?php endwhile; // End the loop. Whew. ?>
- <?php rewind_posts(); ?></div><!--col6-->
- <div class="col6">
- <?php
- query_posts('p=1520');
- while(have_posts()) : the_post();
- ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'seven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img src="/images/kindle3g-cases-covers-thumb.jpg"></a>
- <h3 class="homepage-subtitle"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'seven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
- <?php the_excerpt(); ?>
- </div><!-- #post-## -->
- <?php endwhile; // End the loop. Whew. ?>
- <?php rewind_posts(); ?></div><!--col6-->
- </div><!--row3-->