]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Ownerblock links to users objects interface updated.
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 24 May 2010 10:25:14 +0000 (10:25 +0000)
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 24 May 2010 10:25:14 +0000 (10:25 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6152 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/profile/views/default/profile/css.php
views/default/page_elements/owner_block.php

index 505ef70d4a18a1a2a07a3c5baf26b714470a5172..13bae4fed24bc538ba7c361879da987785903a7d 100644 (file)
@@ -95,6 +95,8 @@ img.medium {
 }
 #elgg_sidebar #owner_block {
        background-color: white;
+       -webkit-border-radius: 8px; 
+       -moz-border-radius: 8px;
        padding:5px;
        margin-bottom:10px;
 }
@@ -142,6 +144,18 @@ img.medium {
        display: table;
 }
 /* ownerblock links to owners tools */
+#owner_block .owners_content_links {
+       border-top:1px dotted #cccccc;
+       margin-top:4px;
+       padding-top:2px;
+}
+#owner_block .owners_content_links ul li {
+       display:block;
+       float:left;
+       width:95px;
+       font-size: 90%;
+}
+/* profile pages - ownerblock links to owners tools */
 .owner_block_links {
        margin-top:5px;
 }
index 158f82ff0c0cd1eee346e64c0f751a419a35cdda..12341bec7bd4bea3811a2956e288058088c30b0d 100644 (file)
@@ -35,7 +35,7 @@ if(is_plugin_enabled('profile')) {
        ) {
                $icon = elgg_view('profile/icon', array('entity' => $owner, 'size' => 'tiny'));
                $owner_url = $owner->getURL();
-               $display = "<div class=\"owner_block_icon\">$icon</div>";
+               $display = "<div class='owner_block_icon'>$icon</div>";
                $display .= '<div class="owner_block_contents clearfloat">';
                $display .= "<h3><a href=\"$owner_url\">{$owner->name}</a></h3>";
 
@@ -46,6 +46,8 @@ if(is_plugin_enabled('profile')) {
                $location = elgg_view('output/tags', array('value' => $owner->location));
                $display .= "<p class=\"profile_info location\">$location</p>";
                
+               $display .= '</div>';
+               
                // Trigger owner block menu
                $params = array('owner' => $owner);
                $links = trigger_plugin_hook('profile_menu', 'profile', $params, array());
@@ -56,7 +58,7 @@ if(is_plugin_enabled('profile')) {
                                'return strnatcasecmp($a[\'text\'], $b[\'text\']);'
                        ));
                        
-                       $display .= '<div><ul>';
+                       $display .= '<div class="owners_content_links"><ul>';
                        foreach ($links as $link) {
                                $display .= "<li><a href=\"{$link['href']}\">{$link['text']}</a></li>";
                        }
@@ -67,9 +69,9 @@ if(is_plugin_enabled('profile')) {
                $display .= elgg_view('owner_block/profile_extend');
                
                // close owner_block_content
-               $display .= '</div>';
+               //$display .= '</div>';
 
-               $contents .= "<div id=\"owner_block\" class=\"radius8\">$display</div>";
+               $contents .= "<div id='owner_block' class='clearfloat'>$display</div>";
        }
 }