%PDF- %PDF-
| Direktori : /home/bitrix/www/local/templates/UB/components/bitrix/photogallery.section/.default/ |
| Current File : //home/bitrix/www/local/templates/UB/components/bitrix/photogallery.section/.default/template.php |
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<?
if (!$this->__component->__parent || strpos($this->__component->__parent->__name, "photogallery") === false)
{
$GLOBALS['APPLICATION']->SetAdditionalCSS('/bitrix/components/bitrix/photogallery/templates/.default/style.css');
$GLOBALS['APPLICATION']->SetAdditionalCSS('/bitrix/components/bitrix/photogallery/templates/.default/themes/gray/style.css');
}
$GLOBALS['APPLICATION']->AddHeadScript("/bitrix/components/bitrix/photogallery.section.list/templates/.default/script.js");
$res = $arResult["SECTION"];
?>
<script type="text/javascript">
var LOC_MESS = <?=CUtil::PhpToJSObject($MESS);?>;
</script>
<?if($arResult["SECTION"]["DEPTH_LEVEL"]>1):?>
<a class="btn-grey btn-small" href="<?=SITE_DIR?>auth/portfolio/"><?=GetMessage("BACK_TO_LIST_OF_ALBUMS")?></a>
<?endif;?>
<div class="photo-album-item photo-album-<?=($res["ACTIVE"] != "Y" ? "nonactive" : "active")?> <?=(
!empty($res["PASSWORD"]) ? "photo-album-password" : "")?>" id="photo_album_info_<?=$res["ID"]?>" <?
if ($res["ACTIVE"] != "Y" || !empty($res["PASSWORD"]))
{
$sTitle = GetMessage("P_ALBUM_IS_NOT_ACTIVE");
if ($res["ACTIVE"] != "Y" && !empty($res["PASSWORD"]))
$sTitle = GetMessage("P_ALBUM_IS_NOT_ACTIVE_AND_PASSWORDED");
elseif (!empty($res["PASSWORD"]))
$sTitle = GetMessage("P_ALBUM_IS_PASSWORDED");
?> title="<?=$sTitle?>" <?
}
?>>
<div class="photo-album-info">
<?if ($arResult["SECTION"]["DATE"]["VALUE"] != ""):?>
<div class="photo-album-date"><span id="photo_album_date_<?=$arResult["SECTION"]["ID"]?>"><?= $arResult["SECTION"]["DATE"]["VALUE"]?></span></div>
<?endif;?>
<?if ($arResult["SECTION"]["DESCRIPTION"] != ""):?>
<div class="photo-album-description" id="photo_album_description_<?=$arResult["SECTION"]["ID"]?>"><?=$arResult["SECTION"]["DESCRIPTION"]?></div>
<?endif;?>
</div>
</div>
<?if ($arParams["PERMISSION"] >= "U"):?>
<noindex>
<div class="modal fade" id="add_album" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<form method="post" action="<?=$arResult["SECTION"]["NEW_LINK"]?>" onsubmit="create_album(this); return false;" id="form_photo">
<input type="hidden" name="save_edit" value="Y">
<input type="hidden" name="edit" value="Y">
<input type="hidden" name="sessid" value="<?=bitrix_sessid()?>">
<input type="hidden" name="IBLOCK_SECTION_ID" value="<?=$arResult["SECTION"]['ID']?>">
<input type="hidden" name="multiple_action" value="N">
<div class="modal-body">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3 class="modal-title" id="myModalLabel" style="display: inline;"><?=GetMessage("ADD_NEW_ALBUM")?></h3>
<div class="alert alert-danger" id="add_album_error" style="margin-top:10px; display: none;">
<?=GetMessage("ERROR_OF_CREATING_ALBUM")?>
</div>
<input type="text" class="form-control" name="NAME" id="bxph_name" value=""
style="width:100%; margin-top:10px;" placeholder="<?=GetMessage("ENTER_TITLE_OF_THE_ALBUM")?>">
<div style="margin-top:15px;text-align:right;">
<button type="button" class="btn-grey btn-small btn-pad" data-dismiss="modal"><?=GetMessage("UNDO")?></button>
<button type="submit" class="btn-grey btn-small btn-pad" id="save-album-btn"><?=GetMessage("SAVE")?></button>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="alert alert-<?=$arParams["PORTFOLIO"]["ALERT"]=='Y'?'danger':'warning'?>" style="float: left">
<span><?=GetMessage("ALBUMS")?><i class="fa fa-folder-open-o"></i> <?=GetMessage("UPLOADED")?><?=$arParams["PORTFOLIO"]["ALBUM_CNT"];?><?=GetMessage("LIMIT")?><?=$arParams["PORTFOLIO"]["MAX_ALBUM"];?></span>
<span style="padding-left: 15px;"><?=GetMessage("PHOTOS")?><i class="fa fa-picture-o"></i> <?=GetMessage("UPLOADED")?><?=$arParams["PORTFOLIO"]["ELEMENT_CNT"];?><?=GetMessage("LIMIT")?><?=$arParams["PORTFOLIO"]["MAX_PHOTOS"];?></span>
<?if($arParams["PORTFOLIO"]["ALERT"]=='Y'):?><span style="padding-left: 15px;"><?=GetMessage("WANT_MORE_CLICK_HERE")?></span><?endif;?>
</div>
<div class="photo-top-controls">
<?if($arResult["SECTION"]["DEPTH_LEVEL"]>1):?>
<a class="btn-grey btn-small btn-pad" rel="nofollow" class="photo-control-album-edit" href="<?=$arResult["SECTION"]["EDIT_LINK"]?>"><?=GetMessage("P_SECTION_EDIT")?></a>
<?endif;?>
<?if($arResult["SECTION"]["DEPTH_LEVEL"]<2):?>
<?/*
<a class="btn-grey btn-small btn-pad" rel="nofollow" href="<?=$arResult["SECTION"]["NEW_LINK"]?>"
onclick="EditAlbum('<?=CUtil::JSEscape($arResult["SECTION"]["~NEW_LINK"])?>'); return false;">!!!</a>
*/?>
<a class="btn-grey btn-small btn-pad" rel="nofollow"<?=$arParams["PORTFOLIO"]["STOP_ALBUM"]=='Y'?' style="display: none"':''?>
data-toggle="modal" data-target="#add_album"><i class="fa fa-picture-o"></i> <?=GetMessage("P_ADD_ALBUM")?></a>
<?endif;?>
<?if($arResult["SECTION"]["DEPTH_LEVEL"]>1):?>
<a class="btn-grey btn-small btn-pad" rel="nofollow" href="<?=$arResult["SECTION"]["UPLOAD_LINK"]?>" target="_self"><?=GetMessage("P_UPLOAD")?></a>
<?endif;?>
</div>
</noindex>
<?endif;
?>
<div class="empty-clear"></div>
<div class="alert alert-success" style="display: none" id="access_result">
</div>