Commit c9904e1e authored by Михаил Ливач's avatar Михаил Ливач

новый вывод блока CONTENT, из двух частей

parent a5e98af4
...@@ -85,13 +85,19 @@ if ($blocks) { ...@@ -85,13 +85,19 @@ if ($blocks) {
<? break; <? break;
case $mapBlocks['CONTENT']: ?> case $mapBlocks['CONTENT']: ?>
<?php if ($arParams['CONTENT']['TEXT']): ?> <?php if ($arParams['CONTENT']['HIDABLE_TEXT']): ?>
<article class="service-description" data-text="root"> <article class="service-description" data-text="root">
<div class="service-description__text" <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> <button type="button" class="service-description__more" data-text="button">Читать далее</button>
</article> </article>
<?php endif ?> <?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; <? break;
case $mapBlocks['SERVICES']: ?> case $mapBlocks['SERVICES']: ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment