.parameters.php
2.74 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
<?
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
if(!CModule::IncludeModule("iblock"))
return;
$arTypesEx = CIBlockParameters::GetIBlockTypes(Array("-"=>" "));
$arIBlocks=Array();
$db_iblock = CIBlock::GetList(Array("SORT"=>"ASC"), Array("SITE_ID"=>$_REQUEST["site"], "TYPE" => ($arCurrentValues["IBLOCK_TYPE"]!="-"?$arCurrentValues["IBLOCK_TYPE"]:"")));
while($arRes = $db_iblock->Fetch()) {
$arIBlocks[$arRes["ID"]] = $arRes["NAME"];
}
$arComponentParameters = array(
"GROUPS" => array(
),
"PARAMETERS" => array(
"IBLOCK_TYPE" => Array(
"PARENT" => "BASE",
"NAME" => GetMessage("IBLOCK_TYPE"),
"TYPE" => "LIST",
"VALUES" => $arTypesEx,
"DEFAULT" => "news",
"REFRESH" => "Y",
),
"IBLOCK_ID" => Array(
"PARENT" => "BASE",
"NAME" => GetMessage("IBLOCK_ID"),
"TYPE" => "LIST",
"VALUES" => $arIBlocks,
"DEFAULT" => '={$_REQUEST["ID"]}',
"ADDITIONAL_VALUES" => "Y",
"REFRESH" => "Y",
),
"IS_SEF" => array(
"PARENT" => "BASE",
"NAME" => GetMessage("CP_BMS_IS_SEF"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "N",
"REFRESH" => "Y",
),
"SEF_BASE_URL" => array(
"PARENT" => "BASE",
"NAME"=>GetMessage("CP_BMS_SEF_BASE_URL"),
"TYPE"=>"STRING",
"DEFAULT"=>'/archive/contests/',
),
"CONTESTS_PAGE_URL" => CIBlockParameters::GetPathTemplateParam(
"SECTION",
"SECTION_PAGE_URL",
GetMessage("CONTESTS"),
"#CON_CODE#/",
"BASE"
),
"WINNERS_PAGE_URL" => CIBlockParameters::GetPathTemplateParam(
"SECTION",
"SECTION_PAGE_URL",
GetMessage("WINNERS"),
"#CON_CODE#/winners/",
"BASE"
),
"JUVENILE_PAGE_URL" => CIBlockParameters::GetPathTemplateParam(
"SECTION",
"SECTION_PAGE_URL",
GetMessage("JUVENILE"),
"#CON_CODE#/winners/juvenile/",
"BASE"
),
"TERMS_PAGE_URL" => CIBlockParameters::GetPathTemplateParam(
"SECTION",
"SECTION_PAGE_URL",
GetMessage("TERMS"),
"#CON_CODE#/terms/",
"BASE"
),
"PRIZES_PAGE_URL" => CIBlockParameters::GetPathTemplateParam(
"SECTION",
"SECTION_PAGE_URL",
GetMessage("PRIZES"),
"#CON_CODE#/prizes/",
"BASE"
),
"PROGRAM_PAGE_URL" => CIBlockParameters::GetPathTemplateParam(
"SECTION",
"SECTION_PAGE_URL",
GetMessage("PROGRAM"),
"#CON_CODE#/programs/",
"BASE"
),
"JURY_PAGE_URL" => CIBlockParameters::GetPathTemplateParam(
"SECTION",
"SECTION_PAGE_URL",
GetMessage("JURY"),
"#CON_CODE#/jury/",
"BASE"
),
"JURY_DETAIL_PAGE_URL" => CIBlockParameters::GetPathTemplateParam(
"DETAIL",
"SECTION_PAGE_URL",
GetMessage("JURY_DETAIL"),
"#CON_CODE#/jury/#ELEMENT_CODE#/",
"BASE"
),
"CACHE_TIME" => Array("DEFAULT"=>3600),
),
);
?>