From 87c87227c4171e1c706939f746362bcaa56212df Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 26 Jun 2008 18:11:46 +0000 Subject: Improved profile listings git-svn-id: https://code.elgg.org/elgg/trunk@1155 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/views/default/profile/css.php | 64 +++++++++++---------------- mod/profile/views/default/profile/listing.php | 47 ++++++++++++++++++++ mod/profile/views/default/user/user.php | 6 ++- 3 files changed, 79 insertions(+), 38 deletions(-) create mode 100644 mod/profile/views/default/profile/listing.php diff --git a/mod/profile/views/default/profile/css.php b/mod/profile/views/default/profile/css.php index 655e072ad..9a5016694 100644 --- a/mod/profile/views/default/profile/css.php +++ b/mod/profile/views/default/profile/css.php @@ -2,40 +2,30 @@ ?> -/* - -#user_menu { - position:absolute; - border:1px solid #333333; - background:#e4ecf5; - color:#333333; - padding:0px; - width: 200px; - display:none; -} - -#user_menu p { - margin: 0px; -} - -#user_menu p.user_menu_name { - background-color: #888; - padding: 3px; -} - -#user_menu p.user_menu_name b { - color: #fff; -} - -#user_menu p a { - padding: 3px; - display: block; -} - -#user_menu p a:hover { - background-color: #336699; - color: #fff; - text-decoration: none; -} - -*/ \ No newline at end of file + .profile_listing { + + display: block; + background-color: #eee; + padding: 5px; + margin-bottom: 10px; + + } + + .profile_listing_icon { + + position: absolute; + + } + + .profile_listing_info { + + margin-left: 60px; + height: 40px; + + } + + .profile_listing_info p { + + margin: 0px; + + } \ No newline at end of file diff --git a/mod/profile/views/default/profile/listing.php b/mod/profile/views/default/profile/listing.php new file mode 100644 index 000000000..94a29580c --- /dev/null +++ b/mod/profile/views/default/profile/listing.php @@ -0,0 +1,47 @@ + + * @copyright Curverider Ltd 2008 + * @link http://elgg.com/ + * + * @uses $vars['entity'] The user entity + */ + +?> + +
+ +
+ $vars['entity'], + 'size' => 'small', + ) + ); + + ?> +
+
+

getUrl() . "\">" . $vars['entity']->name . ""; + + ?>

+ location; + if (!empty($location)) { + echo "

" . elgg_echo("profile:location") . ": " . elgg_view("output/tags",array('value' => $vars['entity']->location)) . "

"; + } + + ?> +
+ +
\ No newline at end of file diff --git a/mod/profile/views/default/user/user.php b/mod/profile/views/default/user/user.php index 0b808769a..a913ef3f8 100644 --- a/mod/profile/views/default/user/user.php +++ b/mod/profile/views/default/user/user.php @@ -12,6 +12,10 @@ * @uses $vars['entity'] The user entity */ - echo elgg_view("profile/userdetails",$vars); + if ($vars['full']) { + echo elgg_view("profile/userdetails",$vars); + } else { + echo elgg_view("profile/listing",$vars); + } ?> \ No newline at end of file -- cgit v1.2.3