diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-26 18:11:46 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-26 18:11:46 +0000 |
commit | 87c87227c4171e1c706939f746362bcaa56212df (patch) | |
tree | 71abd6a3d9063bab8ba309d7dbb80823dd26e638 /mod/profile/views | |
parent | 963ab53fc2ad247ebbdcec2e4ad8c9064e2d2352 (diff) | |
download | elgg-87c87227c4171e1c706939f746362bcaa56212df.tar.gz elgg-87c87227c4171e1c706939f746362bcaa56212df.tar.bz2 |
Improved profile listings
git-svn-id: https://code.elgg.org/elgg/trunk@1155 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/views')
-rw-r--r-- | mod/profile/views/default/profile/css.php | 64 | ||||
-rw-r--r-- | mod/profile/views/default/profile/listing.php | 47 | ||||
-rw-r--r-- | mod/profile/views/default/user/user.php | 6 |
3 files changed, 79 insertions, 38 deletions
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 @@ +<?php
+
+ /**
+ * Elgg user display (small)
+ *
+ * @package ElggProfile
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Ben Werdmuller <ben@curverider.co.uk>
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ *
+ * @uses $vars['entity'] The user entity
+ */
+
+?>
+
+ <div class="profile_listing">
+
+ <div class="profile_listing_icon">
+ <?php
+
+ echo elgg_view(
+ "profile/icon", array(
+ 'entity' => $vars['entity'],
+ 'size' => 'small',
+ )
+ );
+
+ ?>
+ </div>
+ <div class="profile_listing_info">
+ <p><b><?php
+
+ echo "<a href=\"" . $vars['entity']->getUrl() . "\">" . $vars['entity']->name . "</a>";
+
+ ?></b></p>
+ <?php
+
+ $location = $vars['entity']->location;
+ if (!empty($location)) {
+ echo "<p>" . elgg_echo("profile:location") . ": " . elgg_view("output/tags",array('value' => $vars['entity']->location)) . "</p>";
+ }
+
+ ?>
+ </div>
+
+ </div>
\ 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 |