Esempio n. 1
0
    <a href="" id="page"></a>

    <div class="container-fluid review-bg">
        <div class="title"> <?php 
echo Products::reviews($item->id, 2) . ' ' . Yii::t('easyii', 'reviews');
?>
 </div>
        <p class="product-star text-center">
           
            <input value="<?php 
echo $totalreviews;
?>
" type="number" class="rating" min=0 max=5 step=0.5 data-size="xs" readonly="readonly">
          <?php 
echo Products::reviews($item->id);
?>

        </p>
        <button class="btn dry-btn center-block" data-toggle="modal" data-target="#writeReview">
            <i class="fa fa-pencil fa-lg"></i> <?php 
echo Yii::t('easyii', 'Write a review');
?>
</button>
        <!-- Modal -->

<div class="modal fade" id="writeReview" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
Esempio n. 2
0
<script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "2222d12e-5607-475a-b5d7-2ba1c0a2c5c0", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
<?php 
use app\models\AddToCartForm;
use yii\easyii\modules\catalog\api\Catalog;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\ActiveForm;
use yii\easyii\modules\page\api\Page;
use app\models\Products;
$this->title = $item->seo('title', $item->model->title);
$totalreviews = Products::reviews($item->id, 1);
?>
<div class="content">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="online-product">
                    <div class="row">
                        <div class="col-md-8"  style="padding-left:0"><div class="media">
                                <div class="media-left">
                                    <img class="img-responsive center-block" src="<?php 
echo Yii::$app->getUrlManager()->getBaseUrl();
?>
/theme/images/offer-1.jpg">
                                </div>
                                <div class="media-body">
                                    <h3 class="media-heading"><?php 
echo $item->title;
?>