Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "testttt" ;
- echo "here i want try to show the value but nothing work ";
- ?>
- <?php if ($reviews) { ?>
- <?php foreach ($reviews as $review) {
- ?>
- <table class="table table-striped table-bordered">
- <tr>
- <td style="width: 50%;"><strong><?php echo $review['author']; ?></strong></td>
- <td class="text-right"><?php echo $review['date_added']; ?></td>
- </tr>
- <tr>
- <td colspan="2"><p><?php echo $review['text']; ?></p>
- <div class="rating">
- <div class="rating-stars">
- <?php for ($i = 1; $i <= 5; $i++) { ?>
- <?php if ($review['rating'] < $i) { ?>
- <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span>
- <?php } else { ?>
- <span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i></span>
- <?php } ?>
- <?php } ?>
- </div>
- </div>
- </td>
- </tr>
- </table>
- <?php } ?>
- <div class="pagination-results">
- <div class="text-right"><?php echo $pagination; ?></div>
- </div>
- <?php } else { ?>
- <p><?php echo $text_no_reviews; ?></p>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement