d06b4c7104e9017faa53cc18f671743bba114e3c36ab818c23a99ffe26245ad9.php
6.62 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?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/extension/module/featured_article.twig */
class __TwigTemplate_1923a93651f3aa27aff1bff79ba8ac384784147d162258cb0e25c9591be98266 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["articles"] ?? null)) {
// line 2
echo "<h3>";
echo ($context["heading_title"] ?? null);
echo "</h3>
<div class=\"row\">
";
// line 4
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["articles"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
// line 5
echo " <div class=\"product-layout col-lg-3 col-md-3 col-sm-6 col-xs-12\">
<div class=\"product-thumb transition\">
<div class=\"image\"><a href=\"";
// line 7
echo twig_get_attribute($this->env, $this->source, $context["article"], "href", [], "any", false, false, false, 7);
echo "\"><img src=\"";
echo twig_get_attribute($this->env, $this->source, $context["article"], "thumb", [], "any", false, false, false, 7);
echo "\" alt=\"";
echo twig_get_attribute($this->env, $this->source, $context["article"], "name", [], "any", false, false, false, 7);
echo "\" title=\"";
echo twig_get_attribute($this->env, $this->source, $context["article"], "name", [], "any", false, false, false, 7);
echo "\" class=\"img-responsive\" /></a></div>
<div class=\"caption\">
<h4><a href=\"";
// line 9
echo twig_get_attribute($this->env, $this->source, $context["article"], "href", [], "any", false, false, false, 9);
echo "\">";
echo twig_get_attribute($this->env, $this->source, $context["article"], "name", [], "any", false, false, false, 9);
echo "</a></h4>
<p>";
// line 10
echo twig_get_attribute($this->env, $this->source, $context["article"], "description", [], "any", false, false, false, 10);
echo "</p>
";
// line 11
if (twig_get_attribute($this->env, $this->source, $context["article"], "rating", [], "any", false, false, false, 11)) {
// line 12
echo " <div class=\"rating\">
";
// line 13
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(5);
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 14
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["article"], "rating", [], "any", false, false, false, 14) < $context["i"])) {
// line 15
echo " <span class=\"fa fa-stack\"><i class=\"fa fa-star-o fa-stack-2x\"></i></span>
";
} else {
// line 17
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 19
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 20
echo " </div>
";
}
// line 22
echo " </div>
\t <div class=\"button-group\">
<button type=\"button\" onclick=\"location.href = ('";
// line 24
echo twig_get_attribute($this->env, $this->source, $context["article"], "href", [], "any", false, false, false, 24);
echo "');\"><i class=\"fa fa-share\"></i> <span class=\"hidden-xs hidden-sm hidden-md\">";
echo ($context["button_more"] ?? null);
echo "</span></button>
<button type=\"button\" data-toggle=\"tooltip\" title=\"";
// line 25
echo twig_get_attribute($this->env, $this->source, $context["article"], "date_added", [], "any", false, false, false, 25);
echo "\" \"><i class=\"fa fa-clock-o\"></i></button>
<button type=\"button\" data-toggle=\"tooltip\" title=\"";
// line 26
echo ($context["text_views"] ?? null);
echo " ";
echo twig_get_attribute($this->env, $this->source, $context["article"], "viewed", [], "any", false, false, false, 26);
echo "\" \"><i class=\"fa fa-eye\"></i></button>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 31
echo "</div>
";
}
}
public function getTemplateName()
{
return "default/template/extension/module/featured_article.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 131 => 31, 118 => 26, 114 => 25, 108 => 24, 104 => 22, 100 => 20, 94 => 19, 90 => 17, 86 => 15, 83 => 14, 79 => 13, 76 => 12, 74 => 11, 70 => 10, 64 => 9, 53 => 7, 49 => 5, 45 => 4, 39 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "default/template/extension/module/featured_article.twig", "");
}
}