Want more features on Pastebin? Sign Up, it's FREE!
Guest

/twicet/single.php

By: a guest on Oct 29th, 2010  |  syntax: None  |  size: 1.92 KB  |  views: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <?php get_header(); ?>
  3.  
  4.  
  5.  <div id="content" class="bg_sidebar">
  6.            <div id="inner_content">
  7.            
  8.             <?php if (have_posts()) : while (have_posts()) : the_post();
  9.             $punchline = get_post_meta($post->ID, "punchline", true);
  10.                         $portfolio_image = get_post_meta($post->ID, "portfolio-image", true);  
  11.                         ?>
  12.                                
  13.             <div class="entry">
  14.          
  15.            <span class="meta"><?php echo $punchline; ?></span>
  16.            <h2 id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
  17.            
  18.            <div class="entry-head">
  19.                <span class="categories"><?php the_category(', ') ?></span>
  20.                <span class="date">on <?php the_time('F jS, Y') ?></span>
  21.                <span class="comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?><?php edit_post_link('Edit', ' ,', ''); ?></span>
  22.            </div>
  23.          
  24.            
  25.            <div class="entry-content">
  26.            <?php
  27.            if($portfolio_image != "") echo '<img class="aligncenter" src="'.$portfolio_image.'" alt="" />';
  28.            ?>
  29.            <?php the_content("Read more &#187;"); ?>
  30.                         </div><!--end entry-content-->
  31.                         <?php the_tags( '<p class="meta">Tags: ', ', ', '</p>'); ?>
  32.                         </div><!--end entry-->
  33.            <div class='entry commententry'>
  34.            <?php comments_template(); ?>
  35.            </div>
  36.            
  37.                 <?php endwhile; else: ?>
  38.         <div class="entry">
  39.         <h2>Nothing Found</h2>
  40.         <p>Sorry, no posts matched your criteria.</p>
  41.         </div>
  42.        
  43. <!--do not delete-->
  44. <?php endif; ?>
  45. </div><!-- end inner_content-->
  46.  <?php get_sidebar(); ?>  
  47.  </div>   <!-- end content-->      
  48.                  
  49.                            
  50.  
  51. <?php get_footer(); ?>
clone this paste RAW Paste Data