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
41f04af6
Commit
41f04af6
authored
Aug 11, 2023
by
Ольга
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Заголовок для преимуществ
parent
69b00909
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
style.css
...ro-scorp/components/bitrix/news.list/advantages/style.css
+1
-1
detail.php
...o-scorp/components/bitrix/news/services-blocks/detail.php
+2
-1
section.php
...-scorp/components/bitrix/news/services-blocks/section.php
+2
-1
blocks.php
include/blocks.php
+1
-1
No files found.
bitrix/templates/aspro-scorp/components/bitrix/news.list/advantages/style.css
View file @
41f04af6
...
...
@@ -11,7 +11,7 @@
list-style
:
none
;
display
:
flex
;
align-items
:
center
;
width
:
25
%
;
width
:
50
%
;
margin-bottom
:
20px
;
padding-right
:
20px
;
min-width
:
250px
;
...
...
bitrix/templates/aspro-scorp/components/bitrix/news/services-blocks/detail.php
View file @
41f04af6
...
...
@@ -3,7 +3,7 @@
<?
// get element
$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'
,
'PROPERTY_ADVANTAGES'
,
'PROPERTY_ACTIONS'
,
'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'
,
'PROPERTY_TITLE_ADVANTAGES'
,
'PROPERTY_ACTIONS'
,
'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
);
$isTitle
=
false
;
...
...
@@ -119,6 +119,7 @@ $isTitle = false;
'TABLE_PRICE' =>
$arElement["PROPERTY_TABLE_PRICE_VALUE"]
,
'IS_DETAIL' => true,
'ADVANTAGES' =>
$arElement["PROPERTY_ADVANTAGES_VALUE"]
,
'TITLE_ADVANTAGES' =>
$arElement["PROPERTY_TITLE_ADVANTAGES_VALUE"]
,
'ACTIONS' =>
$arElement["PROPERTY_ACTIONS_VALUE"]
)
)
...
...
bitrix/templates/aspro-scorp/components/bitrix/news/services-blocks/section.php
View file @
41f04af6
...
...
@@ -5,7 +5,7 @@
$arItemFilter
=
CScorp
::
GetCurrentSectionElementFilter
(
$arResult
[
"VARIABLES"
],
$arParams
);
$arSectionFilter
=
CScorp
::
GetCurrentSectionFilter
(
$arResult
[
"VARIABLES"
],
$arParams
);
$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'
,
'UF_ADVANTAGES'
,
'UF_ACTION'
),
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'
,
'UF_
TITLE_ADVANTAGES'
,
'UF_
ACTION'
),
true
);
CScorp
::
AddMeta
(
array
(
...
...
@@ -108,6 +108,7 @@ CScorp::AddMeta(
'TABLE_PRICE'
=>
$arSection
[
'UF_TABLE_PRICE'
],
'IS_DETAIL'
=>
false
,
'ADVANTAGES'
=>
$arSection
[
"UF_ADVANTAGES"
],
'TITLE_ADVANTAGES'
=>
$arSection
[
"UF_TITLE_ADVANTAGES"
],
'ACTIONS'
=>
$arSection
[
"UF_ACTION"
]
)
)
...
...
include/blocks.php
View file @
41f04af6
...
...
@@ -72,7 +72,7 @@ if ($blocks) {
"SORT_BY2"
=>
"ID"
,
"SORT_ORDER1"
=>
"ASC"
,
"SORT_ORDER2"
=>
"ASC"
,
'BLOCK_TITLE'
=>
'Наши преимущества'
'BLOCK_TITLE'
=>
(
$arParams
[
'TITLE_ADVANTAGES'
])
?
:
'Наши преимущества'
)
);
}
...
...
Михаил Ливач
@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