]> git.mxchange.org Git - friendica.git/commitdiff
edit profile quick link
authorFriendika <info@friendika.com>
Wed, 26 Oct 2011 23:57:25 +0000 (16:57 -0700)
committerFriendika <info@friendika.com>
Wed, 26 Oct 2011 23:57:25 +0000 (16:57 -0700)
boot.php
view/profile_edlink.tpl [new file with mode: 0644]
view/theme/duepuntozero/style.css
view/theme/loozah/style.css
view/theme/testbubble/style.css

index 707ca198829fb99c5dac1f8c742aadc1bdb1046b..0b03a20c8a1721126876317f7d46b1db7d908790 100644 (file)
--- 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 (file)
index 0000000..ea787b9
--- /dev/null
@@ -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>
\ No newline at end of file
index d595c7495ab40ccba81cee205c46a5690b5d3310..eb73bfb977c37edb7509cbc5e6a999ece15fb6fc 100644 (file)
@@ -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;
index 42b99b08cad46a1be6448276403870a0568f62dd..c978e140ab6047b12093bdb94a44bf2692ad06f8 100644 (file)
@@ -623,6 +623,10 @@ input#dfrn-url {
        margin-top: 10px;
 }
 
+.profile-edit-side-div {
+       float: right;
+}
+
 .view-contact-wrapper {
        margin-top: 20px;
        float: left;
index 9c04ec4bafcbb37923cc5df60422d54457be9dee..91920e84dd75408087c07edc1741b7a255360e80 100644 (file)
@@ -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; }