Guest User

single-weblizar_portfolio.php

a guest
Sep 3rd, 2016
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. <?php get_header();
  2. get_template_part('weblizar','breadcrumbs'); ?>
  3. <div class="container">
  4. <?php the_post();
  5. $next_post = get_next_post();
  6. if (!empty( $next_post )){ ?>
  7. <span><a href="<?php echo get_permalink( $next_post->ID ); ?>" title="Previous" rel="prev"><span class="fa fa-arrow-left"></span></a></span>
  8. <?php }
  9. $prev_post = get_previous_post();
  10. if (!empty( $prev_post )) { ?>
  11. <span style="float:right;"><a href="<?php echo get_permalink( $prev_post->ID ); ?>" title="Next" rel="next"><span class="fa fa-arrow-right"></span></a></span>
  12. <?php } ?>
  13. <div class="content_fullwidth lessmar">
  14. <div class="portfolio_area">
  15. <div class="portfolio_area_left">
  16. <?php if(has_post_thumbnail()){ the_post_thumbnail(''); } ?>
  17. <div class="margin_top5"></div>
  18. <p><?php the_content(); ?> </p>
  19. <br>
  20. </div>
  21. <div class="portfolio_area_right">
  22. <div class="project_details">
  23. <h5><?php _e('Project Details','weblizar'); ?></h5>
  24. <span><strong><?php _e('Date','weblizar'); ?></strong> <em><?php echo get_the_time('d M Y'); ?></em></span>
  25. <span><strong><?php _e('Categories','weblizar'); ?></strong> <em>
  26. <?php $terms_names = wp_get_post_terms($post->ID, "portfolio_categories", array("fields" => "names")); ?>
  27. <?php foreach ($terms_names as $term) { ?><a href="#"><?php echo $term; } ?></a> </em></span>
  28. <span><strong><?php _e('Author','weblizar'); ?></strong> <em><?php the_author(); ?></em></span>
  29. <?php if(get_post_meta( get_the_ID(), 'portfolio_skill', true )) { ?>
  30. <span><strong><?php _e('Skills','weblizar'); ?></strong> <em><?php echo get_post_meta( get_the_ID(), 'portfolio_skill', true ); ?></em></span>
  31. <?php } ?>
  32. <?php if(get_post_meta( get_the_ID(), 'portfolio_client', true )) { ?>
  33. <span><strong><?php _e('Client','weblizar'); ?></strong> <em><?php echo get_post_meta( get_the_ID(), 'portfolio_client', true ); ?></em></span>
  34. <?php } ?><div class="clearfix margin_top5"></div>
  35. <?php if(get_post_meta( get_the_ID(), 'portfolio_button_text', true )) { ?>
  36. <a class="but_goback" <?php if(get_post_meta( get_the_ID(), 'portfolio_button_target', true )) { echo "target='_blank'"; } ?> href="<?php echo get_post_meta( get_the_ID(), 'portfolio_button_link', true ); ?>"><i class="fa fa-hand-o-right fa-lg"></i> <?php echo get_post_meta( get_the_ID(), 'portfolio_button_text', true ); ?></a>
  37. <?php } ?>
  38. </div>
  39. </div>
  40. </div><!-- end section -->
  41. </div>
  42. </div>
  43. <div class="margin_top5"></div>
  44. <div class="clearfix"></div>
  45. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment