mirror of
https://github.com/friendica/friendica
synced 2024-11-18 08:23:53 +00:00
edit profile quick link
This commit is contained in:
parent
2d22a58324
commit
2f3e39ba15
5 changed files with 30 additions and 0 deletions
7
boot.php
7
boot.php
|
@ -823,6 +823,13 @@ function profile_load(&$a, $nickname, $profile = 0) {
|
|||
if(! (x($a->page,'aside')))
|
||||
$a->page['aside'] = '';
|
||||
|
||||
if(local_user() && local_user() == $a->profile['uid']) {
|
||||
$a->page['aside'] .= replace_macros(get_markup_template('profile_edlink.tpl'),array(
|
||||
'$editprofile' => t('Edit profile'),
|
||||
'$profid' => $a->profile['id']
|
||||
));
|
||||
}
|
||||
|
||||
$block = (((get_config('system','block_public')) && (! local_user()) && (! remote_user())) ? true : false);
|
||||
|
||||
$a->page['aside'] .= profile_sidebar($a->profile, $block);
|
||||
|
|
2
view/profile_edlink.tpl
Normal file
2
view/profile_edlink.tpl
Normal file
|
@ -0,0 +1,2 @@
|
|||
<div class="profile-edit-side-div"><a class="profile-edit-side-link icon edit" title="$editprofile" href="profiles/$profid" ></a></div>
|
||||
<div class="clear"></div>
|
|
@ -517,6 +517,17 @@ input#dfrn-url {
|
|||
#profile-edit-links li {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.profile-edit-side-div {
|
||||
float: right;
|
||||
}
|
||||
.profile-edit-side-link {
|
||||
opacity: 0.3;
|
||||
filter:alpha(opacity=30);
|
||||
}
|
||||
.profile-edit-side-link:hover {
|
||||
opacity: 1.0;
|
||||
filter:alpha(opacity=100);
|
||||
}
|
||||
|
||||
.view-contact-wrapper {
|
||||
margin-top: 20px;
|
||||
|
|
|
@ -623,6 +623,10 @@ input#dfrn-url {
|
|||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.profile-edit-side-div {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.view-contact-wrapper {
|
||||
margin-top: 20px;
|
||||
float: left;
|
||||
|
|
|
@ -1244,6 +1244,12 @@ div[id$="wrapper"] br { clear: left; }
|
|||
background-color: #b20202;
|
||||
}
|
||||
|
||||
.profile-edit-side-div {
|
||||
margin-top: 5px;
|
||||
margin-right: 30px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
#cropimage-wrapper { float:left; }
|
||||
#crop-image-form { clear:both; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue