Blame view

local/templates/main/components/bitrix/news/articles/detail.php 6.18 KB
80576aee7   Дмитрий Типикин   Интеграция верстк...
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
  <? if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();
  ?>
  <? $APPLICATION->IncludeComponent(
      "bitrix:news.detail",
      "article",
      [
          "DISPLAY_DATE" => $arParams["DISPLAY_DATE"],
          "DISPLAY_NAME" => $arParams["DISPLAY_NAME"],
          "DISPLAY_PICTURE" => $arParams["DISPLAY_PICTURE"],
          "DISPLAY_PREVIEW_TEXT" => $arParams["DISPLAY_PREVIEW_TEXT"],
          "IBLOCK_TYPE" => $arParams["IBLOCK_TYPE"],
          "IBLOCK_ID" => $arParams["IBLOCK_ID"],
          "FIELD_CODE" => $arParams["DETAIL_FIELD_CODE"],
          "PROPERTY_CODE" => $arParams["DETAIL_PROPERTY_CODE"],
          "DETAIL_URL" => $arResult["FOLDER"] . $arResult["URL_TEMPLATES"]["detail"],
          "SECTION_URL" => $arResult["FOLDER"] . $arResult["URL_TEMPLATES"]["section"],
          "META_KEYWORDS" => $arParams["META_KEYWORDS"],
          "META_DESCRIPTION" => $arParams["META_DESCRIPTION"],
          "BROWSER_TITLE" => $arParams["BROWSER_TITLE"],
          "SET_CANONICAL_URL" => $arParams["DETAIL_SET_CANONICAL_URL"],
          "DISPLAY_PANEL" => $arParams["DISPLAY_PANEL"],
          "SET_LAST_MODIFIED" => $arParams["SET_LAST_MODIFIED"],
          "SET_TITLE" => $arParams["SET_TITLE"],
          "MESSAGE_404" => $arParams["MESSAGE_404"],
          "SET_STATUS_404" => $arParams["SET_STATUS_404"],
          "SHOW_404" => $arParams["SHOW_404"],
          "FILE_404" => $arParams["FILE_404"],
          "INCLUDE_IBLOCK_INTO_CHAIN" => "N",
          "ADD_SECTIONS_CHAIN" => "N",
          "ACTIVE_DATE_FORMAT" => $arParams["DETAIL_ACTIVE_DATE_FORMAT"],
          "CACHE_TYPE" => $arParams["CACHE_TYPE"],
          "CACHE_TIME" => $arParams["CACHE_TIME"],
          "CACHE_GROUPS" => $arParams["CACHE_GROUPS"],
          "USE_PERMISSIONS" => $arParams["USE_PERMISSIONS"],
          "GROUP_PERMISSIONS" => $arParams["GROUP_PERMISSIONS"],
          "PAGER_SHOW_ALWAYS" => "N",
          "PAGER_TEMPLATE" => $arParams["DETAIL_PAGER_TEMPLATE"],
          "PAGER_SHOW_ALL" => $arParams["DETAIL_PAGER_SHOW_ALL"],
          "CHECK_DATES" => $arParams["CHECK_DATES"],
          "ELEMENT_ID" => $arResult["VARIABLES"]["ELEMENT_ID"],
          "ELEMENT_CODE" => $arResult["VARIABLES"]["ELEMENT_CODE"],
          "SECTION_ID" => $arResult["VARIABLES"]["SECTION_ID"],
          "SECTION_CODE" => $arResult["VARIABLES"]["SECTION_CODE"],
          "IBLOCK_URL" => $arResult["FOLDER"] . $arResult["URL_TEMPLATES"]["news"],
          "USE_SHARE" => $arParams["USE_SHARE"],
          "SHARE_HIDE" => $arParams["SHARE_HIDE"],
          "SHARE_TEMPLATE" => $arParams["SHARE_TEMPLATE"],
          "SHARE_HANDLERS" => $arParams["SHARE_HANDLERS"],
          "SHARE_SHORTEN_URL_LOGIN" => $arParams["SHARE_SHORTEN_URL_LOGIN"],
          "SHARE_SHORTEN_URL_KEY" => $arParams["SHARE_SHORTEN_URL_KEY"],
          "ADD_ELEMENT_CHAIN" => "Y",
          'STRICT_SECTION_CHECK' => (isset($arParams['STRICT_SECTION_CHECK']) ? $arParams['STRICT_SECTION_CHECK'] : ''),
      ],
      $component
  );
  ?>
  <section class="section licenses-partners">
      <div class="container licenses-partners__container"><h2 class="h2 licenses-partners__title">Лицензии</h2>
          <? $APPLICATION->IncludeComponent("bitrix:news.list", "licenses", [
              "IBLOCK_TYPE" => "content",
              "IBLOCK_ID" => IBID_LICENSES,
  			"SET_TITLE" => "N",
              "AJAX_MODE" => "N",
              "AJAX_OPTION_SHADOW" => "Y",
              "AJAX_OPTION_JUMP" => "N",
              "AJAX_OPTION_STYLE" => "Y",
              "AJAX_OPTION_HISTORY" => "N",
              "CACHE_TYPE" => "A",
              "CACHE_TIME" => "36000000",
              "CACHE_GROUPS" => "Y",
              "AJAX_OPTION_ADDITIONAL" => "",
          ],
  			$component
          ); ?>
      </div>
  </section>
  <section class="section tab-partners" id="partners">
      <div class="container tab-partners__container">
          <div class="tabs">
              <ul class="tab-partners__list">
                  <li class="tab-partners__item tab-partners__item_active" data-index="0" role="tab">
                      <button class="lead-title tab-name tab-partners__link" type="button">Наши заказчики</button>
                  </li>
                  <li class="tab-partners__item" data-index="1" role="tab">
                      <button class="lead-title tab-name tab-partners__link" type="button">Наши партнёры</button>
                  </li>
              </ul>
              <section class="tab-partners__section tab-partners__section_active" role="tab-content" data-index="0">
                  <? $APPLICATION->IncludeComponent("bitrix:news.list", "tab-clients", [
                      "IBLOCK_TYPE" => "content",
                      "IBLOCK_ID" => IBID_CLIENTS,
  					"SET_TITLE" => "N",
                      "AJAX_MODE" => "N",
                      "AJAX_OPTION_SHADOW" => "Y",
                      "AJAX_OPTION_JUMP" => "N",
                      "AJAX_OPTION_STYLE" => "Y",
                      "AJAX_OPTION_HISTORY" => "N",
                      "CACHE_TYPE" => "A",
                      "CACHE_TIME" => "36000000",
                      "CACHE_GROUPS" => "Y",
                      "AJAX_OPTION_ADDITIONAL" => "",
                      "FIELD_CODE" => ["DETAIL_PICTURE"],
                  ],
  					$component
                  ); ?>
              </section>
              <section class="tab-partners__section" role="tab-content" data-index="1">
                  <div class="tab-partner">
                      <? $APPLICATION->IncludeComponent("bitrix:news.list", "tab-partners", [
                          "IBLOCK_TYPE" => "content",
                          "IBLOCK_ID" => IBID_PARTNERS,
  						"SET_TITLE" => "N",
                          "AJAX_MODE" => "N",
                          "AJAX_OPTION_SHADOW" => "Y",
                          "AJAX_OPTION_JUMP" => "N",
                          "AJAX_OPTION_STYLE" => "Y",
                          "AJAX_OPTION_HISTORY" => "N",
                          "CACHE_TYPE" => "A",
                          "CACHE_TIME" => "36000000",
                          "CACHE_GROUPS" => "Y",
                          "AJAX_OPTION_ADDITIONAL" => "",
                          "FIELD_CODE" => ["DETAIL_PICTURE"],
                      ],
  						$component
                      ); ?>
                  </div>
                  <a class="button button_style_link tab-partner__btn" href="/partners/"> посмотреть все</a>
              </section>
          </div>
      </div>
  </section>