diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-22 13:43:54 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-22 13:43:54 +0000 |
commit | b4ac8dcaf7676152f0430023145c3a54334a57ec (patch) | |
tree | 205d203bd5c8062573d1df47099d2c17dafafb7a /mod/profile | |
parent | 5cf95a42b6e77fc14b295e73f3d351b203453746 (diff) | |
download | elgg-b4ac8dcaf7676152f0430023145c3a54334a57ec.tar.gz elgg-b4ac8dcaf7676152f0430023145c3a54334a57ec.tar.bz2 |
added a new profile links view
git-svn-id: https://code.elgg.org/elgg/trunk@1045 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile')
-rw-r--r-- | mod/profile/views/default/profile/profilelinks.php | 22 | ||||
-rw-r--r-- | mod/profile/views/default/profile/userdetails.php | 9 |
2 files changed, 31 insertions, 0 deletions
diff --git a/mod/profile/views/default/profile/profilelinks.php b/mod/profile/views/default/profile/profilelinks.php new file mode 100644 index 000000000..c349e7479 --- /dev/null +++ b/mod/profile/views/default/profile/profilelinks.php @@ -0,0 +1,22 @@ +<?php
+
+ /**
+ * Elgg profile links
+ *
+ * @package ElggProfile
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Dave Tosh <dave@elgg.com>
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ *
+ * @uses $vars['entity'] The user entity. If none specified, the current user is assumed.
+ */
+
+?>
+
+<?php
+
+ echo elgg_view("profile/hoverover/actions",$vars);
+ echo elgg_view("profile/hoverover/links",$vars);
+
+?>
\ No newline at end of file diff --git a/mod/profile/views/default/profile/userdetails.php b/mod/profile/views/default/profile/userdetails.php index f0d78df3d..cc0c10f24 100644 --- a/mod/profile/views/default/profile/userdetails.php +++ b/mod/profile/views/default/profile/userdetails.php @@ -18,6 +18,9 @@ $iconsize = "small";
}
+ //wrap the icon and links in a div
+ echo "<div style=\"float:left;width:200px;\">";
+
// display the users name
echo "<h2><a href=\"" . $vars['entity']->getUrl() . "\">" . $vars['entity']->name . "</a></h2>";
@@ -29,6 +32,12 @@ 'size' => $iconsize,
)
);
+
+ //display relevant links
+ echo "<div style=\"clear:both\">" . elgg_view("profile/profilelinks", array("entity" => $vars['entity'])) . "</div>";
+
+ //close the icon and links div
+ echo "</div>";
?>
|