aboutsummaryrefslogtreecommitdiff
path: root/mod/profile
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile')
-rw-r--r--mod/profile/views/default/profile/profilelinks.php22
-rw-r--r--mod/profile/views/default/profile/userdetails.php9
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>";
?>