Merge https://github.com/friendica/red into pending_merge
This commit is contained in:
commit
301c7cdb89
@ -927,6 +927,10 @@ function photos_content(&$a) {
|
||||
|
||||
$edit = null;
|
||||
if($can_post) {
|
||||
if(array_key_exists('albums', $a->data))
|
||||
$albums = get_app()->data['albums'];
|
||||
else
|
||||
$albums = photos_albums_list($a->data['channel'],$a->data['observer']);
|
||||
|
||||
$album_e = $ph[0]['album'];
|
||||
$caption_e = $ph[0]['description'];
|
||||
@ -937,6 +941,7 @@ function photos_content(&$a) {
|
||||
'id' => $ph[0]['id'],
|
||||
'rotatecw' => t('Rotate CW (right)'),
|
||||
'rotateccw' => t('Rotate CCW (left)'),
|
||||
'albums' => $albums['albums'],
|
||||
'album' => $album_e,
|
||||
'newalbum' => t('New album name'),
|
||||
'nickname' => $a->data['channel']['channel_address'],
|
||||
|
@ -9,7 +9,7 @@
|
||||
</div>
|
||||
|
||||
{{if $prevlink}}<div id="photo-prev-link"><a href="{{$prevlink.0}}"><i class="icon-backward photo-icons"></i></div>{{/if}}
|
||||
<div id="photo-photo"><a href="{{$photo.href}}" title="{{$photo.title}}" onclick="$.colorbox({href: '{{$photo.href}}'}); return false;" ><img style="max-width: 100%;" src="{{$photo.src}}" /></a></div>
|
||||
<div id="photo-photo"><a href="{{$photo.href}}" title="{{$photo.title}}" onclick="$.colorbox({href: '{{$photo.href}}'}); return false;"><img style="max-width: 100%;" src="{{$photo.src}}"></a></div>
|
||||
{{if $nextlink}}<div id="photo-next-link"><a href="{{$nextlink.0}}"><i class="icon-forward photo-icons"></i></a></div>{{/if}}
|
||||
<div id="photo-photo-end"></div>
|
||||
<div id="photo-caption">{{$desc}}</div>
|
||||
@ -26,20 +26,28 @@
|
||||
<div id="photo-edit-edit" style="display: none;">
|
||||
<form action="photos/{{$edit.nickname}}/{{$edit.resource_id}}" method="post" id="photo_edit_form">
|
||||
|
||||
<input type="hidden" name="item_id" value="{{$edit.item_id}}" />
|
||||
<input type="hidden" name="item_id" value="{{$edit.item_id}}">
|
||||
|
||||
<label id="photo-edit-albumname-label" for="photo-edit-albumname">{{$edit.newalbum}}</label>
|
||||
<input id="photo-edit-albumname" type="text" size="32" name="albname" value="{{$edit.album}}" />
|
||||
|
||||
<input id="photo-edit-albumname" type="text" size="32" name="albname" value="{{$edit.album}}" list="dl-albums">
|
||||
{{if $edit.albums}}
|
||||
<datalist id="dl-albums">
|
||||
{{foreach $edit.albums as $al}}
|
||||
{{if $al.text}}
|
||||
<option value="{{$al.text}}">
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
</datalist>
|
||||
{{/if}}
|
||||
<div id="photo-edit-albumname-end"></div>
|
||||
|
||||
<label id="photo-edit-caption-label" for="photo-edit-caption">{{$edit.capt_label}}</label>
|
||||
<input id="photo-edit-caption" type="text" size="84" name="desc" value="{{$edit.caption}}" />
|
||||
<input id="photo-edit-caption" type="text" size="84" name="desc" value="{{$edit.caption}}">
|
||||
|
||||
<div id="photo-edit-caption-end"></div>
|
||||
|
||||
<label id="photo-edit-tags-label" for="photo-edit-newtag" >{{$edit.tag_label}}</label>
|
||||
<input name="newtag" id="photo-edit-newtag" size="84" title="{{$edit.help_tags}}" type="text" />
|
||||
<input name="newtag" id="photo-edit-newtag" size="84" title="{{$edit.help_tags}}" type="text">
|
||||
|
||||
<div id="photo-edit-tags-end"></div>
|
||||
<div id="photo-edit-rotate-wrapper">
|
||||
@ -47,8 +55,8 @@
|
||||
{{$edit.rotatecw}}<br>
|
||||
{{$edit.rotateccw}}
|
||||
</div>
|
||||
<input type="radio" name="rotate" value="1" /><br>
|
||||
<input type="radio" name="rotate" value="2" />
|
||||
<input type="radio" name="rotate" value="1"><br>
|
||||
<input type="radio" name="rotate" value="2">
|
||||
</div>
|
||||
<div id="photo-edit-rotate-end"></div>
|
||||
|
||||
@ -61,8 +69,8 @@
|
||||
<br/>
|
||||
<div id="settings-default-perms-end"></div>
|
||||
|
||||
<input id="photo-edit-submit-button" type="submit" name="submit" value="{{$edit.submit}}" />
|
||||
<input id="photo-edit-delete-button" type="submit" name="delete" value="{{$edit.delete}}" onclick="return confirmDelete()"; />
|
||||
<input id="photo-edit-submit-button" type="submit" name="submit" value="{{$edit.submit}}">
|
||||
<input id="photo-edit-delete-button" type="submit" name="delete" value="{{$edit.delete}}" onclick="return confirmDelete();">
|
||||
|
||||
<div id="photo-edit-end"></div>
|
||||
</form>
|
||||
|
Reference in New Issue
Block a user