ce40e7891f09fa8d89c71d054b964c173d38bc98078aef1ac29737b85f0250d0.php
71.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
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
<?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/product.twig */
class __TwigTemplate_2df592099cc848e700d28fb987cb2c527992853cadf8f39f8031dabf1a63e4c0 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
echo ($context["header"] ?? null);
echo "
<div id=\"product-product\" class=\"container\">
<ul class=\"breadcrumb\">
";
// line 4
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["breadcrumbs"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
// line 5
echo " <li><a href=\"";
echo twig_get_attribute($this->env, $this->source, $context["breadcrumb"], "href", [], "any", false, false, false, 5);
echo "\">";
echo twig_get_attribute($this->env, $this->source, $context["breadcrumb"], "text", [], "any", false, false, false, 5);
echo "</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 7
echo " </ul>
<div class=\"row\">";
// line 8
echo ($context["column_left"] ?? null);
echo "
";
// line 9
if ((($context["column_left"] ?? null) && ($context["column_right"] ?? null))) {
// line 10
echo " ";
$context["class"] = "col-sm-6";
// line 11
echo " ";
} elseif ((($context["column_left"] ?? null) || ($context["column_right"] ?? null))) {
// line 12
echo " ";
$context["class"] = "col-sm-9";
// line 13
echo " ";
} else {
// line 14
echo " ";
$context["class"] = "col-sm-12";
// line 15
echo " ";
}
// line 16
echo " <div id=\"content\" class=\"";
echo ($context["class"] ?? null);
echo "\">";
echo ($context["content_top"] ?? null);
echo "
<div class=\"row\"> ";
// line 17
if ((($context["column_left"] ?? null) || ($context["column_right"] ?? null))) {
// line 18
echo " ";
$context["class"] = "col-sm-6";
// line 19
echo " ";
} else {
// line 20
echo " ";
$context["class"] = "col-sm-8";
// line 21
echo " ";
}
// line 22
echo " <div class=\"";
echo ($context["class"] ?? null);
echo "\"> ";
if ((($context["thumb"] ?? null) || ($context["images"] ?? null))) {
// line 23
echo " <ul class=\"thumbnails\">
";
// line 24
if (($context["thumb"] ?? null)) {
// line 25
echo " <li><a class=\"thumbnail\" href=\"";
echo ($context["popup"] ?? null);
echo "\" title=\"";
echo ($context["heading_title"] ?? null);
echo "\"><img src=\"";
echo ($context["thumb"] ?? null);
echo "\" title=\"";
echo ($context["heading_title"] ?? null);
echo "\" alt=\"";
echo ($context["heading_title"] ?? null);
echo "\" /></a></li>
";
}
// line 27
echo " ";
if (($context["images"] ?? null)) {
// line 28
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["images"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 29
echo " <li class=\"image-additional\"><a class=\"thumbnail\" href=\"";
echo twig_get_attribute($this->env, $this->source, $context["image"], "popup", [], "any", false, false, false, 29);
echo "\" title=\"";
echo ($context["heading_title"] ?? null);
echo "\"> <img src=\"";
echo twig_get_attribute($this->env, $this->source, $context["image"], "thumb", [], "any", false, false, false, 29);
echo "\" title=\"";
echo ($context["heading_title"] ?? null);
echo "\" alt=\"";
echo ($context["heading_title"] ?? null);
echo "\" /></a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 31
echo " ";
}
// line 32
echo " </ul>
";
}
// line 34
echo " <ul class=\"nav nav-tabs\">
<li class=\"active\"><a href=\"#tab-description\" data-toggle=\"tab\">";
// line 35
echo ($context["tab_description"] ?? null);
echo "</a></li>
";
// line 36
if (($context["attribute_groups"] ?? null)) {
// line 37
echo " <li><a href=\"#tab-specification\" data-toggle=\"tab\">";
echo ($context["tab_attribute"] ?? null);
echo "</a></li>
";
}
// line 39
echo " ";
if (($context["review_status"] ?? null)) {
// line 40
echo " <li><a href=\"#tab-review\" data-toggle=\"tab\">";
echo ($context["tab_review"] ?? null);
echo "</a></li>
";
}
// line 42
echo " </ul>
<div class=\"tab-content\">
<div class=\"tab-pane active\" id=\"tab-description\">";
// line 44
echo ($context["description"] ?? null);
echo "</div>
";
// line 45
if (($context["attribute_groups"] ?? null)) {
// line 46
echo " <div class=\"tab-pane\" id=\"tab-specification\">
<table class=\"table table-bordered\">
";
// line 48
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["attribute_groups"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["attribute_group"]) {
// line 49
echo " <thead>
<tr>
<td colspan=\"2\"><strong>";
// line 51
echo twig_get_attribute($this->env, $this->source, $context["attribute_group"], "name", [], "any", false, false, false, 51);
echo "</strong></td>
</tr>
</thead>
<tbody>
";
// line 55
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["attribute_group"], "attribute", [], "any", false, false, false, 55));
foreach ($context['_seq'] as $context["_key"] => $context["attribute"]) {
// line 56
echo " <tr>
<td>";
// line 57
echo twig_get_attribute($this->env, $this->source, $context["attribute"], "name", [], "any", false, false, false, 57);
echo "</td>
<td>";
// line 58
echo twig_get_attribute($this->env, $this->source, $context["attribute"], "text", [], "any", false, false, false, 58);
echo "</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attribute'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 61
echo " </tbody>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attribute_group'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 63
echo " </table>
</div>
";
}
// line 66
echo " ";
if (($context["review_status"] ?? null)) {
// line 67
echo " <div class=\"tab-pane\" id=\"tab-review\">
<form class=\"form-horizontal\" id=\"form-review\">
<div id=\"review\"></div>
<h2>";
// line 70
echo ($context["text_write"] ?? null);
echo "</h2>
";
// line 71
if (($context["review_guest"] ?? null)) {
// line 72
echo " <div class=\"form-group required\">
<div class=\"col-sm-12\">
<label class=\"control-label\" for=\"input-name\">";
// line 74
echo ($context["entry_name"] ?? null);
echo "</label>
<input type=\"text\" name=\"name\" value=\"";
// line 75
echo ($context["customer_name"] ?? null);
echo "\" id=\"input-name\" class=\"form-control\" />
</div>
</div>
<div class=\"form-group required\">
<div class=\"col-sm-12\">
<label class=\"control-label\" for=\"input-review\">";
// line 80
echo ($context["entry_review"] ?? null);
echo "</label>
<textarea name=\"text\" rows=\"5\" id=\"input-review\" class=\"form-control\"></textarea>
<div class=\"help-block\">";
// line 82
echo ($context["text_note"] ?? null);
echo "</div>
</div>
</div>
<div class=\"form-group required\">
<div class=\"col-sm-12\">
<label class=\"control-label\">";
// line 87
echo ($context["entry_rating"] ?? null);
echo "</label>
";
// line 88
echo ($context["entry_bad"] ?? null);
echo "
<input type=\"radio\" name=\"rating\" value=\"1\" />
<input type=\"radio\" name=\"rating\" value=\"2\" />
<input type=\"radio\" name=\"rating\" value=\"3\" />
<input type=\"radio\" name=\"rating\" value=\"4\" />
<input type=\"radio\" name=\"rating\" value=\"5\" />
";
// line 98
echo ($context["entry_good"] ?? null);
echo "</div>
</div>
";
// line 100
echo ($context["captcha"] ?? null);
echo "
<div class=\"buttons clearfix\">
<div class=\"pull-right\">
<button type=\"button\" id=\"button-review\" data-loading-text=\"";
// line 103
echo ($context["text_loading"] ?? null);
echo "\" class=\"btn btn-primary\">";
echo ($context["button_continue"] ?? null);
echo "</button>
</div>
</div>
";
} else {
// line 107
echo " ";
echo ($context["text_login"] ?? null);
echo "
";
}
// line 109
echo " </form>
</div>
";
}
// line 111
echo "</div>
</div>
";
// line 113
if ((($context["column_left"] ?? null) || ($context["column_right"] ?? null))) {
// line 114
echo " ";
$context["class"] = "col-sm-6";
// line 115
echo " ";
} else {
// line 116
echo " ";
$context["class"] = "col-sm-4";
// line 117
echo " ";
}
// line 118
echo " <div class=\"";
echo ($context["class"] ?? null);
echo "\">
<div class=\"btn-group\">
<button type=\"button\" data-toggle=\"tooltip\" class=\"btn btn-default\" title=\"";
// line 120
echo ($context["button_wishlist"] ?? null);
echo "\" onclick=\"wishlist.add('";
echo ($context["product_id"] ?? null);
echo "');\"><i class=\"fa fa-heart\"></i></button>
<button type=\"button\" data-toggle=\"tooltip\" class=\"btn btn-default\" title=\"";
// line 121
echo ($context["button_compare"] ?? null);
echo "\" onclick=\"compare.add('";
echo ($context["product_id"] ?? null);
echo "');\"><i class=\"fa fa-exchange\"></i></button>
</div>
<h1>";
// line 123
echo ($context["heading_title"] ?? null);
echo "</h1>
<ul class=\"list-unstyled\">
";
// line 125
if (($context["manufacturer"] ?? null)) {
// line 126
echo " <li>";
echo ($context["text_manufacturer"] ?? null);
echo " <a href=\"";
echo ($context["manufacturers"] ?? null);
echo "\">";
echo ($context["manufacturer"] ?? null);
echo "</a></li>
";
}
// line 128
echo " <li>";
echo ($context["text_model"] ?? null);
echo " ";
echo ($context["model"] ?? null);
echo "</li>
";
// line 129
if (($context["reward"] ?? null)) {
// line 130
echo " <li>";
echo ($context["text_reward"] ?? null);
echo " ";
echo ($context["reward"] ?? null);
echo "</li>
";
}
// line 132
echo " <li>";
echo ($context["text_stock"] ?? null);
echo " ";
echo ($context["stock"] ?? null);
echo "</li>
</ul>
";
// line 134
if (($context["price"] ?? null)) {
// line 135
echo " <ul class=\"list-unstyled\">
";
// line 136
if ( !($context["special"] ?? null)) {
// line 137
echo " <li>
<h2>";
// line 138
echo ($context["price"] ?? null);
echo "</h2>
</li>
";
} else {
// line 141
echo " <li><span style=\"text-decoration: line-through;\">";
echo ($context["price"] ?? null);
echo "</span></li>
<li>
<h2>";
// line 143
echo ($context["special"] ?? null);
echo "</h2>
</li>
";
}
// line 146
echo " ";
if (($context["tax"] ?? null)) {
// line 147
echo " <li>";
echo ($context["text_tax"] ?? null);
echo " ";
echo ($context["tax"] ?? null);
echo "</li>
";
}
// line 149
echo " ";
if (($context["points"] ?? null)) {
// line 150
echo " <li>";
echo ($context["text_points"] ?? null);
echo " ";
echo ($context["points"] ?? null);
echo "</li>
";
}
// line 152
echo " ";
if (($context["discounts"] ?? null)) {
// line 153
echo " <li>
<hr>
</li>
";
// line 156
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["discounts"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["discount"]) {
// line 157
echo " <li>";
echo twig_get_attribute($this->env, $this->source, $context["discount"], "quantity", [], "any", false, false, false, 157);
echo ($context["text_discount"] ?? null);
echo twig_get_attribute($this->env, $this->source, $context["discount"], "price", [], "any", false, false, false, 157);
echo "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['discount'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 159
echo " ";
}
// line 160
echo " </ul>
";
}
// line 162
echo " <div id=\"product\"> ";
if (($context["options"] ?? null)) {
// line 163
echo " <hr>
<h3>";
// line 164
echo ($context["text_option"] ?? null);
echo "</h3>
";
// line 165
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["options"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
// line 166
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["option"], "type", [], "any", false, false, false, 166) == "select")) {
// line 167
echo " <div class=\"form-group";
if (twig_get_attribute($this->env, $this->source, $context["option"], "required", [], "any", false, false, false, 167)) {
echo " required ";
}
echo "\">
<label class=\"control-label\" for=\"input-option";
// line 168
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 168);
echo "\">";
echo twig_get_attribute($this->env, $this->source, $context["option"], "name", [], "any", false, false, false, 168);
echo "</label>
<select name=\"option[";
// line 169
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 169);
echo "]\" id=\"input-option";
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 169);
echo "\" class=\"form-control\">
<option value=\"\">";
// line 170
echo ($context["text_select"] ?? null);
echo "</option>
";
// line 171
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["option"], "product_option_value", [], "any", false, false, false, 171));
foreach ($context['_seq'] as $context["_key"] => $context["option_value"]) {
// line 172
echo " <option value=\"";
echo twig_get_attribute($this->env, $this->source, $context["option_value"], "product_option_value_id", [], "any", false, false, false, 172);
echo "\">";
echo twig_get_attribute($this->env, $this->source, $context["option_value"], "name", [], "any", false, false, false, 172);
echo "
";
// line 173
if (twig_get_attribute($this->env, $this->source, $context["option_value"], "price", [], "any", false, false, false, 173)) {
// line 174
echo " (";
echo twig_get_attribute($this->env, $this->source, $context["option_value"], "price_prefix", [], "any", false, false, false, 174);
echo twig_get_attribute($this->env, $this->source, $context["option_value"], "price", [], "any", false, false, false, 174);
echo ")
";
}
// line 175
echo " </option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option_value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 177
echo " </select>
</div>
";
}
// line 180
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["option"], "type", [], "any", false, false, false, 180) == "radio")) {
// line 181
echo " <div class=\"form-group";
if (twig_get_attribute($this->env, $this->source, $context["option"], "required", [], "any", false, false, false, 181)) {
echo " required ";
}
echo "\">
<label class=\"control-label\">";
// line 182
echo twig_get_attribute($this->env, $this->source, $context["option"], "name", [], "any", false, false, false, 182);
echo "</label>
<div id=\"input-option";
// line 183
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 183);
echo "\"> ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["option"], "product_option_value", [], "any", false, false, false, 183));
foreach ($context['_seq'] as $context["_key"] => $context["option_value"]) {
// line 184
echo " <div class=\"radio\">
<label>
<input type=\"radio\" name=\"option[";
// line 186
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 186);
echo "]\" value=\"";
echo twig_get_attribute($this->env, $this->source, $context["option_value"], "product_option_value_id", [], "any", false, false, false, 186);
echo "\" />
";
// line 187
if (twig_get_attribute($this->env, $this->source, $context["option_value"], "image", [], "any", false, false, false, 187)) {
echo " <img src=\"";
echo twig_get_attribute($this->env, $this->source, $context["option_value"], "image", [], "any", false, false, false, 187);
echo "\" alt=\"";
echo twig_get_attribute($this->env, $this->source, $context["option_value"], "name", [], "any", false, false, false, 187);
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["option_value"], "price", [], "any", false, false, false, 187)) {
echo " ";
echo twig_get_attribute($this->env, $this->source, $context["option_value"], "price_prefix", [], "any", false, false, false, 187);
echo " ";
echo twig_get_attribute($this->env, $this->source, $context["option_value"], "price", [], "any", false, false, false, 187);
echo " ";
}
echo "\" class=\"img-thumbnail\" /> ";
}
echo "
";
// line 188
echo twig_get_attribute($this->env, $this->source, $context["option_value"], "name", [], "any", false, false, false, 188);
echo "
";
// line 189
if (twig_get_attribute($this->env, $this->source, $context["option_value"], "price", [], "any", false, false, false, 189)) {
// line 190
echo " (";
echo twig_get_attribute($this->env, $this->source, $context["option_value"], "price_prefix", [], "any", false, false, false, 190);
echo twig_get_attribute($this->env, $this->source, $context["option_value"], "price", [], "any", false, false, false, 190);
echo ")
";
}
// line 191
echo " </label>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option_value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 193
echo " </div>
</div>
";
}
// line 196
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["option"], "type", [], "any", false, false, false, 196) == "checkbox")) {
// line 197
echo " <div class=\"form-group";
if (twig_get_attribute($this->env, $this->source, $context["option"], "required", [], "any", false, false, false, 197)) {
echo " required ";
}
echo "\">
<label class=\"control-label\">";
// line 198
echo twig_get_attribute($this->env, $this->source, $context["option"], "name", [], "any", false, false, false, 198);
echo "</label>
<div id=\"input-option";
// line 199
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 199);
echo "\"> ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["option"], "product_option_value", [], "any", false, false, false, 199));
foreach ($context['_seq'] as $context["_key"] => $context["option_value"]) {
// line 200
echo " <div class=\"checkbox\">
<label>
<input type=\"checkbox\" name=\"option[";
// line 202
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 202);
echo "][]\" value=\"";
echo twig_get_attribute($this->env, $this->source, $context["option_value"], "product_option_value_id", [], "any", false, false, false, 202);
echo "\" />
";
// line 203
if (twig_get_attribute($this->env, $this->source, $context["option_value"], "image", [], "any", false, false, false, 203)) {
echo " <img src=\"";
echo twig_get_attribute($this->env, $this->source, $context["option_value"], "image", [], "any", false, false, false, 203);
echo "\" alt=\"";
echo twig_get_attribute($this->env, $this->source, $context["option_value"], "name", [], "any", false, false, false, 203);
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["option_value"], "price", [], "any", false, false, false, 203)) {
echo " ";
echo twig_get_attribute($this->env, $this->source, $context["option_value"], "price_prefix", [], "any", false, false, false, 203);
echo " ";
echo twig_get_attribute($this->env, $this->source, $context["option_value"], "price", [], "any", false, false, false, 203);
echo " ";
}
echo "\" class=\"img-thumbnail\" /> ";
}
// line 204
echo " ";
echo twig_get_attribute($this->env, $this->source, $context["option_value"], "name", [], "any", false, false, false, 204);
echo "
";
// line 205
if (twig_get_attribute($this->env, $this->source, $context["option_value"], "price", [], "any", false, false, false, 205)) {
// line 206
echo " (";
echo twig_get_attribute($this->env, $this->source, $context["option_value"], "price_prefix", [], "any", false, false, false, 206);
echo twig_get_attribute($this->env, $this->source, $context["option_value"], "price", [], "any", false, false, false, 206);
echo ")
";
}
// line 207
echo " </label>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option_value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 209
echo " </div>
</div>
";
}
// line 212
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["option"], "type", [], "any", false, false, false, 212) == "text")) {
// line 213
echo " <div class=\"form-group";
if (twig_get_attribute($this->env, $this->source, $context["option"], "required", [], "any", false, false, false, 213)) {
echo " required ";
}
echo "\">
<label class=\"control-label\" for=\"input-option";
// line 214
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 214);
echo "\">";
echo twig_get_attribute($this->env, $this->source, $context["option"], "name", [], "any", false, false, false, 214);
echo "</label>
<input type=\"text\" name=\"option[";
// line 215
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 215);
echo "]\" value=\"";
echo twig_get_attribute($this->env, $this->source, $context["option"], "value", [], "any", false, false, false, 215);
echo "\" placeholder=\"";
echo twig_get_attribute($this->env, $this->source, $context["option"], "name", [], "any", false, false, false, 215);
echo "\" id=\"input-option";
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 215);
echo "\" class=\"form-control\" />
</div>
";
}
// line 218
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["option"], "type", [], "any", false, false, false, 218) == "textarea")) {
// line 219
echo " <div class=\"form-group";
if (twig_get_attribute($this->env, $this->source, $context["option"], "required", [], "any", false, false, false, 219)) {
echo " required ";
}
echo "\">
<label class=\"control-label\" for=\"input-option";
// line 220
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 220);
echo "\">";
echo twig_get_attribute($this->env, $this->source, $context["option"], "name", [], "any", false, false, false, 220);
echo "</label>
<textarea name=\"option[";
// line 221
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 221);
echo "]\" rows=\"5\" placeholder=\"";
echo twig_get_attribute($this->env, $this->source, $context["option"], "name", [], "any", false, false, false, 221);
echo "\" id=\"input-option";
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 221);
echo "\" class=\"form-control\">";
echo twig_get_attribute($this->env, $this->source, $context["option"], "value", [], "any", false, false, false, 221);
echo "</textarea>
</div>
";
}
// line 224
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["option"], "type", [], "any", false, false, false, 224) == "file")) {
// line 225
echo " <div class=\"form-group";
if (twig_get_attribute($this->env, $this->source, $context["option"], "required", [], "any", false, false, false, 225)) {
echo " required ";
}
echo "\">
<label class=\"control-label\">";
// line 226
echo twig_get_attribute($this->env, $this->source, $context["option"], "name", [], "any", false, false, false, 226);
echo "</label>
<button type=\"button\" id=\"button-upload";
// line 227
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 227);
echo "\" data-loading-text=\"";
echo ($context["text_loading"] ?? null);
echo "\" class=\"btn btn-default btn-block\"><i class=\"fa fa-upload\"></i> ";
echo ($context["button_upload"] ?? null);
echo "</button>
<input type=\"hidden\" name=\"option[";
// line 228
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 228);
echo "]\" value=\"\" id=\"input-option";
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 228);
echo "\" />
</div>
";
}
// line 231
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["option"], "type", [], "any", false, false, false, 231) == "date")) {
// line 232
echo " <div class=\"form-group";
if (twig_get_attribute($this->env, $this->source, $context["option"], "required", [], "any", false, false, false, 232)) {
echo " required ";
}
echo "\">
<label class=\"control-label\" for=\"input-option";
// line 233
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 233);
echo "\">";
echo twig_get_attribute($this->env, $this->source, $context["option"], "name", [], "any", false, false, false, 233);
echo "</label>
<div class=\"input-group date\">
<input type=\"text\" name=\"option[";
// line 235
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 235);
echo "]\" value=\"";
echo twig_get_attribute($this->env, $this->source, $context["option"], "value", [], "any", false, false, false, 235);
echo "\" data-date-format=\"YYYY-MM-DD\" id=\"input-option";
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 235);
echo "\" class=\"form-control\" />
<span class=\"input-group-btn\">
<button class=\"btn btn-default\" type=\"button\"><i class=\"fa fa-calendar\"></i></button>
</span></div>
</div>
";
}
// line 241
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["option"], "type", [], "any", false, false, false, 241) == "datetime")) {
// line 242
echo " <div class=\"form-group";
if (twig_get_attribute($this->env, $this->source, $context["option"], "required", [], "any", false, false, false, 242)) {
echo " required ";
}
echo "\">
<label class=\"control-label\" for=\"input-option";
// line 243
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 243);
echo "\">";
echo twig_get_attribute($this->env, $this->source, $context["option"], "name", [], "any", false, false, false, 243);
echo "</label>
<div class=\"input-group datetime\">
<input type=\"text\" name=\"option[";
// line 245
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 245);
echo "]\" value=\"";
echo twig_get_attribute($this->env, $this->source, $context["option"], "value", [], "any", false, false, false, 245);
echo "\" data-date-format=\"YYYY-MM-DD HH:mm\" id=\"input-option";
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 245);
echo "\" class=\"form-control\" />
<span class=\"input-group-btn\">
<button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button>
</span></div>
</div>
";
}
// line 251
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["option"], "type", [], "any", false, false, false, 251) == "time")) {
// line 252
echo " <div class=\"form-group";
if (twig_get_attribute($this->env, $this->source, $context["option"], "required", [], "any", false, false, false, 252)) {
echo " required ";
}
echo "\">
<label class=\"control-label\" for=\"input-option";
// line 253
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 253);
echo "\">";
echo twig_get_attribute($this->env, $this->source, $context["option"], "name", [], "any", false, false, false, 253);
echo "</label>
<div class=\"input-group time\">
<input type=\"text\" name=\"option[";
// line 255
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 255);
echo "]\" value=\"";
echo twig_get_attribute($this->env, $this->source, $context["option"], "value", [], "any", false, false, false, 255);
echo "\" data-date-format=\"HH:mm\" id=\"input-option";
echo twig_get_attribute($this->env, $this->source, $context["option"], "product_option_id", [], "any", false, false, false, 255);
echo "\" class=\"form-control\" />
<span class=\"input-group-btn\">
<button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button>
</span></div>
</div>
";
}
// line 261
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 262
echo " ";
}
// line 263
echo " ";
if (($context["recurrings"] ?? null)) {
// line 264
echo " <hr>
<h3>";
// line 265
echo ($context["text_payment_recurring"] ?? null);
echo "</h3>
<div class=\"form-group required\">
<select name=\"recurring_id\" class=\"form-control\">
<option value=\"\">";
// line 268
echo ($context["text_select"] ?? null);
echo "</option>
";
// line 269
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["recurrings"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["recurring"]) {
// line 270
echo " <option value=\"";
echo twig_get_attribute($this->env, $this->source, $context["recurring"], "recurring_id", [], "any", false, false, false, 270);
echo "\">";
echo twig_get_attribute($this->env, $this->source, $context["recurring"], "name", [], "any", false, false, false, 270);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['recurring'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 272
echo " </select>
<div class=\"help-block\" id=\"recurring-description\"></div>
</div>
";
}
// line 276
echo " <div class=\"form-group\">
<label class=\"control-label\" for=\"input-quantity\">";
// line 277
echo ($context["entry_qty"] ?? null);
echo "</label>
<input type=\"text\" name=\"quantity\" value=\"";
// line 278
echo ($context["minimum"] ?? null);
echo "\" size=\"2\" id=\"input-quantity\" class=\"form-control\" />
<input type=\"hidden\" name=\"product_id\" value=\"";
// line 279
echo ($context["product_id"] ?? null);
echo "\" />
<br />
<button type=\"button\" id=\"button-cart\" data-loading-text=\"";
// line 281
echo ($context["text_loading"] ?? null);
echo "\" class=\"btn btn-primary btn-lg btn-block\">";
echo ($context["button_cart"] ?? null);
echo "</button>
</div>
";
// line 283
if ((($context["minimum"] ?? null) > 1)) {
// line 284
echo " <div class=\"alert alert-info\"><i class=\"fa fa-info-circle\"></i> ";
echo ($context["text_minimum"] ?? null);
echo "</div>
";
}
// line 285
echo "</div>
";
// line 286
if (($context["review_status"] ?? null)) {
// line 287
echo " <div class=\"rating\">
<p>";
// line 288
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, 5));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 289
echo " ";
if ((($context["rating"] ?? null) < $context["i"])) {
echo "<span class=\"fa fa-stack\"><i class=\"fa fa-star-o fa-stack-1x\"></i></span>";
} else {
echo "<span class=\"fa fa-stack\"><i class=\"fa fa-star fa-stack-1x\"></i><i class=\"fa fa-star-o fa-stack-1x\"></i></span>";
}
// line 290
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 " <a href=\"\" onclick=\"\$('a[href=\\'#tab-review\\']').trigger('click'); return false;\">";
echo ($context["reviews"] ?? null);
echo "</a> / <a href=\"\" onclick=\"\$('a[href=\\'#tab-review\\']').trigger('click'); return false;\">";
echo ($context["text_write"] ?? null);
echo "</a></p>
<hr>
<!-- AddThis Button BEGIN -->
<div class=\"addthis_toolbox addthis_default_style\" data-url=\"";
// line 293
echo ($context["share"] ?? null);
echo "\"><a class=\"addthis_button_facebook_like\" fb:like:layout=\"button_count\"></a> <a class=\"addthis_button_tweet\"></a> <a class=\"addthis_button_pinterest_pinit\"></a> <a class=\"addthis_counter addthis_pill_style\"></a></div>
<script type=\"text/javascript\" src=\"//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-515eeaf54693130e\"></script>
<!-- AddThis Button END -->
</div>
";
}
// line 297
echo " </div>
</div>
";
// line 299
if (($context["products"] ?? null)) {
// line 300
echo " <h3>";
echo ($context["text_related"] ?? null);
echo "</h3>
<div class=\"row\"> ";
// line 301
$context["i"] = 0;
// line 302
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["products"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 303
echo " ";
if ((($context["column_left"] ?? null) && ($context["column_right"] ?? null))) {
// line 304
echo " ";
$context["class"] = "col-xs-8 col-sm-6";
// line 305
echo " ";
} elseif ((($context["column_left"] ?? null) || ($context["column_right"] ?? null))) {
// line 306
echo " ";
$context["class"] = "col-xs-6 col-md-4";
// line 307
echo " ";
} else {
// line 308
echo " ";
$context["class"] = "col-xs-6 col-sm-3";
// line 309
echo " ";
}
// line 310
echo " <div class=\"";
echo ($context["class"] ?? null);
echo "\">
<div class=\"product-thumb transition\">
<div class=\"image\"><a href=\"";
// line 312
echo twig_get_attribute($this->env, $this->source, $context["product"], "href", [], "any", false, false, false, 312);
echo "\"><img src=\"";
echo twig_get_attribute($this->env, $this->source, $context["product"], "thumb", [], "any", false, false, false, 312);
echo "\" alt=\"";
echo twig_get_attribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 312);
echo "\" title=\"";
echo twig_get_attribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 312);
echo "\" class=\"img-responsive\" /></a></div>
<div class=\"caption\">
<h4><a href=\"";
// line 314
echo twig_get_attribute($this->env, $this->source, $context["product"], "href", [], "any", false, false, false, 314);
echo "\">";
echo twig_get_attribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 314);
echo "</a></h4>
<p>";
// line 315
echo twig_get_attribute($this->env, $this->source, $context["product"], "description", [], "any", false, false, false, 315);
echo "</p>
";
// line 316
if (twig_get_attribute($this->env, $this->source, $context["product"], "rating", [], "any", false, false, false, 316)) {
// line 317
echo " <div class=\"rating\"> ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, 5));
foreach ($context['_seq'] as $context["_key"] => $context["j"]) {
// line 318
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["product"], "rating", [], "any", false, false, false, 318) < $context["j"])) {
echo " <span class=\"fa fa-stack\"><i class=\"fa fa-star-o fa-stack-1x\"></i></span> ";
} else {
echo " <span class=\"fa fa-stack\"><i class=\"fa fa-star fa-stack-1x\"></i><i class=\"fa fa-star-o fa-stack-1x\"></i></span> ";
}
// line 319
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['j'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
echo " </div>
";
}
// line 321
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["product"], "price", [], "any", false, false, false, 321)) {
// line 322
echo " <p class=\"price\"> ";
if ( !twig_get_attribute($this->env, $this->source, $context["product"], "special", [], "any", false, false, false, 322)) {
// line 323
echo " ";
echo twig_get_attribute($this->env, $this->source, $context["product"], "price", [], "any", false, false, false, 323);
echo "
";
} else {
// line 324
echo " <span class=\"price-new\">";
echo twig_get_attribute($this->env, $this->source, $context["product"], "special", [], "any", false, false, false, 324);
echo "</span> <span class=\"price-old\">";
echo twig_get_attribute($this->env, $this->source, $context["product"], "price", [], "any", false, false, false, 324);
echo "</span> ";
}
// line 325
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["product"], "tax", [], "any", false, false, false, 325)) {
echo " <span class=\"price-tax\">";
echo ($context["text_tax"] ?? null);
echo " ";
echo twig_get_attribute($this->env, $this->source, $context["product"], "tax", [], "any", false, false, false, 325);
echo "</span> ";
}
echo " </p>
";
}
// line 326
echo " </div>
<div class=\"button-group\">
<button type=\"button\" onclick=\"cart.add('";
// line 328
echo twig_get_attribute($this->env, $this->source, $context["product"], "product_id", [], "any", false, false, false, 328);
echo "', '";
echo twig_get_attribute($this->env, $this->source, $context["product"], "minimum", [], "any", false, false, false, 328);
echo "');\"><span class=\"hidden-xs hidden-sm hidden-md\">";
echo ($context["button_cart"] ?? null);
echo "</span> <i class=\"fa fa-shopping-cart\"></i></button>
<button type=\"button\" data-toggle=\"tooltip\" title=\"";
// line 329
echo ($context["button_wishlist"] ?? null);
echo "\" onclick=\"wishlist.add('";
echo twig_get_attribute($this->env, $this->source, $context["product"], "product_id", [], "any", false, false, false, 329);
echo "');\"><i class=\"fa fa-heart\"></i></button>
<button type=\"button\" data-toggle=\"tooltip\" title=\"";
// line 330
echo ($context["button_compare"] ?? null);
echo "\" onclick=\"compare.add('";
echo twig_get_attribute($this->env, $this->source, $context["product"], "product_id", [], "any", false, false, false, 330);
echo "');\"><i class=\"fa fa-exchange\"></i></button>
</div>
</div>
</div>
";
// line 334
if (((($context["column_left"] ?? null) && ($context["column_right"] ?? null)) && (((($context["i"] ?? null) + 1) % 2) == 0))) {
// line 335
echo " <div class=\"clearfix visible-md visible-sm\"></div>
";
} elseif (( // line 336
($context["column_left"] ?? null) || (($context["column_right"] ?? null) && (((($context["i"] ?? null) + 1) % 3) == 0)))) {
// line 337
echo " <div class=\"clearfix visible-md\"></div>
";
} elseif (((( // line 338
($context["i"] ?? null) + 1) % 4) == 0)) {
// line 339
echo " <div class=\"clearfix visible-md\"></div>
";
}
// line 341
echo " ";
$context["i"] = (($context["i"] ?? null) + 1);
// line 342
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
echo " </div>
";
}
// line 344
echo " ";
if (($context["tags"] ?? null)) {
// line 345
echo " <p>";
echo ($context["text_tags"] ?? null);
echo "
";
// line 346
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(0, (twig_length_filter($this->env, ($context["tags"] ?? null)) - 1)));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 347
echo " ";
if (($context["i"] < (twig_length_filter($this->env, ($context["tags"] ?? null)) - 1))) {
echo " <a href=\"";
echo twig_get_attribute($this->env, $this->source, (($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = ($context["tags"] ?? null)) && is_array($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4) || $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 instanceof ArrayAccess ? ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4[$context["i"]] ?? null) : null), "href", [], "any", false, false, false, 347);
echo "\">";
echo twig_get_attribute($this->env, $this->source, (($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 = ($context["tags"] ?? null)) && is_array($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144) || $__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 instanceof ArrayAccess ? ($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144[$context["i"]] ?? null) : null), "tag", [], "any", false, false, false, 347);
echo "</a>,
";
} else {
// line 348
echo " <a href=\"";
echo twig_get_attribute($this->env, $this->source, (($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b = ($context["tags"] ?? null)) && is_array($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b) || $__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b instanceof ArrayAccess ? ($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b[$context["i"]] ?? null) : null), "href", [], "any", false, false, false, 348);
echo "\">";
echo twig_get_attribute($this->env, $this->source, (($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 = ($context["tags"] ?? null)) && is_array($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002) || $__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 instanceof ArrayAccess ? ($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002[$context["i"]] ?? null) : null), "tag", [], "any", false, false, false, 348);
echo "</a> ";
}
// line 349
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 " </p>
";
}
// line 351
echo " ";
echo ($context["content_bottom"] ?? null);
echo "</div>
";
// line 352
echo ($context["column_right"] ?? null);
echo "</div>
</div>
<script type=\"text/javascript\"><!--
\$('select[name=\\'recurring_id\\'], input[name=\"quantity\"]').change(function(){
\t\$.ajax({
\t\turl: 'index.php?route=product/product/getRecurringDescription',
\t\ttype: 'post',
\t\tdata: \$('input[name=\\'product_id\\'], input[name=\\'quantity\\'], select[name=\\'recurring_id\\']'),
\t\tdataType: 'json',
\t\tbeforeSend: function() {
\t\t\t\$('#recurring-description').html('');
\t\t},
\t\tsuccess: function(json) {
\t\t\t\$('.alert-dismissible, .text-danger').remove();
\t\t\tif (json['success']) {
\t\t\t\t\$('#recurring-description').html(json['success']);
\t\t\t}
\t\t}
\t});
});
//--></script>
<script type=\"text/javascript\"><!--
\$('#button-cart').on('click', function() {
\t\$.ajax({
\t\turl: 'index.php?route=checkout/cart/add',
\t\ttype: 'post',
\t\tdata: \$('#product input[type=\\'text\\'], #product input[type=\\'hidden\\'], #product input[type=\\'radio\\']:checked, #product input[type=\\'checkbox\\']:checked, #product select, #product textarea'),
\t\tdataType: 'json',
\t\tbeforeSend: function() {
\t\t\t\$('#button-cart').button('loading');
\t\t},
\t\tcomplete: function() {
\t\t\t\$('#button-cart').button('reset');
\t\t},
\t\tsuccess: function(json) {
\t\t\t\$('.alert-dismissible, .text-danger').remove();
\t\t\t\$('.form-group').removeClass('has-error');
\t\t\tif (json['error']) {
\t\t\t\tif (json['error']['option']) {
\t\t\t\t\tfor (i in json['error']['option']) {
\t\t\t\t\t\tvar element = \$('#input-option' + i.replace('_', '-'));
\t\t\t\t\t\tif (element.parent().hasClass('input-group')) {
\t\t\t\t\t\t\telement.parent().after('<div class=\"text-danger\">' + json['error']['option'][i] + '</div>');
\t\t\t\t\t\t} else {
\t\t\t\t\t\t\telement.after('<div class=\"text-danger\">' + json['error']['option'][i] + '</div>');
\t\t\t\t\t\t}
\t\t\t\t\t}
\t\t\t\t}
\t\t\t\tif (json['error']['recurring']) {
\t\t\t\t\t\$('select[name=\\'recurring_id\\']').after('<div class=\"text-danger\">' + json['error']['recurring'] + '</div>');
\t\t\t\t}
\t\t\t\t// Highlight any found errors
\t\t\t\t\$('.text-danger').parent().addClass('has-error');
\t\t\t}
\t\t\tif (json['success']) {
\t\t\t\t\$('.breadcrumb').after('<div class=\"alert alert-success alert-dismissible\">' + json['success'] + '<button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button></div>');
\t\t\t\t\$('#cart > button').html('<span id=\"cart-total\"><i class=\"fa fa-shopping-cart\"></i> ' + json['total'] + '</span>');
\t\t\t\t\$('html, body').animate({ scrollTop: 0 }, 'slow');
\t\t\t\t\$('#cart > ul').load('index.php?route=common/cart/info ul li');
\t\t\t}
\t\t},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
}
\t});
});
//--></script>
<script type=\"text/javascript\"><!--
\$('.date').datetimepicker({
\tlanguage: '";
// line 430
echo ($context["datepicker"] ?? null);
echo "',
\tpickTime: false
});
\$('.datetime').datetimepicker({
\tlanguage: '";
// line 435
echo ($context["datepicker"] ?? null);
echo "',
\tpickDate: true,
\tpickTime: true
});
\$('.time').datetimepicker({
\tlanguage: '";
// line 441
echo ($context["datepicker"] ?? null);
echo "',
\tpickDate: false
});
\$('button[id^=\\'button-upload\\']').on('click', function() {
\tvar node = this;
\t\$('#form-upload').remove();
\t\$('body').prepend('<form enctype=\"multipart/form-data\" id=\"form-upload\" style=\"display: none;\"><input type=\"file\" name=\"file\" /></form>');
\t\$('#form-upload input[name=\\'file\\']').trigger('click');
\tif (typeof timer != 'undefined') {
\tclearInterval(timer);
\t}
\ttimer = setInterval(function() {
\t\tif (\$('#form-upload input[name=\\'file\\']').val() != '') {
\t\t\tclearInterval(timer);
\t\t\t\$.ajax({
\t\t\t\turl: 'index.php?route=tool/upload',
\t\t\t\ttype: 'post',
\t\t\t\tdataType: 'json',
\t\t\t\tdata: new FormData(\$('#form-upload')[0]),
\t\t\t\tcache: false,
\t\t\t\tcontentType: false,
\t\t\t\tprocessData: false,
\t\t\t\tbeforeSend: function() {
\t\t\t\t\t\$(node).button('loading');
\t\t\t\t},
\t\t\t\tcomplete: function() {
\t\t\t\t\t\$(node).button('reset');
\t\t\t\t},
\t\t\t\tsuccess: function(json) {
\t\t\t\t\t\$('.text-danger').remove();
\t\t\t\t\tif (json['error']) {
\t\t\t\t\t\t\$(node).parent().find('input').after('<div class=\"text-danger\">' + json['error'] + '</div>');
\t\t\t\t\t}
\t\t\t\t\tif (json['success']) {
\t\t\t\t\t\talert(json['success']);
\t\t\t\t\t\t\$(node).parent().find('input').val(json['code']);
\t\t\t\t\t}
\t\t\t\t},
\t\t\t\terror: function(xhr, ajaxOptions, thrownError) {
\t\t\t\t\talert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
\t\t\t\t}
\t\t\t});
\t\t}
\t}, 500);
});
//--></script>
<script type=\"text/javascript\"><!--
\$('#review').delegate('.pagination a', 'click', function(e) {
e.preventDefault();
\$('#review').fadeOut('slow');
\$('#review').load(this.href);
\$('#review').fadeIn('slow');
});
\$('#review').load('index.php?route=product/product/review&product_id=";
// line 508
echo ($context["product_id"] ?? null);
echo "');
\$('#button-review').on('click', function() {
\t\$.ajax({
\t\turl: 'index.php?route=product/product/write&product_id=";
// line 512
echo ($context["product_id"] ?? null);
echo "',
\t\ttype: 'post',
\t\tdataType: 'json',
\t\tdata: \$(\"#form-review\").serialize(),
\t\tbeforeSend: function() {
\t\t\t\$('#button-review').button('loading');
\t\t},
\t\tcomplete: function() {
\t\t\t\$('#button-review').button('reset');
\t\t},
\t\tsuccess: function(json) {
\t\t\t\$('.alert-dismissible').remove();
\t\t\tif (json['error']) {
\t\t\t\t\$('#review').after('<div class=\"alert alert-danger alert-dismissible\"><i class=\"fa fa-exclamation-circle\"></i> ' + json['error'] + '</div>');
\t\t\t}
\t\t\tif (json['success']) {
\t\t\t\t\$('#review').after('<div class=\"alert alert-success alert-dismissible\"><i class=\"fa fa-check-circle\"></i> ' + json['success'] + '</div>');
\t\t\t\t\$('input[name=\\'name\\']').val('');
\t\t\t\t\$('textarea[name=\\'text\\']').val('');
\t\t\t\t\$('input[name=\\'rating\\']:checked').prop('checked', false);
\t\t\t}
\t\t}
\t});
});
\$(document).ready(function() {
\t\$('.thumbnails').magnificPopup({
\t\ttype:'image',
\t\tdelegate: 'a',
\t\tgallery: {
\t\t\tenabled: true
\t\t}
\t});
});
//--></script>
";
// line 550
echo ($context["footer"] ?? null);
echo "
";
}
public function getTemplateName()
{
return "default/template/product/product.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1444 => 550, 1403 => 512, 1396 => 508, 1326 => 441, 1317 => 435, 1309 => 430, 1228 => 352, 1223 => 351, 1214 => 349, 1207 => 348, 1197 => 347, 1193 => 346, 1188 => 345, 1185 => 344, 1176 => 342, 1173 => 341, 1169 => 339, 1167 => 338, 1164 => 337, 1162 => 336, 1159 => 335, 1157 => 334, 1148 => 330, 1142 => 329, 1134 => 328, 1130 => 326, 1118 => 325, 1111 => 324, 1105 => 323, 1102 => 322, 1099 => 321, 1090 => 319, 1083 => 318, 1078 => 317, 1076 => 316, 1072 => 315, 1066 => 314, 1055 => 312, 1049 => 310, 1046 => 309, 1043 => 308, 1040 => 307, 1037 => 306, 1034 => 305, 1031 => 304, 1028 => 303, 1023 => 302, 1021 => 301, 1016 => 300, 1014 => 299, 1010 => 297, 1002 => 293, 988 => 290, 981 => 289, 977 => 288, 974 => 287, 972 => 286, 969 => 285, 963 => 284, 961 => 283, 954 => 281, 949 => 279, 945 => 278, 941 => 277, 938 => 276, 932 => 272, 921 => 270, 917 => 269, 913 => 268, 907 => 265, 904 => 264, 901 => 263, 898 => 262, 892 => 261, 879 => 255, 872 => 253, 865 => 252, 862 => 251, 849 => 245, 842 => 243, 835 => 242, 832 => 241, 819 => 235, 812 => 233, 805 => 232, 802 => 231, 794 => 228, 786 => 227, 782 => 226, 775 => 225, 772 => 224, 760 => 221, 754 => 220, 747 => 219, 744 => 218, 732 => 215, 726 => 214, 719 => 213, 716 => 212, 711 => 209, 703 => 207, 696 => 206, 694 => 205, 689 => 204, 673 => 203, 667 => 202, 663 => 200, 657 => 199, 653 => 198, 646 => 197, 643 => 196, 638 => 193, 630 => 191, 623 => 190, 621 => 189, 617 => 188, 599 => 187, 593 => 186, 589 => 184, 583 => 183, 579 => 182, 572 => 181, 569 => 180, 564 => 177, 557 => 175, 550 => 174, 548 => 173, 541 => 172, 537 => 171, 533 => 170, 527 => 169, 521 => 168, 514 => 167, 511 => 166, 507 => 165, 503 => 164, 500 => 163, 497 => 162, 493 => 160, 490 => 159, 479 => 157, 475 => 156, 470 => 153, 467 => 152, 459 => 150, 456 => 149, 448 => 147, 445 => 146, 439 => 143, 433 => 141, 427 => 138, 424 => 137, 422 => 136, 419 => 135, 417 => 134, 409 => 132, 401 => 130, 399 => 129, 392 => 128, 382 => 126, 380 => 125, 375 => 123, 368 => 121, 362 => 120, 356 => 118, 353 => 117, 350 => 116, 347 => 115, 344 => 114, 342 => 113, 338 => 111, 333 => 109, 327 => 107, 318 => 103, 312 => 100, 307 => 98, 294 => 88, 290 => 87, 282 => 82, 277 => 80, 269 => 75, 265 => 74, 261 => 72, 259 => 71, 255 => 70, 250 => 67, 247 => 66, 242 => 63, 235 => 61, 226 => 58, 222 => 57, 219 => 56, 215 => 55, 208 => 51, 204 => 49, 200 => 48, 196 => 46, 194 => 45, 190 => 44, 186 => 42, 180 => 40, 177 => 39, 171 => 37, 169 => 36, 165 => 35, 162 => 34, 158 => 32, 155 => 31, 138 => 29, 133 => 28, 130 => 27, 116 => 25, 114 => 24, 111 => 23, 106 => 22, 103 => 21, 100 => 20, 97 => 19, 94 => 18, 92 => 17, 85 => 16, 82 => 15, 79 => 14, 76 => 13, 73 => 12, 70 => 11, 67 => 10, 65 => 9, 61 => 8, 58 => 7, 47 => 5, 43 => 4, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "default/template/product/product.twig", "");
}
}