-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
84 lines (77 loc) · 2.17 KB
/
index.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
<?php
require_once 'myfunction.php';
require_once 'helpers.php';
require_once 'init.php';
$is_auth = rand(0, 1);
$user_name = 'Olga'; // укажите здесь ваше имя
$categories = [
'boards' =>'Доски и лыжи',
'attachment' => 'Крепления',
'boots' => 'Ботинки',
'clothing' => 'Одежда',
'tools' => 'Инструменты',
'other' => 'Разное'
];
$items = [
[
'name' => '2014 Rossignol District Snowboard',
'category' => $categories['boards'],
'price' => 10999,
'url_image' => 'img/lot-1.jpg',
'expiry_date' => '2022-05-22'
],
[
'name' => 'DC Ply Mens 2016/2017 Snowboard',
'category' => $categories['boards'],
'price' => 159999,
'url_image' => 'img/lot-2.jpg',
'expiry_date' => '2022-05-23'
],
[
'name' => 'Крепления Union Contact Pro 2015 года размер L/XL',
'category' => $categories['attachment'],
'price' => 8000,
'url_image' => 'img/lot-3.jpg',
'expiry_date' => '2022-05-24'
],
[
'name' => 'Ботинки для сноуборда DC Mutiny Charocal',
'category' => $categories['boots'],
'price' => 10999,
'url_image' => 'img/lot-4.jpg',
'expiry_date' => '2022-05-25'
],
[
'name' => 'Куртка для сноуборда DC Mutiny Charocal',
'category' => $categories['clothing'],
'price' => 7500,
'url_image' => 'img/lot-5.jpg',
'expiry_date' => '2022-05-26'
],
[
'name' => 'Маска Oakley Canopy',
'category' => $categories['other'],
'price' => 5400,
'url_image' => 'img/lot-6.jpg',
'expiry_date' => '2022-05-27'
]
];
$page_content = include_template(
'main.php',
[
'categories' => $categories,
'items' => $items
]
);
$layout_content = include_template(
'layout.php',
[
'title' => 'Главная',
'is_auth' => $is_auth,
'user_name' => $user_name,
'content' => $page_content,
'categories' => $categories
]
);
print ($layout_content);
?>