Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Home Page template
- *
- Template Name: Home Page
- *
- * @file home-page.php
- * @package WordPress
- * @subpackage Shell
- * @author Emil Uzelac
- * @copyright 2010 - 2012 ThemeID
- * @license license.txt
- * @version Release: 1.0
- * @filesource wp-content/themes/shell-lite/home-page.php
- * @link http://codex.wordpress.org/Templates
- * @since available since Release 1.0
- */
- ?>
- <?php get_header(); ?>
- <div id="content" class="grid col-940">
- <?php if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <h1 class="featured-title"><?php the_title(); ?></h1>
- <div class="post-entry">
- <?php the_content(__('See more ›', 'shell')); ?>
- <?php wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'shell'), 'after' => '</div>')); ?>
- </div><!-- end of .post-entry -->
- <div class="post-edit"><?php edit_post_link(__('Edit', 'shell')); ?></div>
- </div><!-- end of #post-<?php the_ID(); ?> -->
- <?php endwhile; ?>
- <?php if ( $wp_query->max_num_pages > 1 ) : ?>
- <div class="navigation">
- <div class="previous"><?php next_posts_link( __( '‹ Older posts', 'shell' ) ); ?></div>
- <div class="next"><?php previous_posts_link( __( 'Newer posts ›', 'shell' ) ); ?></div>
- </div><!-- end of .navigation -->
- <?php endif; ?>
- <?php else : ?>
- <h1 class="title-404"><?php _e('404 — Fancy meeting you here!', 'shell'); ?></h1>
- <p><?php _e('Don\'t panic, we\'ll get through this together. Let\'s explore our options here.', 'shell'); ?></p>
- <h6><?php _e( 'You can return', 'shell' ); ?> <a href="<?php echo home_url(); ?>/" title="<?php esc_attr_e( 'home', 'shell' ); ?>"><?php _e( '⏎ Home', 'shell' ); ?></a> <?php _e( 'or search for the page you were looking for', 'shell' ); ?></h6>
- <?php get_search_form(); ?>
- <?php endif; ?>
- </div><!-- end of #content -->
- <?php get_sidebar('home'); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement