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
c9904e1e
Commit
c9904e1e
authored
Aug 14, 2023
by
Михаил Ливач
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
новый вывод блока CONTENT, из двух частей
parent
a5e98af4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
blocks.php
include/blocks.php
+8
-2
No files found.
include/blocks.php
View file @
c9904e1e
...
...
@@ -85,13 +85,19 @@ if ($blocks) {
<?
break
;
case
$mapBlocks
[
'CONTENT'
]
:
?>
<?php
if
(
$arParams
[
'CONTENT'
][
'TEXT'
])
:
?>
<?php
if
(
$arParams
[
'CONTENT'
][
'
HIDABLE_
TEXT'
])
:
?>
<article
class=
"service-description"
data-text=
"root"
>
<div
class=
"service-description__text"
data-text=
"content"
>
<?php
echo
$arParams
[
'CONTENT'
][
'TEXT'
]
?>
</div>
data-text=
"content"
>
<?php
echo
$arParams
[
'CONTENT'
][
'
HIDABLE_
TEXT'
]
?>
</div>
<button
type=
"button"
class=
"service-description__more"
data-text=
"button"
>
Читать далее
</button>
</article>
<?php
endif
?>
<?php
if
(
$arParams
[
'CONTENT'
][
'VISIBLE_TEXT'
])
:
?>
<article
class=
"service-description"
data-text=
"root"
>
<div
class=
"service-description__text"
data-text=
"content"
>
<?php
echo
$arParams
[
'CONTENT'
][
'VISIBLE_TEXT'
]
?>
</div>
</article>
<?php
endif
?>
<?
break
;
case
$mapBlocks
[
'SERVICES'
]
:
?>
...
...
Михаил Ливач
@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