Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div class="col-sm-12 row page_top top_project">
  3. <h2><?php wp_title(""); ?></h2>
  4. </div>
  5. <div class="row">
  6. <div class="project_desc col-sm-12 col-md-3">
  7. <h4><?php _e("Description","um_lang"); ?></h4>
  8. <?php
  9. global $post;
  10. setup_postdata($post);
  11. the_content();
  12.  
  13. $services = get_field("project_brief");
  14. if($services && !post_password_required()):
  15. ?>
  16. <h4><?php the_field("project_services_brief_text"); ?></h4>
  17. <ul class="pp_services">
  18. <?php foreach($services as $service): ?>
  19. <li><i class="fa fa-arrow-right"></i><?php echo $service["item"]; ?></li>
  20. <?php endforeach; ?>
  21. </ul>
  22. <?php
  23. endif;
  24. if(get_field("project_button_text") && get_field("project_button_url")):
  25. ?>
  26. <a href="<?php the_field("project_button_url"); ?>" class="button_u"><?php the_field("project_button_text"); ?></a>
  27. <?php endif; ?>
  28. </div>
  29.  
  30. <div class="project-images col-sm-12 col-md-9">
  31. <?php
  32. $slider = get_field("slider");
  33. if($slider && !post_password_required()):
  34. ?>
  35. <ul>
  36. <?php foreach($slider as $slide): ?>
  37. <?php if($slide["video_url"]): ?>
  38. <li class="video_embedd_case_study"><?php echo getVideoEmbed($slide["video_url"]); ?></li>
  39. <?php elseif($slide["image"]): ?>
  40. <li>
  41. <img data-original="<?php echo get_field("disable_image_resize") == "Enabled" ? $slide["image"] : aq_resize($slide["image"],848); ?>" alt=""/>
  42. </li>
  43. <?php endif; ?>
  44. <?php endforeach; ?>
  45. </ul>
  46. <?php endif; ?>
  47. <div class="appreciate">
  48. <?php
  49. $coockie_offset = 'um_liked_'.$post->ID;
  50. $liked = isset($_COOKIE[$coockie_offset]) && $_COOKIE[$coockie_offset] ? "liked" : "";
  51. ?>
  52. <a href="#" class="like_post <?php echo $liked; ?>" data-postid="<?php echo $post->ID; ?>"><i class="icon-heart"></i><?php _e("Appreciate","um_lang"); ?></a>
  53. <div class="appr_count"><?php echo get_likes(); ?></div>
  54. </div>
  55. <div class="share_this">
  56. <ul>
  57. <li><a href="<?php the_permalink(); ?>" class="facebook_share"><i class="fa fa-facebook"></i><?php _e("Share","um_lang"); ?></a></li>
  58. <li><a href="<?php the_permalink(); ?>" class="twitter_share"><i class="fa fa-twitter"></i><?php _e("Tweet","um_lang"); ?></a></li>
  59. <li><a href="<?php the_permalink(); ?>" class="pinteres_share" data-image="<?php echo get_post_featured_image_src(); ?>"><i class="fa fa-pinterest"></i><?php _e("Pin","um_lang"); ?></a></li>
  60. </ul>
  61. </div>
  62. </div>
  63. </div>
  64.  
  65. <!--<a id="go_to_top" href="#"><i class="fa fa-arrow-up"></i></a>-->
  66. <style>
  67. #go_to_top{
  68. position: fixed;
  69. bottom: 50px;
  70. right: 50px;
  71. display: block;
  72. height: 40px;
  73. width: 40px;
  74. background-color: #8fd0cc;
  75. color: #fff;
  76. text-align: center;
  77. padding-top: 10px;
  78. }
  79. </style>
  80. <script>
  81. jQuery(document).ready(function($){
  82. $(".project-images ul li img").lazyload({
  83. effect : "fadeIn"
  84. });
  85. });
  86. </script>
  87. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement