Skip to content

Instantly share code, notes, and snippets.

@codejoust
Created June 20, 2010 03:53
Show Gist options
  • Save codejoust/445538 to your computer and use it in GitHub Desktop.
Save codejoust/445538 to your computer and use it in GitHub Desktop.
<?php
/**
* The Template for displaying all single product posts.
*/
?>
<?php get_header(); ?>
<div id="content">
<div class="wrap">
<div id="leftcol">
<?php the_post(); ?>
<?php
$custom = get_post_custom($post->ID);
$price = $custom["price"][0];
$date = $custom["date"][0];
$verse = $custom["verse"][0];
$pdf = $custom["pdf"][0];
$audio = $custom["audio"][0];
?>
<div id="sermon_single">
<h2><?php the_title(); ?></h2>
<?php the_content(); ?>
</div>
</div>
<div id="rightcol">
<div class="padding">
<div class="box">
<a class="access_sermon download" href="<?php echo $pdf; ?>">Download PDF>></a>
</div>
<div class="box">
<a class="access_sermon listen" href="<?php echo $audio; ?>">Listen Online>></a>
</div>
<div class="box">
<div class="sermon_meta">
<span class="pastor">by <?php echo $price; ?></span>
<span class="verse"><?php echo $verse; ?></span>
<span class="date"><?php echo $date; ?></span>
</div>
</div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment