0ac3df458f2b72e3e8faad8f303e338f.php
7.69 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<?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;
/* common/dashboard.twig */
class __TwigTemplate_645f308cbd17f5ff13697d9f140791d6 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
yield ($context["header"] ?? null);
yield ($context["column_left"] ?? null);
yield "
<div id=\"content\">
<div class=\"page-header\">
<div class=\"container-fluid\">
<div class=\"pull-right\">
<button type=\"button\" id=\"button-developer\" title=\"";
// line 6
yield ($context["button_developer"] ?? null);
yield "\" data-loading-text=\"";
yield ($context["text_loading"] ?? null);
yield "\" class=\"btn btn-info\"><i class=\"fa fa-cog\"></i></button>
</div>
<h1>";
// line 8
yield ($context["heading_title"] ?? null);
yield "</h1>
<ul class=\"breadcrumb\">
";
// line 10
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(($context["breadcrumbs"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
// line 11
yield " <li><a href=\"";
yield CoreExtension::getAttribute($this->env, $this->source, $context["breadcrumb"], "href", [], "any", false, false, false, 11);
yield "\">";
yield CoreExtension::getAttribute($this->env, $this->source, $context["breadcrumb"], "text", [], "any", false, false, false, 11);
yield "</a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumb'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 13
yield " </ul>
</div>
</div>
<div class=\"container-fluid\">";
// line 16
if (($context["error_install"] ?? null)) {
// line 17
yield " <div class=\"alert alert-danger alert-dismissible\">
<button type=\"button\" class=\"close pull-right\" data-dismiss=\"alert\">×</button>
<i class=\"fa fa-exclamation-circle\"></i> ";
// line 19
yield ($context["error_install"] ?? null);
yield "</div>
";
}
// line 21
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(($context["rows"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
// line 22
yield " <div class=\"row\">";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($context["row"]);
foreach ($context['_seq'] as $context["_key"] => $context["dashboard_1"]) {
// line 23
yield " ";
$context["class"] = Twig\Extension\CoreExtension::sprintf("col-lg-%s %s", CoreExtension::getAttribute($this->env, $this->source, $context["dashboard_1"], "width", [], "any", false, false, false, 23), "col-md-3 col-sm-6");
// line 24
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($context["row"]);
foreach ($context['_seq'] as $context["_key"] => $context["dashboard_2"]) {
// line 25
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["dashboard_2"], "width", [], "any", false, false, false, 25) > 3)) {
// line 26
yield " ";
$context["class"] = Twig\Extension\CoreExtension::sprintf("col-lg-%s %s", CoreExtension::getAttribute($this->env, $this->source, $context["dashboard_1"], "width", [], "any", false, false, false, 26), "col-md-12 col-sm-12");
// line 27
yield " ";
}
// line 28
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['dashboard_2'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 29
yield " <div class=\"";
yield ($context["class"] ?? null);
yield "\">";
yield CoreExtension::getAttribute($this->env, $this->source, $context["dashboard_1"], "output", [], "any", false, false, false, 29);
yield "</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['dashboard_1'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 30
yield "</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 31
yield "</div>
";
// line 32
yield ($context["security"] ?? null);
yield "
<script type=\"text/javascript\"><!--
\$('#button-developer').on('click', function() {
\t\$.ajax({
\t\turl: 'index.php?route=common/developer&user_token=";
// line 36
yield ($context["user_token"] ?? null);
yield "',
\t\tdataType: 'html',
\t\tbeforeSend: function() {
\t\t\t\$('#button-developer').button('loading');
\t\t},
\t\tcomplete: function() {
\t\t\t\$('#button-developer').button('reset');
\t\t},
\t\tsuccess: function(html) {
\t\t\t\$('#modal-developer').remove();
\t\t\t
\t\t\t\$('body').prepend('<div id=\"modal-developer\" class=\"modal\">' + html + '</div>');
\t\t\t
\t\t\t\$('#modal-developer').modal('show');
\t\t},
\t\terror: function(xhr, ajaxOptions, thrownError) {
\t\t\talert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
\t\t}
\t});\t
});\t
//--></script>
</div>
";
// line 58
yield ($context["footer"] ?? null);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "common/dashboard.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 176 => 58, 151 => 36, 144 => 32, 141 => 31, 134 => 30, 123 => 29, 117 => 28, 114 => 27, 111 => 26, 108 => 25, 103 => 24, 100 => 23, 95 => 22, 90 => 21, 85 => 19, 81 => 17, 79 => 16, 74 => 13, 63 => 11, 59 => 10, 54 => 8, 47 => 6, 38 => 1,);
}
public function getSourceContext()
{
return new Source("", "common/dashboard.twig", "");
}
}