<?php
defined('ABSPATH') or die("No script kiddies please!");
/* 
 * Show Floating Reviews
 */
?>
<div class="egpr-floating-review-wrapper">
    <div class="egpr-freview-wrap egpr-fcanvas-<?php echo $layout;?> egpr-position-<?php echo $placement;?>">
        <div class="egpr-fcanvas-badge">
           <?php 
           for($i = 1; $i <= 5; $i++){
             if($layout == "template".$i){  ?>
            <img src="<?php echo EGPR_FRONTEND_IMG_DIR . 'floating-reviews/offcanvas-' . $i . '.png' ?>" alt="Floating Review <?php echo esc_attr(ucwords($layout));?>"/>
             <?php } 
           }
           ?>
        </div>
        <div class="egpr-fcanvas-review-wrapper">
            <div class="egpr-close-btn">
                <i class="fa fa-close"></i>
            </div>
            <div class="egpr-shortcode-reviews">
                <?php  echo do_shortcode($scode); ?>
            </div>
        </div>
  </div>
</div>

