%PDF- %PDF-
| Direktori : /home/bitrix/www/local/components/p4/p.photogallery.section/templates/.default/ |
| Current File : //home/bitrix/www/local/components/p4/p.photogallery.section/templates/.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"];
?>
<div class="modal fade" id="rename_album" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<form id="form_photo" class="form-albom" name="form_albom" action="" method="post">
<div class="modal-body">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3 class="modal-title" id="myModalLabel" style="display: inline;"><?=GetMessage("RENAME_ALBUM")?></h3>
<div class="alert alert-danger" id="add_album_error" style="margin-top:10px; display: none;">
<?=GetMessage("FAILED_TO_RENAME_ALBUM")?>
</div>
<input type="hidden" value="<?=$arResult["SECTION"]["ID"]?>" name="section_id"/>
<input id="bxph_name" class="form-control" type="text" style="width:100%; margin-top:10px;"
value="<?=$arResult["SECTION"]["NAME"]?>" name="ALBUM_NAME"/>
<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>
<h3 class="title"><?=GetMessage("ALBUM")?><?=$arResult["SECTION"]["NAME"]?></h3>
<?if($arResult["SECTION"]["DEPTH_LEVEL"]>1):?>
<a class="btn-grey btn-small" style="float:right;" href="<?=SITE_DIR?>auth/portfolio/"><i class="fa fa-folder-o"></i> <?=GetMessage("BACK_TO_ALBUMS")?></a>
<?endif;?>
<a class="btn-grey btn-small" data-toggle="modal" data-target="#rename_album"><i class="fa fa-pencil-square-o"></i> <?=GetMessage("RENAME")?></a>
<a class="btn-grey btn-small" href="javascript:doUpload();"<?=$arParams['PORTFOLIO']['STOP_PHOTOS']=='Y'||$arResult['SECTION']['ELEMENTS_CNT']>=MAX_PHOTOS_PER_ALBUM?' style="display:none"':''?>><i class="fa fa-file-image-o"></i> <?=GetMessage("ADD_PHOTO")?></a>
<span style="padding-left: 15px;"><?=GetMessage("PHOTOS")?><i class="fa fa-picture-o"></i> <?=$arResult['SECTION']['ELEMENTS_CNT'];?>
<?=$arParams['PORTFOLIO']['ALBUM_AVAIL']>0?GetMessage("YOU_CAN_UPLOAD_MORE").$arParams['PORTFOLIO']['ALBUM_AVAIL']:GetMessage("WANT_MORE_CLICK_HERE")?></span>
<div class="empty-clear"></div>
<br/>