Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: @kofes
  5. * Date: 07.12.18
  6. * Time: 14:26
  7. */
  8. ?>
  9. <?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();?>
  10. <div class="container brands">
  11. <div class="row">
  12. <div class="col-12 col-tb-1">
  13. <h3 class="flippedTitle brands__flippedTitle">Бренды</h3>
  14. </div>
  15. <div class="col-1 justify-content-center align-items-center d-none d-tb-flex">
  16. <svg class="icon icon-arrow_small_left brands__arrow brands__prev">
  17. <use xlink:href="<?=SITE_TEMPLATE_PATH?>/assets/img/symbol/sprite.svg#arrow_small_left"></use>
  18. </svg>
  19. </div>
  20. <div class="col-12 col-tb-9">
  21. <ul class="brands__slider">
  22. <? foreach ($arResult['ITEMS'] as $arItem): ?>
  23. <?
  24. $this->AddEditAction($arItem['ID'], $arItem['EDIT_LINK'], $strElementEdit);
  25. $this->AddDeleteAction($arItem['ID'], $arItem['DELETE_LINK'], $strElementDelete, $arElementDeleteParams);
  26. ?>
  27. <li id="<?=$this->GetEditAreaId($arItem['ID'])?>"
  28. class="brands__slide">
  29. <?if(!empty($arItem['PROPERTIES']['LINK']['VALUE'])):?>
  30. <a href="<?=$arItem['PROPERTIES']['LINK']['VALUE']?>">
  31. <?endif;?>
  32. <div class="brands__item" style="background-image:url("<?=$arItem['PREVIEW_PICTURE']['SRC']?>")"></div>
  33. <?if(!empty($arItem['PROPERTIES']['LINK']['VALUE'])):?>
  34. </a>
  35. <?endif;?>
  36. </li>
  37. <? endforeach; ?>
  38. </ul>
  39. </div>
  40. <div class="col-1 justify-content-center align-items-center d-none d-tb-block d-none d-tb-flex">
  41. <svg class="icon icon-arrow_small_right brands__arrow brands__next">
  42. <use xlink:href="<?=SITE_TEMPLATE_PATH?>/assets/img/symbol/sprite.svg#arrow_small_right"></use>
  43. </svg>
  44. </div>
  45. </div>
  46. <div class="brands__dotsMobile"></div>
  47. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement