Advertisement
Guest User

Untitled

a guest
Feb 1st, 2012
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.89 KB | None | 0 0
  1. <?php
  2.     /* Start The Loop */ if (have_posts()) { while (have_posts()) { the_post(); ?>
  3.         <?php /* Permalink navigation has to be inside the loop */ if (is_single()) get_template_part('navigation'); ?>
  4.         <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  5.             <?php lblg_before_post_title(); ?>
  6.             <?php if( !is_single() && !is_page() ) { ?><h2><a>" rel="bookmark" title="Permanent Link to <?php echo strip_tags(get_the_title()) ?>"><?php the_title(); ?></a></h2>
  7.             <?php } else { ?><h1><?php the_title(); ?></h1><?php } ?>
  8.  
  9.             <?php lblg_before_itemtext(); ?>
  10.             <div class="itemtext">
  11.                 <?php
  12.                 if ( is_archive() or is_search() or is_tag() ) {
  13.                     the_excerpt();
  14.                 } else {
  15.                     the_content('Continue reading'. " '" . the_title('', '', false) . "'");
  16.                 }
  17.                 wp_link_pages( array( 'before' => '<div class="post-pagination">Pages: ', 'after' => '</div>', 'next_or_number' => 'number'));
  18.                 ?>
  19.             </div>
  20.             <?php lblg_after_itemtext(); ?>
  21.             <!--
  22.                 <?php trackback_rdf(); ?>
  23.             -->
  24.         </div>
  25.     <?php } /* End while */?>
  26.     <?php if(is_home() || is_archive()) get_template_part('navigation'); ?>
  27.     <?php } /*End loop*/ ?>
  28.  
  29. <strong>page.php</strong>
  30.  
  31. <?php
  32. /*
  33. Template Name: Page
  34. */
  35. ?>
  36. <?php get_header(); ?>
  37.  
  38. <div id="allwrapper">
  39. <div id="wrapper">
  40.     <div id="lb-content">
  41.         <?php get_template_part( 'theloop' ); ?>
  42.         <?php if( comments_open() ) comments_template(); ?>
  43.     </div> <!-- #lb-content -->
  44. </div> <!-- #wrapper -->
  45. <?php get_sidebar(); ?>
  46.  
  47. </div><!-- #allwrapper -->
  48.  
  49. <?php get_footer(); ?>
  50.  
  51. <strong>single.php</strong>
  52.  
  53. <?php
  54. /*
  55. Template Name: Single Post
  56. */
  57.  
  58. get_header(); ?>
  59.  
  60. <div id="allwrapper">
  61. <div id="wrapper">
  62.     <div id="lb-content">
  63.         <?php get_template_part( 'theloop' ); ?>
  64.         <?php comments_template(); ?>
  65.     </div><!-- #lb-content -->
  66. </div><!-- #wrapper -->
  67.  
  68. <?php get_sidebar(); ?>
  69.  
  70. </div><!-- #allwrapper -->
  71.  
  72. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement