I
I
Igor Mamontov2014-04-23 20:55:24
PHP
Igor Mamontov, 2014-04-23 20:55:24

How to change block header in Bitrix CMS?

The site has 2 blocks: top products and new arrivals, blocks display the name through arParams.

<section class="content-items-slider goods-items">
            <header class="content-header">
        <h2><?=$arParams['TITLE_NAME']?></h2>
            </header>

            <div class="controls">
              <div class="marker prev"></div>
              <div class="marker next"></div>
            </div>
             <section class="content-items-wrapper">
              <div class="items-inner-wrapper">
<?foreach($arResult["ITEMS"] as $cell=>$arElement):?>
    <?
    $this->AddEditAction($arElement['ID'], $arElement['EDIT_LINK'], CIBlock::GetArrayByID($arParams["IBLOCK_ID"], "ELEMENT_EDIT"));
    $this->AddDeleteAction($arElement['ID'], $arElement['DELETE_LINK'], CIBlock::GetArrayByID($arParams["IBLOCK_ID"], "ELEMENT_DELETE"), array("CONFIRM" => GetMessage('CT_BCS_ELEMENT_DELETE_CONFIRM')));
    ?>
    <figure  id="<?=$this->GetEditAreaId($arElement['ID']);?>" class="goods-item-preview item-preview">
                  <div class="inner-wrapper">
                    <div class="img-prewiev">
                      <div class="ie-bg"></div>
                     <a href="<?=$arElement['DETAIL_PAGE_URL']?>">
                     <img width="140" src="/upload/images/<?=$arElement['PROPERTIES']['PHOTO']['VALUE']['0']?>">
                    </a>
                    </div>

                    <a href="<?=$arElement['DETAIL_PAGE_URL']?>" class="goods-title"><?=$arElement['NAME']?></a>
                  </div>
                  <div class="googs-price">
                       <?if(CSite::InGroup(array(5))&&$arElement['PROPERTIES']['PRICE_OPT']['VALUE']!=""){?>
                  <?=number_format($arElement['PROPERTIES']['PRICE_OPT']['VALUE'],2,' ','.')?> руб.
                  <?}else{foreach($arElement["PRICES"] as $code=>$arPrice):?>
          <?if($arPrice["CAN_ACCESS"]):?>
            <?if($arPrice["DISCOUNT_VALUE"] < $arPrice["VALUE"]):?>
              <s><?=$arPrice["PRINT_VALUE"]?></s><br/> <?=$arPrice["PRINT_DISCOUNT_VALUE"]?>
            <?else:?> <?=$arPrice["PRINT_VALUE"]?><?endif;?>
            
          <?endif;?>
        <?endforeach;}?>
                 </div>
                </figure>
 
  <?endforeach;?>
 </div>
            </section>
          </section>

Where can I find a line for editing these inscriptions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
m-haritonov, 2014-04-23
@m-haritonov

<h2><?=$arParams['TITLE_NAME']?></h2>
It?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question