%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/bitrix/www/bitrix/templates/p4_new/components/p4/p.portfolio.profile/public/
Upload File :
Create Path :
Current File : //home/bitrix/www/bitrix/templates/p4_new/components/p4/p.portfolio.profile/public/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 Добавить название фотографии (как будет сделано в кабинете)
GLOBAL $USER;
$usid = $USER->GetID();
$isMyPage = $usid == intval($arParams["ACCOUNT_ID"]) ? true : false;
/*if($usid==753){
	echo '<pre>'; print_r($arResult); echo '</pre>';
};*/


if (is_array($arResult['ALBUMS']['ITEMS']) && count($arResult['ALBUMS']['ITEMS']) > 0) {?>
	<div id="blueimp_gallery_source" data-type-user="<?=($USER->IsAuthorized() && isset($arResult['AGE']) && intval($arResult['AGE']) >= 18) ? "1" : "0"?>" 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;
	?>
						<div class="col-xs-11 t title">
							<div class="tc"><h3><?=$album['NAME']?></h3></div>
						</div>

						<div class="col-xs-12">
							<div class="divider"></div>
						</div>
						<div class="col-xs-12 nopadding overflow" id="portfolio_albom<?=$album_id?>">
						<?foreach($album['PHOTOS'] as $item): $imgCount++?>	
							<?if (!isset($item['ADULT']) || intval($item['ADULT'])<1 || ($USER->IsAuthorized() && isset($arResult['AGE']) && intval($arResult['AGE']) >= 18)):?>						
							<figure class="col-xs-3" <?=$item['INVISIBLE']=='Y'?' style="display: none"':''?>>
								<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 class="img-responsive" style="background: url(<?=$item['PREVIEW_PICTURE_SRC']?>) center <?=$item['TYPE_IMAGE'] == 'V' ? 'top' : '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>
							</figure>
							<?else:?>
							<figure class="col-xs-3" <?=$item['INVISIBLE']=='Y'?' style="display: none"':''?>>
								<a class="pil2 nonactivelink">
									<img class="img-responsive blur_filter" data-id="<?=$item['ID']?>" style="background: url(<?=$item['PREVIEW_PICTURE_SRC']?>) center <?=$item['TYPE_IMAGE'] == 'V' ? 'top' : 'center';?> no-repeat; background-size: cover;" alt="" />
									<span class="public18"></span>
									<div class="blurf" data-id="<?=$item['ID']?>"></div>
								</a>
							</figure>
							<?endif;?>
						<?endforeach;?>
							<div class="bordertop"></div>
							<div class="borderleft"></div>	
							<div class="borderright"></div>
							<div class="borderbottom"></div>
						</div>
						<?if($album['SHOW_MORE_BUTTON']=='Y'):?>
						<div class="col-xs-12 center loadmore">
							<button id="btn-portfolio-more" class="btn btn-default btn-lg btn-transparent" data-c="<?=$album['COUNT']?>"
							data-cat="<?=$album_id?>" data-p="2" href="#"><?=GetMessage("LOAD_MORE")?></button>
						</div>
						<?endif;?>
						
			<?}?>
	</div>

<?} else {?>
		<div class="no_photo"><?=GetMessage("THIS_USER_HAS_NOT_POSTED")?> <i class="fa fa-frown-o"></i></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>
								<?
								}
							}

							?>
				<?if (is_array($arResult['ALBUMS']['ITEMS']) && count($arResult['ALBUMS']['ITEMS']) > 0) {?>
					<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>
				<?}?>



Zerion Mini Shell 1.0