Advertisement
grappler

custom-landing-page.php

Sep 17th, 2012
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. <?php
  2.  
  3. // Exit if accessed directly
  4. if ( !defined('ABSPATH')) exit;
  5.  
  6. /**
  7. * Landing Page Template
  8. *
  9. Template Name: Landing Page with widgets (no menu)
  10. *
  11. * @file landing-page.php
  12. * @package Responsive
  13. * @author Emil Uzelac
  14. * @copyright 2003 - 2011 ThemeID
  15. * @license license.txt
  16. * @version Release: 1.0
  17. * @filesource wp-content/themes/responsive/custom-landing-page.php
  18. * @link http://codex.wordpress.org/Theme_Development#Pages_.28page.php.29
  19. * @since available since Release 1.0
  20. */
  21. ?>
  22. <?php get_header(); ?>
  23.  
  24. <div id="content" class="grid col-620">
  25.  
  26. <?php if (have_posts()) : ?>
  27.  
  28. <?php while (have_posts()) : the_post(); ?>
  29.  
  30. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  31. <h1 class="post-title"><?php the_title(); ?></h1>
  32.  
  33. <div class="post-entry">
  34. <?php the_content(__('Read more &#8250;', 'responsive')); ?>
  35. <?php wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'responsive'), 'after' => '</div>')); ?>
  36. </div><!-- end of .post-entry -->
  37.  
  38. <?php if ( comments_open() ) : ?>
  39. <div class="post-data">
  40. <?php the_tags(__('Tagged with:', 'responsive') . ' ', ', ', '<br />'); ?>
  41. <?php the_category(__('Posted in %s', 'responsive') . ', '); ?>
  42. </div><!-- end of .post-data -->
  43. <?php endif; ?>
  44.  
  45. <div class="post-edit"><?php edit_post_link(__('Edit', 'responsive')); ?></div>
  46. </div><!-- end of #post-<?php the_ID(); ?> -->
  47.  
  48. <?php endwhile; ?>
  49.  
  50. <?php if ( $wp_query->max_num_pages > 1 ) : ?>
  51. <div class="navigation">
  52. <div class="previous"><?php next_posts_link( __( '&#8249; Older posts', 'responsive' ) ); ?></div>
  53. <div class="next"><?php previous_posts_link( __( 'Newer posts &#8250;', 'responsive' ) ); ?></div>
  54. </div><!-- end of .navigation -->
  55. <?php endif; ?>
  56.  
  57. <?php else : ?>
  58.  
  59. <h1 class="title-404"><?php _e('404 &#8212; Fancy meeting you here!', 'responsive'); ?></h1>
  60. <p><?php _e('Don&#39;t panic, we&#39;ll get through this together. Let&#39;s explore our options here.', 'responsive'); ?></p>
  61. <h6><?php _e( 'You can return', 'responsive' ); ?> <a href="<?php echo home_url(); ?>/" title="<?php esc_attr_e( 'Home', 'responsive' ); ?>"><?php _e( '&larr; Home', 'responsive' ); ?></a> <?php _e( 'or search for the page you were looking for', 'responsive' ); ?></h6>
  62. <?php get_search_form(); ?>
  63.  
  64. <?php endif; ?>
  65.  
  66. </div><!-- end of #content -->
  67.  
  68. <?php get_sidebar(); ?>
  69. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement