<?php

/* opencartvip/template/opencartvip/module/product_blocks_reviews.twig */
class __TwigTemplate_75db45366e8e10be5555e5a1d92c59ac174eaf62feb1efda1152be87a0adf59d extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo "
\t\t\t\t";
        // line 2
        if ((isset($context["reviewprostatus"]) ? $context["reviewprostatus"] : null)) {
            // line 3
            echo "\t\t\t\t
\t\t\t\t<div class=\"overallrating\">
\t\t\t\t\t";
            // line 5
            if ((isset($context["review_total"]) ? $context["review_total"] : null)) {
                // line 6
                echo "\t\t\t\t\t";
                if ($this->getAttribute((isset($context["reviewpro_fields"]) ? $context["reviewpro_fields"] : null), "reviewrating", array())) {
                    // line 7
                    echo "\t\t\t\t\t<p class=\"avgstar\">
\t\t\t\t\t\t";
                    // line 8
                    if ((isset($context["forstars"]) ? $context["forstars"] : null)) {
                        // line 9
                        echo "\t\t\t\t\t\t\t";
                        $context['_parent'] = $context;
                        $context['_seq'] = twig_ensure_traversable(range(1, 5));
                        foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                            // line 10
                            echo "\t\t\t\t\t\t\t\t";
                            if (($context["i"] <= (isset($context["forstars"]) ? $context["forstars"] : null))) {
                                // line 11
                                echo "\t\t\t\t\t\t\t\t\t<i class=\"fa fa-star\"></i>
\t\t\t\t\t\t\t\t";
                            } else {
                                // line 13
                                echo "\t\t\t\t\t\t\t\t\t<i class=\"fa fa-star-o\"></i>
\t\t\t\t\t\t\t\t";
                            }
                            // line 15
                            echo "\t\t\t\t\t\t\t";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 16
                        echo "\t\t\t\t\t\t";
                    }
                    // line 17
                    echo "\t\t\t\t\t</p>
\t\t\t\t\t";
                }
                // line 19
                echo "\t\t\t\t\t<p class=\"fromreview\">";
                echo (isset($context["averagerating"]) ? $context["averagerating"] : null);
                echo " ";
                echo $this->getAttribute((isset($context["textadmin"]) ? $context["textadmin"] : null), "rating", array());
                echo " / ";
                echo (isset($context["review_total"]) ? $context["review_total"] : null);
                echo " ";
                echo $this->getAttribute((isset($context["textadmin"]) ? $context["textadmin"] : null), "review", array());
                echo "</p>
\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t<div class=\"col-sm-9\">
\t\t\t\t\t\t\t";
                // line 22
                if ($this->getAttribute((isset($context["reviewpro_fields"]) ? $context["reviewpro_fields"] : null), "differetbars", array())) {
                    // line 23
                    echo "\t\t\t\t\t\t\t\t";
                    if ((isset($context["rating_desc"]) ? $context["rating_desc"] : null)) {
                        // line 24
                        echo "\t\t\t\t\t\t\t\t\t";
                        $context['_parent'] = $context;
                        $context['_seq'] = twig_ensure_traversable((isset($context["rating_desc"]) ? $context["rating_desc"] : null));
                        foreach ($context['_seq'] as $context["_key"] => $context["ratings"]) {
                            // line 25
                            echo "\t\t\t\t\t\t\t\t\t\t<div class=\"diferent_bar\" rel=\"";
                            echo $this->getAttribute($context["ratings"], "rating_id", array());
                            echo "\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"barname text-right\">";
                            // line 26
                            echo $this->getAttribute($context["ratings"], "rating_name", array());
                            echo "</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"barrating\"><div style=\"width:";
                            // line 27
                            echo $this->getAttribute($this->getAttribute((isset($context["avgrating"]) ? $context["avgrating"] : null), $this->getAttribute($context["ratings"], "rating_id", array()), array(), "array"), "per", array());
                            echo "; ";
                            if ($this->getAttribute($this->getAttribute((isset($context["avgrating"]) ? $context["avgrating"] : null), $this->getAttribute($context["ratings"], "rating_id", array()), array(), "array"), "per", array())) {
                                echo " background-color:#FFCC00; ";
                            } else {
                                echo " background-color:#999; ";
                            }
                            echo "\"></div></div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"barpercent\">";
                            // line 28
                            echo $this->getAttribute($this->getAttribute((isset($context["avgrating"]) ? $context["avgrating"] : null), $this->getAttribute($context["ratings"], "rating_id", array()), array(), "array"), "per", array());
                            echo "</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"clearfix\"></div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ratings'], $context['_parent'], $context['loop']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 32
                        echo "\t\t\t\t\t\t\t\t";
                    }
                    // line 33
                    echo "\t\t\t\t\t\t\t";
                }
                // line 34
                echo "\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"col-sm-3 text-right\">
\t\t\t\t\t\t\t<a class=\"btn btn-primary ";
                // line 36
                if ((isset($context["guestreview"]) ? $context["guestreview"] : null)) {
                    echo " openmfp ";
                }
                echo "\" ";
                if ( !(isset($context["guestreview"]) ? $context["guestreview"] : null)) {
                    echo " data-toggle=\"tooltip\" data-placement=\"top\" title=\"";
                    echo $this->getAttribute((isset($context["textadmin"]) ? $context["textadmin"] : null), "login_review", array(), "array");
                    echo "\" ";
                }
                echo ">";
                echo $this->getAttribute((isset($context["textadmin"]) ? $context["textadmin"] : null), "reviewbtn", array());
                echo "</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t";
            } else {
                // line 40
                echo "\t\t\t\t\t\t<div class=\"text-center\">
\t\t\t\t\t\t\t<p class=\"reviewpro_heading\">";
                // line 41
                if ($this->getAttribute((isset($context["textadmin"]) ? $context["textadmin"] : null), "title", array())) {
                    echo " ";
                    echo $this->getAttribute((isset($context["textadmin"]) ? $context["textadmin"] : null), "newreview", array());
                    echo " ";
                }
                echo "</p>
\t\t\t\t\t\t\t<a class=\"btn btn-primary ";
                // line 42
                if ((isset($context["guestreview"]) ? $context["guestreview"] : null)) {
                    echo " openmfp ";
                }
                echo "\" ";
                if ((isset($context["guestreview"]) ? $context["guestreview"] : null)) {
                    echo " data-toggle=\"tooltip\" data-placement=\"top\" title=\"";
                    echo $this->getAttribute((isset($context["textadmin"]) ? $context["textadmin"] : null), "login_review", array(), "array");
                    echo "\" ";
                }
                echo ">";
                echo $this->getAttribute((isset($context["textadmin"]) ? $context["textadmin"] : null), "reviewbtn", array());
                echo "</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t";
            }
            // line 45
            echo "\t\t\t\t</div>
\t\t\t\t
\t\t\t\t";
            // line 47
            if ((isset($context["reviewfilters"]) ? $context["reviewfilters"] : null)) {
                // line 48
                echo "\t\t\t\t<div class=\"row\">
\t\t\t\t\t<div class=\"col-sm-10 col-xs-6\">
\t\t\t\t\t\t<div class=\"btn-group sortreview\" style=\"margin-bottom:10px;\">
\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-rating\" rel=\"1\"> ";
                // line 51
                echo (isset($context["text_descending"]) ? $context["text_descending"] : null);
                echo " <span class=\"clearfilter filterclose\">x</span></button>
\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-rating\" rel=\"2\">";
                // line 52
                echo (isset($context["text_asc"]) ? $context["text_asc"] : null);
                echo " <span class=\"clearfilter filterclose\">x</span></button>
\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-rating\" rel=\"3\" id=\"verifypurchase\">";
                // line 53
                echo (isset($context["text_verified"]) ? $context["text_verified"] : null);
                echo " <span class=\"clearfilter filterclose\">x</span></button>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"col-sm-2 col-xs-6\">
\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-rating clearfilter pull-right\"><i class=\"fa fa-refresh\"></i> ";
                // line 57
                echo (isset($context["text_clearfilter"]) ? $context["text_clearfilter"] : null);
                echo "</button>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t";
            }
            // line 61
            echo "\t\t\t\t
\t\t\t\t<div id=\"review\"></div>
\t\t\t\t
\t\t\t\t<div id=\"modal\" class=\"white-popup-block reviewpropopup ";
            // line 64
            if ((isset($context["displayform"]) ? $context["displayform"] : null)) {
                echo " mfp-hide ";
            }
            echo "\">
\t\t\t\t\t<a class=\"popup-modal-dismiss\" data-effect=\"mfp-zoom-in\" href=\"#\"></a>
\t\t\t\t\t<h5>";
            // line 66
            echo $this->getAttribute((isset($context["reviewform"]) ? $context["reviewform"] : null), "title", array());
            echo "</h5>
\t\t\t\t\t
\t\t\t\t\t<form id=\"form-reviewpro\" method=\"post\" class=\"form-horizontal\" enctype=\"multipart/form-data\">
\t\t\t\t\t\t
\t\t\t\t\t\t";
            // line 70
            if ($this->getAttribute((isset($context["reviewpro_fields"]) ? $context["reviewpro_fields"] : null), "namefield", array())) {
                // line 71
                echo "\t\t\t\t\t\t<div class=\"form-group ";
                if (($this->getAttribute((isset($context["reviewpro_fields"]) ? $context["reviewpro_fields"] : null), "namefield", array()) == "2")) {
                    echo " required ";
                }
                echo "\">
\t\t\t\t\t\t  <div class=\"col-sm-12\" style=\"margin-top:20px;\">
\t\t\t\t\t\t\t<input type=\"text\" name=\"name\" id=\"input_review_1\" value=\"";
                // line 73
                echo (isset($context["customer_name"]) ? $context["customer_name"] : null);
                echo "\" placeholder=\"";
                echo $this->getAttribute((isset($context["reviewform"]) ? $context["reviewform"] : null), "name", array());
                echo "\" class=\"form-control\" />
\t\t\t\t\t\t  </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
            }
            // line 77
            echo "\t\t\t\t\t\t
\t\t\t\t\t\t";
            // line 78
            if ($this->getAttribute((isset($context["reviewpro_fields"]) ? $context["reviewpro_fields"] : null), "emailfield", array())) {
                // line 79
                echo "\t\t\t\t\t\t<div class=\"form-group ";
                if (($this->getAttribute((isset($context["reviewpro_fields"]) ? $context["reviewpro_fields"] : null), "emailfield", array()) == "2")) {
                    echo " required ";
                }
                echo "\">
\t\t\t\t\t\t  <div class=\"col-sm-12\">
\t\t\t\t\t\t\t<input type=\"text\" name=\"email\" id=\"input_review_2\" value=\"";
                // line 81
                echo (isset($context["customer_email"]) ? $context["customer_email"] : null);
                echo "\" placeholder=\"";
                echo $this->getAttribute((isset($context["reviewform"]) ? $context["reviewform"] : null), "email", array());
                echo "\" class=\"form-control\" />
\t\t\t\t\t\t  </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
            }
            // line 85
            echo "\t\t\t\t\t\t
\t\t\t\t\t\t";
            // line 86
            if ($this->getAttribute((isset($context["reviewpro_fields"]) ? $context["reviewpro_fields"] : null), "titlefield", array())) {
                // line 87
                echo "\t\t\t\t\t\t<div class=\"form-group ";
                if (($this->getAttribute((isset($context["reviewpro_fields"]) ? $context["reviewpro_fields"] : null), "titlefield", array()) == "2")) {
                    echo " required ";
                }
                echo "\">
\t\t\t\t\t\t  <div class=\"col-sm-12\">
\t\t\t\t\t\t\t<input type=\"text\" name=\"title\" id=\"input_review_3\" value=\"\" placeholder=\"";
                // line 89
                echo $this->getAttribute((isset($context["reviewform"]) ? $context["reviewform"] : null), "rtitle", array());
                echo "\" class=\"form-control\" />
\t\t\t\t\t\t  </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
            }
            // line 93
            echo "\t\t\t\t\t\t
\t\t\t\t\t\t";
            // line 94
            if ($this->getAttribute((isset($context["reviewpro_fields"]) ? $context["reviewpro_fields"] : null), "commentfield", array())) {
                // line 95
                echo "\t\t\t\t\t\t<div class=\"form-group ";
                if (($this->getAttribute((isset($context["reviewpro_fields"]) ? $context["reviewpro_fields"] : null), "commentfield", array()) == "2")) {
                    echo " required ";
                }
                echo "\">
\t\t\t\t\t\t  <div class=\"col-sm-12\">
\t\t\t\t\t\t\t<textarea class=\"form-control\" id=\"input_review_4\" name=\"comment\" placeholder=\"";
                // line 97
                echo $this->getAttribute((isset($context["reviewform"]) ? $context["reviewform"] : null), "comment", array());
                echo "\"></textarea>
\t\t\t\t\t\t  </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
            }
            // line 101
            echo "\t\t\t\t\t\t
\t\t\t\t\t\t";
            // line 102
            if ($this->getAttribute((isset($context["reviewpro_fields"]) ? $context["reviewpro_fields"] : null), "ratingreq", array())) {
                // line 103
                echo "\t\t\t\t\t\t<div class=\"form-group ";
                if (($this->getAttribute((isset($context["reviewpro_fields"]) ? $context["reviewpro_fields"] : null), "ratingreq", array()) == "2")) {
                    echo " required ";
                }
                echo "\">
\t\t\t\t\t\t  <div class=\"col-sm-12\">
\t\t\t\t\t\t\t";
                // line 105
                if ((isset($context["ratinglists"]) ? $context["ratinglists"] : null)) {
                    // line 106
                    echo "\t\t\t\t\t\t\t";
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable((isset($context["ratinglists"]) ? $context["ratinglists"] : null));
                    foreach ($context['_seq'] as $context["_key"] => $context["ratinglist"]) {
                        // line 107
                        echo "\t\t\t\t\t\t\t<div class=\"wi_row\">
\t\t\t\t\t\t\t\t<label class=\"col-sm-3\" for=\"input-rating\">";
                        // line 108
                        echo $this->getAttribute($context["ratinglist"], "rating_name", array());
                        echo "</label>
\t\t\t\t\t\t\t\t<div class=\"col-sm-9\">
\t\t\t\t\t\t\t\t\t<div class=\"rating\">
\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" id=\"star5_";
                        // line 111
                        echo $this->getAttribute($context["ratinglist"], "rating_id", array());
                        echo "\" name=\"rating[";
                        echo $this->getAttribute($context["ratinglist"], "rating_id", array());
                        echo "]\" value=\"5\" /><div class=\"full\" for=\"star5_";
                        echo $this->getAttribute($context["ratinglist"], "rating_id", array());
                        echo "\" title=\"Awesome - 5 stars\"></div>
\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" id=\"star4_";
                        // line 112
                        echo $this->getAttribute($context["ratinglist"], "rating_id", array());
                        echo "\" name=\"rating[";
                        echo $this->getAttribute($context["ratinglist"], "rating_id", array());
                        echo "]\" value=\"4\" /><div class=\"full\" for=\"star4_";
                        echo $this->getAttribute($context["ratinglist"], "rating_id", array());
                        echo "\" title=\"Pretty good - 4 stars\"></div>
\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" id=\"star3_";
                        // line 113
                        echo $this->getAttribute($context["ratinglist"], "rating_id", array());
                        echo "\" name=\"rating[";
                        echo $this->getAttribute($context["ratinglist"], "rating_id", array());
                        echo "]\" value=\"3\" /><div class=\"full\" for=\"star3_";
                        echo $this->getAttribute($context["ratinglist"], "rating_id", array());
                        echo "\" title=\"Meh - 3 stars\"></div>
\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" id=\"star2_";
                        // line 114
                        echo $this->getAttribute($context["ratinglist"], "rating_id", array());
                        echo "\" name=\"rating[";
                        echo $this->getAttribute($context["ratinglist"], "rating_id", array());
                        echo "]\" value=\"2\" /><div class=\"full\" for=\"star2_";
                        echo $this->getAttribute($context["ratinglist"], "rating_id", array());
                        echo "\" title=\"Kinda bad - 2 stars\"></div>
\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" id=\"star1_";
                        // line 115
                        echo $this->getAttribute($context["ratinglist"], "rating_id", array());
                        echo "\" name=\"rating[";
                        echo $this->getAttribute($context["ratinglist"], "rating_id", array());
                        echo "]\" value=\"1\" /><div class=\"full\" for=\"star1_";
                        echo $this->getAttribute($context["ratinglist"], "rating_id", array());
                        echo "\" title=\"Sucks big time - 1 star\"></div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<script>
\t\t\t\t\t\t\t\t\t\$(\".rating div\").on('click', function() {
\t\t\t\t\t\t\t\t\t\tvar rating = \$(this).attr('for');
\t\t\t\t\t\t\t\t\t\t\$( \"#\" + rating).prop( \"checked\", true );
\t\t\t\t\t\t\t\t\t});
\t\t\t\t\t\t\t\t</script>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ratinglist'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 126
                    echo "\t\t\t\t\t\t\t";
                }
                // line 127
                echo "\t\t\t\t\t\t\t<input type=\"hidden\" id=\"input_review_6\" />
\t\t\t\t\t\t  </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
            }
            // line 131
            echo "\t\t\t\t\t\t
\t\t\t\t\t\t";
            // line 132
            if ($this->getAttribute((isset($context["reviewpro_fields"]) ? $context["reviewpro_fields"] : null), "attachimage", array())) {
                // line 133
                echo "\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t  <label class=\"col-sm-3 control-label\">";
                // line 134
                echo $this->getAttribute((isset($context["reviewform"]) ? $context["reviewform"] : null), "attachmenttext", array());
                echo "</label>
\t\t\t\t\t\t  <div class=\"col-sm-9\">
\t\t\t\t\t\t  <div class=\"attachedfiles\"></div>
\t\t\t\t\t\t\t<button type=\"button\" id=\"button-review-upload\" data-loading-text=\"";
                // line 137
                echo (isset($context["text_loading"]) ? $context["text_loading"] : null);
                echo "\" class=\"btn btn-default btn-block\"><i class=\"fa fa-upload\"></i> ";
                echo (isset($context["button_upload"]) ? $context["button_upload"] : null);
                echo "</button>
\t\t\t\t\t\t  </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
            }
            // line 141
            echo "\t\t\t\t\t\t
\t\t\t\t\t\t";
            // line 142
            if ($this->getAttribute((isset($context["reviewpro_fields"]) ? $context["reviewpro_fields"] : null), "capcha", array())) {
                // line 143
                echo "\t\t\t\t\t\t";
                echo (isset($context["captcha"]) ? $context["captcha"] : null);
                echo "
\t\t\t\t\t\t";
            }
            // line 145
            echo "\t\t\t\t\t\t<input type=\"hidden\" value=\"";
            echo (isset($context["product_id"]) ? $context["product_id"] : null);
            echo "\" name=\"product_id\" />
\t\t\t\t\t\t<div class=\"buttons clearfix\">
\t\t\t\t\t\t  <div class=\"pull-right\">
\t\t\t\t\t\t\t<button type=\"button\" ";
            // line 148
            if ((isset($context["guestreview"]) ? $context["guestreview"] : null)) {
                echo " id=\"button-reviewpro\" ";
            }
            echo " ";
            if ( !(isset($context["guestreview"]) ? $context["guestreview"] : null)) {
                echo " data-toggle=\"tooltip\" data-placement=\"top\" title=\"";
                echo $this->getAttribute((isset($context["textadmin"]) ? $context["textadmin"] : null), "login_review", array(), "array");
                echo "\" ";
            }
            echo " data-loading-text=\"";
            echo (isset($context["text_loading"]) ? $context["text_loading"] : null);
            echo "\" class=\"btn btn-primary\">";
            echo $this->getAttribute((isset($context["reviewform"]) ? $context["reviewform"] : null), "submitreviewbtn", array());
            echo "</button>
\t\t\t\t\t\t  </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t
\t\t\t\t\t</form>
\t\t\t\t\t
\t\t\t\t</div>
\t\t\t\t
\t\t\t\t<script type=\"text/javascript\">
\t\t\t\t
\t\t\t\t\t\$('#button-reviewpro').on('click', function(){
\t\t\t\t\t\t\$.ajax({
\t\t\t\t\t\t\turl: 'index.php?route=extension/reviewpro/writereviewpro',
\t\t\t\t\t\t\ttype: 'post',
\t\t\t\t\t\t\tdata: \$('#form-reviewpro input[type=\\'radio\\']:checked, #form-reviewpro input[type=\\'text\\'], #form-reviewpro textarea, #form-reviewpro input[type=\\'hidden\\'], #form-reviewpro select, #form-reviewpro input[type=\\'file\\']'),
\t\t\t\t\t\t\tdataType: 'json',
\t\t\t\t\t\t\tbeforeSend: function() {
\t\t\t\t\t\t\t\t\$('#button-reviewpro').button('loading');
\t\t\t\t\t\t\t},
\t\t\t\t\t\t\tcomplete: function() {
\t\t\t\t\t\t\t\t\$('#button-reviewpro').button('reset');
\t\t\t\t\t\t\t},
\t\t\t\t\t\t\tsuccess: function(json){
\t\t\t\t\t\t\t\t\$('#form-reviewpro .text-danger').remove();
\t\t\t\t\t\t\t\t\$('#form-reviewpro .form-group').removeClass('has-error');
\t\t\t\t\t\t\t\tif(json['error']){
\t\t\t\t\t\t\t\t\tfor(i in json['error']){
\t\t\t\t\t\t\t\t\t\tvar element = \$('#input_review_' + i);
\t\t\t\t\t\t\t\t\t\t\$(element).after('<div class=\"text-danger\">' + json['error'][i] + '</div>');
\t\t\t\t\t\t\t\t\t\t\$(element).parent().addClass('has-error');
\t\t\t\t\t\t\t\t\t}
\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t";
            // line 180
            if ($this->getAttribute((isset($context["reviewpro_fields"]) ? $context["reviewpro_fields"] : null), "attachimage", array())) {
                // line 181
                echo "\t\t\t\t\t\t\t\t\tif(json['error']['captcha']){
\t\t\t\t\t\t\t\t\t\t\$('.g-recaptcha').after('<div class=\"text-danger\">' + json['error']['captcha'] + '</div>');
\t\t\t\t\t\t\t\t\t\t\$('.g-recaptcha').parent().parent().addClass('has-error');
\t\t\t\t\t\t\t\t\t}
\t\t\t\t\t\t\t\t\t";
            }
            // line 186
            echo "\t\t\t\t\t\t\t\t}
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\tif(json['success']){
\t\t\t\t\t\t\t\t\t\$('form#form-reviewpro').html(json['success']);
\t\t\t\t\t\t\t\t}
\t\t\t\t\t\t\t},
\t\t\t\t\t\t\terror: function(xhr, ajaxOptions, thrownError) {
\t\t\t\t\t\t\t\talert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
\t\t\t\t\t\t\t}
\t\t\t\t\t\t});
\t\t\t\t\t});
\t\t\t\t\t
\t\t\t\t\t\$('button[id^=\\'button-review-upload\\']').on('click', function() {
\t\t\t\t\t\tvar node = this;
\t\t\t\t\t\t\$('#form-upload').remove();
\t\t\t\t\t\t\$('body').prepend('<form enctype=\"multipart/form-data\" id=\"form-upload\" style=\"display: none;\"><input type=\"file\" name=\"file\" /></form>');
\t\t\t\t\t\t\$('#form-upload input[name=\\'file\\']').trigger('click');
\t\t\t\t\t\tif (typeof timer != 'undefined') {
\t\t\t\t\t\t\tclearInterval(timer);
\t\t\t\t\t\t}
\t\t\t\t\t\ttimer = setInterval(function() {
\t\t\t\t\t\t\tif (\$('#form-upload input[name=\\'file\\']').val() != '') {
\t\t\t\t\t\t\t\tclearInterval(timer);
\t\t\t\t\t\t\t\t\$.ajax({
\t\t\t\t\t\t\t\t\turl: 'index.php?route=extension/reviewpro/reviewfileupload',
\t\t\t\t\t\t\t\t\ttype: 'post',
\t\t\t\t\t\t\t\t\tdataType: 'json',
\t\t\t\t\t\t\t\t\tdata: new FormData(\$('#form-upload')[0]),
\t\t\t\t\t\t\t\t\tcache: false,
\t\t\t\t\t\t\t\t\tcontentType: false,
\t\t\t\t\t\t\t\t\tprocessData: false,
\t\t\t\t\t\t\t\t\tbeforeSend: function() {
\t\t\t\t\t\t\t\t\t\t\$(node).button('loading');
\t\t\t\t\t\t\t\t\t},
\t\t\t\t\t\t\t\t\tcomplete: function() {
\t\t\t\t\t\t\t\t\t\t\$(node).button('reset');
\t\t\t\t\t\t\t\t\t},
\t\t\t\t\t\t\t\t\tsuccess: function(json) {
\t\t\t\t\t\t\t\t\t\t\$('.text-danger').remove();

\t\t\t\t\t\t\t\t\t\tif (json['error']) {
\t\t\t\t\t\t\t\t\t\t\t\$(node).parent().find('input').after('<div class=\"text-danger\">' + json['error'] + '</div>');
\t\t\t\t\t\t\t\t\t\t}

\t\t\t\t\t\t\t\t\t\tif (json['success']) {
\t\t\t\t\t\t\t\t\t\t\talert(json['success']);
\t\t\t\t\t\t\t\t\t\t\tif(json['code'] && json['image']){
\t\t\t\t\t\t\t\t\t\t\t\tif(json['type'] == 'zip'){
\t\t\t\t\t\t\t\t\t\t\t\t\t\$('.attachedfiles').append('<label style=\"margin-right:5px;vertical-align:top\"><a href=\"'+ json['href'] +'\">'+ json['image'] +'</a><input type=\"hidden\" value=\"'+ json['code'] +'\" name=\"file[]\"></label>')
\t\t\t\t\t\t\t\t\t\t\t\t}else{
\t\t\t\t\t\t\t\t\t\t\t\t\t\$('.attachedfiles').append('<label style=\"width:100px;margin-right:5px;\"><img src=\"'+ json['image'] +'\" class=\"img-responsive\"><input type=\"hidden\" value=\"'+ json['code'] +'\" name=\"file[]\"></label>')
\t\t\t\t\t\t\t\t\t\t\t\t}
\t\t\t\t\t\t\t\t\t\t\t}
\t\t\t\t\t\t\t\t\t\t}
\t\t\t\t\t\t\t\t\t},
\t\t\t\t\t\t\t\t\terror: function(xhr, ajaxOptions, thrownError) {
\t\t\t\t\t\t\t\t\t\talert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
\t\t\t\t\t\t\t\t\t}
\t\t\t\t\t\t\t\t});
\t\t\t\t\t\t\t}
\t\t\t\t\t\t}, 500);
\t\t\t\t\t});
\t\t\t\t\t
\t\t\t\t\t";
            // line 249
            if ((isset($context["guestreview"]) ? $context["guestreview"] : null)) {
                // line 250
                echo "\t\t\t\t\t\$('.openmfp').on('click', function() {
\t\t\t\t\t\t\$('.openmfp').magnificPopup({
\t\t\t\t\t\t\titems: {
\t\t\t\t\t\t\t\tsrc: '#modal',
\t\t\t\t\t\t\t\ttype: 'inline',
\t\t\t\t\t\t\t\tpreloader: true,
\t\t\t\t\t\t\t\tfixedContentPos: false
\t\t\t\t\t\t\t},
\t\t\t\t\t\t\tcloseBtnInside: true
\t\t\t\t\t\t}).magnificPopup('open');
\t\t\t\t\t\t\$(document).on('click', '.popup-modal-dismiss', function (e) {
\t\t\t\t\t\t\te.preventDefault();
\t\t\t\t\t\t\t\$.magnificPopup.close();
\t\t\t\t\t\t\t\$('form')[0].reset();
\t\t\t\t\t\t});
\t\t\t\t\t});
\t\t\t\t\t";
            }
            // line 267
            echo "\t\t\t\t</script>
\t\t\t\t<script>
\t\t\t\t\$('.sortreview button').on('click', function(){
\t\t\t\tvar sortvalue = \$(this).attr('rel');
\t\t\t\tvar button = this;
\t\t\t\t\$.ajax({
\t\t\t\t\turl: 'index.php?route=extension/reviewpro/reviewpro&product_id=";
            // line 273
            echo (isset($context["product_id"]) ? $context["product_id"] : null);
            echo "&ratings=' + sortvalue,
\t\t\t\t\ttype: 'post',
\t\t\t\t\tdataType: 'html',
\t\t\t\t\tbeforeSend: function() {
\t\t\t\t\t\t\$(button).addClass('active');
\t\t\t\t\t},
\t\t\t\t\tcomplete: function() {
\t\t\t\t\t\t\$(button).addClass('active');
\t\t\t\t\t},
\t\t\t\t\tsuccess: function(html){
\t\t\t\t\t\t\$('#review').html(html);
\t\t\t\t\t\t\$('.sortreview button').removeClass('active');
\t\t\t\t\t\t//\$('.sortreview .clearfilter').show();
\t\t\t\t\t\t\$(button).addClass('active');
\t\t\t\t\t},
\t\t\t\t\terror: function(xhr, ajaxOptions, thrownError) {
\t\t\t\t\t\talert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
\t\t\t\t\t}
\t\t\t\t});
\t\t\t});

\t\t\t\$('.diferent_bar').on('click', function(){
\t\t\t\tvar rating_id = \$(this).attr('rel');
\t\t\t\t\$.ajax({
\t\t\t\t\turl: 'index.php?route=extension/reviewpro/reviewpro&product_id=";
            // line 297
            echo (isset($context["product_id"]) ? $context["product_id"] : null);
            echo "&rating_id=' + rating_id,
\t\t\t\t\ttype: 'post',
\t\t\t\t\tdataType: 'html',
\t\t\t\t\tbeforeSend: function() {
\t\t\t\t\t\t
\t\t\t\t\t},
\t\t\t\t\tcomplete: function() {
\t\t\t\t\t\t
\t\t\t\t\t},
\t\t\t\t\tsuccess: function(html){
\t\t\t\t\t\t\$('#review').html(html);
\t\t\t\t\t},
\t\t\t\t\terror: function(xhr, ajaxOptions, thrownError) {
\t\t\t\t\t\talert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
\t\t\t\t\t}
\t\t\t\t});
\t\t\t});

\t\t\t\$('.clearfilter').on('click', function(){
\t\t\t\$('.sortreview button').attr('disabled','disabled');
\t\t\t\t\$.ajax({
\t\t\t\t\turl: 'index.php?route=extension/reviewpro/reviewpro&product_id=";
            // line 318
            echo (isset($context["product_id"]) ? $context["product_id"] : null);
            echo "&rating_id=0',
\t\t\t\t\ttype: 'post',
\t\t\t\t\tdataType: 'html',
\t\t\t\t\tbeforeSend: function() {
\t\t\t\t\t\t
\t\t\t\t\t},
\t\t\t\t\tcomplete: function() {
\t\t\t\t\t\t
\t\t\t\t\t},
\t\t\t\t\tsuccess: function(html){
\t\t\t\t\t\t\$('.sortreview button').removeClass('active');
\t\t\t\t\t\t\$('.sortreview .clearfilter').hide();
\t\t\t\t\t\t\$('.sortreview button').prop('disabled', false);
\t\t\t\t\t\t\$('#review').html(html);
\t\t\t\t\t},
\t\t\t\t\terror: function(xhr, ajaxOptions, thrownError) {
\t\t\t\t\t\talert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
\t\t\t\t\t}
\t\t\t\t});
\t\t\t});
\t\t\t//--></script> 
\t\t\t\t";
            // line 339
            if ((isset($context["reviewsnippet"]) ? $context["reviewsnippet"] : null)) {
                // line 340
                echo "\t\t\t\t<script type=\"application/ld+json\">
\t\t\t\t\t{
\t\t\t\t\t  \"@context\": \"http://schema.org\",
\t\t\t\t\t  \"@type\": \"Product\",
\t\t\t\t\t  \"aggregateRating\": {
\t\t\t\t\t\t\"@type\": \"AggregateRating\",
\t\t\t\t\t\t\"ratingValue\": \"";
                // line 346
                echo (isset($context["averagerating"]) ? $context["averagerating"] : null);
                echo "\",
\t\t\t\t\t\t\"reviewCount\": \"";
                // line 347
                echo (isset($context["review_total"]) ? $context["review_total"] : null);
                echo "\"
\t\t\t\t\t  },
\t\t\t\t\t  \"description\": \"";
                // line 349
                echo (isset($context["meta_descriptions"]) ? $context["meta_descriptions"] : null);
                echo "\",
\t\t\t\t\t  \"name\": \"";
                // line 350
                echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
                echo "\",
\t\t\t\t\t  \"image\": \"";
                // line 351
                echo (isset($context["thumb"]) ? $context["thumb"] : null);
                echo "\",
\t\t\t\t\t  \"offers\": {
\t\t\t\t\t\t\"@type\": \"Offer\",
\t\t\t\t\t\t";
                // line 354
                if ((isset($context["reviewprice"]) ? $context["reviewprice"] : null)) {
                    // line 355
                    echo "\t\t\t\t\t\t";
                    if ( !(isset($context["reviewspecial"]) ? $context["reviewspecial"] : null)) {
                        // line 356
                        echo "\t\t\t\t\t\t\"price\": \"";
                        echo (isset($context["reviewprice"]) ? $context["reviewprice"] : null);
                        echo "\",
\t\t\t\t\t\t";
                    } else {
                        // line 358
                        echo "\t\t\t\t\t\t\"price\": \"";
                        echo (isset($context["reviewspecial"]) ? $context["reviewspecial"] : null);
                        echo "\",
\t\t\t\t\t\t";
                    }
                    // line 360
                    echo "\t\t\t\t\t\t";
                }
                // line 361
                echo "\t\t\t\t\t\t\"priceCurrency\": \"";
                echo (isset($context["getcurrencycode"]) ? $context["getcurrencycode"] : null);
                echo "\"
\t\t\t\t\t  },
\t\t\t\t\t  \"review\": [
\t\t\t\t\t\t";
                // line 364
                $context["i"] = 0;
                // line 365
                echo "\t\t\t\t\t\t";
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable((isset($context["allreviews"]) ? $context["allreviews"] : null));
                foreach ($context['_seq'] as $context["_key"] => $context["reviews"]) {
                    // line 366
                    echo "\t\t\t\t\t\t";
                    if (((isset($context["i"]) ? $context["i"] : null) > 0)) {
                        echo ",";
                    }
                    echo "{
\t\t\t\t\t\t \"@type\": \"Review\",
\t\t\t\t\t\t  \"author\": \"";
                    // line 368
                    echo $this->getAttribute($context["reviews"], "name", array());
                    echo "\",
\t\t\t\t\t\t  \"datePublished\": \"";
                    // line 369
                    echo $this->getAttribute($context["reviews"], "date_added", array());
                    echo "\",
\t\t\t\t\t\t  \"description\": \"";
                    // line 370
                    echo $this->getAttribute($context["reviews"], "comment", array());
                    echo "\",
\t\t\t\t\t\t  \"reviewRating\": {
\t\t\t\t\t\t\t\"@type\": \"Rating\",
\t\t\t\t\t\t\t\"bestRating\": \"5\",
\t\t\t\t\t\t\t\"ratingValue\": \"";
                    // line 374
                    echo $this->getAttribute($context["reviews"], "sumrating", array());
                    echo "\",
\t\t\t\t\t\t\t\"worstRating\": \"1\"
\t\t\t\t\t\t  }
\t\t\t\t\t\t}
\t\t\t\t\t\t";
                    // line 378
                    $context["i"] = ((isset($context["i"]) ? $context["i"] : null) + 1);
                    // line 379
                    echo "\t\t\t\t\t\t";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['reviews'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 380
                echo "\t\t\t\t\t  ]
\t\t\t\t\t}
\t\t\t\t</script>
\t\t\t\t";
            }
            // line 384
            echo "\t\t\t\t";
        } else {
            // line 385
            echo "\t\t\t
<form class=\"form-horizontal\" id=\"form-review\">
  <div id=\"review\"></div>
  <legend>";
            // line 388
            echo (isset($context["text_write"]) ? $context["text_write"] : null);
            echo "</legend>
  ";
            // line 389
            if ((isset($context["review_status"]) ? $context["review_status"] : null)) {
                // line 390
                echo "  ";
                if ((isset($context["review_guest"]) ? $context["review_guest"] : null)) {
                    // line 391
                    echo "    <div class=\"form-group required\">
      <label class=\"col-sm-2 control-label\" for=\"input-name\">";
                    // line 392
                    echo (isset($context["entry_name"]) ? $context["entry_name"] : null);
                    echo "</label>
      <div class=\"col-sm-10\">
        <input type=\"text\" name=\"name\" value=\"";
                    // line 394
                    echo (isset($context["customer_name"]) ? $context["customer_name"] : null);
                    echo "\" id=\"input-name\" class=\"form-control\" />
      </div>
    </div>
    <div class=\"form-group required\">
      <label class=\"col-sm-2 control-label\" for=\"input-review\">";
                    // line 398
                    echo (isset($context["entry_review"]) ? $context["entry_review"] : null);
                    echo "</label>
      <div class=\"col-sm-10\">
        <textarea name=\"text\" rows=\"5\" id=\"input-review\" class=\"form-control\"></textarea>
        <div class=\"help-block\">";
                    // line 401
                    echo (isset($context["text_note"]) ? $context["text_note"] : null);
                    echo "</div>
      </div>
    </div>
    <div class=\"form-group required\">
      <label class=\"col-sm-2 control-label\">";
                    // line 405
                    echo (isset($context["entry_rating"]) ? $context["entry_rating"] : null);
                    echo "</label>

      <div class=\"col-sm-10 rate\">
        <span>";
                    // line 408
                    echo (isset($context["entry_bad"]) ? $context["entry_bad"] : null);
                    echo "</span>
        <input type=\"radio\" name=\"rating\" value=\"1\" />

        <input type=\"radio\" name=\"rating\" value=\"2\" />

        <input type=\"radio\" name=\"rating\" value=\"3\" />

        <input type=\"radio\" name=\"rating\" value=\"4\" />

        <input type=\"radio\" name=\"rating\" value=\"5\" />
        <span>";
                    // line 418
                    echo (isset($context["entry_good"]) ? $context["entry_good"] : null);
                    echo "</span>
      </div>
    </div>
    ";
                    // line 421
                    echo (isset($context["captcha"]) ? $context["captcha"] : null);
                    echo "
    <div class=\"buttons clearfix\">
      <div class=\"pull-right\">
        <button type=\"button\" id=\"button-review\" data-loading-text=\"";
                    // line 424
                    echo (isset($context["text_loading"]) ? $context["text_loading"] : null);
                    echo "\" class=\"btn btn-primary\">";
                    echo (isset($context["button_continue"]) ? $context["button_continue"] : null);
                    echo "</button>
      </div>
    </div>
  ";
                } else {
                    // line 428
                    echo "    ";
                    echo (isset($context["text_login"]) ? $context["text_login"] : null);
                    echo "
  ";
                }
                // line 430
                echo "  ";
            }
            // line 431
            echo "</form>

\t\t\t\t";
        }
        // line 434
        echo "\t\t\t
";
    }

    public function getTemplateName()
    {
        return "opencartvip/template/opencartvip/module/product_blocks_reviews.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  873 => 434,  868 => 431,  865 => 430,  859 => 428,  850 => 424,  844 => 421,  838 => 418,  825 => 408,  819 => 405,  812 => 401,  806 => 398,  799 => 394,  794 => 392,  791 => 391,  788 => 390,  786 => 389,  782 => 388,  777 => 385,  774 => 384,  768 => 380,  762 => 379,  760 => 378,  753 => 374,  746 => 370,  742 => 369,  738 => 368,  730 => 366,  725 => 365,  723 => 364,  716 => 361,  713 => 360,  707 => 358,  701 => 356,  698 => 355,  696 => 354,  690 => 351,  686 => 350,  682 => 349,  677 => 347,  673 => 346,  665 => 340,  663 => 339,  639 => 318,  615 => 297,  588 => 273,  580 => 267,  561 => 250,  559 => 249,  494 => 186,  487 => 181,  485 => 180,  438 => 148,  431 => 145,  425 => 143,  423 => 142,  420 => 141,  411 => 137,  405 => 134,  402 => 133,  400 => 132,  397 => 131,  391 => 127,  388 => 126,  367 => 115,  359 => 114,  351 => 113,  343 => 112,  335 => 111,  329 => 108,  326 => 107,  321 => 106,  319 => 105,  311 => 103,  309 => 102,  306 => 101,  299 => 97,  291 => 95,  289 => 94,  286 => 93,  279 => 89,  271 => 87,  269 => 86,  266 => 85,  257 => 81,  249 => 79,  247 => 78,  244 => 77,  235 => 73,  227 => 71,  225 => 70,  218 => 66,  211 => 64,  206 => 61,  199 => 57,  192 => 53,  188 => 52,  184 => 51,  179 => 48,  177 => 47,  173 => 45,  157 => 42,  149 => 41,  146 => 40,  129 => 36,  125 => 34,  122 => 33,  119 => 32,  109 => 28,  99 => 27,  95 => 26,  90 => 25,  85 => 24,  82 => 23,  80 => 22,  67 => 19,  63 => 17,  60 => 16,  54 => 15,  50 => 13,  46 => 11,  43 => 10,  38 => 9,  36 => 8,  33 => 7,  30 => 6,  28 => 5,  24 => 3,  22 => 2,  19 => 1,);
    }
}
/* */
/* 				{% if reviewprostatus %}*/
/* 				*/
/* 				<div class="overallrating">*/
/* 					{% if review_total %}*/
/* 					{% if reviewpro_fields.reviewrating %}*/
/* 					<p class="avgstar">*/
/* 						{% if forstars %}*/
/* 							{% for i in 1..5 %}*/
/* 								{% if i <= forstars %}*/
/* 									<i class="fa fa-star"></i>*/
/* 								{% else %}*/
/* 									<i class="fa fa-star-o"></i>*/
/* 								{% endif %}*/
/* 							{% endfor %}*/
/* 						{% endif %}*/
/* 					</p>*/
/* 					{% endif %}*/
/* 					<p class="fromreview">{{ averagerating }} {{ textadmin.rating }} / {{ review_total }} {{ textadmin.review }}</p>*/
/* 					<div class="row">*/
/* 						<div class="col-sm-9">*/
/* 							{% if reviewpro_fields.differetbars %}*/
/* 								{% if rating_desc %}*/
/* 									{% for ratings in rating_desc %}*/
/* 										<div class="diferent_bar" rel="{{ ratings.rating_id }}">*/
/* 											<div class="barname text-right">{{ ratings.rating_name }}</div>*/
/* 											<div class="barrating"><div style="width:{{ avgrating[ratings.rating_id].per }}; {% if avgrating[ratings.rating_id].per %} background-color:#FFCC00; {% else %} background-color:#999; {% endif %}"></div></div>*/
/* 											<div class="barpercent">{{ avgrating[ratings.rating_id].per }}</div>*/
/* 											<div class="clearfix"></div>*/
/* 										</div>*/
/* 									{% endfor %}*/
/* 								{% endif %}*/
/* 							{% endif %}*/
/* 						</div>*/
/* 						<div class="col-sm-3 text-right">*/
/* 							<a class="btn btn-primary {% if guestreview %} openmfp {% endif %}" {% if not guestreview %} data-toggle="tooltip" data-placement="top" title="{{ textadmin['login_review'] }}" {% endif %}>{{ textadmin.reviewbtn }}</a>*/
/* 						</div>*/
/* 					</div>*/
/* 					{% else %}*/
/* 						<div class="text-center">*/
/* 							<p class="reviewpro_heading">{% if textadmin.title %} {{ textadmin.newreview }} {% endif %}</p>*/
/* 							<a class="btn btn-primary {% if guestreview %} openmfp {% endif %}" {% if guestreview %} data-toggle="tooltip" data-placement="top" title="{{ textadmin['login_review'] }}" {% endif %}>{{ textadmin.reviewbtn }}</a>*/
/* 						</div>*/
/* 					{% endif %}*/
/* 				</div>*/
/* 				*/
/* 				{% if reviewfilters %}*/
/* 				<div class="row">*/
/* 					<div class="col-sm-10 col-xs-6">*/
/* 						<div class="btn-group sortreview" style="margin-bottom:10px;">*/
/* 							<button type="button" class="btn btn-rating" rel="1"> {{ text_descending }} <span class="clearfilter filterclose">x</span></button>*/
/* 							<button type="button" class="btn btn-rating" rel="2">{{ text_asc }} <span class="clearfilter filterclose">x</span></button>*/
/* 							<button type="button" class="btn btn-rating" rel="3" id="verifypurchase">{{ text_verified }} <span class="clearfilter filterclose">x</span></button>*/
/* 						</div>*/
/* 					</div>*/
/* 					<div class="col-sm-2 col-xs-6">*/
/* 						<button type="button" class="btn btn-rating clearfilter pull-right"><i class="fa fa-refresh"></i> {{ text_clearfilter }}</button>*/
/* 					</div>*/
/* 				</div>*/
/* 				{% endif %}*/
/* 				*/
/* 				<div id="review"></div>*/
/* 				*/
/* 				<div id="modal" class="white-popup-block reviewpropopup {% if displayform %} mfp-hide {% endif %}">*/
/* 					<a class="popup-modal-dismiss" data-effect="mfp-zoom-in" href="#"></a>*/
/* 					<h5>{{ reviewform.title }}</h5>*/
/* 					*/
/* 					<form id="form-reviewpro" method="post" class="form-horizontal" enctype="multipart/form-data">*/
/* 						*/
/* 						{% if reviewpro_fields.namefield %}*/
/* 						<div class="form-group {% if reviewpro_fields.namefield == '2' %} required {% endif %}">*/
/* 						  <div class="col-sm-12" style="margin-top:20px;">*/
/* 							<input type="text" name="name" id="input_review_1" value="{{ customer_name }}" placeholder="{{ reviewform.name }}" class="form-control" />*/
/* 						  </div>*/
/* 						</div>*/
/* 						{% endif %}*/
/* 						*/
/* 						{% if reviewpro_fields.emailfield %}*/
/* 						<div class="form-group {% if reviewpro_fields.emailfield == '2' %} required {% endif %}">*/
/* 						  <div class="col-sm-12">*/
/* 							<input type="text" name="email" id="input_review_2" value="{{ customer_email }}" placeholder="{{ reviewform.email }}" class="form-control" />*/
/* 						  </div>*/
/* 						</div>*/
/* 						{% endif %}*/
/* 						*/
/* 						{% if reviewpro_fields.titlefield %}*/
/* 						<div class="form-group {% if reviewpro_fields.titlefield == '2' %} required {% endif %}">*/
/* 						  <div class="col-sm-12">*/
/* 							<input type="text" name="title" id="input_review_3" value="" placeholder="{{ reviewform.rtitle }}" class="form-control" />*/
/* 						  </div>*/
/* 						</div>*/
/* 						{% endif %}*/
/* 						*/
/* 						{% if reviewpro_fields.commentfield %}*/
/* 						<div class="form-group {% if reviewpro_fields.commentfield == '2' %} required {% endif %}">*/
/* 						  <div class="col-sm-12">*/
/* 							<textarea class="form-control" id="input_review_4" name="comment" placeholder="{{ reviewform.comment }}"></textarea>*/
/* 						  </div>*/
/* 						</div>*/
/* 						{% endif %}*/
/* 						*/
/* 						{% if reviewpro_fields.ratingreq %}*/
/* 						<div class="form-group {% if reviewpro_fields.ratingreq == '2' %} required {% endif %}">*/
/* 						  <div class="col-sm-12">*/
/* 							{% if ratinglists %}*/
/* 							{% for ratinglist in ratinglists %}*/
/* 							<div class="wi_row">*/
/* 								<label class="col-sm-3" for="input-rating">{{ ratinglist.rating_name }}</label>*/
/* 								<div class="col-sm-9">*/
/* 									<div class="rating">*/
/* 										<input type="radio" id="star5_{{ ratinglist.rating_id }}" name="rating[{{ ratinglist.rating_id }}]" value="5" /><div class="full" for="star5_{{ ratinglist.rating_id }}" title="Awesome - 5 stars"></div>*/
/* 										<input type="radio" id="star4_{{ ratinglist.rating_id }}" name="rating[{{ ratinglist.rating_id }}]" value="4" /><div class="full" for="star4_{{ ratinglist.rating_id }}" title="Pretty good - 4 stars"></div>*/
/* 										<input type="radio" id="star3_{{ ratinglist.rating_id }}" name="rating[{{ ratinglist.rating_id }}]" value="3" /><div class="full" for="star3_{{ ratinglist.rating_id }}" title="Meh - 3 stars"></div>*/
/* 										<input type="radio" id="star2_{{ ratinglist.rating_id }}" name="rating[{{ ratinglist.rating_id }}]" value="2" /><div class="full" for="star2_{{ ratinglist.rating_id }}" title="Kinda bad - 2 stars"></div>*/
/* 										<input type="radio" id="star1_{{ ratinglist.rating_id }}" name="rating[{{ ratinglist.rating_id }}]" value="1" /><div class="full" for="star1_{{ ratinglist.rating_id }}" title="Sucks big time - 1 star"></div>*/
/* 									</div>*/
/* 								</div>*/
/* 								<script>*/
/* 									$(".rating div").on('click', function() {*/
/* 										var rating = $(this).attr('for');*/
/* 										$( "#" + rating).prop( "checked", true );*/
/* 									});*/
/* 								</script>*/
/* 							</div>*/
/* 							{% endfor %}*/
/* 							{% endif %}*/
/* 							<input type="hidden" id="input_review_6" />*/
/* 						  </div>*/
/* 						</div>*/
/* 						{% endif %}*/
/* 						*/
/* 						{% if reviewpro_fields.attachimage %}*/
/* 						<div class="form-group">*/
/* 						  <label class="col-sm-3 control-label">{{ reviewform.attachmenttext }}</label>*/
/* 						  <div class="col-sm-9">*/
/* 						  <div class="attachedfiles"></div>*/
/* 							<button type="button" id="button-review-upload" data-loading-text="{{ text_loading }}" class="btn btn-default btn-block"><i class="fa fa-upload"></i> {{ button_upload }}</button>*/
/* 						  </div>*/
/* 						</div>*/
/* 						{% endif %}*/
/* 						*/
/* 						{% if reviewpro_fields.capcha %}*/
/* 						{{ captcha }}*/
/* 						{% endif %}*/
/* 						<input type="hidden" value="{{ product_id }}" name="product_id" />*/
/* 						<div class="buttons clearfix">*/
/* 						  <div class="pull-right">*/
/* 							<button type="button" {% if guestreview %} id="button-reviewpro" {% endif %} {% if not guestreview %} data-toggle="tooltip" data-placement="top" title="{{ textadmin['login_review'] }}" {% endif %} data-loading-text="{{ text_loading }}" class="btn btn-primary">{{ reviewform.submitreviewbtn }}</button>*/
/* 						  </div>*/
/* 						</div>*/
/* 						*/
/* 					</form>*/
/* 					*/
/* 				</div>*/
/* 				*/
/* 				<script type="text/javascript">*/
/* 				*/
/* 					$('#button-reviewpro').on('click', function(){*/
/* 						$.ajax({*/
/* 							url: 'index.php?route=extension/reviewpro/writereviewpro',*/
/* 							type: 'post',*/
/* 							data: $('#form-reviewpro input[type=\'radio\']:checked, #form-reviewpro input[type=\'text\'], #form-reviewpro textarea, #form-reviewpro input[type=\'hidden\'], #form-reviewpro select, #form-reviewpro input[type=\'file\']'),*/
/* 							dataType: 'json',*/
/* 							beforeSend: function() {*/
/* 								$('#button-reviewpro').button('loading');*/
/* 							},*/
/* 							complete: function() {*/
/* 								$('#button-reviewpro').button('reset');*/
/* 							},*/
/* 							success: function(json){*/
/* 								$('#form-reviewpro .text-danger').remove();*/
/* 								$('#form-reviewpro .form-group').removeClass('has-error');*/
/* 								if(json['error']){*/
/* 									for(i in json['error']){*/
/* 										var element = $('#input_review_' + i);*/
/* 										$(element).after('<div class="text-danger">' + json['error'][i] + '</div>');*/
/* 										$(element).parent().addClass('has-error');*/
/* 									}*/
/* 									*/
/* 									{% if reviewpro_fields.attachimage %}*/
/* 									if(json['error']['captcha']){*/
/* 										$('.g-recaptcha').after('<div class="text-danger">' + json['error']['captcha'] + '</div>');*/
/* 										$('.g-recaptcha').parent().parent().addClass('has-error');*/
/* 									}*/
/* 									{% endif %}*/
/* 								}*/
/* 								*/
/* 								if(json['success']){*/
/* 									$('form#form-reviewpro').html(json['success']);*/
/* 								}*/
/* 							},*/
/* 							error: function(xhr, ajaxOptions, thrownError) {*/
/* 								alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);*/
/* 							}*/
/* 						});*/
/* 					});*/
/* 					*/
/* 					$('button[id^=\'button-review-upload\']').on('click', function() {*/
/* 						var node = this;*/
/* 						$('#form-upload').remove();*/
/* 						$('body').prepend('<form enctype="multipart/form-data" id="form-upload" style="display: none;"><input type="file" name="file" /></form>');*/
/* 						$('#form-upload input[name=\'file\']').trigger('click');*/
/* 						if (typeof timer != 'undefined') {*/
/* 							clearInterval(timer);*/
/* 						}*/
/* 						timer = setInterval(function() {*/
/* 							if ($('#form-upload input[name=\'file\']').val() != '') {*/
/* 								clearInterval(timer);*/
/* 								$.ajax({*/
/* 									url: 'index.php?route=extension/reviewpro/reviewfileupload',*/
/* 									type: 'post',*/
/* 									dataType: 'json',*/
/* 									data: new FormData($('#form-upload')[0]),*/
/* 									cache: false,*/
/* 									contentType: false,*/
/* 									processData: false,*/
/* 									beforeSend: function() {*/
/* 										$(node).button('loading');*/
/* 									},*/
/* 									complete: function() {*/
/* 										$(node).button('reset');*/
/* 									},*/
/* 									success: function(json) {*/
/* 										$('.text-danger').remove();*/
/* */
/* 										if (json['error']) {*/
/* 											$(node).parent().find('input').after('<div class="text-danger">' + json['error'] + '</div>');*/
/* 										}*/
/* */
/* 										if (json['success']) {*/
/* 											alert(json['success']);*/
/* 											if(json['code'] && json['image']){*/
/* 												if(json['type'] == 'zip'){*/
/* 													$('.attachedfiles').append('<label style="margin-right:5px;vertical-align:top"><a href="'+ json['href'] +'">'+ json['image'] +'</a><input type="hidden" value="'+ json['code'] +'" name="file[]"></label>')*/
/* 												}else{*/
/* 													$('.attachedfiles').append('<label style="width:100px;margin-right:5px;"><img src="'+ json['image'] +'" class="img-responsive"><input type="hidden" value="'+ json['code'] +'" name="file[]"></label>')*/
/* 												}*/
/* 											}*/
/* 										}*/
/* 									},*/
/* 									error: function(xhr, ajaxOptions, thrownError) {*/
/* 										alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);*/
/* 									}*/
/* 								});*/
/* 							}*/
/* 						}, 500);*/
/* 					});*/
/* 					*/
/* 					{% if guestreview %}*/
/* 					$('.openmfp').on('click', function() {*/
/* 						$('.openmfp').magnificPopup({*/
/* 							items: {*/
/* 								src: '#modal',*/
/* 								type: 'inline',*/
/* 								preloader: true,*/
/* 								fixedContentPos: false*/
/* 							},*/
/* 							closeBtnInside: true*/
/* 						}).magnificPopup('open');*/
/* 						$(document).on('click', '.popup-modal-dismiss', function (e) {*/
/* 							e.preventDefault();*/
/* 							$.magnificPopup.close();*/
/* 							$('form')[0].reset();*/
/* 						});*/
/* 					});*/
/* 					{% endif %}*/
/* 				</script>*/
/* 				<script>*/
/* 				$('.sortreview button').on('click', function(){*/
/* 				var sortvalue = $(this).attr('rel');*/
/* 				var button = this;*/
/* 				$.ajax({*/
/* 					url: 'index.php?route=extension/reviewpro/reviewpro&product_id={{ product_id }}&ratings=' + sortvalue,*/
/* 					type: 'post',*/
/* 					dataType: 'html',*/
/* 					beforeSend: function() {*/
/* 						$(button).addClass('active');*/
/* 					},*/
/* 					complete: function() {*/
/* 						$(button).addClass('active');*/
/* 					},*/
/* 					success: function(html){*/
/* 						$('#review').html(html);*/
/* 						$('.sortreview button').removeClass('active');*/
/* 						//$('.sortreview .clearfilter').show();*/
/* 						$(button).addClass('active');*/
/* 					},*/
/* 					error: function(xhr, ajaxOptions, thrownError) {*/
/* 						alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);*/
/* 					}*/
/* 				});*/
/* 			});*/
/* */
/* 			$('.diferent_bar').on('click', function(){*/
/* 				var rating_id = $(this).attr('rel');*/
/* 				$.ajax({*/
/* 					url: 'index.php?route=extension/reviewpro/reviewpro&product_id={{ product_id }}&rating_id=' + rating_id,*/
/* 					type: 'post',*/
/* 					dataType: 'html',*/
/* 					beforeSend: function() {*/
/* 						*/
/* 					},*/
/* 					complete: function() {*/
/* 						*/
/* 					},*/
/* 					success: function(html){*/
/* 						$('#review').html(html);*/
/* 					},*/
/* 					error: function(xhr, ajaxOptions, thrownError) {*/
/* 						alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);*/
/* 					}*/
/* 				});*/
/* 			});*/
/* */
/* 			$('.clearfilter').on('click', function(){*/
/* 			$('.sortreview button').attr('disabled','disabled');*/
/* 				$.ajax({*/
/* 					url: 'index.php?route=extension/reviewpro/reviewpro&product_id={{ product_id }}&rating_id=0',*/
/* 					type: 'post',*/
/* 					dataType: 'html',*/
/* 					beforeSend: function() {*/
/* 						*/
/* 					},*/
/* 					complete: function() {*/
/* 						*/
/* 					},*/
/* 					success: function(html){*/
/* 						$('.sortreview button').removeClass('active');*/
/* 						$('.sortreview .clearfilter').hide();*/
/* 						$('.sortreview button').prop('disabled', false);*/
/* 						$('#review').html(html);*/
/* 					},*/
/* 					error: function(xhr, ajaxOptions, thrownError) {*/
/* 						alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);*/
/* 					}*/
/* 				});*/
/* 			});*/
/* 			//--></script> */
/* 				{% if reviewsnippet %}*/
/* 				<script type="application/ld+json">*/
/* 					{*/
/* 					  "@context": "http://schema.org",*/
/* 					  "@type": "Product",*/
/* 					  "aggregateRating": {*/
/* 						"@type": "AggregateRating",*/
/* 						"ratingValue": "{{ averagerating }}",*/
/* 						"reviewCount": "{{ review_total }}"*/
/* 					  },*/
/* 					  "description": "{{ meta_descriptions }}",*/
/* 					  "name": "{{ heading_title }}",*/
/* 					  "image": "{{ thumb }}",*/
/* 					  "offers": {*/
/* 						"@type": "Offer",*/
/* 						{% if reviewprice %}*/
/* 						{% if not reviewspecial %}*/
/* 						"price": "{{ reviewprice }}",*/
/* 						{% else %}*/
/* 						"price": "{{ reviewspecial }}",*/
/* 						{% endif %}*/
/* 						{% endif %}*/
/* 						"priceCurrency": "{{ getcurrencycode }}"*/
/* 					  },*/
/* 					  "review": [*/
/* 						{% set i = 0 %}*/
/* 						{% for reviews in allreviews %}*/
/* 						{% if i > 0 %},{% endif %}{*/
/* 						 "@type": "Review",*/
/* 						  "author": "{{ reviews.name }}",*/
/* 						  "datePublished": "{{ reviews.date_added }}",*/
/* 						  "description": "{{ reviews.comment }}",*/
/* 						  "reviewRating": {*/
/* 							"@type": "Rating",*/
/* 							"bestRating": "5",*/
/* 							"ratingValue": "{{ reviews.sumrating }}",*/
/* 							"worstRating": "1"*/
/* 						  }*/
/* 						}*/
/* 						{% set i = i+1 %}*/
/* 						{% endfor %}*/
/* 					  ]*/
/* 					}*/
/* 				</script>*/
/* 				{% endif %}*/
/* 				{% else %}*/
/* 			*/
/* <form class="form-horizontal" id="form-review">*/
/*   <div id="review"></div>*/
/*   <legend>{{ text_write }}</legend>*/
/*   {% if review_status %}*/
/*   {% if review_guest %}*/
/*     <div class="form-group required">*/
/*       <label class="col-sm-2 control-label" for="input-name">{{ entry_name }}</label>*/
/*       <div class="col-sm-10">*/
/*         <input type="text" name="name" value="{{ customer_name }}" id="input-name" class="form-control" />*/
/*       </div>*/
/*     </div>*/
/*     <div class="form-group required">*/
/*       <label class="col-sm-2 control-label" for="input-review">{{ entry_review }}</label>*/
/*       <div class="col-sm-10">*/
/*         <textarea name="text" rows="5" id="input-review" class="form-control"></textarea>*/
/*         <div class="help-block">{{ text_note }}</div>*/
/*       </div>*/
/*     </div>*/
/*     <div class="form-group required">*/
/*       <label class="col-sm-2 control-label">{{ entry_rating }}</label>*/
/* */
/*       <div class="col-sm-10 rate">*/
/*         <span>{{ entry_bad }}</span>*/
/*         <input type="radio" name="rating" value="1" />*/
/* */
/*         <input type="radio" name="rating" value="2" />*/
/* */
/*         <input type="radio" name="rating" value="3" />*/
/* */
/*         <input type="radio" name="rating" value="4" />*/
/* */
/*         <input type="radio" name="rating" value="5" />*/
/*         <span>{{ entry_good }}</span>*/
/*       </div>*/
/*     </div>*/
/*     {{ captcha }}*/
/*     <div class="buttons clearfix">*/
/*       <div class="pull-right">*/
/*         <button type="button" id="button-review" data-loading-text="{{ text_loading }}" class="btn btn-primary">{{ button_continue }}</button>*/
/*       </div>*/
/*     </div>*/
/*   {% else %}*/
/*     {{ text_login }}*/
/*   {% endif %}*/
/*   {% endif %}*/
/* </form>*/
/* */
/* 				{% endif %}*/
/* 			*/
/* */
