Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo '<div id="reviews_container">';
- echo '<div id="reviews_wrapper">';
- echo '<div id="reviews_content_right">';
- echo '<p>';
- echo '<strong>'; the_field('r_title', $post->ID); echo '</strong>'; echo '<br/>';
- the_field('r_review', $post->ID);
- echo '</p>';
- echo '</div>';
- echo '<div id="reviews_content_left">';
- echo '<p>';
- echo '<span id="reviews_personal_info">';
- the_field('r_name', $post->ID); echo '<br/>';
- the_field('r_city', $post->ID); echo '<br/>';
- the_field('r_age', $post->ID); echo ' years old';
- echo '</span>';
- echo '<br/><br/>';
- echo '<span id="reviews_rating">';
- if( get_field('r_rating', $post->ID) == '1' )
- {
- echo '<i class="fa fa-star"></i>';
- }
- else if ( get_field('r_rating', $post->ID) == '2' )
- {
- echo '<i class="fa fa-star"></i> <i class="fa fa-star"></i>';
- }
- else if ( get_field('r_rating', $post->ID) == '3' )
- {
- echo '<i class="fa fa-star"></i> <i class="fa fa-star"></i> <i class="fa fa-star"></i>';
- }
- else if ( get_field('r_rating', $post->ID) == '4' )
- {
- echo '<i class="fa fa-star"></i> <i class="fa fa-star"></i> <i class="fa fa-star"></i> <i class="fa fa-star"></i>';
- }
- else if ( get_field('r_rating', $post->ID) == '5' )
- {
- echo '<i class="fa fa-star"></i> <i class="fa fa-star"></i> <i class="fa fa-star"></i> <i class="fa fa-star"></i> <i class="fa fa-star"></i>';
- }
- else
- {
- echo 'Different value';
- }
- echo '</span>';
- echo '<br/><br/>';
- echo '<span id="reviews_sleep_info">';
- echo '<i class="fa fa-clock-o"></i> '; the_field('r_hourssleep', $post->ID); echo ' sleep per night'; echo '<br/>';
- if( get_field('r_sleepmode', $post->ID) == 'Sleeps solo' )
- {
- echo '<i class="fa fa-user"></i> '; the_field('r_sleepmode', $post->ID);
- }
- else
- {
- echo '<i class="fa fa-user-plus"></i> '; the_field('r_sleepmode', $post->ID);
- }
- echo '</span>';
- echo '<br/><br/>';
- echo '<span id="reviews_time">';
- echo get_the_time('F d, Y', $post->ID);
- echo '</span>';
- echo '</p>';
- echo '</div>';
- echo '<div id="reviews_cleared"></div>';
- echo '</div>';
- echo '</div>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement