Advertisement
Guest User

Char's webpage

a guest
Aug 24th, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. About me - http://www.chardawson.co.uk/wp-admin/post.php?post=67&action=edit
  2.  
  3. HOME-
  4.  
  5. <?php
  6. /**
  7. * Home Template
  8. *
  9. * A custom home page template.
  10. *
  11. * @package Hatch
  12. * @subpackage Template
  13. */
  14.  
  15. get_header(); // Loads the header.php template. ?>
  16.  
  17. <?php do_atomic( 'before_masthead' ); // hatch_before_masthead ?>
  18.  
  19. <div id="masthead">
  20.  
  21. <?php do_atomic( 'open_masthead' ); // hatch_open_masthead ?>
  22.  
  23. <?php $hatch_author_bio = hybrid_get_setting( 'hatch_author_bio' ) ? hybrid_get_setting( 'hatch_author_bio' ) : '1'; ?>
  24.  
  25. <div id="author-bio"><?php the_author_meta( 'description', $hatch_author_bio ); ?></div>
  26.  
  27. <div id="header-banner" role="banner">
  28.  
  29. <?php // Check to see if the header image has been removed
  30. $header_image = get_header_image();
  31.  
  32. if ( ! empty( $header_image ) ) : ?>
  33.  
  34. <img src="<?php header_image(); ?>" alt="" />
  35.  
  36. <?php endif; // end check for removed header image ?>
  37.  
  38. </div>
  39.  
  40. <?php do_atomic( 'close_masthead' ); // hatch_close_masthead ?>
  41.  
  42. </div>
  43.  
  44. <?php do_atomic( 'before_content' ); // hatch_before_content ?>
  45.  
  46. <div id="content">
  47.  
  48. <?php do_atomic( 'open_content' ); // hatch_open_content ?>
  49.  
  50. <div class="hfeed">
  51.  
  52. <?php if ( have_posts() ) : ?>
  53.  
  54. <?php $counter = 1; ?>
  55.  
  56. <?php while ( have_posts() ) : the_post(); ?>
  57.  
  58. <?php do_atomic( 'before_entry' ); // hatch_before_entry ?>
  59.  
  60. <?php if ( ( $counter % 4 ) == 0 ) { ?>
  61.  
  62. <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?> last">
  63.  
  64. <?php } else { ?>
  65.  
  66. <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
  67.  
  68. <?php } ?>
  69.  
  70. <?php do_atomic( 'open_entry' ); // hatch_open_entry ?>
  71.  
  72. <?php if ( current_theme_supports( 'get-the-image' ) ) {
  73.  
  74. get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'archive-thumbnail', 'image_class' => 'featured', 'width' => 220, 'height' => 150, 'default_image' => get_template_directory_uri() . '/images/archive_image_placeholder.png' ) );
  75.  
  76. } ?>
  77.  
  78. <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
  79.  
  80. <?php do_atomic( 'close_entry' ); // hatch_close_entry ?>
  81.  
  82. </div><!-- .hentry -->
  83.  
  84. <?php do_atomic( 'after_entry' ); // hatch_after_entry ?>
  85.  
  86. <?php $counter++; ?>
  87.  
  88. <?php endwhile; ?>
  89.  
  90. <?php else : ?>
  91.  
  92. <?php get_template_part( 'loop-error' ); // Loads the loop-error.php template. ?>
  93.  
  94. <?php endif; ?>
  95.  
  96. </div><!-- .hfeed -->
  97.  
  98. <?php do_atomic( 'close_content' ); // hatch_close_content ?>
  99.  
  100. <?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?>
  101.  
  102. </div><!-- #content -->
  103.  
  104. <?php do_atomic( 'after_content' ); // hatch_after_content ?>
  105.  
  106. <?php get_footer(); // Loads the footer.php template. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement