Advertisement
gcoghill

single-stock-illutration

Sep 4th, 2011
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.29 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The Template for displaying all single stock art posts.
  4.  *
  5.  * @package WordPress
  6.  * @subpackage Twenty_Ten
  7.  * @since Twenty Ten 1.0
  8.  */
  9.  
  10. get_header(); ?>
  11.  
  12.         <div id="container">
  13.             <div id="content" role="main">
  14.  
  15. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  16.  
  17.                 <div id="nav-above" class="navigation">
  18.                     <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'twentyten' ) . '</span> %title' ); ?></div>
  19.                     <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'twentyten' ) . '</span>' ); ?></div>
  20.                 </div><!-- #nav-above -->
  21.  
  22.                 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  23.                     <h1 class="entry-title">Cartoon <?php echo get_post_meta( get_the_ID(), 'stock-art-name', true ); ?> Vector Clipart Cartoon Illustration</h1>
  24.                     <h2 class="entry-sketchbook-subtitle">Cartoon <?php echo get_post_meta( get_the_ID(), 'stock-art-name', true ); ?> Clipart Graphic - Royalty-Free Vector Clip Art Stock Image</h2>
  25.                     <div class="entry-meta">
  26.                     <?php echo get_the_term_list( get_the_ID(), 'stock-art-categories', "Category: ", ' &raquo; ' ) ?>
  27.                     </div>
  28.                     <div class="entry-meta">
  29.                     <?php echo get_the_term_list( get_the_ID(), 'stock-art-tags', "Tags: ", ', ' ) ?>
  30.                     </div><!-- .entry-meta -->
  31.                     <!-- adding 'single-post-thumbnail' results in displaying the full image, not exactly sure why, or how I discovered this! -->
  32.                     <div align="center">
  33.                     <?php the_post_thumbnail( 'single-post-thumbnail' ); ?>
  34.                     </div>
  35.                    
  36.                     <div class="entry-content">
  37.                     This <span class="image-title">vector cartoon <?php echo get_post_meta( get_the_ID(), 'stock-art-name', true ); ?> clipart illustration</span> will be available shortly.
  38.                     </div><!-- .entry-content -->
  39.  
  40.                     <div class="entry-content">
  41.                         <div class="price">
  42.                             Price:
  43.                             <span><?php echo get_post_meta( get_the_ID(), 'stock-art-price', true ); ?></span>
  44.                         </div>
  45.                         <!-- .price -->
  46.                     </div><!-- .entry-content -->
  47.  
  48.                     <div class="entry-content" style="text-align:center; color: #777; font-size: 14px;">
  49.                     <?php echo get_post_meta( get_the_ID(), 'stock-art-description', true ); ?>
  50.                     </div><!-- .entry-content -->
  51.  
  52.  
  53.                     <div class="entry-content">
  54.                     TEMPLATE TEXT TEST***
  55.                         <?php the_content(); ?>
  56.                         <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
  57.                     </div><!-- .entry-content -->
  58.  
  59. <?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries  ?>
  60.                     <div id="entry-author-info">
  61.                         <div id="author-avatar">
  62.                             <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?>
  63.                         </div><!-- #author-avatar -->
  64.                         <div id="author-description">
  65.                             <h2><?php printf( esc_attr__( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
  66.                             <?php the_author_meta( 'description' ); ?>
  67.                             <div id="author-link">
  68.                                 <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
  69.                                     <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentyten' ), get_the_author() ); ?>
  70.                                 </a>
  71.                             </div><!-- #author-link -->
  72.                         </div><!-- #author-description -->
  73.                     </div><!-- #entry-author-info -->
  74. <?php endif; ?>
  75.  
  76.                     <div class="entry-utility">
  77.                         <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
  78.                     </div><!-- .entry-utility -->
  79.                 </div><!-- #post-## -->
  80.  
  81.                 <div id="nav-below" class="navigation">
  82.                     <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'twentyten' ) . '</span> %title' ); ?></div>
  83.                     <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'twentyten' ) . '</span>' ); ?></div>
  84.                 </div><!-- #nav-below -->
  85.  
  86.                 <?php comments_template( '', true ); ?>
  87.  
  88. <?php endwhile; // end of the loop. ?>
  89.  
  90.             </div><!-- #content -->
  91.         </div><!-- #container -->
  92.  
  93. <?php get_sidebar(); ?>
  94. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement