when changing cover photo, show existing
This commit is contained in:
parent
02763811b3
commit
0576046d02
@ -355,6 +355,7 @@ class Cover_photo extends \Zotlabs\Web\Controller {
|
|||||||
|
|
||||||
$o .= replace_macros($tpl,array(
|
$o .= replace_macros($tpl,array(
|
||||||
'$user' => \App::$channel['channel_address'],
|
'$user' => \App::$channel['channel_address'],
|
||||||
|
'$existing' => get_cover_photo(local_channel(),'array',PHOTO_RES_COVER_850),
|
||||||
'$lbl_upfile' => t('Upload File:'),
|
'$lbl_upfile' => t('Upload File:'),
|
||||||
'$lbl_profiles' => t('Select a profile:'),
|
'$lbl_profiles' => t('Select a profile:'),
|
||||||
'$title' => t('Change Cover Photo'),
|
'$title' => t('Change Cover Photo'),
|
||||||
|
@ -1795,3 +1795,7 @@ dl.bb-dl > dd > li {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
text-shadow: -2px 0 1px #fff, 0 2px 1px#fff, 2px 0 1px #fff, 0 -2px 1px #fff;
|
text-shadow: -2px 0 1px #fff, 0 2px 1px#fff, 2px 0 1px #fff, 0 -2px 1px #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cover-photo-review {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
@ -86,10 +86,11 @@
|
|||||||
<h2>{{$title}}</h2>
|
<h2>{{$title}}</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="section-content-wrapper">
|
<div class="section-content-wrapper">
|
||||||
|
{{if $existing}}
|
||||||
|
<img class="cover-photo-review" style="max-width: 100%;" src="{{$existing.url}}" alt="{{t('Cover Photo')}}" />
|
||||||
|
{{/if}}
|
||||||
<form enctype="multipart/form-data" action="cover_photo" method="post">
|
<form enctype="multipart/form-data" action="cover_photo" method="post">
|
||||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||||
|
|
||||||
<div id="profile-photo-upload-wrapper">
|
<div id="profile-photo-upload-wrapper">
|
||||||
|
|
||||||
<label id="profile-photo-upload-label" class="form-label" for="profile-photo-upload">{{$lbl_upfile}}</label>
|
<label id="profile-photo-upload-label" class="form-label" for="profile-photo-upload">{{$lbl_upfile}}</label>
|
||||||
|
Reference in New Issue
Block a user