From fe5cee34c946f0d99f64f5a14955306d8d5f2527 Mon Sep 17 00:00:00 2001 From: pete Date: Tue, 24 Jun 2008 18:52:00 +0000 Subject: profile box fixes git-svn-id: https://code.elgg.org/elgg/trunk@1113 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/views/default/profile/userdetails.php | 256 +++++++++++----------- views/default/css.php | 21 +- 2 files changed, 146 insertions(+), 131 deletions(-) diff --git a/mod/profile/views/default/profile/userdetails.php b/mod/profile/views/default/profile/userdetails.php index 30de55189..aacc17c03 100644 --- a/mod/profile/views/default/profile/userdetails.php +++ b/mod/profile/views/default/profile/userdetails.php @@ -1,122 +1,134 @@ - - * @copyright Curverider Ltd 2008 - * @link http://elgg.com/ - * - * @uses $vars['entity'] The user entity - */ - - if ($vars['full'] == true) { - $iconsize = "large"; - } else { - $iconsize = "medium"; - } - - // wrap all profile info - echo "
"; - - // wrap the icon and links in a div - echo "
"; - - // get the user's main profile picture - echo elgg_view( - "profile/icon", array( - 'entity' => $vars['entity'], - 'align' => "left", - 'size' => $iconsize, - ) - ); - - //display relevant links - echo "
" . elgg_view("profile/profilelinks", array("entity" => $vars['entity'])); - - // close the icon and links div - echo "
"; - -?> - -
- - getUrl() . "\">" . $vars['entity']->name . "
"; - - if ($vars['full'] == true) { - - ?> - profile) && sizeof($vars['config']->profile) > 0) - foreach($vars['config']->profile as $shortname => $valtype) { - if ($shortname != "description") { - $value = $vars['entity']->$shortname; - if (!empty($value)) { - - ?> - -

- : - $vars['entity']->$shortname)); - - ?> - -

- - -
- -
- -
-


description); ?>

- -canEdit()) { - -?> -

- -

-guid){ -?> -

- -

-

- -

- - -
- -
+ + * @copyright Curverider Ltd 2008 + * @link http://elgg.com/ + * + * @uses $vars['entity'] The user entity + */ + + if ($vars['full'] == true) { + $iconsize = "large"; + } else { + $iconsize = "medium"; + } + + // wrap all profile info + echo "
"; + +?> + + + + + + +
+ +"; + + // get the user's main profile picture + echo elgg_view( + "profile/icon", array( + 'entity' => $vars['entity'], + //'align' => "left", + 'size' => $iconsize, + ) + ); + + // display relevant links + echo elgg_view("profile/profilelinks", array("entity" => $vars['entity'])); + + // close the icon and links div + echo ""; + +?> + + + +
+ + getUrl() . "\">" . $vars['entity']->name . "
"; + + if ($vars['full'] == true) { + + ?> + profile) && sizeof($vars['config']->profile) > 0) + foreach($vars['config']->profile as $shortname => $valtype) { + if ($shortname != "description") { + $value = $vars['entity']->$shortname; + if (!empty($value)) { + + ?> + +

+ : + $vars['entity']->$shortname)); + + ?> + +

+ + +
+ +
+ +
+


description); ?>

+ +canEdit()) { + +?> +

+ + +guid){ +?> + +   + +   + + +

+
+ +
diff --git a/views/default/css.php b/views/default/css.php index cc9d9ece4..341d344d8 100644 --- a/views/default/css.php +++ b/views/default/css.php @@ -721,34 +721,37 @@ input[type="submit"] { margin:0 0 20px 0; border-bottom:1px solid #cccccc; } +#profile_menu_wrapper { + margin:10px 0 10px 0; +} #profile_menu_wrapper p { border-bottom:1px solid #cccccc; - padding:0 0 0 3px; } #profile_menu_wrapper p:first-child { border-top:1px solid #cccccc; } -#profile_menu_wrapper p:hover { - background:#4690d6; +#profile_menu_wrapper a { + display:block; + padding:0 0 0 3px; } #profile_menu_wrapper a:hover { color:#ffffff; + background:#4690d6; text-decoration:none; } -p.user_menu_friends, p.user_menu_profile, p.user_menu_removefriend, p.user_menu_friends_of { +p.user_menu_friends, p.user_menu_profile, +p.user_menu_removefriend, +p.user_menu_friends_of { margin:0; } #profile_info_column_left { float:left; width:200px; - margin: 0 20px 0 0; + padding: 0 20px 0 0; } #profile_info_column_right { float:left; - width:305px; -} -#profile_info_column_left img { - padding:0 0 20px 0; + width:296px; } #profile_info_column_right p { margin:7px 0 7px 0; -- cgit v1.2.3