V
V
viktorulyushev2016-11-23 09:53:41
1C-Bitrix
viktorulyushev, 2016-11-23 09:53:41

Why is the infoblock not highlighted?

87caf93185a444a498ea43b33a8fc25b.PNG
I added an infoblock to the site, everything works fine, but why is it not highlighted as it usually happens on hover? + There is a huge indent from the bottom, although this is already the end of the page

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita, 2016-11-23
@Rema1ns

perhaps because of the float, the height is zero, or something else interrupts, without a link and a listing, it remains only to wang on the screen

V
viktorulyushev, 2016-11-23
@viktorulyushev

template code

<?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"]):?>
<div class="services post-left">
<?foreach($arResult["ITEMS"] as $cell=>$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')));
  ?>
    <div class="s_item">
        <?if(is_array($arItem["PREVIEW_PICTURE"])):?>
        <img src="<?=$arItem["PREVIEW_PICTURE"]["SRC"]?>"
          alt="<?=$arItem["PREVIEW_PICTURE"]["ALT"]?>"
          title="<?=$arItem["PREVIEW_PICTURE"]["TITLE"]?>"
          />
      <?endif;?>
      <?if($arParams["DISPLAY_PREVIEW_TEXT"]!="N" && $arItem["PREVIEW_TEXT"]):?>
        <p><?echo $arItem["PREVIEW_TEXT"];?></p>
      <?endif;?>
    </div>
<?endforeach;?>
</div>
<?if($arParams["DISPLAY_BOTTOM_PAGER"]):?>
  <?=$arResult["NAV_STRING"]?>
<?endif;?>
<?endif;?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question