Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
www
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finnv
www
Commits
7e7985c6
Commit
7e7985c6
authored
Aug 11, 2023
by
Ольга
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Доработан блок с преимуществами и вынесены id инфоблоков в константы
parent
704ffbde
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
233 additions
and
48 deletions
+233
-48
style.css
...rp/components/bitrix/news.detail/banner-service/style.css
+5
-0
template.php
...components/bitrix/news.detail/banner-service/template.php
+3
-0
.parameters.php
...rp/components/bitrix/news.list/advantages/.parameters.php
+43
-0
.parameters.php
...nents/bitrix/news.list/advantages/lang/en/.parameters.php
+16
-0
template.php
...mponents/bitrix/news.list/advantages/lang/en/template.php
+3
-0
.parameters.php
...nents/bitrix/news.list/advantages/lang/ru/.parameters.php
+16
-0
template.php
...mponents/bitrix/news.list/advantages/lang/ru/template.php
+4
-0
style.css
...ro-scorp/components/bitrix/news.list/advantages/style.css
+39
-0
template.php
...scorp/components/bitrix/news.list/advantages/template.php
+41
-0
style.css
...ponents/bitrix/news.list/partners-width-heading/style.css
+2
-1
template.php
...p/components/bitrix/news.list/reviews-slider/template.php
+0
-1
detail.php
...o-scorp/components/bitrix/news/services-blocks/detail.php
+3
-2
section.php
...-scorp/components/bitrix/news/services-blocks/section.php
+3
-2
custom.css
bitrix/templates/aspro-scorp/css/custom.css
+9
-12
blocks.php
include/blocks.php
+37
-30
constants.php
local/php_interface/include/constants.php
+9
-0
No files found.
bitrix/templates/aspro-scorp/components/bitrix/news.detail/banner-service/style.css
View file @
7e7985c6
...
@@ -33,6 +33,11 @@
...
@@ -33,6 +33,11 @@
.first-screen__button
.btn-default
:hover
{
.first-screen__button
.btn-default
:hover
{
opacity
:
.7
opacity
:
.7
}
}
.first-screen__image__text
{
margin-top
:
10px
;
font-size
:
15px
;
line-height
:
1.2
;
}
@media
(
max-width
:
767px
)
{
@media
(
max-width
:
767px
)
{
.first-screen__image
{
.first-screen__image
{
text-align
:
center
;
text-align
:
center
;
...
...
bitrix/templates/aspro-scorp/components/bitrix/news.detail/banner-service/template.php
View file @
7e7985c6
...
@@ -9,6 +9,9 @@ $file = CFile::ResizeImageGet($arResult["PREVIEW_PICTURE"], array('width' => 220
...
@@ -9,6 +9,9 @@ $file = CFile::ResizeImageGet($arResult["PREVIEW_PICTURE"], array('width' => 220
<?php
if
(
$file
[
'src'
])
:?>
<?php
if
(
$file
[
'src'
])
:?>
<
div
class
="
first
-
screen__image
">
<
div
class
="
first
-
screen__image
">
<img src="
<?
php
echo
$file
[
'src'
]
?>
" alt="
<?php
echo
$arResult
[
'NAME'
]
?>
">
<img src="
<?
php
echo
$file
[
'src'
]
?>
" alt="
<?php
echo
$arResult
[
'NAME'
]
?>
">
<?php
if
(
$arResult
[
'PROPERTIES'
][
'TITLE_PHOTO'
][
'VALUE'
])
:?>
<
div
class
="
first
-
screen__image__text
"><?php echo
$arResult['PROPERTIES']['TITLE_PHOTO']['~VALUE']
?></div>
<?php endif?>
</div>
</div>
<?php endif?>
<?php endif?>
<? if (
$arResult['PROPERTIES']['PRICE']['VALUE']
): ?>
<? if (
$arResult['PROPERTIES']['PRICE']['VALUE']
): ?>
...
...
bitrix/templates/aspro-scorp/components/bitrix/news.list/advantages/.parameters.php
0 → 100644
View file @
7e7985c6
<?
if
(
!
defined
(
'B_PROLOG_INCLUDED'
)
||
B_PROLOG_INCLUDED
!==
true
)
die
();
$arTemplateParameters
=
array
(
'VIEW_TYPE'
=>
array
(
'SORT'
=>
100
,
'NAME'
=>
GetMessage
(
'VIEW_TYPE'
),
'TYPE'
=>
'LIST'
,
'VALUES'
=>
array
(
'list'
=>
GetMessage
(
'VIEW_TYPE_LIST'
),
'table'
=>
GetMessage
(
'VIEW_TYPE_TABLE'
),
),
'DEFAULT'
=>
'list'
,
'REFRESH'
=>
'Y'
),
'SHOW_DETAIL_LINK'
=>
array
(
'NAME'
=>
GetMessage
(
'SHOW_DETAIL_LINK'
),
'TYPE'
=>
'CHECKBOX'
,
'DEFAULT'
=>
'Y'
,
),
);
if
(
$arCurrentValues
[
'VIEW_TYPE'
]
==
'list'
){
$arTemplateParameters
[
'IMAGE_POSITION'
]
=
array
(
'SORT'
=>
250
,
'NAME'
=>
GetMessage
(
'IMAGE_POSITION'
),
'TYPE'
=>
'LIST'
,
'VALUES'
=>
array
(
'left'
=>
GetMessage
(
'IMAGE_POSITION_LEFT'
),
'right'
=>
GetMessage
(
'IMAGE_POSITION_RIGHT'
),
),
'DEFAULT'
=>
'left'
,
);
}
if
(
$arCurrentValues
[
'VIEW_TYPE'
]
==
'table'
){
$arTemplateParameters
[
'COUNT_IN_LINE'
]
=
array
(
'NAME'
=>
GetMessage
(
'COUNT_IN_LINE'
),
'TYPE'
=>
'STRING'
,
'DEFAULT'
=>
'3'
,
);
}
?>
bitrix/templates/aspro-scorp/components/bitrix/news.list/advantages/lang/en/.parameters.php
0 → 100644
View file @
7e7985c6
<?
$MESS
[
'SHOW_DETAIL_LINK'
]
=
'Отображать ссылку на детальную страницу'
;
$MESS
[
'COUNT_IN_LINE'
]
=
'Количество элементов в строке'
;
$MESS
[
'VIEW_TYPE'
]
=
'Вид отображения'
;
$MESS
[
'VIEW_TYPE_LIST'
]
=
'Список'
;
$MESS
[
'VIEW_TYPE_TABLE'
]
=
'Плитка'
;
$MESS
[
'VIEW_TYPE_ACCORDION'
]
=
'Аккордион'
;
$MESS
[
'SHOW_TABS'
]
=
'Показывать табы'
;
$MESS
[
'SHOW_SECTION_PREVIEW_DESCRIPTION'
]
=
'Выводить краткое описание раздела'
;
$MESS
[
'IMAGE_POSITION'
]
=
'Положение картинки анонса'
;
$MESS
[
'IMAGE_POSITION_LEFT'
]
=
'Слева'
;
$MESS
[
'IMAGE_POSITION_RIGHT'
]
=
'Справа'
;
$MESS
[
'IMAGE_POSITION_TOP'
]
=
'Сверху'
;
$MESS
[
'IMAGE_POSITION_BOTTOM'
]
=
'Снизу'
;
$MESS
[
'USE_SHARE'
]
=
'Показывать ссылки на соцсети'
;
?>
\ No newline at end of file
bitrix/templates/aspro-scorp/components/bitrix/news.list/advantages/lang/en/template.php
0 → 100644
View file @
7e7985c6
<?
$MESS
[
"CT_BNL_ELEMENT_DELETE_CONFIRM"
]
=
"All the information linked to this record will be deleted. Continue anyway?"
;
?>
\ No newline at end of file
bitrix/templates/aspro-scorp/components/bitrix/news.list/advantages/lang/ru/.parameters.php
0 → 100644
View file @
7e7985c6
<?
$MESS
[
'SHOW_DETAIL_LINK'
]
=
'Отображать ссылку на детальную страницу'
;
$MESS
[
'COUNT_IN_LINE'
]
=
'Количество элементов в строке'
;
$MESS
[
'VIEW_TYPE'
]
=
'Вид отображения'
;
$MESS
[
'VIEW_TYPE_LIST'
]
=
'Список'
;
$MESS
[
'VIEW_TYPE_TABLE'
]
=
'Плитка'
;
$MESS
[
'VIEW_TYPE_ACCORDION'
]
=
'Аккордион'
;
$MESS
[
'SHOW_TABS'
]
=
'Показывать табы'
;
$MESS
[
'SHOW_SECTION_PREVIEW_DESCRIPTION'
]
=
'Выводить краткое описание раздела'
;
$MESS
[
'IMAGE_POSITION'
]
=
'Положение картинки анонса'
;
$MESS
[
'IMAGE_POSITION_LEFT'
]
=
'Слева'
;
$MESS
[
'IMAGE_POSITION_RIGHT'
]
=
'Справа'
;
$MESS
[
'IMAGE_POSITION_TOP'
]
=
'Сверху'
;
$MESS
[
'IMAGE_POSITION_BOTTOM'
]
=
'Снизу'
;
$MESS
[
'USE_SHARE'
]
=
'Показывать ссылки на соцсети'
;
?>
\ No newline at end of file
bitrix/templates/aspro-scorp/components/bitrix/news.list/advantages/lang/ru/template.php
0 → 100644
View file @
7e7985c6
<?
$MESS
[
"CT_BNL_ELEMENT_DELETE_CONFIRM"
]
=
"Будет удалена вся информация, связанная с этой записью. Продолжить?"
;
$MESS
[
"TO_ALL"
]
=
'Подробнее'
;
?>
\ No newline at end of file
bitrix/templates/aspro-scorp/components/bitrix/news.list/advantages/style.css
0 → 100644
View file @
7e7985c6
.advantages
{
margin-bottom
:
40px
;
}
.advantages__list
{
padding-left
:
0
;
display
:
flex
;
flex-wrap
:
wrap
;
align-items
:
center
;
}
.advantages__item
{
list-style
:
none
;
display
:
flex
;
align-items
:
center
;
width
:
25%
;
margin-bottom
:
20px
;
padding-right
:
20px
;
min-width
:
250px
;
flex-grow
:
1
;
}
.advantages__image
{
width
:
50px
;
height
:
50px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
margin-right
:
15px
;
margin-bottom
:
0
;
flex-shrink
:
0
;
}
.advantages__image
img
{
max-width
:
100%
;
max-height
:
100%
;
object-fit
:
contain
;
}
.advantages__text
{
margin-bottom
:
0
;
font-size
:
15px
;
line-height
:
1.2
}
\ No newline at end of file
bitrix/templates/aspro-scorp/components/bitrix/news.list/advantages/template.php
0 → 100644
View file @
7e7985c6
<?
if
(
!
defined
(
"B_PROLOG_INCLUDED"
)
||
B_PROLOG_INCLUDED
!==
true
)
die
();
/** @var array $arParams */
/** @var array $arResult */
/** @global CMain $APPLICATION */
/** @global CUser $USER */
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixComponent $component */
$this
->
setFrameMode
(
true
);
if
(
$arResult
[
"ITEMS"
])
:?>
<
section
class
="
advantages
">
<?php if (
$arParams['BLOCK_TITLE']
): ?>
<h2 class="
title
-
block
underline
advantages__title
"><?php echo
$arParams['BLOCK_TITLE']
?></h2>
<?php endif ?>
<ul class="
advantages__list
">
<? foreach (
$arResult["ITEMS"]
as
$arItem
): ?>
<?
$this->AddEditAction
(
$arItem['ID']
,
$arItem['EDIT_LINK']
, CIBlock::GetArrayByID(
$arItem["IBLOCK_ID"]
, "
ELEMENT_EDIT
"));
$this->AddDeleteAction
(
$arItem['ID']
,
$arItem['DELETE_LINK']
, CIBlock::GetArrayByID(
$arItem["IBLOCK_ID"]
, "
ELEMENT_DELETE
"), array("
CONFIRM
" => GetMessage('CT_BNL_ELEMENT_DELETE_CONFIRM')));
$file
= CFile::ResizeImageGet(
$arItem["PREVIEW_PICTURE"]
, array('width' => 50, 'height' => 50), BX_RESIZE_IMAGE_PROPORTIONAL, true);
?>
<li class="
advantages__item
" id="
<?=
$this
->
GetEditAreaId
(
$arItem
[
'ID'
]);
?>
">
<p
class=
"advantages__image"
><img
class=
"preview_picture"
src=
"
<?=
$file
[
'src'
]
?>
"
width=
"
<?=
$arItem
[
"PREVIEW_PICTURE"
][
"WIDTH"
]
?>
"
height=
"
<?=
$arItem
[
"PREVIEW_PICTURE"
][
"HEIGHT"
]
?>
"
alt=
"
<?=
$arItem
[
"PREVIEW_PICTURE"
][
"ALT"
]
?>
"
title=
"
<?=
$arItem
[
"PREVIEW_PICTURE"
][
"TITLE"
]
?>
"
/></p>
<p
class=
"advantages__text"
>
<?php
echo
$arItem
[
'NAME'
]
?>
</p>
</li>
<?
endforeach
;
?>
</ul>
</section>
<?php
endif
;
\ No newline at end of file
bitrix/templates/aspro-scorp/components/bitrix/news.list/partners-width-heading/style.css
View file @
7e7985c6
.partners-width-heading__slider
{
.partners-width-heading__slider
{
position
:
relative
;
position
:
relative
;
overflow
:
hidden
;
overflow
:
hidden
;
padding-left
:
50px
;
padding-right
:
50px
;
}
}
.partners-width-heading__slider--width-button
{
.partners-width-heading__slider--width-button
{
padding-left
:
50px
;
padding-left
:
50px
;
...
...
bitrix/templates/aspro-scorp/components/bitrix/news.list/reviews-slider/template.php
View file @
7e7985c6
...
@@ -49,7 +49,6 @@ if ($arResult["ITEMS"]):?>
...
@@ -49,7 +49,6 @@ if ($arResult["ITEMS"]):?>
<a href="
#" class="reviews-slider__more-link">Читать далее</a>
<a href="
#" class="reviews-slider__more-link">Читать далее</a>
</
div
>
</
div
>
</
div
>
</
div
>
<
time
class
="
reviews
-
slider__time
"><?php echo FormatDate("
d
.
m
.
Y
", MakeTimeStamp(
$arItem["DATE_CREATE"]
))?></time>
</
blockquote
>
</
blockquote
>
</
article
>
</
article
>
<?
endforeach
;
?>
<?
endforeach
;
?>
...
...
bitrix/templates/aspro-scorp/components/bitrix/news/services-blocks/detail.php
View file @
7e7985c6
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<?
<?
// get element
// get element
$arItemFilter
=
CScorp
::
GetCurrentElementFilter
(
$arResult
[
'VARIABLES'
],
$arParams
);
$arItemFilter
=
CScorp
::
GetCurrentElementFilter
(
$arResult
[
'VARIABLES'
],
$arParams
);
$arElement
=
CCache
::
CIblockElement_GetList
(
array
(
'CACHE'
=>
array
(
'TAG'
=>
CCache
::
GetIBlockCacheTag
(
$arParams
[
'IBLOCK_ID'
]),
'MULTI'
=>
'N'
)),
$arItemFilter
,
false
,
false
,
array
(
'ID'
,
'NAME'
,
'PREVIEW_TEXT'
,
'DETAIL_PICTURE'
,
'DETAIL_PAGE_URL'
,
'DETAIL_TEXT'
,
'PREVIEW_PICTURE'
,
'PROPERTY_FIRST_SCREEN'
,
'PROPERTY_BLOCKS'
,
'PROPERTY_FAQ'
,
'PROPERTY_SCHEME'
,
'PROPERTY_TABLE_PRICE'
,
'IBLOCK_SECTION_ID'
));
$arElement
=
CCache
::
CIblockElement_GetList
(
array
(
'CACHE'
=>
array
(
'TAG'
=>
CCache
::
GetIBlockCacheTag
(
$arParams
[
'IBLOCK_ID'
]),
'MULTI'
=>
'N'
)),
$arItemFilter
,
false
,
false
,
array
(
'ID'
,
'NAME'
,
'PREVIEW_TEXT'
,
'DETAIL_PICTURE'
,
'DETAIL_PAGE_URL'
,
'DETAIL_TEXT'
,
'PREVIEW_PICTURE'
,
'PROPERTY_FIRST_SCREEN'
,
'PROPERTY_BLOCKS'
,
'PROPERTY_FAQ'
,
'PROPERTY_SCHEME'
,
'PROPERTY_TABLE_PRICE'
,
'
PROPERTY_ADVANTAGES'
,
'
IBLOCK_SECTION_ID'
));
$arSection
=
CCache
::
CIblockSection_GetList
(
array
(
"CACHE"
=>
array
(
"TAG"
=>
CCache
::
GetIBlockCacheTag
(
$arParams
[
"IBLOCK_ID"
]),
"MULTI"
=>
"N"
)),
array
(
'ID'
=>
$arElement
[
'IBLOCK_SECTION_ID'
]),
false
,
array
(
'ID'
,
'NAME'
),
true
);
$arSection
=
CCache
::
CIblockSection_GetList
(
array
(
"CACHE"
=>
array
(
"TAG"
=>
CCache
::
GetIBlockCacheTag
(
$arParams
[
"IBLOCK_ID"
]),
"MULTI"
=>
"N"
)),
array
(
'ID'
=>
$arElement
[
'IBLOCK_SECTION_ID'
]),
false
,
array
(
'ID'
,
'NAME'
),
true
);
$isTitle
=
false
;
$isTitle
=
false
;
...
@@ -81,7 +81,7 @@ $isTitle = false;
...
@@ -81,7 +81,7 @@ $isTitle = false;
"
PAGER_SHOW_ALL
" => "
N
",
"
PAGER_SHOW_ALL
" => "
N
",
"
PAGER_TEMPLATE
" => "
.
default
",
"
PAGER_TEMPLATE
" => "
.
default
",
"
PAGER_TITLE
" => "
Страница
",
"
PAGER_TITLE
" => "
Страница
",
"
PROPERTY_CODE
" => array("
PRICE
", ""),
"
PROPERTY_CODE
" => array("
PRICE
", "
TITLE_PHOTO
"),
"
SET_BROWSER_TITLE
" => "
N
",
"
SET_BROWSER_TITLE
" => "
N
",
"
SET_CANONICAL_URL
" => "
N
",
"
SET_CANONICAL_URL
" => "
N
",
"
SET_LAST_MODIFIED
" => "
N
",
"
SET_LAST_MODIFIED
" => "
N
",
...
@@ -118,6 +118,7 @@ $isTitle = false;
...
@@ -118,6 +118,7 @@ $isTitle = false;
'FAQ' =>
$arElement["PROPERTY_FAQ_VALUE"]
,
'FAQ' =>
$arElement["PROPERTY_FAQ_VALUE"]
,
'TABLE_PRICE' =>
$arElement["PROPERTY_TABLE_PRICE_VALUE"]
,
'TABLE_PRICE' =>
$arElement["PROPERTY_TABLE_PRICE_VALUE"]
,
'IS_DETAIL' => true,
'IS_DETAIL' => true,
'ADVANTAGES' =>
$arElement["ADVANTAGES"]
)
)
)
)
); ?>
); ?>
...
...
bitrix/templates/aspro-scorp/components/bitrix/news/services-blocks/section.php
View file @
7e7985c6
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
$arItemFilter
=
CScorp
::
GetCurrentSectionElementFilter
(
$arResult
[
"VARIABLES"
],
$arParams
);
$arItemFilter
=
CScorp
::
GetCurrentSectionElementFilter
(
$arResult
[
"VARIABLES"
],
$arParams
);
$arSectionFilter
=
CScorp
::
GetCurrentSectionFilter
(
$arResult
[
"VARIABLES"
],
$arParams
);
$arSectionFilter
=
CScorp
::
GetCurrentSectionFilter
(
$arResult
[
"VARIABLES"
],
$arParams
);
$itemsCnt
=
CCache
::
CIblockElement_GetList
(
array
(
"CACHE"
=>
array
(
"TAG"
=>
CCache
::
GetIBlockCacheTag
(
$arParams
[
"IBLOCK_ID"
]))),
$arItemFilter
,
array
());
$itemsCnt
=
CCache
::
CIblockElement_GetList
(
array
(
"CACHE"
=>
array
(
"TAG"
=>
CCache
::
GetIBlockCacheTag
(
$arParams
[
"IBLOCK_ID"
]))),
$arItemFilter
,
array
());
$arSection
=
CCache
::
CIblockSection_GetList
(
array
(
"CACHE"
=>
array
(
"TAG"
=>
CCache
::
GetIBlockCacheTag
(
$arParams
[
"IBLOCK_ID"
]),
"MULTI"
=>
"N"
)),
$arSectionFilter
,
false
,
array
(
'ID'
,
'DESCRIPTION'
,
'PICTURE'
,
'DETAIL_PICTURE'
,
'NAME'
,
'UF_BLOCKS'
,
'UF_FIRST_SCREEN'
,
'UF_TABLE_PRICE'
,
'UF_SCHEME'
,
'UF_FAQ'
),
true
);
$arSection
=
CCache
::
CIblockSection_GetList
(
array
(
"CACHE"
=>
array
(
"TAG"
=>
CCache
::
GetIBlockCacheTag
(
$arParams
[
"IBLOCK_ID"
]),
"MULTI"
=>
"N"
)),
$arSectionFilter
,
false
,
array
(
'ID'
,
'DESCRIPTION'
,
'PICTURE'
,
'DETAIL_PICTURE'
,
'NAME'
,
'UF_BLOCKS'
,
'UF_FIRST_SCREEN'
,
'UF_TABLE_PRICE'
,
'UF_SCHEME'
,
'UF_FAQ'
,
'UF_ADVANTAGES'
),
true
);
CScorp
::
AddMeta
(
CScorp
::
AddMeta
(
array
(
array
(
...
@@ -77,7 +77,7 @@ CScorp::AddMeta(
...
@@ -77,7 +77,7 @@ CScorp::AddMeta(
"PAGER_SHOW_ALL"
=>
"N"
,
"PAGER_SHOW_ALL"
=>
"N"
,
"PAGER_TEMPLATE"
=>
".default"
,
"PAGER_TEMPLATE"
=>
".default"
,
"PAGER_TITLE"
=>
"Страница"
,
"PAGER_TITLE"
=>
"Страница"
,
"PROPERTY_CODE"
=>
array
(
"PRICE"
,
""
),
"PROPERTY_CODE"
=>
array
(
"PRICE"
,
"
TITLE_PHOTO
"
),
"SET_BROWSER_TITLE"
=>
"N"
,
"SET_BROWSER_TITLE"
=>
"N"
,
"SET_CANONICAL_URL"
=>
"N"
,
"SET_CANONICAL_URL"
=>
"N"
,
"SET_LAST_MODIFIED"
=>
"N"
,
"SET_LAST_MODIFIED"
=>
"N"
,
...
@@ -107,6 +107,7 @@ CScorp::AddMeta(
...
@@ -107,6 +107,7 @@ CScorp::AddMeta(
'FAQ'
=>
$arSection
[
'UF_FAQ'
],
'FAQ'
=>
$arSection
[
'UF_FAQ'
],
'TABLE_PRICE'
=>
$arSection
[
'UF_TABLE_PRICE'
],
'TABLE_PRICE'
=>
$arSection
[
'UF_TABLE_PRICE'
],
'IS_DETAIL'
=>
false
,
'IS_DETAIL'
=>
false
,
'ADVANTAGES'
=>
$arSection
[
"UF_ADVANTAGES"
]
)
)
)
)
);
?>
);
?>
...
...
bitrix/templates/aspro-scorp/css/custom.css
View file @
7e7985c6
...
@@ -212,12 +212,8 @@ section.counters + div .h3 {
...
@@ -212,12 +212,8 @@ section.counters + div .h3 {
.banners-small
.item
.image
img
{
.banners-small
.item
.image
img
{
max-width
:
100%
;
max-width
:
100%
;
}
}
.advantages
{
margin-bottom
:
20px
;
}
.advantages__title
{
margin-bottom
:
0
;
}
.service-description
{
.service-description
{
margin-bottom
:
60px
;
margin-bottom
:
60px
;
}
}
...
@@ -261,7 +257,8 @@ section.counters + div .h3 {
...
@@ -261,7 +257,8 @@ section.counters + div .h3 {
}
}
.table
table
{
.table
table
{
width
:
100%
;
width
:
100%
;
border-bottom
:
1px
solid
#009cd5
;
border
:
1px
solid
rgba
(
25
,
89
,
161
,
.3
);
border-width
:
1px
;
}
}
.table
th
{
.table
th
{
background-color
:
#1959a1
;
background-color
:
#1959a1
;
...
@@ -280,16 +277,16 @@ section.counters + div .h3 {
...
@@ -280,16 +277,16 @@ section.counters + div .h3 {
height
:
160px
;
height
:
160px
;
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.is_active
.service-description__
button
{
.is_active
.service-description__
more
{
display
:
block
;
display
:
block
;
}
}
.service-description
:not
(
.is_active
)
.service-description__
button
{
.service-description
:not
(
.is_active
)
.service-description__
more
{
display
:
none
display
:
none
}
}
.service-description
:not
(
.is_active
)
.service-description__tex
{
.service-description
:not
(
.is_active
)
.service-description__tex
{
height
:
auto
;
height
:
auto
;
}
}
.service-description__
button
{
.service-description__
more
{
width
:
100%
;
width
:
100%
;
text-align
:
left
;
text-align
:
left
;
border
:
none
;
border
:
none
;
...
@@ -300,10 +297,10 @@ section.counters + div .h3 {
...
@@ -300,10 +297,10 @@ section.counters + div .h3 {
transition
:
all
.3s
;
transition
:
all
.3s
;
position
:
relative
;
position
:
relative
;
}
}
.service-description__
button
:hover
{
.service-description__
more
:hover
{
color
:
#000
;
color
:
#000
;
}
}
.service-description__
button
::before
{
.service-description__
more
::before
{
content
:
''
;
content
:
''
;
position
:
absolute
;
position
:
absolute
;
top
:
-60px
;
top
:
-60px
;
...
...
include/blocks.php
View file @
7e7985c6
...
@@ -21,11 +21,14 @@ if ($blocks) {
...
@@ -21,11 +21,14 @@ if ($blocks) {
}
}
switch
(
$block
[
'ID'
])
{
switch
(
$block
[
'ID'
])
{
case
$mapBlocks
[
'ADVANTAGES'
]
:
?>
case
$mapBlocks
[
'ADVANTAGES'
]
:
?>
<section
class=
"advantages"
>
<h2
class=
"title-block underline advantages__title"
>
Наши преимущества
</h2>
<?
<?
$APPLICATION
->
IncludeComponent
(
if
(
$arParams
[
'ADVANTAGES'
])
{
global
$filterAdvantages
;
$filterAdvantages
[
'ID'
]
=
$arParams
[
'ADVANTAGES'
];
$APPLICATION
->
IncludeComponent
(
"bitrix:news.list"
,
"bitrix:news.list"
,
"
front-banners-small
"
,
"
advantages
"
,
array
(
array
(
"ACTIVE_DATE_FORMAT"
=>
"d.m.Y"
,
"ACTIVE_DATE_FORMAT"
=>
"d.m.Y"
,
"ADD_SECTIONS_CHAIN"
=>
"N"
,
"ADD_SECTIONS_CHAIN"
=>
"N"
,
...
@@ -43,13 +46,13 @@ if ($blocks) {
...
@@ -43,13 +46,13 @@ if ($blocks) {
"DISPLAY_BOTTOM_PAGER"
=>
"N"
,
"DISPLAY_BOTTOM_PAGER"
=>
"N"
,
"DISPLAY_TOP_PAGER"
=>
"N"
,
"DISPLAY_TOP_PAGER"
=>
"N"
,
"FIELD_CODE"
=>
array
(
0
=>
"NAME"
,
1
=>
""
,),
"FIELD_CODE"
=>
array
(
0
=>
"NAME"
,
1
=>
""
,),
"FILTER_NAME"
=>
""
,
"FILTER_NAME"
=>
"
filterAdvantages
"
,
"HIDE_LINK_WHEN_NO_DETAIL"
=>
"N"
,
"HIDE_LINK_WHEN_NO_DETAIL"
=>
"N"
,
"IBLOCK_ID"
=>
CCache
::
$arIBlocks
[
SITE_ID
][
"aspro_scorp_content"
][
"aspro_scorp_advtsmall"
][
0
]
,
"IBLOCK_ID"
=>
ADVANTAGES_ID
,
"IBLOCK_TYPE"
=>
"
aspro_scorp_content
"
,
"IBLOCK_TYPE"
=>
"
info
"
,
"INCLUDE_IBLOCK_INTO_CHAIN"
=>
"N"
,
"INCLUDE_IBLOCK_INTO_CHAIN"
=>
"N"
,
"INCLUDE_SUBSECTIONS"
=>
"N"
,
"INCLUDE_SUBSECTIONS"
=>
"N"
,
"NEWS_COUNT"
=>
"
4
"
,
"NEWS_COUNT"
=>
"
100
"
,
"PAGER_DESC_NUMBERING"
=>
"N"
,
"PAGER_DESC_NUMBERING"
=>
"N"
,
"PAGER_DESC_NUMBERING_CACHE_TIME"
=>
"3600000"
,
"PAGER_DESC_NUMBERING_CACHE_TIME"
=>
"3600000"
,
"PAGER_SHOW_ALL"
=>
"N"
,
"PAGER_SHOW_ALL"
=>
"N"
,
...
@@ -68,25 +71,29 @@ if ($blocks) {
...
@@ -68,25 +71,29 @@ if ($blocks) {
"SORT_BY1"
=>
"SORT"
,
"SORT_BY1"
=>
"SORT"
,
"SORT_BY2"
=>
"ID"
,
"SORT_BY2"
=>
"ID"
,
"SORT_ORDER1"
=>
"ASC"
,
"SORT_ORDER1"
=>
"ASC"
,
"SORT_ORDER2"
=>
"ASC"
"SORT_ORDER2"
=>
"ASC"
,
'BLOCK_TITLE'
=>
'Наши преимущества'
)
)
);
?>
);
</section>
}
?>
<?
break
;
<?
break
;
case
$mapBlocks
[
'CONTENT'
]
:
?>
case
$mapBlocks
[
'CONTENT'
]
:
?>
<?php
if
(
$arParams
[
'CONTENT'
][
'TITLE'
]
&&
$arParams
[
'CONTENT'
][
'TEXT'
])
:
?>
<?php
if
(
$arParams
[
'CONTENT'
][
'TITLE'
]
&&
$arParams
[
'CONTENT'
][
'TEXT'
])
:
?>
<article
class=
"service-description"
data-text=
"root"
>
<article
class=
"service-description"
data-text=
"root"
>
<h1
class=
"title-block underline"
>
<?php
echo
$arParams
[
'CONTENT'
][
'TITLE'
]
?>
</h1>
<h1
class=
"title-block underline"
>
<?php
echo
$arParams
[
'CONTENT'
][
'TITLE'
]
?>
</h1>
<div class="
service
-
description__text
" data-text="
content
"><?php echo
$arParams['CONTENT']['TEXT']
?></div>
<div
class=
"service-description__text"
<button type="
button
" class="
service
-
description__button
" data-text="
button
">Читать далее</button>
data-text=
"content"
>
<?php
echo
$arParams
[
'CONTENT'
][
'TEXT'
]
?>
</div>
<button
type=
"button"
class=
"service-description__more"
data-text=
"button"
>
Читать далее
</button>
</article>
</article>
<?php endif?>
<?php
endif
?>
<?
break
;
<?
break
;
case
$mapBlocks
[
'SERVICES'
]
:
?>
case
$mapBlocks
[
'SERVICES'
]
:
?>
<section
class=
"service-items"
>
<section
class=
"service-items"
>
<h2
class=
"title-block underline service-items__title"
>
Наши услуги
</h2>
<h2
class=
"title-block underline service-items__title"
>
Наши услуги
</h2>
<?php
<?php
if(
$arParams['IS_DETAIL']
) {
if
(
$arParams
[
'IS_DETAIL'
])
{
global
$filterService
;
global
$filterService
;
$filterService
[
'!=ID'
]
=
$arParams
[
'ID'
];
$filterService
[
'!=ID'
]
=
$arParams
[
'ID'
];
}
}
...
@@ -162,7 +169,7 @@ if ($blocks) {
...
@@ -162,7 +169,7 @@ if ($blocks) {
<?
break
;
<?
break
;
case
$mapBlocks
[
'TABLE'
]
:
?>
case
$mapBlocks
[
'TABLE'
]
:
?>
<?php
<?php
if(
$arParams['TABLE_PRICE']
) {
if
(
$arParams
[
'TABLE_PRICE'
])
{
$APPLICATION
->
IncludeComponent
(
$APPLICATION
->
IncludeComponent
(
"bitrix:news.detail"
,
"bitrix:news.detail"
,
"table-price"
,
"table-price"
,
...
@@ -190,7 +197,7 @@ if ($blocks) {
...
@@ -190,7 +197,7 @@ if ($blocks) {
"ELEMENT_CODE"
=>
""
,
"ELEMENT_CODE"
=>
""
,
"ELEMENT_ID"
=>
$arParams
[
'TABLE_PRICE'
],
"ELEMENT_ID"
=>
$arParams
[
'TABLE_PRICE'
],
"FIELD_CODE"
=>
array
(
"ID"
),
"FIELD_CODE"
=>
array
(
"ID"
),
"
IBLOCK_ID
" =>
"
34
"
,
"IBLOCK_ID"
=>
TABLE_PRICE_ID
,
"IBLOCK_TYPE"
=>
"info"
,
"IBLOCK_TYPE"
=>
"info"
,
"IBLOCK_URL"
=>
""
,
"IBLOCK_URL"
=>
""
,
"INCLUDE_IBLOCK_INTO_CHAIN"
=>
"N"
,
"INCLUDE_IBLOCK_INTO_CHAIN"
=>
"N"
,
...
@@ -215,11 +222,11 @@ if ($blocks) {
...
@@ -215,11 +222,11 @@ if ($blocks) {
"USE_SHARE"
=>
"N"
"USE_SHARE"
=>
"N"
)
)
);
);
}?>
}
?>
<?
break
;
<?
break
;
case
$mapBlocks
[
'SCHEME'
]
:
?>
case
$mapBlocks
[
'SCHEME'
]
:
?>
<?php
<?php
if(
$arParams['SCHEME']
) {
if
(
$arParams
[
'SCHEME'
])
{
$APPLICATION
->
IncludeComponent
(
$APPLICATION
->
IncludeComponent
(
"bitrix:news.detail"
,
"bitrix:news.detail"
,
"scheme"
,
"scheme"
,
...
@@ -247,7 +254,7 @@ if ($blocks) {
...
@@ -247,7 +254,7 @@ if ($blocks) {
"ELEMENT_CODE"
=>
""
,
"ELEMENT_CODE"
=>
""
,
"ELEMENT_ID"
=>
$arParams
[
'SCHEME'
],
"ELEMENT_ID"
=>
$arParams
[
'SCHEME'
],
"FIELD_CODE"
=>
array
(
"ID"
),
"FIELD_CODE"
=>
array
(
"ID"
),
"
IBLOCK_ID
" =>
"
35
"
,
"IBLOCK_ID"
=>
SCHEME_ID
,
"IBLOCK_TYPE"
=>
"info"
,
"IBLOCK_TYPE"
=>
"info"
,
"IBLOCK_URL"
=>
""
,
"IBLOCK_URL"
=>
""
,
"INCLUDE_IBLOCK_INTO_CHAIN"
=>
"N"
,
"INCLUDE_IBLOCK_INTO_CHAIN"
=>
"N"
,
...
@@ -272,7 +279,7 @@ if ($blocks) {
...
@@ -272,7 +279,7 @@ if ($blocks) {
"USE_SHARE"
=>
"N"
"USE_SHARE"
=>
"N"
)
)
);
);
}?>
}
?>
<?
break
;
<?
break
;
case
$mapBlocks
[
'ACTIONS'
]
:
?>
case
$mapBlocks
[
'ACTIONS'
]
:
?>
<?php
<?php
...
@@ -305,7 +312,7 @@ if ($blocks) {
...
@@ -305,7 +312,7 @@ if ($blocks) {
),
),
"FILTER_NAME"
=>
""
,
"FILTER_NAME"
=>
""
,
"HIDE_LINK_WHEN_NO_DETAIL"
=>
"N"
,
"HIDE_LINK_WHEN_NO_DETAIL"
=>
"N"
,
"
IBLOCK_ID
" =>
"
30
"
,
"IBLOCK_ID"
=>
ACTIONS_ID
,
"IBLOCK_TYPE"
=>
"aspro_scorp_content"
,
"IBLOCK_TYPE"
=>
"aspro_scorp_content"
,
"IMAGE_POSITION"
=>
"left"
,
"IMAGE_POSITION"
=>
"left"
,
"INCLUDE_IBLOCK_INTO_CHAIN"
=>
"N"
,
"INCLUDE_IBLOCK_INTO_CHAIN"
=>
"N"
,
...
@@ -378,7 +385,7 @@ if ($blocks) {
...
@@ -378,7 +385,7 @@ if ($blocks) {
),
),
"FILTER_NAME"
=>
""
,
"FILTER_NAME"
=>
""
,
"HIDE_LINK_WHEN_NO_DETAIL"
=>
"N"
,
"HIDE_LINK_WHEN_NO_DETAIL"
=>
"N"
,
"
IBLOCK_ID
" =>
"
5
"
,
"IBLOCK_ID"
=>
SERTIFICATES_ID
,
"IBLOCK_TYPE"
=>
"aspro_scorp_content"
,
"IBLOCK_TYPE"
=>
"aspro_scorp_content"
,
"IMAGE_POSITION"
=>
"left"
,
"IMAGE_POSITION"
=>
"left"
,
"INCLUDE_IBLOCK_INTO_CHAIN"
=>
"N"
,
"INCLUDE_IBLOCK_INTO_CHAIN"
=>
"N"
,
...
@@ -451,7 +458,7 @@ if ($blocks) {
...
@@ -451,7 +458,7 @@ if ($blocks) {
),
),
"FILTER_NAME"
=>
""
,
"FILTER_NAME"
=>
""
,
"HIDE_LINK_WHEN_NO_DETAIL"
=>
"N"
,
"HIDE_LINK_WHEN_NO_DETAIL"
=>
"N"
,
"
IBLOCK_ID
" =>
"
29
"
,
"IBLOCK_ID"
=>
SPECIALISTS_ID
,
"IBLOCK_TYPE"
=>
"aspro_scorp_content"
,
"IBLOCK_TYPE"
=>
"aspro_scorp_content"
,
"IMAGE_POSITION"
=>
"left"
,
"IMAGE_POSITION"
=>
"left"
,
"INCLUDE_IBLOCK_INTO_CHAIN"
=>
"N"
,
"INCLUDE_IBLOCK_INTO_CHAIN"
=>
"N"
,
...
@@ -523,7 +530,7 @@ if ($blocks) {
...
@@ -523,7 +530,7 @@ if ($blocks) {
),
),
"FILTER_NAME"
=>
""
,
"FILTER_NAME"
=>
""
,
"HIDE_LINK_WHEN_NO_DETAIL"
=>
"N"
,
"HIDE_LINK_WHEN_NO_DETAIL"
=>
"N"
,
"
IBLOCK_ID
" =>
"
10
"
,
"IBLOCK_ID"
=>
REVIEWS_ID
,
"IBLOCK_TYPE"
=>
"aspro_scorp_content"
,
"IBLOCK_TYPE"
=>
"aspro_scorp_content"
,
"IMAGE_POSITION"
=>
"left"
,
"IMAGE_POSITION"
=>
"left"
,
"INCLUDE_IBLOCK_INTO_CHAIN"
=>
"N"
,
"INCLUDE_IBLOCK_INTO_CHAIN"
=>
"N"
,
...
@@ -592,7 +599,7 @@ if ($blocks) {
...
@@ -592,7 +599,7 @@ if ($blocks) {
),
),
"FILTER_NAME"
=>
""
,
"FILTER_NAME"
=>
""
,
"HIDE_LINK_WHEN_NO_DETAIL"
=>
"N"
,
"HIDE_LINK_WHEN_NO_DETAIL"
=>
"N"
,
"
IBLOCK_ID
" =>
6
,
"IBLOCK_ID"
=>
CLIENTS_ID
,
"IBLOCK_TYPE"
=>
"aspro_scorp_content"
,
"IBLOCK_TYPE"
=>
"aspro_scorp_content"
,
"INCLUDE_IBLOCK_INTO_CHAIN"
=>
"N"
,
"INCLUDE_IBLOCK_INTO_CHAIN"
=>
"N"
,
"INCLUDE_SUBSECTIONS"
=>
"Y"
,
"INCLUDE_SUBSECTIONS"
=>
"Y"
,
...
@@ -636,7 +643,7 @@ if ($blocks) {
...
@@ -636,7 +643,7 @@ if ($blocks) {
<?
break
;
<?
break
;
case
$mapBlocks
[
'FAQ'
]
:
?>
case
$mapBlocks
[
'FAQ'
]
:
?>
<?php
//Faq
<?php
//Faq
if(
$arParams['FAQ']
) {
if
(
$arParams
[
'FAQ'
])
{
global
$filterFaq
;
global
$filterFaq
;
$filterFaq
[
'ID'
]
=
$arParams
[
'FAQ'
];
$filterFaq
[
'ID'
]
=
$arParams
[
'FAQ'
];
...
@@ -669,7 +676,7 @@ if ($blocks) {
...
@@ -669,7 +676,7 @@ if ($blocks) {
),
),
"FILTER_NAME"
=>
"filterFaq"
,
"FILTER_NAME"
=>
"filterFaq"
,
"HIDE_LINK_WHEN_NO_DETAIL"
=>
"N"
,
"HIDE_LINK_WHEN_NO_DETAIL"
=>
"N"
,
"
IBLOCK_ID
" =>
"
7
"
,
"IBLOCK_ID"
=>
FAQ_ID
,
"IBLOCK_TYPE"
=>
"aspro_scorp_content"
,
"IBLOCK_TYPE"
=>
"aspro_scorp_content"
,
"IMAGE_POSITION"
=>
"left"
,
"IMAGE_POSITION"
=>
"left"
,
"INCLUDE_IBLOCK_INTO_CHAIN"
=>
"N"
,
"INCLUDE_IBLOCK_INTO_CHAIN"
=>
"N"
,
...
@@ -709,7 +716,7 @@ if ($blocks) {
...
@@ -709,7 +716,7 @@ if ($blocks) {
),
),
false
false
);
);
}?>
}
?>
<?
break
;
<?
break
;
}
}
...
...
local/php_interface/include/constants.php
View file @
7e7985c6
...
@@ -2,3 +2,12 @@
...
@@ -2,3 +2,12 @@
if
(
!
defined
(
"B_PROLOG_INCLUDED"
)
||
B_PROLOG_INCLUDED
!==
true
)
die
();
if
(
!
defined
(
"B_PROLOG_INCLUDED"
)
||
B_PROLOG_INCLUDED
!==
true
)
die
();
define
(
"HLB_BLOCKS_ID"
,
1
);
define
(
"HLB_BLOCKS_ID"
,
1
);
define
(
"ADVANTAGES_ID"
,
36
);
define
(
"TABLE_PRICE_ID"
,
34
);
define
(
"SCHEME_ID"
,
35
);
define
(
"ACTIONS_ID"
,
30
);
define
(
"SERTIFICATES_ID"
,
5
);
define
(
"SPECIALISTS_ID"
,
29
);
define
(
"REVIEWS_ID"
,
10
);
define
(
"CLIENTS_ID"
,
6
);
define
(
"FAQ_ID"
,
7
);
Михаил Ливач
@maus
mentioned in commit
11eb810b
·
Aug 18, 2023
mentioned in commit
11eb810b
mentioned in commit 11eb810bf21e0fda989f8d9d68e6baa5bd5cb31a
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment