From 2f3e39ba15b45b56ef750bd1d15a23c510ec798d Mon Sep 17 00:00:00 2001 From: Friendika Date: Wed, 26 Oct 2011 16:57:25 -0700 Subject: [PATCH] edit profile quick link --- boot.php | 7 +++++++ view/profile_edlink.tpl | 2 ++ view/theme/duepuntozero/style.css | 11 +++++++++++ view/theme/loozah/style.css | 4 ++++ view/theme/testbubble/style.css | 6 ++++++ 5 files changed, 30 insertions(+) create mode 100644 view/profile_edlink.tpl diff --git a/boot.php b/boot.php index 707ca19882..0b03a20c8a 100644 --- a/boot.php +++ b/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); diff --git a/view/profile_edlink.tpl b/view/profile_edlink.tpl new file mode 100644 index 0000000000..ea787b9f53 --- /dev/null +++ b/view/profile_edlink.tpl @@ -0,0 +1,2 @@ +
+
\ No newline at end of file diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css index d595c7495a..eb73bfb977 100644 --- a/view/theme/duepuntozero/style.css +++ b/view/theme/duepuntozero/style.css @@ -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; diff --git a/view/theme/loozah/style.css b/view/theme/loozah/style.css index 42b99b08ca..c978e140ab 100644 --- a/view/theme/loozah/style.css +++ b/view/theme/loozah/style.css @@ -623,6 +623,10 @@ input#dfrn-url { margin-top: 10px; } +.profile-edit-side-div { + float: right; +} + .view-contact-wrapper { margin-top: 20px; float: left; diff --git a/view/theme/testbubble/style.css b/view/theme/testbubble/style.css index 9c04ec4baf..91920e84dd 100644 --- a/view/theme/testbubble/style.css +++ b/view/theme/testbubble/style.css @@ -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; }