Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philipusis/10104b65e2c4fdcc9fb97a4d6d369c59 to your computer and use it in GitHub Desktop.
Save philipusis/10104b65e2c4fdcc9fb97a4d6d369c59 to your computer and use it in GitHub Desktop.
<? $j = 0; foreach($arResult["complexParams"]["FL_TOURTAGS"] as $tag): ?>
<? if ($j < 10 ):?>
<div class="tag tag-id-<?=$tag["T_TYPE"]?> <?if(in_array($tag["T_TYPE"], $arResult["customParams"]["FL_TOURTAGS"])) {?> selected<?}?>" data-id="<?=$tag["T_TYPE"]?>" data-weight="50000" oldvalue="<?=$tag["TTYPE_NAME"]?>"><?=$tag["TTYPE_NAME"]?></div>
<? $j++; endif; ?>
<? endforeach; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment