833fd73628e7681f13f68fb93d0a739f.php
4.56 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
126
127
128
129
130
131
132
133
134
135
136
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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_589bddb68b64212c3aca6e8ecabb81b5 extends 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'] = CoreExtension::ensureTraversable(($context["reviews"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["review"]) {
// line 3
yield "<table class=\"table table-striped table-bordered\">
<tr>
<td style=\"width: 50%;\"><strong>";
// line 5
yield CoreExtension::getAttribute($this->env, $this->source, $context["review"], "author", [], "any", false, false, false, 5);
yield "</strong></td>
<td class=\"text-right\">";
// line 6
yield CoreExtension::getAttribute($this->env, $this->source, $context["review"], "date_added", [], "any", false, false, false, 6);
yield "</td>
</tr>
<tr>
<td colspan=\"2\"><p>";
// line 9
yield CoreExtension::getAttribute($this->env, $this->source, $context["review"], "text", [], "any", false, false, false, 9);
yield "</p>
";
// line 10
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(range(1, 5));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 11
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["review"], "rating", [], "any", false, false, false, 11) < $context["i"])) {
yield " <span class=\"fa fa-stack\"><i class=\"fa fa-star-o fa-stack-2x\"></i></span> ";
} else {
yield " <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
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
yield "</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
yield "<div class=\"row\">
<div class=\"col-sm-6 text-left\">";
// line 17
yield ($context["pagination"] ?? null);
yield "</div>
<div class=\"col-sm-6 text-right\">";
// line 18
yield ($context["results"] ?? null);
yield "</div>
</div>
";
} else {
// line 21
yield "<p>";
yield ($context["text_no_reviews"] ?? null);
yield "</p>
";
}
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "default/template/product/review.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 100 => 21, 94 => 18, 90 => 17, 87 => 16, 73 => 12, 66 => 11, 62 => 10, 58 => 9, 52 => 6, 48 => 5, 44 => 3, 40 => 2, 38 => 1,);
}
public function getSourceContext()
{
return new Source("", "default/template/product/review.twig", "");
}
}