Пример #1
0
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<?if ($arResult["ITEMS"]):?>
    <div class="outer-content-wrapper item-cross">
        <div class="content-wrapper">
            <p class="section-header">Ваc также может заинтересовать</p>
            <div class="item-cards-list-cnt">
                <ul class="item-cards-list js-item-cards-slider">
                    <?foreach ($arResult["ITEMS"] as $key => $arItems) :?>
                        <li class="item-card-item">
                            <a href="<?=$arItems["DETAIL_PAGE_URL"]?>">
                                <?
                                    //$waterImage = waterImage($arItems["~PREVIEW_PICTURE"]);
                                    // $waterImage["src"]
                                    $waterImage["src"] = CFIle::GetPath($arItems["~PREVIEW_PICTURE"]);
                                ?>
                                <div class="img-cnt">
                                    <img src="/img/img_dummy.png" src="<?=$waterImage["src"]?>" alt=""/>
                                </div>
                                <div class="item-info">
                                    <p class="item-brand">Артикул <?=$arItems["PROPERTIES"]["ARTIKUL"]["VALUE"]?></p>
                                    <p class="item-desc"><?=$arItems["NAME"]?></p>
                                    <p class="item-price"><span><?=number_format($arItems["PRICES"]["BASE"]["VALUE"], 0, 0, " ")?></span> руб.</p>
                                    <?if ($arItems["PRICES"]["BASE"]["DISCOUNT_VALUE"] < $arItems["PRICES"]["BASE"]["VALUE"]):?>
                                        <p class="old-price"><span><?=number_format($arItems["PRICES"]["BASE"]["VALUE"], 0, 0, " ")?></span> руб.</p>
                                    <?endif?>
                                </div>
                                <?if ($arItems["PROPERTIES"]["HIT"]["VALUE"]):?>
                                    <div class="item-card-badge hit">Хит продаж</div>
                                <?endif?>
                                <?if ($arItems["PROPERTIES"]["NEW"]["VALUE"]):?>
                                    <div class="item-card-badge new">Новинка</div>
Пример #2
0
            "PROPERTY_BRAND_VALUE" => array($CURRENT_BRAND["VALUE"])
        )
    );
    $el = $elements -> GetNext();

    if ($el != false) {
        $sect = GetIBlockSection($l["ID"]);
        $list_subsections_filtered[] = $sect;
    }
}
?>
<h1><?=$CURRENT_BRAND["VALUE"]?></h1>
<div class="item-cards-list-cnt">
    <ul class="item-cards-list matrix categories">
        <?foreach ($list_subsections_filtered as $subsection) :
            $url = strtolower($subsection["SECTION_PAGE_URL"] . $CURRENT_BRAND["XML_ID"] . "/");

            ?>
            <li class="item-card-item">
                <a href="<?=$url?>">
                    <div class="img-cnt">
                        <img src="/img/img_dummy.png" data-src="<?=CFIle::GetPath($subsection["~PICTURE"])?>" alt=""/></div>
                    <div class="item-info">
                        <p class="category"><?=$subsection["NAME"] . " " . $CURRENT_BRAND["VALUE"]?></p>
                    </div>
                </a>
            </li>
        <?endforeach?>
    </ul>
</div>
Пример #3
0
                        <ul class="top-nav-sublist">
                            <?foreach ($arResult["SECTIONS"] as $arSec) :?>
                                <?if ($arSec["DEPTH_LEVEL"] == 2 && $arSections["ID"] == $arSec["IBLOCK_SECTION_ID"]):
                                    $counter = $counter + 1;
                                    ?>
                                    <li class="<?if ($arSec["SELECTED"]): echo 'active';endif;?>">
                                        <a href="<?=$arSec["SECTION_PAGE_URL"]?>" class="<?if ($arSec["SELECTED"]): echo 'active';endif;?>">
                                            <?=$arSec["NAME"]?>
                                        </a>
                                    </li>
                                    <?if ($counter == 7) { echo '</ul><ul class="top-nav-sublist">'; $counter = 0; } ?>
                                <?endif?>
                            <?endforeach?>
                        </ul>
                    </div>
					<? if ($arSections['UF_GOTO_LINK']) {?>
						<div class="top-nav-img-wrapper bg-cover" style="background-image: url('<?=CFIle::GetPath($arSections["~PICTURE"])?>'); cursor: pointer;" onclick="location.href='<?=$arSections['UF_GOTO_LINK']?>'"></div>						
					<?} else {?>
						<div class="top-nav-img-wrapper bg-cover" style="background-image: url('<?=CFIle::GetPath($arSections["~PICTURE"])?>');"></div>
					<?}?>
                </div>
            </div>
        </li>
    <?elseif ($arSections["DEPTH_LEVEL"] == 0):?>
        <li class="<?if ($arSections["SELECTED"]): echo 'active ';endif;if ($arSections["NAME"] == "Sale"): echo 'marked';endif;?>">
            <a href="<?=$arSections["SECTION_PAGE_URL"]?>" class="<?if ($arSections["SELECTED"]): echo 'active';endif;?>">
                <?=$arSections["NAME"]?>
            </a>
        </li>
    <?endif?>
<?endforeach?>
Пример #4
0
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<? include_once($_SERVER["DOCUMENT_ROOT"]."/include/getTitle_and_getAlt.php"); ?>
<?if ($arResult["ITEMS"]):?>
	<?foreach ($arResult["ITEMS"] as $key => $arItems) :?>
		<h2><?=$arItems["NAME"]?></h2>
		<?if ($arItems["~DETAIL_PICTURE"]):?>
			<?if ($arItems["PROPERTIES"]["LINK"]["~VALUE"]):?>
				<a href="<?=$arItems["PROPERTIES"]["LINK"]["~VALUE"]?>" style="float:right;">
	        		<img src="<?=CFIle::GetPath($arItems["~DETAIL_PICTURE"])?>" alt="<?=getAlt($arItems)?>" title="<?=getTitle($arItems)?>"/>
	        	</a>
	        <?else:?>
				<img src="<?=CFIle::GetPath($arItems["~DETAIL_PICTURE"])?>" alt="<?=getAlt($arItems)?>" title="<?=getTitle($arItems)?>"/>
	        <?endif?>
        <?endif?>
        <?=$arItems["DETAIL_TEXT"]?>
	<?endforeach?>
<?endif?>