Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2017
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.23 KB | None | 0 0
  1. <?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
  2. /** @var array $arParams */
  3. /** @var array $arResult */
  4. /** @global CMain $APPLICATION */
  5. /** @global CUser $USER */
  6. /** @global CDatabase $DB */
  7. /** @var CBitrixComponentTemplate $this */
  8. /** @var string $templateName */
  9. /** @var string $templateFile */
  10. /** @var string $templateFolder */
  11. /** @var string $componentPath */
  12. /** @var CBitrixComponent $component */
  13. if(method_exists($this, 'setFrameMode')) $this->setFrameMode(true);
  14.  
  15. include $_SERVER["DOCUMENT_ROOT"].SITE_TEMPLATE_PATH.'/include/debug_info_dynamic.php';
  16.  
  17. if(empty($arResult['ALL_ITEMS']))
  18. {
  19.     return false;
  20. }
  21. ?>
  22. <div id="categories" class="categories hidden-xs" data-categories-enabled="true">
  23.     <div class="container">
  24.         <div class="wrapper scroll-slider-wrap">
  25.             <div class="sly-scroll horizontal">
  26.                 <div class="sly-bar"></div>
  27.             </div>
  28.             <div class="scroll-slider frame">
  29.                     <div class="slider-content slidee slides">
  30.                         <?foreach($arResult['ALL_ITEMS_ID'] as $idItem_1=>$arItem_1):?>
  31.                              <div class="slide <?=is_array($arItem_1) && count($arItem_1) > 0 ? 'with-sub' : ''?>">
  32.                                  <?if (!empty($arResult['ALL_ITEMS'][$idItem_1]["PICTURE_BIG_IMG"]['SRC']) || !empty($arResult['ALL_ITEMS'][$idItem_1]["PICTURE_LARGE"]['SRC'])):?>
  33.                                      <div class="block-img-wrap">
  34.                                          <div class="opacity-wrap"></div>
  35.                                          <div class="category-img" style="background-image: url('<?=$arResult['ALL_ITEMS'][$idItem_1]["PICTURE_BIG_IMG"]['SRC'] ? $arResult['ALL_ITEMS'][$idItem_1]["PICTURE_BIG_IMG"]['SRC'] : $arResult['ALL_ITEMS'][$idItem_1]["PICTURE_LARGE"]['SRC'] ?>')"></div>
  36.                                          <img class="lazy" src="<?=ConsVar::showLoaderWithTemplatePath() ?>" data-original="<?=$arResult['ALL_ITEMS'][$idItem_1]["PICTURE_LARGE"]['SRC'] ? $arResult['ALL_ITEMS'][$idItem_1]["PICTURE_LARGE"]['SRC']  : $arResult['ALL_ITEMS'][$idItem_1]["PICTURE_BIG_IMG"]['SRC']?>"
  37.                                               alt="<?=$arResult['ALL_ITEMS'][$idItem_1]['PICTURE']['ALT']?>"
  38.                                               title="<?=$arResult['ALL_ITEMS'][$idItem_1]['PICTURE']['TITLE']?>">
  39.                                      </div>
  40.                                 <?endif?>
  41.                                  <div class="block-main-wrap">
  42.                                      <a class="main-wrap" href="<?=$arResult['ALL_ITEMS'][$idItem_1]['SECTION_PAGE_URL']?>">
  43.                                          <div class="img-wrap">
  44.                                             <?if (!empty($arResult['ALL_ITEMS'][$idItem_1]["PICTURE"]['SRC'])):?>
  45.                                                 <span data-picture data-alt="<?=$arResult['ALL_ITEMS'][$idItem_1]['PICTURE']['ALT']?>" data-title="<?=$arResult['ALL_ITEMS'][$idItem_1]['PICTURE']['TITLE']?>">
  46.                                                     <span data-src="<?=$arResult['ALL_ITEMS'][$idItem_1]["PICTURE"]['SRC']?>" data-title="<?=$arResult['ALL_ITEMS'][$idItem_1]['PICTURE']['TITLE']?>"></span>
  47.                                                     <span data-src="" data-media="(max-width: 767px)"></span>
  48.  
  49.                                                     <!-- Fallback content for non-JS browsers. Same img src as the initial, unqualified source element. -->
  50.                                                     <noscript>
  51.                                                         <img src="<?=$arResult['ALL_ITEMS'][$idItem_1]["PICTURE"]['SRC']?>" alt="<?=$arResult['ALL_ITEMS'][$idItem_1]['PICTURE']['ALT']?>" title="<?=$arResult['ALL_ITEMS'][$idItem_1]['PICTURE']['TITLE']?>">
  52.                                                     </noscript>
  53.                                                 </span>
  54.                                             <?endif?>
  55.                                          </div>
  56.                                          <div class="category-name">
  57.                                              <?=$arResult['ALL_ITEMS'][$idItem_1]['NAME']?>
  58.                                              <span class="btn-expand"></span>
  59.                                          </div>
  60.                                      </a>
  61.                                          <?if (is_array($arItem_1) && count($arItem_1) > 0):?>
  62.                                             <div class="category-sub">
  63.                                                 <ul>
  64.                                                     <?foreach($arItem_1 as $idItem_2=>$arItem_2):?>
  65.                                                         <li>
  66.                                                             <a class="link-sub" href="<?=$arResult["ALL_ITEMS"][$idItem_2]['SECTION_PAGE_URL']?>"><?=$arResult["ALL_ITEMS"][$idItem_2]['NAME']?></a>
  67.                                                         </li>
  68.                                                         <?if (is_array($arItem_2) && count($arItem_2) > 0):?>
  69.                                                             <?foreach($arItem_2 as $idItem_3=>$arItem_3):?>
  70.                                                                 <li>
  71.                                                                     <a class="link-sub" href="<?=$arResult["ALL_ITEMS"][$arItem_3]['SECTION_PAGE_URL']?>"><?=$arResult["ALL_ITEMS"][$arItem_3]['NAME']?></a>
  72.                                                                 </li>
  73.                                                             <?endforeach;?>
  74.                                                         <?endif?>
  75.                                                     <?endforeach;?>
  76.                                                 </ul>
  77.                                             </div>
  78.                                         <?endif?>
  79.                                  </div>
  80.                              </div>
  81.                         <?endforeach?>
  82.                     </div>
  83.             </div><!-- /.slides -->
  84.         </div><!-- /.wrapper -->
  85.     </div><!-- /.container -->
  86. </div><!-- /.categories -->
  87.  
  88.  
  89. <?
  90. // echo "<pre style='text-align:left;'>";print_r($arResult);echo "</pre>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement