Advertisement
deliciousthemes

Haze - Portfolio Single for Vimeo Videos

Aug 2nd, 2012
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.87 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <?php   if (have_posts()) : while (have_posts()) : the_post(); ?>
  4.         <section class="page-title">
  5.             <div class="double-separator"></div>
  6.             <div class="breadcrumbs">
  7.                 <div class="two-third align-left">
  8.                     <?php if (function_exists('dt_breadcrumbs')) dt_breadcrumbs(); ?>
  9.                 </div>
  10.                
  11.                 <div class="one-third column-last align-right">
  12.                     <div class="single-portfolio-nav" class="clearfix">
  13.                         <div class="previous-post-link"><?php previous_post_link('%link'); ?></div>
  14.                         <div class="next-post-link"><?php next_post_link('%link'); ?></div>
  15.                     </div> 
  16.                 </div>
  17.             </div><!--end breadcrumbs-->
  18.             <div class="double-separator"></div>
  19.         </section>
  20.     </div><!--end top-->
  21.    
  22.     <div class="centered-wrapper">
  23.         <?php
  24.         //get meta
  25.         $portfolio_date = get_post_meta($post->ID, 'haze_portfolio_date', TRUE);
  26.         $portfolio_location = get_post_meta($post->ID, 'haze_portfolio_location', TRUE);
  27.         $portfolio_camera = get_post_meta($post->ID, 'haze_portfolio_camera', TRUE);
  28.         $portfolio_website = get_post_meta($post->ID, 'haze_portfolio_website', TRUE);
  29.         $portfolio_url = get_post_meta($post->ID, 'haze_portfolio_url', TRUE);
  30.         $portfolio_desc = get_post_meta($post->ID, 'haze_portfolio_desc', TRUE);
  31.         $portfolio_video = get_post_meta($post->ID, 'haze_portfolio_video', TRUE);
  32.         ?> 
  33.         <section class="portfolio-single"> 
  34.             <div class="percent-three-fourth">
  35.                 <iframe src="http://player.vimeo.com/video/<?php if(!empty($portfolio_video)) {  echo $portfolio_video; } ?>?title=0&amp;byline=0&amp;portrait=0" width="695" height="400" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
  36.             </div><!--end three-fourth-->
  37.                
  38.             <div class="percent-one-fourth column-last">
  39.                 <h2><?php the_title(); ?></h2>
  40.                 <?php if(!empty($portfolio_desc)) { echo $portfolio_desc; } ?>
  41.                 <ul class="item-details">
  42.                     <?php if(!empty($portfolio_date)) {?><li><span><?php _e('Date','haze'); ?>: </span><?php echo $portfolio_date; ?></li><?php } ?>           
  43.                     <?php if(!empty($portfolio_location)) {?><li><span><?php _e('Location','haze'); ?>: </span><?php echo $portfolio_location; ?></li><?php } ?>           
  44.                     <?php if(!empty($portfolio_camera)) {?><li><span><?php _e('Camera','haze'); ?>: </span><?php echo $portfolio_camera; ?></li><?php } ?>         
  45.                     <?php if(!empty($portfolio_website)) {?><li><span><?php _e('Website','haze'); ?>: </span><a href="<?php echo $portfolio_url; ?>"><?php echo $portfolio_website; ?></a></li><?php } ?>          
  46.                 </ul><!--end item-details-->
  47.             </div><!--end one-third--> 
  48.            
  49.         </section><!--end portfolio-single-->
  50.         <div class="space"></div>
  51.         <div class="clear"></div>
  52.         <?php the_content(); ?>
  53.        
  54.         <div class="separator"></div>
  55.        
  56.         <?php  get_template_part( 'includes/related-portfolio-posts');  ?> 
  57.        
  58.     <?php endwhile; endif; ?>  
  59.        
  60.     </div><!--end centered-wrapper-->
  61.  
  62. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement