Advertisement
grappler

home-page.php - static - Shell Lite

Dec 25th, 2012
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.07 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Home Page template
  4.  *
  5.    Template Name: Home Page
  6.  *
  7.  * @file           home-page.php
  8.  * @package        WordPress
  9.  * @subpackage     Shell
  10.  * @author         Emil Uzelac
  11.  * @copyright      2010 - 2012 ThemeID
  12.  * @license        license.txt
  13.  * @version        Release: 1.0
  14.  * @filesource     wp-content/themes/shell-lite/home-page.php
  15.  * @link           http://codex.wordpress.org/Templates
  16.  * @since          available since Release 1.0
  17.  */
  18. ?>
  19. <?php get_header(); ?>
  20.  
  21. <div id="content" class="grid col-940">
  22.  
  23. <?php if (have_posts()) : ?>
  24.  
  25.         <?php while (have_posts()) : the_post(); ?>
  26.  
  27.             <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  28.                 <h1 class="featured-title"><?php the_title(); ?></h1>
  29.  
  30.                 <div class="post-entry">
  31.                     <?php the_content(__('See more &#8250;', 'shell')); ?>
  32.                     <?php wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'shell'), 'after' => '</div>')); ?>
  33.                 </div><!-- end of .post-entry -->
  34.  
  35.             <div class="post-edit"><?php edit_post_link(__('Edit', 'shell')); ?></div>
  36.             </div><!-- end of #post-<?php the_ID(); ?> -->
  37.  
  38.         <?php endwhile; ?>
  39.  
  40.         <?php if (  $wp_query->max_num_pages > 1 ) : ?>
  41.         <div class="navigation">
  42.             <div class="previous"><?php next_posts_link( __( '&#8249; Older posts', 'shell' ) ); ?></div>
  43.             <div class="next"><?php previous_posts_link( __( 'Newer posts &#8250;', 'shell' ) ); ?></div>
  44.         </div><!-- end of .navigation -->
  45.         <?php endif; ?>
  46.  
  47.         <?php else : ?>
  48.  
  49.         <h1 class="title-404"><?php _e('404 &#8212; Fancy meeting you here!', 'shell'); ?></h1>
  50.         <p><?php _e('Don\'t panic, we\'ll get through this together. Let\'s explore our options here.', 'shell'); ?></p>
  51.         <h6><?php _e( 'You can return', 'shell' ); ?> <a href="<?php echo home_url(); ?>/" title="<?php esc_attr_e( 'home', 'shell' ); ?>"><?php _e( '&#9166; Home', 'shell' ); ?></a> <?php _e( 'or search for the page you were looking for', 'shell' ); ?></h6>
  52.         <?php get_search_form(); ?>
  53.  
  54. <?php endif; ?>  
  55.  
  56. </div><!-- end of #content -->
  57. <?php get_sidebar('home'); ?>
  58. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement