Created
November 7, 2017 09:11
-
-
Save sidor1989/f1d9f52f688c7c4cf2cff7d815cc99af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
//echo "<pre>Template arResult: "; print_r($arResult["EXAMPLES"]); echo "</pre>"; | |
if (count($arResult["EXAMPLES"])>0) | |
{ | |
?> | |
<div class="worker_serts serts"> | |
<h2>Примеры работ доктора</h2> | |
<div class="worker_serts_carousel" itemscope itemtype="http://schema.org/ImageGallery"> | |
<? | |
foreach ($arResult["EXAMPLES"] as $sert) | |
{ | |
?><figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject"> | |
<a href="<?=$sert["IMG_BIG"]?>" data-size="<?=$sert["IMG_BIG_W"]?>x<?=$sert["IMG_BIG_H"]?>" itemprop="contentUrl"> | |
<span> | |
<img src="<?=$sert["IMG_THUMB"]; ?>" alt="" /> | |
</span> | |
</a> | |
<figcaption itemprop="caption description"><?=$sert["NAME"]?></figcaption> | |
</figure><? | |
} | |
?> | |
</div> | |
</div> | |
<? | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment