Guest User

Untitled

a guest
May 30th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.24 KB | None | 0 0
  1. <?php
  2. global $post, $accommodation_price, $date_from, $date_to, $price_decimal_places, $default_currency_symbol, $show_currency_symbol_after, $current_user, $accommodation_obj, $score_out_of_10, $bookyourtravel_review_helper, $bookyourtravel_theme_globals;
  3. $enable_reviews = $bookyourtravel_theme_globals->enable_reviews();
  4. $accommodation_location = $accommodation_obj->get_location();
  5. ?>
  6. <?php if ($enable_reviews) { ?>
  7. <div>
  8. <?php
  9. $all_reviews_query = $bookyourtravel_review_helper->list_reviews($accommodation_obj->get_base_id());
  10. if ($all_reviews_query->have_posts()) {
  11. while ($all_reviews_query->have_posts()) {
  12. $all_reviews_query->the_post();
  13. global $post;
  14. $likes = get_post_meta($post->ID, 'review_likes', true);
  15. $author = get_the_author();
  16. ?>
  17. <!--testimonials-->
  18. <article class="testimonials">
  19. <blockquote><?php echo $likes; ?></blockquote>
  20. <span class="name"><?php echo $author; ?></span>
  21. </article>
  22. <!--//testimonials-->
  23. <?php break; } } ?>
  24. </div>
  25. <?php } // $enable_reviews ?>
  26.  
  27. <?php
  28. global $post, $cruise_price, $current_user, $show_currency_symbol_after, $default_currency_symbol, $price_decimal_places, $cruise_obj, $score_out_of_10, $bookyourtravel_theme_globals, $bookyourtravel_review_helper;
  29. $enable_reviews = $bookyourtravel_theme_globals->enable_reviews();
  30. ?>
  31. <?php if ($enable_reviews) { ?>
  32. <div>
  33. <?php
  34. $all_reviews_query = $bookyourtravel_review_helper->list_reviews($cruise_obj->get_base_id());
  35. if ($all_reviews_query->have_posts()) {
  36. while ($all_reviews_query->have_posts()) {
  37. $all_reviews_query->the_post();
  38. global $post;
  39. $likes = get_post_meta($post->ID, 'review_likes', true);
  40. $author = get_the_author();
  41. ?>
  42. <!--testimonials
  43. <article class="testimonials">
  44. <blockquote><?php echo $likes; ?></blockquote>
  45. <span class="name"><?php echo $author; ?></span>
  46. </article>
  47. //testimonials-->
  48. <?php
  49. break;
  50. }
  51. } ?>
  52. </div>
  53.  
  54. <?php
  55. global $post, $accommodation_price, $date_from, $date_to, $price_decimal_places, $default_currency_symbol, $show_currency_symbol_after, $current_user, $accommodation_obj, $score_out_of_10, $bookyourtravel_review_helper, $bookyourtravel_theme_globals;
  56. $enable_reviews = $bookyourtravel_theme_globals->enable_reviews();
  57. $accommodation_location = $accommodation_obj->get_location();
  58. ?>
  59. <?php if ($enable_reviews) { ?>
  60. <div>
  61. <?php
  62. $all_reviews_query = $bookyourtravel_review_helper->list_reviews($tour_obj->get_base_id());
  63. if ($all_reviews_query->have_posts()) {
  64. while ($all_reviews_query->have_posts()) {
  65. $all_reviews_query->the_post();
  66. global $post;
  67. $likes = get_post_meta($post->ID, 'review_likes', true);
  68. $author = get_the_author();
  69. ?>
  70. <!--testimonials
  71. <article class="testimonials clearfix">
  72. <blockquote><?php echo $likes; ?></blockquote>
  73. <span class="name"><?php echo $author; ?></span>
  74. </article>
  75. <//testimonials-->
  76. <?php
  77. break;
  78. }
  79. } ?>
  80. </div>
  81.  
  82. <?php
  83. global $post, $accommodation_price, $date_from, $date_to,
  84. $price_decimal_places, $default_currency_symbol,
  85. $show_currency_symbol_after, $current_user,
  86. $accommodation_obj, $score_out_of_10, $tour_obj, $cruise_obj,
  87. $bookyourtravel_review_helper, $bookyourtravel_theme_globals;
  88.  
  89.  
  90. $enable_reviews = $bookyourtravel_theme_globals->enable_reviews();
  91. if (!empty($accommodation_obj)) {
  92.  
  93. $accommodation_location = $accommodation_obj->get_location();
  94. $poly_object = $accommodation_obj;
  95. }
  96. else if(!empty($cruise_obj)){
  97. $poly_object = $cruise_obj;
  98. }
  99. else if(!empty($tour_obj)) {
  100. $poly_object = $tour_obj;
  101. }
  102. ?>
  103. <?php if ($enable_reviews) { ?>
  104. <div>
  105. <?php
  106. $all_reviews_query = $bookyourtravel_review_helper->list_reviews($poly_object->get_base_id());
  107. if ($all_reviews_query->have_posts()) {
  108. while ($all_reviews_query->have_posts()) {
  109. $all_reviews_query->the_post();
  110. global $post;
  111. $likes = get_post_meta($post->ID, 'review_likes', true);
  112. $author = get_the_author();
  113. ?>
  114. <!--testimonials-->
  115. <article class="testimonials">
  116. <blockquote><?php echo $likes; ?></blockquote>
  117. <span class="name"><?php echo $author; ?></span>
  118. </article>
  119. <!--//testimonials-->
  120. <?php break; } } ?>
  121. </div>
  122. <?php } //
Add Comment
Please, Sign In to add comment