%PDF- %PDF-
Direktori : /home/bitrix/www/local/components/UB/portfolio.profile/templates/.default/ |
Current File : //home/bitrix/www/local/components/UB/portfolio.profile/templates/.default/template.php |
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); $APPLICATION->SetAdditionalCSS(SITE_TEMPLATE_PATH.'/blueimp/css/blueimp-gallery.min.css'); $APPLICATION->AddHeadScript(SITE_TEMPLATE_PATH.'/blueimp/js/blueimp-gallery.min.js'); $APPLICATION->SetAdditionalCSS(SITE_TEMPLATE_PATH.'/components/bitrix/rating.vote/blueimp/popup.css'); $APPLICATION->AddHeadScript('/bitrix/js/main/rating_like.js'); // @todo Добавить название фотографии (как будет сделано в кабинете) if (is_array($arResult['ALBUMS']['ITEMS'])) { ?> <div id="blueimp_gallery_source" data-account-id="<?=$arParams['ACCOUNT_ID']?>"<?=count($arResult['SHOW_PHOTO'])>0?' data-show-photo="'.$arResult['SHOW_PHOTO']['ID'].'"':''?>><? foreach($arResult['ALBUMS']['ITEMS'] as $album_id => $album) { $imgCount = 0; ?> <h3><?=$album['NAME']?></h3> <div id="portfolio_albom<?=$album_id?>" class="albom_block"> <?foreach($album['PHOTOS'] as $item): $imgCount++?> <?if (!isset($item['ADULT']) || intval($item['ADULT'])<1 || ($USER->IsAuthorized() && isset($arResult['AGE']) && intval($arResult['AGE']) >= 18)):?> <div class="col-lg-2 col-md-2 col-sm-2 col-xs-12"<?=$item['INVISIBLE']=='Y'?' style="display: none"':''?>> <div class="portfolio-item"> <a href="<?=$item['DETAIL_PICTURE_SRC']?>" title="<?=$album['NAME']?>, #<?=$imgCount?>" class="portfolio-item-link pil2" data-gallery data-imp="N" data-item-id="<?=$item['ID']?>"> <img style="background: url(<?=$item['PREVIEW_PICTURE_SRC']?>) center center no-repeat; background-size: cover;" alt=""/> <div class="portfolio-item-social"> <span><i class="fa fa-thumbs-o-up"></i> <?=$item['VOTES']?></span> <span><i class="fa fa-comment-o"></i> <?=$item['FORUM_MESSAGE_CNT']?></span> </div> </a> <div class="clearfix"></div> </div> </div> <?else:?> <div class="col-lg-2 col-md-2 col-sm-2 col-xs-12" <?=$item['INVISIBLE']=='Y'?' style="display: none"':''?>> <div class="portfolio-item"> <a class="pil2 nonactivelink"> <img class="img-responsive blur_filter" data-id="<?=$item['ID']?>" style="background: url(<?=$item['PREVIEW_PICTURE_SRC']?>) center center no-repeat; background-size: cover;" alt="" /> <span class="public18"></span> <div class="blurf" data-id="<?=$item['ID']?>"></div> </a> </div> </div> <?endif;?> <?endforeach;?> </div> <div class="portfolio_forbutton"> <?if($album['SHOW_MORE_BUTTON']=='Y'):?> <button id="btn-portfolio-more" class="btn-small btn-color btn-pad" data-c="<?=$album['COUNT']?>" data-cat="<?=$album_id?>" data-p="2" href="#"><?=GetMessage("MORE")?></button> <?endif;?> </div> <div style="clear:both;"></div> <? } ?></div><? } if (!$USER->IsAuthorized() && is_array($arResult['ALBUMS']['PRIVATE'])) { foreach($arResult['ALBUMS']['PRIVATE'] as $album_id => $album) { ?> <h3><?=$album['NAME']?></h3> <?=GetMessage("THE_ALBUM_IS_AVAILABLE_ONLY_FOR_AUTHORIZED_USERS")?><br/><br/> <div class="portfolio_forbutton"></div> <div style="clear:both;"></div> <? } } ?> <div id="blueimp-gallery" class="blueimp-gallery" data-use-bootstrap-modal="true"> <!-- The container for the modal slides --> <div class="slides"></div> <!-- Controls for the borderless lightbox --> <h3 class="title"></h3> <a class="prev">‹</a> <a class="next">›</a> <a class="close">×</a> <!-- <a class="play-pause"></a> --> <ol class="indicator"></ol> <ol class="social"></ol> <div class="comments"></div> </div>