-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrandma.php
executable file
·96 lines (94 loc) · 6.23 KB
/
grandma.php
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
<?php
ini_set('display_errors', 'On');
error_reporting('E_ALL');
include 'kernel/SITE.php';
$site = new SITE();
$productDb = new Product();
$pageText = include 'kernel/param/textForPage.php';
$products = $productDb->GetResultCatalogGift(5);
$site->head('grandma');
?>
<div id="ul-content">
<div id="ul-id-7-3" class="ul-container g-theme-block-2" data-theme="g-theme-block-2" data-parallax="none" style="" data-bgtype="color" data-map-settings="" data-auto_height="true" data-is-100vh-enabled="false" data-behavior="none">
<div class="container js-block-container">
<div id="ul-id-7-4" class="row ul-row"><div id="ul-id-7-5" class="col ul-col col-xs-12 col-sm-12 col-md-12"><div id="ul-id-7-6" class="ul-widget ul-w-spacer" data-controls="mer" style="height:36px" data-widget="spacer"></div></div></div>
<div id="ul-id-7-7" class="row ul-row">
<div id="ul-id-7-8" class="col ul-col col-xs-12 col-sm-12 col-md-12">
<div id="ul-id-7-9" spellcheck="false" class="ul-widget ul-widget-wysivig-header" data-controls="mer" data-tag="h1" data-widget="header">
<div spellcheck="false">
<div class="ul-header-editor clearfix ul-header-wrap" style="outline:0;word-wrap:break-word;margin:0 5px"><h1 class="ul-w-header-span h1" style="text-align:center"><?=$pageText['grandma']['title']?></h1></div>
</div>
</div>
</div>
</div>
<div id="ul-id-7-10" class="row ul-row"><div id="ul-id-7-11" class="col ul-col col-xs-12 col-sm-12 col-md-12"><div id="ul-id-7-12" class="ul-widget ul-w-spacer" data-controls="mer" style="height:36px" data-widget="spacer"></div></div></div>
</div>
</div>
<div id="ul-id-5-0" class="ul-container g-theme-block-0 g-theme-block-2" data-theme="g-theme-block-0" data-parallax="none" style="" data-bgtype="color" data-map-settings="" data-auto_height="true" data-is-100vh-enabled="false" data-behavior="none">
<div class="container js-block-container">
<div id="ul-id-5-1" class="row ul-row">
<div id="ul-id-5-2" class="col ul-col col-xs-12 col-sm-12 col-md-12">
<div id="ul-id-5-3" class="ul-widget ul-widget-wysivig" data-image="true" data-controls="mer" data-widget="wysiwyg"><div class="ul-wysivig-editor clearfix" style="outline:0;word-wrap:break-word"><p><?=$pageText['grandma']['description']?></p></div></div>
</div>
</div>
</div>
</div>
<div id="ul-id-5-4" class="ul-container g-theme-block-0 g-theme-block-2" data-theme="g-theme-block-0" data-parallax="none" style="" data-bgtype="color" data-map-settings="" data-auto_height="true" data-is-100vh-enabled="false" data-behavior="none">
<div class="container-fluid js-block-container" id="productOrder">
<div id="ul-id-6-0" class="row ul-row"><div id="ul-id-6-1" class="col ul-col col-xs-12 col-sm-12 col-md-12"><div id="ul-id-6-2" class="ul-widget ul-w-spacer" data-controls="mer" style="height:50px" data-widget="spacer"></div></div></div>
<div id="ul-id-6-3" class="row ul-row"><div id="ul-id-6-4" class="col ul-col col-xs-12 col-sm-12 col-md-12"><div id="ul-id-6-5" class="ul-widget" type="border"><div class="ul-w-border" data-reactroot="" data-reactid="1" data-react-checksum="2056334462"><div class="hr ul-widget-border-style2" data-reactid="2"></div></div></div></div></div>
<div id="ul-id-6-6" class="row ul-row">
<div id="ul-id-6-7" class="col ul-col col-xs-12 col-sm-12 col-md-12"><?php
$color = 'style="color:';
$number = random_int(1, 9);
switch ($number) {
case 1:
$color .= 'hotpink;"';
break;
case 2:
$color .= 'mediumblue;"';
break;
case 3:
$color .= 'deeppink;"';
break;
case 4:
$color .= 'mediumvioletred;"';
break;
case 5:
$color .= 'darkred;"';
break;
case 6:
$color .= 'blueviolet;"';
break;
case 7:
$color .= 'magenta;"';
break;
case 8:
$color .= 'navy;"';
break;
case 9:
$color .= '#8bc63e;"';
break;
}
$site->breadcrumbList(
['Главная', 'href="/" style="color: #337ab7;" title="Интернет магазин Maximko"'],
['Подарок для тебя💝', 'href="/gift" ' . $color . ' title="Подарок для тебя"'],
['Любимым бабушкам и дедушкам', '']
);
?>
<div id="ul-id-6-8" class="ul-widget ul-w-spacer" data-controls="mer" style="height:50px" data-widget="spacer"></div>
</div>
</div>
<?php $site->findProductText(5); ?>
<div id="ul-id-8-36" style="display: none"></div><div id="notFind">
<div id="ul-id-9-0"><?php
$site->showProduct($products);
?></div>
</div>
<div id="ul-id-7-0" class="row ul-row"><div id="ul-id-7-1" class="col ul-col col-xs-12 col-sm-12 col-md-12"><div id="ul-id-7-2" class="ul-widget ul-w-spacer" data-controls="mer" style="height:50px" data-widget="spacer"></div></div></div>
</div>
</div>
</div>
<?php
$site->footer();
?>