From 9df36c320d1e6dcea9e17aaae6d2961ba23a0c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=A2=D0=B8=D0?= =?UTF-8?q?=BF=D0=B8=D0=BA=D0=B8=D0=BD?= Date: Wed, 28 Jun 2023 01:49:19 +0300 Subject: [PATCH] =?UTF-8?q?1.=20=D0=94=D0=B5=D0=B1=D0=B0=D0=B3=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D0=B1=D0=BB=D0=B5=D0=BC=20=D1=81=20=D0=B2=D0=B5=D1=80=D1=81?= =?UTF-8?q?=D1=82=D0=BA=D0=BE=D0=B9=20=D0=BD=D0=B0=20=D0=B3=D0=BB=D0=B0=D0=B2?= =?UTF-8?q?=D0=BD=D0=BE=D0=B9=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D0?= =?UTF-8?q?=B5.=202.=20=D0=94=D0=B5=D0=B1=D0=B0=D0=B3=20=D0=B2=D0=B5=D1=80=D1?= =?UTF-8?q?=81=D1=82=D0=BA=D0=B8=20=D0=B8=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1?= =?UTF-8?q?=8B=20JS=20=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82=D0=B0=20=D0=BD=D0?= =?UTF-8?q?=B0=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D0=B5=20=D0=BF=D0?= =?UTF-8?q?=B0=D1=80=D1=82=D0=BD=D0=B5=D1=80=D0=BE=D0=B2.=203.=20=D0=94=D0=B5?= =?UTF-8?q?=D0=B1=D0=B0=D0=B3=20=D0=B2=D0=B5=D1=80=D1=81=D1=82=D0=BA=D0=B8=20?= =?UTF-8?q?=D0=B4=D0=B5=D1=82=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE=D0=B9=20=D1=81=D1?= =?UTF-8?q?=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=8B=20=D1=81=D0=B5=D1=80=D0=B2?= =?UTF-8?q?=D0=B8=D1=81=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- about/index.php | 56 +- include/partner_tabs.php | 66 ++ index.php | 155 ++-- .../components/bitrix/menu/bottom/template.php | 1 + .../bitrix/news.detail/article/template.php | 4 +- .../bitrix/news.list/big-partners/template.php | 449 +++++++++- .../bitrix/news.list/services/template.php | 42 +- .../bitrix/news.list/tab-clients/template.php | 12 +- .../bitrix/news.list/tab-partners/template.php | 26 +- .../bitrix/news.detail/article/template.php | 2 +- local/templates/main/footer.php | 55 +- local/templates/main/header.php | 3 +- local/templates/main/include/form_popup.php | 30 + local/templates/main/js/commonScripts.js | 112 ++- local/templates/main/js/index.html | 278 ++++++ local/templates/main/js/index.js | 475 +++++++++- local/templates/main/js/partners.js | 931 +++++++++++++++++++- partners/index.php | 62 +- 18 files changed, 2490 insertions(+), 269 deletions(-) create mode 100644 include/partner_tabs.php create mode 100644 local/templates/main/include/form_popup.php create mode 100644 local/templates/main/js/index.html diff --git a/about/index.php b/about/index.php index e9d9cbd..34c2d7e 100644 --- a/about/index.php +++ b/about/index.php @@ -70,59 +70,5 @@ ); ?> -
-
-
-
    - - -
-
- 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"], - ], - false - ); ?> -
-
-
- 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"], - ], - false - ); ?> -
- посмотреть все -
-
-
-
+ IncludeComponent("bitrix:main.include", "", ["AREA_FILE_SHOW" => "file", "PATH" => SITE_DIR . "include/partner_tabs.php"], false, ['HIDE_ICONS' => 'Y']); ?> \ No newline at end of file diff --git a/include/partner_tabs.php b/include/partner_tabs.php new file mode 100644 index 0000000..cd1eda2 --- /dev/null +++ b/include/partner_tabs.php @@ -0,0 +1,66 @@ +
+
+
+
    + + +
+
+ GetCurPage(false) == "/") + global $arrFilter; + $arrFilter = ["PROPERTY_ON_MAIN" => "3"]; + ?> + 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" => "", + "FILTER_NAME" => "arrFilter", + "FIELD_CODE" => ["DETAIL_PICTURE"], + "PROPERTY_CODE" => ["ON_MAIN"], + ], + false + ); ?> +
+
+ GetCurPage(false) == "/") + $arrFilter = ["PROPERTY_ON_MAIN" => "2"]; + ?> + 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" => "", + "FILTER_NAME" => "arrFilter", + "FIELD_CODE" => ["DETAIL_PICTURE"], + "PROPERTY_CODE" => ["ON_MAIN"], + "NEWS_COUNT" => '8' + ], + false + ); ?> +
+
+
+
\ No newline at end of file diff --git a/index.php b/index.php index af74112..6d72a6f 100644 --- a/index.php +++ b/index.php @@ -1,94 +1,117 @@ SetPageProperty("title", "Российский системный интегратор полного цикла — повышаем эффективность, автоматизируем процессы, внедряем продвинутые технологии"); + $APPLICATION->SetPageProperty("keywords", "IT-решения, интегратор, автоматизация, сопровождение"); + $APPLICATION->SetPageProperty("description", "Внедряем технологии в сфере информационной безопасности → Защищаем ИТ-инфракструтуру → Заменяем и обслуживаем импортное оборудование и ПО → Повышение производительности ЦОД → Диагностика, регламентные работы, ремонт, настройка инженерных систем"); + $APPLICATION->SetPageProperty("title", "Российский системный интегратор полного цикла — повышаем эффективность, автоматизируем процессы, внедряем продвинутые технологии"); $APPLICATION->SetTitle("Главная страница"); + global $arrFilter; ?>
-
-
-

- IncludeComponent("bitrix:main.include", "", ["AREA_FILE_SHOW" => "file", "PATH" => SITE_DIR . "include/about_title.php", "AREA_FILE_RECURSIVE" => "N", "EDIT_MODE" => "text"], false); ?> -

-
-
-
-
- IncludeComponent("bitrix:news.list", "services", [ - "IBLOCK_TYPE" => "news", - "IBLOCK_ID" => IBID_SERVICES, - "SET_TITLE" => "N", +
+
+

+ IncludeComponent( + "bitrix:main.include", + "", + [ + "AREA_FILE_RECURSIVE" => "N", + "AREA_FILE_SHOW" => "file", + "EDIT_MODE" => "text", + "PATH" => SITE_DIR . "include/about_title.php", + ] + ); ?>

+
+
+
+
+ IncludeComponent( + "bitrix:news.list", + "services", + [ "AJAX_MODE" => "N", - "AJAX_OPTION_SHADOW" => "Y", + "AJAX_OPTION_ADDITIONAL" => "", + "AJAX_OPTION_HISTORY" => "N", "AJAX_OPTION_JUMP" => "N", + "AJAX_OPTION_SHADOW" => "Y", "AJAX_OPTION_STYLE" => "Y", - "AJAX_OPTION_HISTORY" => "N", - "CACHE_TYPE" => "A", - "CACHE_TIME" => "36000000", "CACHE_GROUPS" => "Y", - "AJAX_OPTION_ADDITIONAL" => "", + "CACHE_TIME" => "36000000", + "CACHE_TYPE" => "A", "FIELD_CODE" => ["DETAIL_PICTURE"], + "IBLOCK_ID" => IBID_SERVICES, + "IBLOCK_TYPE" => "news", "PROPERTY_CODE" => ["LIST_IMAGE"], - ], - false - ); ?> -
-
+ "SET_TITLE" => "N", + ] + ); ?> +
+

- IncludeComponent("bitrix:main.include", "", ["AREA_FILE_SHOW" => "file", "PATH" => SITE_DIR . "include/about_title.php", "AREA_FILE_RECURSIVE" => "N", "EDIT_MODE" => "text",], false); ?> -

+ IncludeComponent( + "bitrix:main.include", + "", + [ + "AREA_FILE_RECURSIVE" => "N", + "AREA_FILE_SHOW" => "file", + "EDIT_MODE" => "text", + "PATH" => SITE_DIR . "include/about_title.php", + ] + ); ?>
-
+
+

- IncludeComponent("bitrix:main.include", "", ["AREA_FILE_SHOW" => "file", "PATH" => SITE_DIR . "include/about_text.php", "AREA_FILE_RECURSIVE" => "N", "EDIT_MODE" => "text",], false); ?> + IncludeComponent( + "bitrix:main.include", + "", + [ + "AREA_FILE_RECURSIVE" => "N", + "AREA_FILE_SHOW" => "file", + "EDIT_MODE" => "text", + "PATH" => SITE_DIR . "include/about_text.php", + ] + ); ?>

- IncludeComponent("bitrix:main.include", "", ["AREA_FILE_SHOW" => "file", "PATH" => SITE_DIR . "include/about_list.php", "AREA_FILE_RECURSIVE" => "N", "EDIT_MODE" => "text",], false); ?> + IncludeComponent( + "bitrix:main.include", + "", + [ + "AREA_FILE_RECURSIVE" => "N", + "AREA_FILE_SHOW" => "file", + "EDIT_MODE" => "text", + "PATH" => SITE_DIR . "include/about_list.php", + ] + ); ?>
-

Лицензии

- 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" => "", - ], - false +
+

Лицензии

+ IncludeComponent( + "bitrix:news.list", + "licenses", + [ + "AJAX_MODE" => "N", + "AJAX_OPTION_ADDITIONAL" => "", + "AJAX_OPTION_HISTORY" => "N", + "AJAX_OPTION_JUMP" => "N", + "AJAX_OPTION_SHADOW" => "Y", + "AJAX_OPTION_STYLE" => "Y", + "CACHE_GROUPS" => "Y", + "CACHE_TIME" => "36000000", + "CACHE_TYPE" => "A", + "IBLOCK_ID" => IBID_LICENSES, + "IBLOCK_TYPE" => "content", + "SET_TITLE" => "N", + ] ); ?>
-
-
-
-
    -
  • - -
  • -
  • - -
  • -
-
-
- -
-
-
- посмотреть все
-
-
-
+IncludeComponent("bitrix:main.include", "", ["AREA_FILE_SHOW" => "file", "PATH" => SITE_DIR . "include/partner_tabs.php"], false, ['HIDE_ICONS' => 'Y']); ?> \ No newline at end of file diff --git a/local/templates/main/components/bitrix/menu/bottom/template.php b/local/templates/main/components/bitrix/menu/bottom/template.php index 6aadc20..d12b44d 100644 --- a/local/templates/main/components/bitrix/menu/bottom/template.php +++ b/local/templates/main/components/bitrix/menu/bottom/template.php @@ -1,5 +1,6 @@ +