938d5638fcbdebab091bf39d329df905.php
28.7 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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
<?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;
/* extension/dashboard/domovoy_info.twig */
class __TwigTemplate_b1758d9c4903630aabd74a1f3e3987a5 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 "<div id=\"domovoy\" class=\"panel panel-default\">
    <div class=\"panel-heading\">
        <h3 class=\"panel-title\"><i class=\"fa fa-calendar\"></i> ";
        // line 3
        yield ($context["heading_title"] ?? null);
        yield "</h3>
        <button type=\"button\" id=\"button-phpinfo\" title=\"";
        // line 4
        yield ($context["text_phpinfo"] ?? null);
        yield "\" class=\"btn btn-info\">phpinfo</button>
        ";
        // line 5
        if (($context["phpversion"] ?? null)) {
            // line 6
            yield "            <button type=\"button\" title=\"";
            yield ($context["text_copy"] ?? null);
            yield "\" onclick=\"copyToClipboard('#phpversion')\" class=\"btn\"><i
                    class=\"fa fa-php\"></i> <span id=\"phpversion\">PHP ";
            // line 7
            yield ($context["phpversion"] ?? null);
            yield "</span></button>";
        }
        // line 8
        yield "        ";
        if (($context["database_version"] ?? null)) {
            // line 9
            yield "            <button type=\"button\" title=\"";
            yield ($context["text_copy"] ?? null);
            yield "\"  onclick=\"copyToClipboard('#database_version')\" class=\"btn\"><i
                    class=\"fa fa-database\"></i> <span id=\"database_version\">";
            // line 10
            yield ($context["database_version"] ?? null);
            yield "</span>
            </button>";
        }
        // line 12
        yield "        ";
        if (($context["ioncube_version"] ?? null)) {
            // line 13
            yield "            <button type=\"button\" title=\"";
            yield ($context["text_copy"] ?? null);
            yield "\"   onclick=\"copyToClipboard('#ioncube_version')\" class=\"btn\"><i
                    class=\"fa fa-square\"></i> <span id=\"ioncube_version\">ionCube ";
            // line 14
            yield ($context["ioncube_version"] ?? null);
            yield "</span>
            </button>";
        }
        // line 16
        yield "        ";
        if (($context["disk_free_space"] ?? null)) {
            // line 17
            yield "            <button type=\"button\" title=\"";
            yield ($context["text_copy"] ?? null);
            yield "\"   onclick=\"copyToClipboard('#disk_free_space')\" class=\"btn";
            if (($context["disk_free_space_warning"] ?? null)) {
                yield " btn-danger";
            }
            yield "\"><i
                    class=\"fa fa-hdd-o\"></i> <span
                    id=\"disk_free_space\">";
            // line 19
            yield ($context["text_disk_free_space"] ?? null);
            yield " ";
            yield CoreExtension::getAttribute($this->env, $this->source, ($context["disk_free_space"] ?? null), "size", [], "any", false, false, false, 19);
            yield CoreExtension::getAttribute($this->env, $this->source, ($context["disk_free_space"] ?? null), "unit", [], "any", false, false, false, 19);
            yield "</span>
            </button>";
        }
        // line 21
        yield "        <div class=\"pull-right\">
            <a title=\"";
        // line 22
        yield ($context["text_setting"] ?? null);
        yield "\" href=\"";
        yield ($context["setting"] ?? null);
        yield "\" class=\"close\"><i class=\"fa fa-cog fa-2x \"></i></a>
        </div>
    </div>
    <div class=\"alert-body\"></div>
    <ul class=\"list-group\">
        <li class=\"list-group-item\">
            <table class=\"table table-bordered\">
                <tr>
                    <td>
                        <button type=\"button\" value=\"theme\" data-toggle=\"tooltip\" title=\"";
        // line 31
        yield ($context["button_refresh"] ?? null);
        yield "\"
                                class=\"btn btn-warning\"><i class=\"fa fa-refresh\"></i></button>
                        <div class=\"btn-group\" data-toggle=\"buttons\">
                            ";
        // line 34
        if (($context["developer_theme"] ?? null)) {
            // line 35
            yield "                                <label class=\"btn btn-success active\" ";
            if ( !($context["eval"] ?? null)) {
                yield "disabled=\"disabled\"";
            }
            yield ">
                                    <input type=\"radio\" name=\"developer_theme\" value=\"1\" autocomplete=\"off\"
                                           ";
            // line 37
            if ( !($context["eval"] ?? null)) {
                yield "disabled=\"disabled\"";
            }
            yield " checked/>
                                    ";
            // line 38
            yield ($context["button_on"] ?? null);
            yield "
                                </label>
                            ";
        } else {
            // line 41
            yield "                                <label class=\"btn btn-success\" ";
            if ( !($context["eval"] ?? null)) {
                yield "disabled=\"disabled\"";
            }
            yield ">
                                    <input type=\"radio\" name=\"developer_theme\" value=\"1\" autocomplete=\"off\"
                                           ";
            // line 43
            if ( !($context["eval"] ?? null)) {
                yield "disabled=\"disabled\"";
            }
            yield "/>
                                    ";
            // line 44
            yield ($context["button_on"] ?? null);
            yield "
                                </label>
                            ";
        }
        // line 47
        yield "                            ";
        if ( !($context["developer_theme"] ?? null)) {
            // line 48
            yield "                                <label class=\"btn btn-danger active\" ";
            if ( !($context["eval"] ?? null)) {
                yield "disabled=\"disabled\"";
            }
            yield ">
                                    <input type=\"radio\" name=\"developer_theme\" value=\"0\" autocomplete=\"off\"
                                           ";
            // line 50
            if ( !($context["eval"] ?? null)) {
                yield "disabled=\"disabled\"";
            }
            yield " checked/>
                                    ";
            // line 51
            yield ($context["button_off"] ?? null);
            yield "
                                </label>
                            ";
        } else {
            // line 54
            yield "                                <label class=\"btn btn-danger\" ";
            if ( !($context["eval"] ?? null)) {
                yield "disabled=\"disabled\"";
            }
            yield ">
                                    <input type=\"radio\" name=\"developer_theme\" value=\"0\" autocomplete=\"off\"
                                           ";
            // line 56
            if ( !($context["eval"] ?? null)) {
                yield "disabled=\"disabled\"";
            }
            yield "/>
                                    ";
            // line 57
            yield ($context["button_off"] ?? null);
            yield "
                                </label>
                            ";
        }
        // line 59
        yield "</div> ";
        yield ($context["entry_theme_cache"] ?? null);
        yield "
                    </td>
                    <td>
                        <button type=\"button\" value=\"sass\" data-toggle=\"tooltip\" title=\"";
        // line 62
        yield ($context["button_refresh"] ?? null);
        yield "\"
                                class=\"btn btn-warning\"><i class=\"fa fa-refresh\"></i></button>
                        <div class=\"btn-group\" data-toggle=\"buttons\">";
        // line 64
        if (($context["developer_sass"] ?? null)) {
            // line 65
            yield "                                <label class=\"btn btn-success active\">
                                    <input type=\"radio\" name=\"developer_sass\" value=\"1\" autocomplete=\"off\" checked>
                                    ";
            // line 67
            yield ($context["button_on"] ?? null);
            yield "</label>
                            ";
        } else {
            // line 69
            yield "                                <label class=\"btn btn-success\">
                                    <input type=\"radio\" name=\"developer_sass\" value=\"1\" autocomplete=\"off\">
                                    ";
            // line 71
            yield ($context["button_on"] ?? null);
            yield "</label>
                            ";
        }
        // line 73
        yield "                            ";
        if ( !($context["developer_sass"] ?? null)) {
            // line 74
            yield "                                <label class=\"btn btn-danger active\">
                                    <input type=\"radio\" name=\"developer_sass\" value=\"0\" autocomplete=\"off\" checked>
                                    ";
            // line 76
            yield ($context["button_off"] ?? null);
            yield "</label>
                            ";
        } else {
            // line 78
            yield "                                <label class=\"btn btn-danger\">
                                    <input type=\"radio\" name=\"developer_sass\" value=\"0\" autocomplete=\"off\">
                                    ";
            // line 80
            yield ($context["button_off"] ?? null);
            yield "</label>
                            ";
        }
        // line 81
        yield "</div> ";
        yield ($context["entry_sass"] ?? null);
        yield "</td>
                    <td class=\"text-right\">";
        // line 82
        yield ($context["entry_modification_cache"] ?? null);
        yield " <a id=\"odmod-refresh\" data-toggle=\"tooltip\"
                                                                             title=\"";
        // line 83
        yield ($context["button_refresh"] ?? null);
        yield "\"
                                                                             class=\"btn btn-warning\"><i
                                    class=\"fa fa-refresh\"></i></a></td>
                    <td class=\"text-right\">";
        // line 86
        yield ($context["entry_allcache"] ?? null);
        yield "
                        <button type=\"button\" value=\"allcache\" data-toggle=\"tooltip\" title=\"";
        // line 87
        yield ($context["button_refresh"] ?? null);
        yield "\"
                                class=\"btn btn-warning\"><i class=\"fa fa-refresh\"></i></button>
                    </td>
                </tr>
            </table>
        </li>
        ";
        // line 93
        if (($context["disk_free_space_warning"] ?? null)) {
            // line 94
            yield "            <li class=\"list-group-item\">";
            yield ($context["disk_free_space_warning"] ?? null);
            yield "</li>
        ";
        }
        // line 96
        yield "        ";
        if ( !($context["developer_theme"] ?? null)) {
            // line 97
            yield "            <li class=\"list-group-item\"><span class=\"btn-warning btn-xs\">";
            yield ($context["text_warning"] ?? null);
            yield "</span> ";
            yield ($context["text_twig_off_warning"] ?? null);
            yield "</li>
        ";
        }
        // line 99
        yield "        ";
        if (($context["folders"] ?? null)) {
            // line 100
            yield "            ";
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["folders"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["folder"]) {
                // line 101
                yield "                <li class=\"list-group-item\">
                    <button type=\"button\" value=\"";
                // line 102
                yield CoreExtension::getAttribute($this->env, $this->source, $context["folder"], "key", [], "any", false, false, false, 102);
                yield "\" data-toggle=\"tooltip\" title=\"";
                yield ($context["text_clear"] ?? null);
                yield "\"
                            class=\"btn btn-warning clearFolder\" data-original-title=\"";
                // line 103
                yield ($context["button_refresh"] ?? null);
                yield "\"><i
                                class=\"fa fa-refresh\"></i></button>
                    <button type=\"button\" value=\"";
                // line 105
                yield CoreExtension::getAttribute($this->env, $this->source, $context["folder"], "key", [], "any", false, false, false, 105);
                yield "\" data-toggle=\"tooltip\" title=\"";
                yield ($context["text_calculate"] ?? null);
                yield "\"
                            class=\"btn btn-success calcFolder\" data-original-title=\"";
                // line 106
                yield ($context["button_refresh"] ?? null);
                yield "\"><i
                                class=\"fa fa-cogs\"></i></button>
                    ";
                // line 108
                yield CoreExtension::getAttribute($this->env, $this->source, $context["folder"], "name", [], "any", false, false, false, 108);
                yield "<span
                            class=\"textFolder\">";
                // line 109
                yield CoreExtension::getAttribute($this->env, $this->source, $context["folder"], "size", [], "any", false, false, false, 109);
                yield " ";
                yield CoreExtension::getAttribute($this->env, $this->source, $context["folder"], "files", [], "any", false, false, false, 109);
                if ( !CoreExtension::getAttribute($this->env, $this->source, $context["folder"], "warning_size", [], "any", false, false, false, 109)) {
                    yield ($context["text_normal"] ?? null);
                } else {
                    yield " ";
                    yield CoreExtension::getAttribute($this->env, $this->source, $context["folder"], "warning_size", [], "any", false, false, false, 109);
                    yield " ";
                }
                yield "</span>
                </li>
            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['folder'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 112
            yield "        ";
        }
        // line 113
        yield "
        <li class=\"list-group-item\">
            ";
        // line 115
        if (($context["danger_funtions"] ?? null)) {
            // line 116
            yield "                <span class=\"btn-warning btn-xs\">";
            yield ($context["text_warning"] ?? null);
            yield "</span> ";
            yield ($context["text_danger_info"] ?? null);
            yield "
                <span>";
            // line 117
            yield ($context["danger_funtions"] ?? null);
            yield "</span>
            ";
        } else {
            // line 119
            yield "                <span class=\"btn-warning btn-xs\">";
            yield ($context["text_normal"] ?? null);
            yield "</span> ";
            yield ($context["text_danger_info_normal"] ?? null);
            yield "
            ";
        }
        // line 121
        yield "        </li>
        <li class=\"list-group-item\">
            ";
        // line 123
        if (($context["warning_funtions"] ?? null)) {
            // line 124
            yield "                <span class=\"btn-warning btn-xs\">";
            yield ($context["text_warning"] ?? null);
            yield "</span> ";
            yield ($context["text_warning_info"] ?? null);
            yield "
                <span>";
            // line 125
            yield ($context["warning_funtions"] ?? null);
            yield "</span>
            ";
        } else {
            // line 127
            yield "                <span class=\"btn-warning btn-xs\">";
            yield ($context["text_normal"] ?? null);
            yield "</span> ";
            yield ($context["text_warning_info_normal"] ?? null);
            yield "
            ";
        }
        // line 129
        yield "        </li>
        ";
        // line 130
        if (($context["activities"] ?? null)) {
            // line 131
            yield "            ";
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["activities"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["activity"]) {
                // line 132
                yield "                <li class=\"list-group-item\">";
                yield CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "comment", [], "any", false, false, false, 132);
                yield "<br/>
                    <small class=\"text-muted\"><i class=\"fa fa-clock-o\"></i> ";
                // line 133
                yield CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "date_added", [], "any", false, false, false, 133);
                yield "</small></li>
            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['activity'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 135
            yield "        ";
        }
        // line 136
        yield "
    </ul>
</div>
<style>
    #domovoy .btn-group label {
        background: #a9a9a9
    }
    #domovoy .btn-group label.btn-success.active {
        background-color: #4cb64c;
    }
    #domovoy .btn-group label.btn-danger.active {
        background-color: #d0321e;
    }
</style>
<script type=\"text/javascript\"><!--
    \$('#button-phpinfo').on('click', function () {
        \$.ajax({
            url: 'index.php?route=extension/dashboard/domovoy/phpinfo&user_token=";
        // line 155
        yield ($context["user_token"] ?? null);
        yield "',
            dataType: 'html',
            beforeSend: function () {
                \$('#modal-phpinfo').button('loading');
            },
            complete: function () {
                \$('#modal-phpinfo').button('reset');
            },
            success: function (html) {
                \$('#modal-phpinfo').remove();
                \$('body').prepend('<div id=\"modal-phpinfo\" class=\"modal\">' + html + '</div>');
                \$('#modal-phpinfo').modal('show');
            },
            error: function (xhr, ajaxOptions, thrownError) {
                alert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
            }
        });
    });
    function setTooltip(element) {
        \$(element).tooltip('enable');
        \$(element).tooltip('hide')
            .attr('data-original-title', '";
        // line 180
        yield ($context["text_copied"] ?? null);
        yield "')
            .tooltip('show');
    }
    function hideTooltip(element) {
        setTimeout(function () {
            \$(element).tooltip('disable');
        }, 1000);
    }
    function copyToClipboard(element) {
        var \$temp = \$(\"<input>\");
        \$(\"body\").append(\$temp);
        \$temp.val(\$(element).text()).select();
        document.execCommand(\"copy\");
        setTooltip(element);
        hideTooltip(element);
        \$temp.remove();
    }
    function calcFolder(element) {
        \$.ajax({
            url: 'index.php?route=extension/dashboard/domovoy/calc&dir=' + \$(element).attr('value') + '&user_token=";
        // line 203
        yield ($context["user_token"] ?? null);
        yield "',
            dataType: 'json',
            beforeSend: function () {
                \$(element).button('loading');
            },
            complete: function () {
                \$(element).button('reset');
                \$(element).tooltip('disable');
            },
            success: function (json) {
                \$('.alert-dismissible').remove();
                if (json['error']) {
                    \$(element).parent().find('.textFolder').html(json['error']['warning']);
                }
                if (json['success']) {
                    \$(element).parent().find('.textFolder').html(json['success']);
                }
            },
            error: function (xhr, ajaxOptions, thrownError) {
                alert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
            }
        });
    }
    \$('#domovoy button.clearFolder').on('click', function () {
        var element = this;
        \$.ajax({
            url: 'index.php?route=extension/dashboard/domovoy/clear&dir=' + \$(element).attr('value') + '&user_token=";
        // line 234
        yield ($context["user_token"] ?? null);
        yield "',
            dataType: 'json',
            beforeSend: function () {
                \$(element).button('loading');
            },
            complete: function () {
                \$(element).button('reset');
            },
            success: function (json) {
                \$('.alert-dismissible').remove();
                if (json['error']) {
                    \$(element).parent().prepend('<div class=\"alert alert-danger alert-dismissible\"><i class=\"fa fa-exclamation-circle\"></i> ' + json['error']['warning'] + ' <button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button></div>');
                }
                if (json['success']) {
                    \$(element).parent().prepend('<div class=\"alert alert-success alert-dismissible\"><i class=\"fa fa-check-circle\"></i> ' + json['success'] + ' <button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button></div>');
                    setTimeout(function () {
                        calcFolder(element);
                    }, 2000);
                }
            },
            error: function (xhr, ajaxOptions, thrownError) {
                alert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
            }
        });
    });
    \$('#domovoy button.calcFolder').on('click', function () {
        var element = this;
        calcFolder(element);
    });
    //--></script>
<script type=\"text/javascript\"><!--
    \$('#domovoy input[name=\\'developer_theme\\'], input[name=\\'developer_sass\\']').on('change', function () {
        \$.ajax({
            url: 'index.php?route=common/developer/edit&user_token=";
        // line 271
        yield ($context["user_token"] ?? null);
        yield "',
            type: 'post',
            data: \$('input[name=\\'developer_theme\\']:checked, input[name=\\'developer_sass\\']:checked'),
            dataType: 'json',
            beforeSend: function () {
                \$('input[name=\\'developer_theme\\'], input[name=\\'developer_sass\\']').prop('disabled', true);
            },
            complete: function () {
                \$('input[name=\\'developer_theme\\'], input[name=\\'developer_sass\\']').prop('disabled', false);
            },
            success: function (json) {
                \$('.alert-dismissible').remove();
                if (json['error']) {
                    \$('#domovoy .alert-body').prepend('<div class=\"alert alert-danger alert-dismissible\"><i class=\"fa fa-exclamation-circle\"></i> ' + json['error']['warning'] + ' <button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button></div>');
                }
                if (json['success']) {
                    \$('#domovoy .alert-body').prepend('<div class=\"alert alert-success alert-dismissible\"><i class=\"fa fa-check-circle\"></i> ' + json['success'] + ' <button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button></div>');
                }
            },
            error: function (xhr, ajaxOptions, thrownError) {
                alert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
            }
        });
    });
    \$('#domovoy table button').on('click', function () {
        var element = this;
        \$.ajax({
            url: 'index.php?route=common/developer/' + \$(element).attr('value') + '&user_token=";
        // line 302
        yield ($context["user_token"] ?? null);
        yield "',
            dataType: 'json',
            beforeSend: function () {
                \$(element).button('loading');
            },
            complete: function () {
                \$(element).button('reset');
            },
            success: function (json) {
                \$('.alert-dismissible').remove();
                if (json['error']) {
                    \$('#domovoy .alert-body').prepend('<div class=\"alert alert-danger alert-dismissible\"><i class=\"fa fa-exclamation-circle\"></i> ' + json['error']['warning'] + ' <button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button></div>');
                }
                if (json['success']) {
                    \$('#domovoy .alert-body').prepend('<div class=\"alert alert-success alert-dismissible\"><i class=\"fa fa-check-circle\"></i> ' + json['success'] + ' <button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button></div>');
                }
            },
            error: function (xhr, ajaxOptions, thrownError) {
                alert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
            }
        });
    });
    \$('#odmod-refresh').on('click', function () {
        var element = this;
        \$.ajax({
            url: 'index.php?route=marketplace/modification/refresh&user_token=";
        // line 331
        yield ($context["user_token"] ?? null);
        yield "',
            dataType: 'json',
            complete: function () {
                \$(element).button('reset');
                \$('.alert-dismissible').remove();
                \$('#domovoy .alert-body').prepend('<div class=\"alert alert-success alert-dismissible\"><i class=\"fa fa-check-circle\"></i> ";
        // line 336
        yield ($context["text_ocmod_cache_success"] ?? null);
        yield " <button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button></div>');
            }
        });
    });
    //--></script>";
        return; yield '';
    }
    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "extension/dashboard/domovoy_info.twig";
    }
    /**
     * @codeCoverageIgnore
     */
    public function isTraitable()
    {
        return false;
    }
    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  675 => 336,  667 => 331,  635 => 302,  601 => 271,  561 => 234,  527 => 203,  501 => 180,  473 => 155,  452 => 136,  449 => 135,  441 => 133,  436 => 132,  431 => 131,  429 => 130,  426 => 129,  418 => 127,  413 => 125,  406 => 124,  404 => 123,  400 => 121,  392 => 119,  387 => 117,  380 => 116,  378 => 115,  374 => 113,  371 => 112,  353 => 109,  349 => 108,  344 => 106,  338 => 105,  333 => 103,  327 => 102,  324 => 101,  319 => 100,  316 => 99,  308 => 97,  305 => 96,  299 => 94,  297 => 93,  288 => 87,  284 => 86,  278 => 83,  274 => 82,  269 => 81,  264 => 80,  260 => 78,  255 => 76,  251 => 74,  248 => 73,  243 => 71,  239 => 69,  234 => 67,  230 => 65,  228 => 64,  223 => 62,  216 => 59,  210 => 57,  204 => 56,  196 => 54,  190 => 51,  184 => 50,  176 => 48,  173 => 47,  167 => 44,  161 => 43,  153 => 41,  147 => 38,  141 => 37,  133 => 35,  131 => 34,  125 => 31,  111 => 22,  108 => 21,  100 => 19,  90 => 17,  87 => 16,  82 => 14,  77 => 13,  74 => 12,  69 => 10,  64 => 9,  61 => 8,  57 => 7,  52 => 6,  50 => 5,  46 => 4,  42 => 3,  38 => 1,);
    }
    public function getSourceContext()
    {
        return new Source("", "extension/dashboard/domovoy_info.twig", "");
    }
}