Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <?php global $woo_options, $post; ?>
  3.  
  4. <?php
  5. $featured_title = __('Portfolio', 'woothemes');
  6.  
  7. if ( is_array( $woo_options ) && @$woo_options['woo_single_portfolio_title'] ) {
  8. $featured_title = $woo_options[ 'woo_single_portfolio_title' ];
  9. }
  10. ?>
  11.  
  12. <div id="title-container">
  13. <h1 class="title col-full"><?php echo $featured_title ?></h1>
  14. </div>
  15.  
  16. <div id="content" class="col-full">
  17.  
  18. <div id="main" class="col-full">
  19.  
  20. <?php if ( $woo_options[ 'woo_breadcrumbs_show' ] == 'true' ) woo_breadcrumbs(); ?>
  21.  
  22. <?php if (have_posts()) : $count = 0; ?>
  23. <?php while (have_posts()) : the_post(); $count++; ?>
  24.  
  25. <div <?php post_class(); ?>>
  26. <?php $portfolio_gallery = $woo_options[ 'woo_portfolio_gallery' ] == 'true'; ?>
  27.  
  28. <?php echo woo_embed( 'width=540' ); ?>
  29.  
  30. <?php if ( $portfolio_gallery && !woo_embed('')) { ?>
  31. <div id="gallery">
  32. <?php
  33. $gallery = do_shortcode('[gallery size="thumbnail" columns="4"]');
  34.  
  35. if ( $gallery ) {
  36.  
  37. // include('includes/gallery.php'); // Photo gallery
  38.  
  39. $tpl_gallery = '';
  40. $tpl_gallery = locate_template( array( 'includes/gallery.php' ) );
  41.  
  42. if ( $tpl_gallery ) {
  43.  
  44. include( $tpl_gallery );
  45.  
  46. } // End IF Statement
  47.  
  48. } else {
  49. woo_image('key=portfolio-image&width=540&class=portfolio-img&link=img');
  50. }
  51. ?>
  52. </div>
  53.  
  54. <?php } elseif ( !woo_embed('')) { ?><!-- End If portfolio_gallery -->
  55.  
  56. <div id="gallery">
  57. <div class="entry">
  58. <?php woo_image('key=portfolio-image&width=540&class=portfolio-img&link=url'); ?>
  59. </div>
  60. </div>
  61. <?php } ?>
  62.  
  63. <?php $testimonial = get_post_meta($post->ID, 'testimonial', true); ?>
  64. <?php $testimonial_author = get_post_meta($post->ID, 'testimonial_author', true); ?>
  65. <?php $url = get_post_meta($post->ID, 'url', true); ?>
  66.  
  67. <div id="portfolio-content">
  68. <h2><?php the_title(); ?></h2>
  69.  
  70. <?php the_tags( '<p class="tags">'.__( '', 'woothemes' ), ' ', '</p>' ); ?>
  71.  
  72. <div class="entry">
  73. <?php the_content(); ?>
  74. <?php if ( $url ) { ?><a class="button" href="<?php echo $url; ?>"><?php _e( 'Visit Website', 'woothemes' ); ?></a><?php } ?>
  75. </div><!-- /.entry -->
  76.  
  77. <?php if ( $testimonial) { ?>
  78. <div id="testimonial">
  79. <h3><?php _e( 'Client Testimonial', 'woothemes' ); ?></h3>
  80. <div class="quote">
  81. <?php if ( $testimonial ) { ?><blockquote><?php echo $testimonial; ?></blockquote><?php } // End IF Statement ?>
  82. <?php if ( $testimonial_author ) { ?><cite>&ndash; <?php echo $testimonial_author; ?> <?php if ( $url ) { ?> - <a href="<?php echo $url; ?>"><?php echo $url; ?></a><?php } ?></cite><?php } // End IF Statement ?>
  83. </div>
  84. </div>
  85. <?php } ?><!-- End If -->
  86.  
  87. </div><!-- /#portfolio-content -->
  88. <div class="fix"></div>
  89. <?php edit_post_link( __('{ Edit }', 'woothemes'), '<span class="small">', '</span>' ); ?>
  90. </div><!-- /.post -->
  91.  
  92. <?php endwhile; else: ?>
  93. <div class="post">
  94. <p><?php _e('Sorry, no posts matched your criteria.', 'woothemes') ?></p>
  95. </div><!-- /.post -->
  96. <?php endif; ?>
  97.  
  98. </div><!-- /#main -->
  99.  
  100. </div><!-- #content -->
  101.  
  102. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement