Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2014
1,361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * The Template for displaying all Single Project posts.
  4.  *
  5.  * @package WordPress
  6.  * @subpackage Laurel Streng
  7.  * @since Laurel Streng 2.0
  8.  */
  9.  
  10. get_header(); ?>
  11.  
  12. <?php while ( have_posts() ) : the_post(); ?>
  13.  
  14.     <?php if ( is_single() ) : ?>
  15.  
  16.         <div class="row" role="main">
  17.     <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  18.         <header class="project-header large-12 columns">
  19.             <h1 class="entry-title"><?php the_title(); ?></h1>
  20.             <p><?php the_terms( $post->ID, 'project_type', '', '  <span class="color">|</span> ', ' ' ); ?></p>
  21.         </header>
  22.  
  23.         <div class="large-6 columns">
  24.             <?php the_field( 'project_description' ); ?>
  25.             <table>
  26.                 <tbody>
  27.                     <tr>
  28.                         <td>Client:</td>
  29.                         <td><?php the_field( 'project_client' ); ?></td>
  30.                     </tr>
  31.                     <tr>
  32.                         <td>Date:</td>
  33.                         <td><?php the_field( 'project_date' ); ?></td>
  34.                     </tr>
  35.                     <tr>
  36.                         <td>Skills:</td>
  37.                         <td>
  38.                             <?php
  39.                             $values = get_field( 'project_skills' );
  40.                             if ( $values ) {
  41.                                 foreach ( $values as $value ) {
  42.                                     echo $value . ', ';
  43.                                 }
  44.                             } ?>
  45.                         </td>
  46.                     </tr>
  47.                 </tbody>
  48.             </table>
  49.             <?php if ( get_field( 'project_url' ) ): ?>
  50.                 <a class="button small radius" href="<?php the_field( 'project_url' ); ?>" target="_blank">Launch Project</a>
  51.             <?php endif; ?>
  52.         </div>
  53.  
  54.         <div class="large-6 columns">
  55.         </div>
  56.     </article>
  57. </div>
  58.     <?php endif; // is_single() ?>
  59.  
  60. <?php endwhile; ?>
  61.  
  62. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement