10d1feef94cc850ccfb4958522a4e5ce5946f6ce380ae747581c31a800833155.php
4.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* default/template/product/review.twig */
class __TwigTemplate_18920efd05b3a9626f33dc9a01db1aa6006fbec243a4499698f76b8f260ccd04 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
if (($context["reviews"] ?? null)) {
// line 2
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["reviews"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["review"]) {
// line 3
echo "<table class=\"table table-striped table-bordered\">
<tr>
<td style=\"width: 50%;\"><strong>";
// line 5
echo twig_get_attribute($this->env, $this->source, $context["review"], "author", [], "any", false, false, false, 5);
echo "</strong></td>
<td class=\"text-right\">";
// line 6
echo twig_get_attribute($this->env, $this->source, $context["review"], "date_added", [], "any", false, false, false, 6);
echo "</td>
</tr>
<tr>
<td colspan=\"2\"><p>";
// line 9
echo twig_get_attribute($this->env, $this->source, $context["review"], "text", [], "any", false, false, false, 9);
echo "</p>
";
// line 10
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, 5));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 11
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["review"], "rating", [], "any", false, false, false, 11) < $context["i"])) {
echo " <span class=\"fa fa-stack\"><i class=\"fa fa-star-o fa-stack-2x\"></i></span> ";
} else {
echo " <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> ";
}
// line 12
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
echo "</td>
</tr>
</table>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['review'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 16
echo "<div class=\"row\">
<div class=\"col-sm-6 text-left\">";
// line 17
echo ($context["pagination"] ?? null);
echo "</div>
<div class=\"col-sm-6 text-right\">";
// line 18
echo ($context["results"] ?? null);
echo "</div>
</div>
";
} else {
// line 21
echo "<p>";
echo ($context["text_no_reviews"] ?? null);
echo "</p>
";
}
}
public function getTemplateName()
{
return "default/template/product/review.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 99 => 21, 93 => 18, 89 => 17, 86 => 16, 72 => 12, 65 => 11, 61 => 10, 57 => 9, 51 => 6, 47 => 5, 43 => 3, 39 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "default/template/product/review.twig", "");
}
}