Advertisement
Guest User

Untitled

a guest
Nov 14th, 2011
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.46 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Single Prospress Post
  4. */
  5. /**
  6.  * This the default template for displaying a single Prospress post.
  7.  * It includes all the basic elements for a Prospress post in a very
  8.  * neutral style.
  9.  *
  10.  * @package Prospress
  11.  * @subpackage Theme
  12.  * @since 0.1
  13.  */
  14. ?>
  15. <?php get_header(); ?>
  16.     <div id="container" class="prospress-container">
  17.         <div id="content" class="prospress-content">
  18.         <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  19.             <h2 class="pp-title entry-title"><?php the_title();?></h2>
  20.            
  21.            
  22.            
  23.             <?php do_action( 'pp_single_content' ); ?>
  24.  
  25.             <div class="pp-content">
  26.            
  27.             <table border="0"><tr>
  28.                        
  29.                         <td align=center" width="25%">
  30.                         <?php $image1=get_post_meta($post->ID, 'thumbnail', false); ?>
  31.                         <?php if ( $image1 ) : ?>
  32.                         <a href="<?php $values = get_post_custom_values("thumbnail"); echo $values[0]; ?>" target="blank"><img src="<?php $values = get_post_custom_values("thumbnail"); echo $values[0]; ?>" width="140px"</img></a>
  33.                         <?php else : ?>
  34.                         LALALAAA
  35.                         <?php endif; ?>
  36.                         </td>
  37.                        
  38.                         <td align=center" width="25%">
  39.                         <?php $image2=get_post_meta($post->ID, 'image1', false); ?>
  40.                         <?php if ( $image2 ) : ?>
  41.                         <a href="<?php $values = get_post_custom_values("image1"); echo $values[0]; ?>" target="blank"><img src="<?php $values = get_post_custom_values("image1"); echo $values[0]; ?>" width="140px"</img></a>
  42.                         <?php else : ?>
  43.                         LALALAAA
  44.                         <?php endif; ?>
  45.                         </td>
  46.                        
  47.                         <td align=center" width="25%">
  48.                         <?php $image3=get_post_meta($post->ID, 'image2', false); ?>
  49.                         <?php if ( $image3 ) : ?>
  50.                         <a href="<?php $values = get_post_custom_values("image2"); echo $values[0]; ?>" target="blank"><img src="<?php $values = get_post_custom_values("image2"); echo $values[0]; ?>" width="140px"</img></a>
  51.                         <?php else : ?>
  52.                         LALALAAA
  53.                         <?php endif; ?>
  54.                         </td>
  55.                        
  56.                         <td align=center" width="25%">
  57.                         <?php $image4=get_post_meta($post->ID, 'image3', false); ?>
  58.                         <?php if ( $image4 ) : ?>
  59.                         <a href="<?php $values = get_post_custom_values("image3"); echo $values[0]; ?>" target="blank"><img src="<?php $values = get_post_custom_values("image3"); echo $values[0]; ?>" width="140px"</img></a>
  60.                         <?php else : ?>
  61.                         LALALAAA
  62.                         <?php endif; ?>
  63.                         </td>
  64.                        
  65.                         </tr></table>
  66.                        
  67.                        
  68.                 <?php the_content(); ?>
  69.             </div>
  70.            
  71.                 <?php the_bid_form(); ?>
  72.  
  73.             <div id="nav-below" class="navigation">
  74.                 <div class="nav-index"><a href="<?php echo $market->get_index_permalink(); ?>"><?php printf( __("&larr; Return to %s Index", 'Prospress'), $market->label ); ?></a></div>
  75.             </div>
  76.  
  77.             <?php comments_template( '', true ); ?>
  78.  
  79.         <?php endwhile; // end of the loop. ?>
  80.         </div>
  81.     </div>
  82.     <div id="sidebar" class="prospress-sidebar">
  83.         <ul class="xoxo">
  84.             <!-- Add default countdown widget if no widgets currently registered in single auctions sidebar -->
  85.             <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar( $market->name(). '-single-sidebar' ) ) : // begin primary sidebar widgets           
  86.                 the_widget('PP_Countdown_Widget', array(
  87.                     'title' => __('Ending:','prospress')
  88.                 ) );
  89.                 the_widget('PP_Feedback_Score_Widget', array(
  90.                     'title' => __('Feedback Score','prospress')
  91.                 ) );
  92.                 the_widget('PP_Admin_Widget', array(
  93.                     'title' => __('Your Prospress','prospress')
  94.                 ) );
  95.             endif;?>
  96.         </ul>
  97.     </div>
  98. <?php get_footer(); ?>
  99.  
  100.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement