Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Single Prospress Post
- */
- /**
- * This the default template for displaying a single Prospress post.
- * It includes all the basic elements for a Prospress post in a very
- * neutral style.
- *
- * @package Prospress
- * @subpackage Theme
- * @since 0.1
- */
- ?>
- <?php get_header(); ?>
- <div id="container" class="prospress-container">
- <div id="content" class="prospress-content">
- <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
- <h2 class="pp-title entry-title"><?php the_title();?></h2>
- <?php do_action( 'pp_single_content' ); ?>
- <div class="pp-content">
- <table border="0"><tr>
- <td align=center" width="25%">
- <?php $image1=get_post_meta($post->ID, 'thumbnail', false); ?>
- <?php if ( $image1 ) : ?>
- <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>
- <?php else : ?>
- LALALAAA
- <?php endif; ?>
- </td>
- <td align=center" width="25%">
- <?php $image2=get_post_meta($post->ID, 'image1', false); ?>
- <?php if ( $image2 ) : ?>
- <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>
- <?php else : ?>
- LALALAAA
- <?php endif; ?>
- </td>
- <td align=center" width="25%">
- <?php $image3=get_post_meta($post->ID, 'image2', false); ?>
- <?php if ( $image3 ) : ?>
- <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>
- <?php else : ?>
- LALALAAA
- <?php endif; ?>
- </td>
- <td align=center" width="25%">
- <?php $image4=get_post_meta($post->ID, 'image3', false); ?>
- <?php if ( $image4 ) : ?>
- <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>
- <?php else : ?>
- LALALAAA
- <?php endif; ?>
- </td>
- </tr></table>
- <?php the_content(); ?>
- </div>
- <?php the_bid_form(); ?>
- <div id="nav-below" class="navigation">
- <div class="nav-index"><a href="<?php echo $market->get_index_permalink(); ?>"><?php printf( __("← Return to %s Index", 'Prospress'), $market->label ); ?></a></div>
- </div>
- <?php comments_template( '', true ); ?>
- <?php endwhile; // end of the loop. ?>
- </div>
- </div>
- <div id="sidebar" class="prospress-sidebar">
- <ul class="xoxo">
- <!-- Add default countdown widget if no widgets currently registered in single auctions sidebar -->
- <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar( $market->name(). '-single-sidebar' ) ) : // begin primary sidebar widgets
- the_widget('PP_Countdown_Widget', array(
- 'title' => __('Ending:','prospress')
- ) );
- the_widget('PP_Feedback_Score_Widget', array(
- 'title' => __('Feedback Score','prospress')
- ) );
- the_widget('PP_Admin_Widget', array(
- 'title' => __('Your Prospress','prospress')
- ) );
- endif;?>
- </ul>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement