Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. echo '<div id="reviews_container">';
  2. echo '<div id="reviews_wrapper">';
  3. echo '<div id="reviews_content_right">';
  4. echo '<p>';
  5. echo '<strong>'; the_field('r_title', $post->ID); echo '</strong>'; echo '<br/>';
  6. the_field('r_review', $post->ID);
  7. echo '</p>';
  8. echo '</div>';
  9. echo '<div id="reviews_content_left">';
  10. echo '<p>';
  11. echo '<span id="reviews_personal_info">';
  12. the_field('r_name', $post->ID); echo '<br/>';
  13. the_field('r_city', $post->ID); echo '<br/>';
  14. the_field('r_age', $post->ID); echo ' years old';
  15. echo '</span>';
  16. echo '<br/><br/>';
  17.  
  18. echo '<span id="reviews_rating">';
  19. if( get_field('r_rating', $post->ID) == '1' )
  20. {
  21. echo '<i class="fa fa-star"></i>';
  22. }
  23. else if ( get_field('r_rating', $post->ID) == '2' )
  24. {
  25. echo '<i class="fa fa-star"></i>&nbsp;<i class="fa fa-star"></i>';
  26. }
  27. else if ( get_field('r_rating', $post->ID) == '3' )
  28. {
  29. echo '<i class="fa fa-star"></i>&nbsp;<i class="fa fa-star"></i>&nbsp;<i class="fa fa-star"></i>';
  30. }
  31. else if ( get_field('r_rating', $post->ID) == '4' )
  32. {
  33. echo '<i class="fa fa-star"></i>&nbsp;<i class="fa fa-star"></i>&nbsp;<i class="fa fa-star"></i>&nbsp;<i class="fa fa-star"></i>';
  34. }
  35. else if ( get_field('r_rating', $post->ID) == '5' )
  36. {
  37. echo '<i class="fa fa-star"></i>&nbsp;<i class="fa fa-star"></i>&nbsp;<i class="fa fa-star"></i>&nbsp;<i class="fa fa-star"></i>&nbsp;<i class="fa fa-star"></i>';
  38. }
  39. else
  40. {
  41. echo 'Different value';
  42. }
  43. echo '</span>';
  44. echo '<br/><br/>';
  45.  
  46. echo '<span id="reviews_sleep_info">';
  47. echo '<i class="fa fa-clock-o"></i>&nbsp;'; the_field('r_hourssleep', $post->ID); echo ' sleep per night'; echo '<br/>';
  48. if( get_field('r_sleepmode', $post->ID) == 'Sleeps solo' )
  49. {
  50. echo '<i class="fa fa-user"></i>&nbsp;'; the_field('r_sleepmode', $post->ID);
  51. }
  52. else
  53. {
  54. echo '<i class="fa fa-user-plus"></i>&nbsp;'; the_field('r_sleepmode', $post->ID);
  55. }
  56. echo '</span>';
  57. echo '<br/><br/>';
  58.  
  59. echo '<span id="reviews_time">';
  60. echo get_the_time('F d, Y', $post->ID);
  61. echo '</span>';
  62.  
  63. echo '</p>';
  64. echo '</div>';
  65. echo '<div id="reviews_cleared"></div>';
  66. echo '</div>';
  67. echo '</div>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement