-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·139 lines (134 loc) · 6.15 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
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
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetPageProperty("up_inc_file", "none");
$APPLICATION->SetPageProperty("tags", "àâàíãàðä,ìåáåëü,ìÿãêàÿ,äèâàí,êðåñëî,óãëîâîé,êóïèòü,ïðîèçâîäèòåëü,ôàáðèêà,ýêîìåáåëü,åâðîêíèæêà");
$APPLICATION->SetPageProperty("title","Ôàáðèêà ìÿãêîé ìåáåëè Àâàíãàðä. Êóïèòü óãëîâîé äèâàí êðîâàòü. Ìÿãêàÿ ìåáåëü, äèâàíû îò ïðîèçâîäèòåëÿ â Ìîñêâå. Ïðîäàæà óãëîâûõ äèâàíîâ.");
$APPLICATION->SetPageProperty("keywords", "àâàíãàðä ìåáåëü ìÿãêàÿ äèâàí êðåñëî óãëîâîé êóïèòü ïðîèçâîäèòåëü ôàáðèêà ýêîìåáåëü åâðîêíèæêà");
$APPLICATION->SetPageProperty("description", "Ìåáåëüíàÿ ôàáðèêà Àâàíãàðä - ìÿãêàÿ ìåáåëü îò ïðîèçâîäèòåëÿ. Ìîäóëüíûå äèâàíû, óãëîâûå äèâàíû. Ýêîìåáåëü.");
$APPLICATION->SetTitle("Ìåáåëüíàÿ ôàáðèêà Àâàíãàðä - ïðîèçâîäñòâî ìÿãêîé ìåáåëè, äèâàíîâ, êðåñåë. Ìîäóëüíûå äèâàíû, óãëîâûå äèâàíû. Ýêîìåáåëü.");
$APPLICATION->IncludeComponent(
"bitrix:catalog.section",
"mainpage_slider",
Array(
"AJAX_MODE" => "N",
"IBLOCK_ID" => "28",
"SHOW_ALL_WO_SECTION" => "Y",
"PAGE_ELEMENT_COUNT" => "300",
"LINE_ELEMENT_COUNT" => "1",
"PROPERTY_CODE" => array(),
"PRODUCT_PROPERTIES" => array("image", "link"),
"CACHE_TYPE" => "A",
"CACHE_TIME" => "36000000",
"DISPLAY_TOP_PAGER" => "N",
"DISPLAY_BOTTOM_PAGER" => "N",
"PAGER_SHOW_ALWAYS" => "N",
"PAGER_SHOW_ALL" => "N",
)
);
$APPLICATION->IncludeComponent(
"avang:mainpage.tabs",
"",
Array(
"IBLOCK_ID" => "5",
"CACHE_TIME" => "36000000",
)
);
?> <?$APPLICATION->IncludeComponent(
"bitrix:catalog.section",
"mainpage_banners",
Array(
"IBLOCK_ID" => "14",
"PAGE_ELEMENT_COUNT" => "3",
"PROPERTY_CODE" => array("href","pictorflash"),
"AJAX_MODE" => "N",
"CACHE_TYPE" => "A",
"CACHE_TIME" => "3600",
"CACHE_FILTER" => "N",
"SET_TITLE" => "N",
"DISPLAY_TOP_PAGER" => "N",
"DISPLAY_BOTTOM_PAGER" => "N",
"SHOW_ALL_WO_SECTION" => "Y"
)
);?>
<table cellspacing="0" cellpadding="0">
<tbody>
<tr> <td width="100%">
<div class="gray_td">
<h1>Êàòàëîã ìÿãêîé ìåáåëè</h1>
</div>
</td> </tr>
<tr> <td> <?
$mainFilter= array("ACTIVE_DATE" => "Y", "ACTIVE" => "Y", "!PROPERTY_IN_CATALOG" => false);
if($_REQUEST["collection"]!='')
$mainFilter["PROPERTY_COLLECTION"]= (int)$_REQUEST["collection"];
$APPLICATION->IncludeComponent("bitrix:catalog.section", "catalog_main_page", Array(
"IBLOCK_TYPE" => "news", // Òèï èíôîáëîêà
"IBLOCK_ID" => "5", // Èíôîáëîê
"SECTION_ID" => $_REQUEST["SECTION_ID"], // ID ðàçäåëà
"SECTION_CODE" => "", // Êîä ðàçäåëà
"SECTION_USER_FIELDS" => array( // Ñâîéñòâà ðàçäåëà
0 => "",
1 => "",
),
"ELEMENT_SORT_FIELD" => "sort", // Ïî êàêîìó ïîëþ ñîðòèðóåì ýëåìåíòû
"ELEMENT_SORT_ORDER" => "asc", // Ïîðÿäîê ñîðòèðîâêè ýëåìåíòîâ
"FILTER_NAME" => "mainFilter", // Èìÿ ìàññèâà ñî çíà÷åíèÿìè ôèëüòðà äëÿ ôèëüòðàöèè ýëåìåíòîâ
"INCLUDE_SUBSECTIONS" => "Y", // Ïîêàçûâàòü ýëåìåíòû ïîäðàçäåëîâ ðàçäåëà
"SHOW_ALL_WO_SECTION" => "Y", // Ïîêàçûâàòü âñå ýëåìåíòû, åñëè íå óêàçàí ðàçäåë
"PAGE_ELEMENT_COUNT" => "200", // Êîëè÷åñòâî ýëåìåíòîâ íà ñòðàíèöå
"LINE_ELEMENT_COUNT" => "3", // Êîëè÷åñòâî ýëåìåíòîâ âûâîäèìûõ â îäíîé ñòðîêå òàáëèöû
"PROPERTY_CODE" => array( // Ñâîéñòâà
0 => "COLLECTION",
1 => "PRICE",
2 => "SKIDKA",
3 => "IN_CATALOG",
4 => "FULLCOLOR_PIC",
5 => "BLACKWHITE_PIC",
6 => "",
),
"OFFERS_LIMIT" => "0", // Ìàêñèìàëüíîå êîëè÷åñòâî ïðåäëîæåíèé äëÿ ïîêàçà (0 - âñå)
"SECTION_URL" => "section.php?IBLOCK_ID=#IBLOCK_ID#&SECTION_ID=#SECTION_ID#", // URL, âåäóùèé íà ñòðàíèöó ñ ñîäåðæèìûì ðàçäåëà
"DETAIL_URL" => "element.php?IBLOCK_ID=#IBLOCK_ID#&SECTION_ID=#SECTION_ID#&ELEMENT_ID=#ELEMENT_ID#", // URL, âåäóùèé íà ñòðàíèöó ñ ñîäåðæèìûì ýëåìåíòà ðàçäåëà
"BASKET_URL" => "/personal/basket.php", // URL, âåäóùèé íà ñòðàíèöó ñ êîðçèíîé ïîêóïàòåëÿ
"ACTION_VARIABLE" => "action", // Íàçâàíèå ïåðåìåííîé, â êîòîðîé ïåðåäàåòñÿ äåéñòâèå
"PRODUCT_ID_VARIABLE" => "id", // Íàçâàíèå ïåðåìåííîé, â êîòîðîé ïåðåäàåòñÿ êîä òîâàðà äëÿ ïîêóïêè
"PRODUCT_QUANTITY_VARIABLE" => "quantity", // Íàçâàíèå ïåðåìåííîé, â êîòîðîé ïåðåäàåòñÿ êîëè÷åñòâî òîâàðà
"PRODUCT_PROPS_VARIABLE" => "prop", // Íàçâàíèå ïåðåìåííîé, â êîòîðîé ïåðåäàþòñÿ õàðàêòåðèñòèêè òîâàðà
"SECTION_ID_VARIABLE" => "SECTION_ID", // Íàçâàíèå ïåðåìåííîé, â êîòîðîé ïåðåäàåòñÿ êîä ãðóïïû
"AJAX_MODE" => "N", // Âêëþ÷èòü ðåæèì AJAX
"AJAX_OPTION_JUMP" => "N", // Âêëþ÷èòü ïðîêðóòêó ê íà÷àëó êîìïîíåíòà
"AJAX_OPTION_STYLE" => "Y", // Âêëþ÷èòü ïîäãðóçêó ñòèëåé
"AJAX_OPTION_HISTORY" => "N", // Âêëþ÷èòü ýìóëÿöèþ íàâèãàöèè áðàóçåðà
"CACHE_TYPE" => "N", // Òèï êåøèðîâàíèÿ
"CACHE_TIME" => "0", // Âðåìÿ êåøèðîâàíèÿ (ñåê.)
"CACHE_GROUPS" => "Y", // Ó÷èòûâàòü ïðàâà äîñòóïà
"META_KEYWORDS" => "-", // Óñòàíîâèòü êëþ÷åâûå ñëîâà ñòðàíèöû èç ñâîéñòâà
"META_DESCRIPTION" => "-", // Óñòàíîâèòü îïèñàíèå ñòðàíèöû èç ñâîéñòâà
"BROWSER_TITLE" => "-", // Óñòàíîâèòü çàãîëîâîê îêíà áðàóçåðà èç ñâîéñòâà
"ADD_SECTIONS_CHAIN" => "N", // Âêëþ÷àòü ðàçäåë â öåïî÷êó íàâèãàöèè
"DISPLAY_COMPARE" => "N", // Âûâîäèòü êíîïêó ñðàâíåíèÿ
"SET_TITLE" => "Y", // Óñòàíàâëèâàòü çàãîëîâîê ñòðàíèöû
"SET_STATUS_404" => "N", // Óñòàíàâëèâàòü ñòàòóñ 404, åñëè íå íàéäåíû ýëåìåíò èëè ðàçäåë
"CACHE_FILTER" => "N", // Êåøèðîâàòü ïðè óñòàíîâëåííîì ôèëüòðå
"PRICE_CODE" => "", // Òèï öåíû
"USE_PRICE_COUNT" => "N", // Èñïîëüçîâàòü âûâîä öåí ñ äèàïàçîíàìè
"SHOW_PRICE_COUNT" => "1", // Âûâîäèòü öåíû äëÿ êîëè÷åñòâà
"PRICE_VAT_INCLUDE" => "Y", // Âêëþ÷àòü ÍÄÑ â öåíó
"PRODUCT_PROPERTIES" => "", // Õàðàêòåðèñòèêè òîâàðà
"USE_PRODUCT_QUANTITY" => "N", // Ðàçðåøèòü óêàçàíèå êîëè÷åñòâà òîâàðà
"DISPLAY_TOP_PAGER" => "N", // Âûâîäèòü íàä ñïèñêîì
"DISPLAY_BOTTOM_PAGER" => "Y", // Âûâîäèòü ïîä ñïèñêîì
"PAGER_TITLE" => "Òîâàðû", // Íàçâàíèå êàòåãîðèé
"PAGER_SHOW_ALWAYS" => "Y", // Âûâîäèòü âñåãäà
"PAGER_TEMPLATE" => "", // Íàçâàíèå øàáëîíà
"PAGER_DESC_NUMBERING" => "N", // Èñïîëüçîâàòü îáðàòíóþ íàâèãàöèþ
"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000", // Âðåìÿ êåøèðîâàíèÿ ñòðàíèö äëÿ îáðàòíîé íàâèãàöèè
"PAGER_SHOW_ALL" => "Y", // Ïîêàçûâàòü ññûëêó "Âñå"
"AJAX_OPTION_ADDITIONAL" => "", // Äîïîëíèòåëüíûé èäåíòèôèêàòîð
),
false
);?> </td> </tr>
</tbody>
</table>
<br />
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>