aboutsummaryrefslogtreecommitdiff
path: root/mod/tabbed_profile/views/default
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-19 01:44:33 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-19 01:44:33 +0000
commitabf3fcae3f90b4c52e40d3ef8bb11f92c7a03d1c (patch)
tree2f243448b156eb97b1b27a2efa38d791c1227bc5 /mod/tabbed_profile/views/default
parentfea009129f49f4f8d51654ceb569aae04387077b (diff)
downloadelgg-abf3fcae3f90b4c52e40d3ef8bb11f92c7a03d1c.tar.gz
elgg-abf3fcae3f90b4c52e40d3ef8bb11f92c7a03d1c.tar.bz2
rough widget profile plugin
git-svn-id: http://code.elgg.org/elgg/trunk@7676 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/tabbed_profile/views/default')
-rw-r--r--mod/tabbed_profile/views/default/icon/user/default/large.php3
-rw-r--r--mod/tabbed_profile/views/default/icon/user/default/master.php3
-rw-r--r--mod/tabbed_profile/views/default/icon/user/default/medium.php3
-rw-r--r--mod/tabbed_profile/views/default/icon/user/default/small.php3
-rw-r--r--mod/tabbed_profile/views/default/icon/user/default/tiny.php3
-rw-r--r--mod/tabbed_profile/views/default/icon/user/default/topbar.php3
-rwxr-xr-xmod/tabbed_profile/views/default/profile/admin_menu.php42
-rw-r--r--mod/tabbed_profile/views/default/profile/commentwall/commentwall.php18
-rw-r--r--mod/tabbed_profile/views/default/profile/commentwall/commentwall_content.php32
-rw-r--r--mod/tabbed_profile/views/default/profile/commentwall/commentwalladd.php18
-rw-r--r--mod/tabbed_profile/views/default/profile/content_wrapper.php13
-rw-r--r--mod/tabbed_profile/views/default/profile/css.php458
-rw-r--r--mod/tabbed_profile/views/default/profile/hoverover.php16
-rw-r--r--mod/tabbed_profile/views/default/profile/icon.php111
-rw-r--r--mod/tabbed_profile/views/default/profile/javascript.php137
-rw-r--r--mod/tabbed_profile/views/default/profile/listing.php49
-rw-r--r--mod/tabbed_profile/views/default/profile/menu/adminlinks.php28
-rw-r--r--mod/tabbed_profile/views/default/profile/menu/friendlinks.php23
-rw-r--r--mod/tabbed_profile/views/default/profile/menu/links.php9
-rw-r--r--mod/tabbed_profile/views/default/profile/metatags.php14
-rwxr-xr-xmod/tabbed_profile/views/default/profile/ownerblock.php136
-rw-r--r--mod/tabbed_profile/views/default/profile/sidebar.php13
-rwxr-xr-xmod/tabbed_profile/views/default/profile/tab_navigation.php68
-rwxr-xr-xmod/tabbed_profile/views/default/profile/tabs/activity.php32
-rw-r--r--mod/tabbed_profile/views/default/profile/tabs/commentwall.php13
-rwxr-xr-xmod/tabbed_profile/views/default/profile/tabs/details.php41
-rwxr-xr-xmod/tabbed_profile/views/default/profile/tabs/friends.php12
-rw-r--r--mod/tabbed_profile/views/default/profile/tabs/groups.php11
-rwxr-xr-xmod/tabbed_profile/views/default/profile/tabs/twitter.php17
29 files changed, 1329 insertions, 0 deletions
diff --git a/mod/tabbed_profile/views/default/icon/user/default/large.php b/mod/tabbed_profile/views/default/icon/user/default/large.php
new file mode 100644
index 000000000..ac28f8e9a
--- /dev/null
+++ b/mod/tabbed_profile/views/default/icon/user/default/large.php
@@ -0,0 +1,3 @@
+<?php
+ echo elgg_get_site_url() . "mod/profile/graphics/defaultlarge.gif";
+?> \ No newline at end of file
diff --git a/mod/tabbed_profile/views/default/icon/user/default/master.php b/mod/tabbed_profile/views/default/icon/user/default/master.php
new file mode 100644
index 000000000..129b0d375
--- /dev/null
+++ b/mod/tabbed_profile/views/default/icon/user/default/master.php
@@ -0,0 +1,3 @@
+<?php
+ echo elgg_get_site_url() . "mod/profile/graphics/defaultmaster.gif";
+?> \ No newline at end of file
diff --git a/mod/tabbed_profile/views/default/icon/user/default/medium.php b/mod/tabbed_profile/views/default/icon/user/default/medium.php
new file mode 100644
index 000000000..8815a65bc
--- /dev/null
+++ b/mod/tabbed_profile/views/default/icon/user/default/medium.php
@@ -0,0 +1,3 @@
+<?php
+ echo elgg_get_site_url() . "mod/profile/graphics/defaultmedium.gif";
+?> \ No newline at end of file
diff --git a/mod/tabbed_profile/views/default/icon/user/default/small.php b/mod/tabbed_profile/views/default/icon/user/default/small.php
new file mode 100644
index 000000000..895aa15cc
--- /dev/null
+++ b/mod/tabbed_profile/views/default/icon/user/default/small.php
@@ -0,0 +1,3 @@
+<?php
+ echo elgg_get_site_url() . "mod/profile/graphics/defaultsmall.gif";
+?> \ No newline at end of file
diff --git a/mod/tabbed_profile/views/default/icon/user/default/tiny.php b/mod/tabbed_profile/views/default/icon/user/default/tiny.php
new file mode 100644
index 000000000..866c61533
--- /dev/null
+++ b/mod/tabbed_profile/views/default/icon/user/default/tiny.php
@@ -0,0 +1,3 @@
+<?php
+ echo elgg_get_site_url() . "mod/profile/graphics/defaulttiny.gif";
+?> \ No newline at end of file
diff --git a/mod/tabbed_profile/views/default/icon/user/default/topbar.php b/mod/tabbed_profile/views/default/icon/user/default/topbar.php
new file mode 100644
index 000000000..0ff3dbaaa
--- /dev/null
+++ b/mod/tabbed_profile/views/default/icon/user/default/topbar.php
@@ -0,0 +1,3 @@
+<?php
+ echo elgg_get_site_url() . "mod/profile/graphics/defaulttopbar.gif";
+?> \ No newline at end of file
diff --git a/mod/tabbed_profile/views/default/profile/admin_menu.php b/mod/tabbed_profile/views/default/profile/admin_menu.php
new file mode 100755
index 000000000..99ed3a4f5
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/admin_menu.php
@@ -0,0 +1,42 @@
+<?php
+/**
+ * This is the admin menu that appears on a user's profile page
+ **/
+global $CONFIG;
+
+if (isadminloggedin()){
+ if (get_loggedin_userid()!=elgg_get_page_owner_guid()){
+ $user = get_user(elgg_get_page_owner_guid());
+ $url = elgg_get_site_url();
+ $ts = time();
+ $token = generate_action_token($ts);
+
+?>
+<div class="owner_block_links clearfix">
+<ul class="admin_menu">
+<li><a href="#" onclick="elgg_slide_toggle(this,'.owner_block_links','.admin_menu_options');">Admin options&hellip;</a>
+
+ <ul class="admin_menu_options">
+ <li><a href="<?php echo $url; ?>pg/settings/user/<?php echo $user->username; ?>/"><?php echo elgg_echo('profile:editdetails'); ?></a></li>
+ <?php
+ if (!$user->isBanned()) {
+ echo "<li>".elgg_view('output/confirmlink', array('text' => elgg_echo("ban"), 'href' => "action/admin/user/ban?guid={$user->guid}&__elgg_token=$token&__elgg_ts=$ts")) . "</li>";
+ } else {
+ echo "<li>".elgg_view('output/confirmlink', array('text' => elgg_echo("unban"), 'href' => "action/admin/user/unban?guid={$user->guid}&__elgg_token=$token&__elgg_ts=$ts")) . "</li>";
+ }
+ echo "<li>".elgg_view('output/confirmlink', array('text' => elgg_echo("delete"), 'href' => "action/admin/user/delete?guid={$user->guid}&__elgg_token=$token&__elgg_ts=$ts")) . "</li>";
+ echo "<li>".elgg_view('output/confirmlink', array('text' => elgg_echo("resetpassword"), 'href' => "action/admin/user/resetpassword?guid={$user->guid}&__elgg_token=$token&__elgg_ts=$ts")) . "</li>";
+ if (!$vars['entity']->admin) {
+ echo "<li>".elgg_view('output/confirmlink', array('text' => elgg_echo("makeadmin"), 'href' => "action/admin/user/makeadmin?guid={$user->guid}&__elgg_token=$token&__elgg_ts=$ts")) . "</li>";
+ } else {
+ echo "<li>".elgg_view('output/confirmlink', array('text' => elgg_echo("removeadmin"), 'href' => "action/admin/user/removeadmin?guid={$user->guid}&__elgg_token=$token&__elgg_ts=$ts")) . "</li>";
+ }
+ ?>
+ </ul>
+</li>
+</ul>
+</div>
+<?php
+ }
+}
+?>
diff --git a/mod/tabbed_profile/views/default/profile/commentwall/commentwall.php b/mod/tabbed_profile/views/default/profile/commentwall/commentwall.php
new file mode 100644
index 000000000..56670dcf0
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/commentwall/commentwall.php
@@ -0,0 +1,18 @@
+<?php
+/**
+ * Elgg Commentwall display page
+ */
+//start the div which will wrap all the message board contents
+echo "<div id='comment_wall_display'>";
+
+// If there is any content to view, view it
+if (is_array($vars['annotation']) && sizeof($vars['annotation']) > 0) {
+ //loop through all annotations and display
+ foreach($vars['annotation'] as $content) {
+ echo elgg_view("profile/commentwall/commentwall_content", array('annotation' => $content));
+ }
+} else {
+ echo "<p class='margin-top'>" . elgg_echo("profile:commentwall:none") . "</p>";
+}
+//close the wrapper div
+echo "</div>"; \ No newline at end of file
diff --git a/mod/tabbed_profile/views/default/profile/commentwall/commentwall_content.php b/mod/tabbed_profile/views/default/profile/commentwall/commentwall_content.php
new file mode 100644
index 000000000..a0785b565
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/commentwall/commentwall_content.php
@@ -0,0 +1,32 @@
+<?php
+/**
+* Elgg Message board individual item display page
+ */
+?>
+<div class="entity-listing clearfix">
+ <!-- display the user icon of the user that posted the message -->
+ <div class="entity-listing-icon">
+ <?php
+ echo elgg_view("profile/icon",array('entity' => get_entity($vars['annotation']->owner_guid), 'size' => 'tiny'));
+ ?>
+ </div>
+
+ <div class="entity-listing-info">
+ <?php
+ // if the user looking at the comment can edit, show the delete link
+ if ($vars['annotation']->canEdit()) {
+ echo "<div class='entity-metadata'><span class='delete-button'>" . elgg_view("output/confirmlink",array(
+ 'href' => "action/profile/deletecomment?annotation_id=" . $vars['annotation']->id,
+ 'text' => elgg_echo('delete'),
+ 'confirm' => elgg_echo('deleteconfirm'),
+ )) . "</span></div>";
+ } //end of can edit if statement
+ ?>
+ <!-- display the user's name who posted and the date/time -->
+ <p class="entity-subtext">
+ <?php echo get_entity($vars['annotation']->owner_guid)->name . " " . elgg_view_friendly_time($vars['annotation']->time_created); ?>
+ </p>
+ <!-- output the actual comment -->
+ <?php echo elgg_view("output/longtext",array("value" => parse_urls($vars['annotation']->value))); ?>
+ </div>
+</div>
diff --git a/mod/tabbed_profile/views/default/profile/commentwall/commentwalladd.php b/mod/tabbed_profile/views/default/profile/commentwall/commentwalladd.php
new file mode 100644
index 000000000..dcb520ea1
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/commentwall/commentwalladd.php
@@ -0,0 +1,18 @@
+<?php
+/**
+ * Elgg profile comment wall add
+ */
+?>
+<div id="comment_wall_add">
+<form action="<?php echo elgg_get_site_url(); ?>action/profile/addcomment" method="post" name="messageboardForm">
+ <!-- textarea for the contents -->
+ <textarea name="message_content" value="" class="commentwall"></textarea><br />
+ <!-- the person posting an item on the message board -->
+ <input type="hidden" name="guid" value="<?php echo get_loggedin_userid(); ?>" />
+ <!-- the page owner, this will be the profile owner -->
+ <input type="hidden" name="pageOwner" value="<?php echo elgg_get_page_owner_guid(); ?>" />
+ <?php echo elgg_view('input/securitytoken'); ?>
+ <!-- submit messages input -->
+ <input type="submit" id="postit" value="<?php echo elgg_echo('profile:commentwall:add'); ?>">
+</form>
+</div>
diff --git a/mod/tabbed_profile/views/default/profile/content_wrapper.php b/mod/tabbed_profile/views/default/profile/content_wrapper.php
new file mode 100644
index 000000000..4fb43e7c9
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/content_wrapper.php
@@ -0,0 +1,13 @@
+<?php
+/**
+ * Wrapper for profile content
+ *
+ * @uses string $vars['content'] - Profile body
+ */
+
+$content = elgg_get_array_value('content', $vars, '');
+
+?>
+<div id="profile_content">
+ <?php echo $content; ?>
+</div> \ No newline at end of file
diff --git a/mod/tabbed_profile/views/default/profile/css.php b/mod/tabbed_profile/views/default/profile/css.php
new file mode 100644
index 000000000..812daf16d
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/css.php
@@ -0,0 +1,458 @@
+<?php
+/**
+ * Elgg Profile
+ *
+ * @package Profile
+ */
+?>
+/* ***************************************
+ main layout blocks
+*************************************** */
+#profile_content {
+ float:right;
+ width:700px;
+ position: relative;
+}
+#profile_sidebar {
+ width:230px;
+ float:left;
+}
+.elgg-horizontal-tabbed-nav.profile {
+ margin-top:0px;
+ margin-bottom:25px;
+ position:relative;
+}
+.elgg-horizontal-tabbed-nav.profile .profile_name {
+ display:block;
+ width:265px;
+ position:absolute;
+}
+.elgg-horizontal-tabbed-nav.profile .profile_name h2 {
+ margin:0;
+ padding:0;
+ border:none;
+}
+.elgg-horizontal-tabbed-nav.profile ul {
+ margin-left:260px;
+}
+
+/* ***************************************
+ default avatar icons
+*************************************** */
+.usericon {
+ position:relative;
+}
+.usericon.tiny,
+img.tiny {
+ width:25px;
+ height:25px;
+ /* remove the border-radius if you don't want rounded avatars in supported browsers */
+ -webkit-border-radius: 3px;
+ -moz-border-radius: 3px;
+ -moz-background-clip: border;
+
+ -o-background-size: 25px;
+ -webkit-background-size: 25px;
+ -khtml-background-size: 25px;
+ -moz-background-size: 25px;
+}
+.usericon.small,
+img.small {
+ width:40px;
+ height:40px;
+ /* remove the border-radius if you don't want rounded avatars in supported browsers */
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ -moz-background-clip: border;
+
+ -o-background-size: 40px;
+ -webkit-background-size: 40px;
+ -khtml-background-size: 40px;
+ -moz-background-size: 40px;
+}
+img.large {
+ width:200px;
+ height:200px;
+}
+img.medium {
+ width:100px;
+ height:100px;
+}
+
+/* ***************************************
+ ownerblock in sidebar
+*************************************** */
+#profile_sidebar #owner_block {
+ background-color: #eeeeee;
+ -webkit-border-radius: 8px;
+ -moz-border-radius: 8px;
+ padding:15px;
+ min-height:270px;
+}
+#elgg-sidebar #owner_block {
+ background-color: white;
+ -webkit-border-radius: 8px;
+ -moz-border-radius: 8px;
+ padding:5px;
+ margin-bottom:10px;
+}
+#owner_block .owner_block_icon {
+ float:left;
+ padding:0;
+ margin:0;
+}
+#owner_block .owner_block_icon.large {
+ width:200px;
+ height:200px;
+ overflow: hidden;
+ float:none;
+}
+#owner_block .owner_block_contents {
+ margin-left: 50px;
+}
+#elgg-sidebar #owner_block .owner_block_contents {
+ margin-left: 34px;
+}
+#owner_block .owner_block_contents h3 {
+ margin-top:-4px;
+ border-bottom:none;
+ margin-bottom:0;
+ padding-bottom:0;
+}
+#owner_block .owner_block_contents p.profile_info {
+ margin:0;
+ padding:0;
+ color: #666666;
+}
+#owner_block .owner_block_contents p.profile_info.briefdescription {
+ font-size: 90%;
+ line-height:1.2em;
+ font-style: italic;
+}
+#owner_block .owner_block_contents p.profile_info.location {
+ font-size: 90%;
+}
+#owner_block .profile_actions {
+ margin-top:10px;
+}
+#owner_block .profile_actions a.action-button {
+ margin-bottom:4px;
+ display: table;
+}
+/* ownerblock links to owners tools */
+#owner_block .owners_content_links {
+ border-top:1px dotted #cccccc;
+ margin-top:4px;
+ padding-top:2px;
+}
+#owner_block .owners_content_links ul {
+ margin:0;
+ padding:0;
+}
+#owner_block .owners_content_links ul li {
+ display:block;
+ float:left;
+ width:95px;
+ font-size: 90%;
+}
+/* profile pages - ownerblock links to owners tools */
+.owner_block_links {
+ margin-top:5px;
+}
+.owner_block_links ul {
+ margin:0;
+ padding:0;
+ list-style: none;
+}
+.owner_block_links ul li.selected a {
+ background: #4690D6;
+ color:white;
+}
+.owner_block_links ul li a {
+ display:block;
+ -webkit-border-radius: 8px;
+ -moz-border-radius: 8px;
+ background-color:white;
+ margin:3px 0 5px 0;
+ padding:2px 4px 2px 8px;
+}
+.owner_block_links ul li a:hover {
+ background:#0054A7;
+ color:white;
+ text-decoration:none;
+}
+
+
+/* ***************************************
+ admin menu in sidebar
+*************************************** */
+.owner_block_links .admin_menu_options {
+ display: none;
+}
+.owner_block_links ul.admin_menu {
+ background-color:white;
+ -webkit-border-radius: 8px;
+ -moz-border-radius: 8px;
+ cursor:pointer;
+}
+.owner_block_links ul.admin_menu li a {
+ background-color: white;
+ color:red;
+ margin-bottom:0;
+}
+.owner_block_links ul.admin_menu li a:hover {
+ color:black;
+}
+.owner_block_links ul.admin_menu li ul.admin_menu_options li a {
+ color:red;
+ background-color:white;
+ display:block;
+ margin:0px;
+ padding:2px 4px 2px 13px;
+}
+.owner_block_links ul.admin_menu li ul.admin_menu_options li a:hover {
+ color:black;
+ background:none;
+ text-decoration: underline;
+}
+
+
+/* ***************************************
+ full profile info panel
+*************************************** */
+#profile_content .odd {
+ background-color:#f4f4f4;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ margin:0 0 7px 0;
+ padding:2px 4px 2px 4px;
+}
+#profile_content .even {
+ background-color:#f4f4f4;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ margin:0 0 7px 0;
+ padding:2px 4px 2px 4px;
+}
+#profile_content .aboutme_title {
+ background-color:#f4f4f4;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ margin:0 0 0px 0;
+ padding:2px 4px 2px 4px;
+}
+#profile_content .aboutme_contents {
+ padding:2px 0 0 3px;
+}
+
+
+/* ***************************************
+ friends panel within profile
+*************************************** */
+#profile_content .entity-listing .entity-listing-info {
+ width:664px;
+}
+
+
+/* ***************************************
+ commentwall within profile
+*************************************** */
+#comment_wall_add textarea {
+ width:685px;
+}
+#comment_wall_add #postit {
+ float:right;
+}
+
+
+/* ***************************************
+ twitter panel within profile
+*************************************** */
+ul#twitter_update_list {
+ padding-left:0;
+}
+ul#twitter_update_list li {
+ background-image: url(<?php echo elgg_get_site_url(); ?>mod/profile/graphics/speech_bubble_tail.gif);
+ background-position:right bottom;
+ background-repeat: no-repeat;
+ list-style-image:none;
+ list-style-position:outside;
+ list-style-type:none;
+ margin:0 0 5px 0;
+ padding:0;
+ overflow-x: hidden;
+}
+ul#twitter_update_list li span {
+ color:#666666;
+ background:#ececec;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ padding:3px 5px 4px 5px;
+ display:block;
+}
+ul#twitter_update_list li a {
+ display:block;
+ margin:-2px 0 0 4px;
+}
+ul#twitter_update_list li span a {
+ display:inline !important;
+}
+p.visit_twitter a {
+ background:url(<?php echo elgg_get_site_url(); ?>mod/profile/graphics/twitter16px.png) left no-repeat;
+ padding:0 0 0 20px;
+ margin:0;
+}
+.visit_twitter {
+ padding:5px 0;
+ margin:0 0 0 0;
+ border-top:1px solid #dedede;
+}
+
+/* ***************************************
+ banned user
+*************************************** */
+/* banned user full profile panel */
+#profile_content .banned_user {
+ border:2px solid red;
+ padding:4px 8px;
+ -webkit-border-radius: 6px;
+ -moz-border-radius: 6px;
+}
+/* banned user in friends lists */
+.entity-listing-info p.entity-title.user.banned {
+ text-decoration: line-through;
+}
+.entity-listing-info p.entity-title.user.banned a {
+ color:red;
+}
+
+
+/* ***************************************
+ admin area - custom profile fields
+*************************************** */
+.default_profile_reset {
+ border-top: 1px solid #dedede;
+ margin-top:30px;
+}
+.default_profile_reset .action-button {
+ float:right;
+}
+/* field re-order */
+#sortable_profile_fields {
+ list-style: none;
+ padding:0;
+ margin:0;
+ border-top:1px solid #cccccc;
+}
+#sortable_profile_fields li {
+ padding:5px 0 5px 0;
+ border-bottom:1px solid #cccccc;
+}
+#sortable_profile_fields li img.handle {
+ margin-right: 7px;
+ cursor: move;
+}
+#sortable_profile_fields .ui-sortable-helper {
+ background: #eeeeee;
+ color:#333333;
+ padding: 5px 0 5px 0;
+ margin: 0;
+ width:100%;
+}
+
+
+/* ***************************************
+ avatar drop-down menu
+*************************************** */
+.avatar_menu_button {
+ width:15px;
+ height:15px;
+ position:absolute;
+ cursor:pointer;
+ display:none;
+ right:0;
+ bottom:0;
+}
+.avatar_menu_arrow {
+ background: url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png) no-repeat -150px top;
+ width:15px;
+ height:15px;
+}
+.avatar_menu_arrow_on {
+ background: url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png) no-repeat -150px -16px;
+ width:15px;
+ height:15px;
+}
+.avatar_menu_arrow_hover {
+ background: url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png) no-repeat -150px -32px;
+ width:15px;
+ height:15px;
+}
+/* user avatar submenu options */
+.usericon .sub_menu {
+ display:none;
+ position:absolute;
+ padding:0;
+ margin:0;
+ border-top:solid 1px #E5E5E5;
+ border-left:solid 1px #E5E5E5;
+ border-right:solid 1px #999999;
+ border-bottom:solid 1px #999999;
+ width:164px;
+ background:#FFFFFF;
+ text-align:left;
+ -webkit-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.50);
+ -moz-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.50);
+ font-size:14px;
+}
+div.usericon a.icon img {
+ z-index:10;
+}
+.usericon .sub_menu a:link,
+.usericon .sub_menu a:visited,
+.usericon .sub_menu a:hover {
+ display:block;
+ font-weight: normal;
+}
+.usericon .sub_menu a:hover {
+ background:#cccccc;
+ text-decoration:none;
+}
+.usericon .sub_menu .displayname {
+ padding:0 !important;
+ margin:0 !important;
+ border-bottom:solid 1px #dddddd !important;
+ font-size:14px !important;
+}
+.usericon .sub_menu .displayname a {
+ padding:3px 3px 3px 8px;
+ font-size:14px;
+ font-weight: bold;
+}
+.usericon .sub_menu .displayname a .username {
+ display:block;
+ font-weight: normal;
+ font-size:12px;
+ text-align: left;
+ margin:0;
+}
+.sub_menu ul.sub_menu_list {
+ list-style: none;
+ margin-bottom:0;
+ padding-left:0;
+}
+.usericon .sub_menu a {
+ padding:2px 3px 2px 8px;
+ font-size:12px;
+}
+/* admin menu options in avatar submenu */
+.user_menu_admin {
+ border-top:solid 1px #dddddd;
+}
+.usericon .sub_menu li.user_menu_admin a {
+ color:red;
+}
+.usericon .sub_menu li.user_menu_admin a:hover {
+ color:white;
+ background:red;
+}
diff --git a/mod/tabbed_profile/views/default/profile/hoverover.php b/mod/tabbed_profile/views/default/profile/hoverover.php
new file mode 100644
index 000000000..172ef5d3d
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/hoverover.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * Elgg profile icon hover over
+ *
+ * @package ElggProfile
+ *
+ * @uses $vars['entity'] The user entity. If none specified, the current user is assumed.
+ */
+?>
+<li class="user_menu_name">
+ <?php echo $vars['entity']->name; ?>
+</li>
+<?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/tabbed_profile/views/default/profile/icon.php b/mod/tabbed_profile/views/default/profile/icon.php
new file mode 100644
index 000000000..71b25fe6c
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/icon.php
@@ -0,0 +1,111 @@
+<?php
+
+/**
+ * Elgg profile icon
+ *
+ * @package ElggProfile
+ *
+ * @uses $vars['entity'] The user entity. If none specified, the current user is assumed.
+ * @uses $vars['size'] The size - small, medium or large. If none specified, medium is assumed.
+ */
+
+// Get entity
+if (empty($vars['entity'])) {
+ $vars['entity'] = get_loggedin_user();
+}
+
+if ($vars['entity'] instanceof ElggUser) {
+ $name = htmlentities($vars['entity']->name, ENT_QUOTES, 'UTF-8');
+ $username = $vars['entity']->username;
+
+ if ($icontime = $vars['entity']->icontime) {
+ $icontime = "{$icontime}";
+ } else {
+ $icontime = "default";
+ }
+
+ // Get size
+ if (!in_array($vars['size'],array('small','medium','large','tiny','master','topbar'))) {
+ $vars['size'] = 'medium';
+ }
+
+ // Get any align and js
+ if (!empty($vars['align'])) {
+ $align = " align=\"{$vars['align']}\" ";
+ } else {
+ $align = '';
+ }
+
+ // Override
+ if (isset($vars['override']) && $vars['override'] == true) {
+ $override = true;
+ } else {
+ $override = false;
+ }
+ // profile avatar drop-down menu
+ if (!$override) {
+ ?>
+ <div class="usericon <?php echo $vars['size']; ?>">
+ <div class="avatar_menu_button"><img src="<?php echo elgg_get_site_url(); ?>_graphics/spacer.gif" border="0" width="15" height="15" /></div>
+ <div class="sub_menu">
+ <h3 class="displayname"><a href="<?php echo $vars['entity']->getURL(); ?>"><?php echo $vars['entity']->name; ?>
+ <span class="username"><?php echo "&#64;" . $vars['entity']->username; ?></span></a></h3>
+ <?php
+ echo "<ul class='sub_menu_list'>";
+ if (isloggedin()) {
+ // if not looking at your own avatar menu
+ if ($vars['entity']->getGUID() != get_loggedin_userid()) {
+
+ // Add / Remove friend link
+ $friendlinks = elgg_view('profile/menu/friendlinks',$vars);
+ if (!empty($friendlinks)) {
+ echo "<li class='user_menu_profile'>{$friendlinks}</li>";
+ }
+ // view for plugins to extend
+ echo elgg_view('profile/menu/links',$vars);
+ } else {
+ // if looking at your own avatar menu - provide a couple of handy links
+ ?>
+ <li class="user_menu_profile">
+ <a class="edit_profile" href="<?php echo elgg_get_site_url()?>pg/profile/<?php echo $vars['entity']->username; ?>/edit/details"><?php echo elgg_echo("profile:edit"); ?></a>
+ </li>
+ <li class="user_menu_profile">
+ <a class="edit_avatar" href="<?php echo elgg_get_site_url()?>pg/profile/<?php echo $vars['entity']->username; ?>/edit/icon"><?php echo elgg_echo("profile:editicon"); ?></a>
+ </li>
+ <?php
+ }
+
+ // if Admin is logged in, and not looking at admins own avatar menu
+ if (isadminloggedin() && (get_loggedin_userid()!=$vars['entity']->guid) ){
+ $adminlinks = elgg_view('profile/menu/adminlinks', $vars);
+ if (!empty($adminlinks)) {
+ echo "<li class='user_menu_admin'>{$adminlinks}</li>";
+ }
+ }
+
+ }
+ echo "</ul>";
+ ?>
+ </div>
+ <?php
+ if ((isadminloggedin()) || (!$vars['entity']->isBanned())) {
+ ?><a href="<?php echo $vars['entity']->getURL(); ?>" class="icon" ><?php
+ }
+
+ }
+
+ // Rounded avatar corners - CSS3 method - users avatar as background image so we can clip it with border-radius in supported browsers
+ ?>
+ <img src="<?php echo elgg_get_site_url(); ?>_graphics/spacer.gif" border="0" <?php echo $align; ?> alt="<?php echo htmlentities($vars['entity']->name, ENT_QUOTES, 'UTF-8'); ?>" title="<?php echo htmlentities($vars['entity']->name, ENT_QUOTES, 'UTF-8'); ?>" <?php echo $vars['js']; ?> style="background: url(<?php echo $vars['entity']->getIcon($vars['size']); ?>) no-repeat;" class="<?php echo $vars['size']; ?>" />
+ <?php
+ /*
+ original avatar method
+ <img src="<?php echo elgg_format_url($vars['entity']->getIcon($vars['size'])); ?>" border="0" <?php echo $align; ?> alt="<?php echo htmlentities($vars['entity']->name, ENT_QUOTES, 'UTF-8'); ?>" title="<?php echo htmlentities($vars['entity']->name, ENT_QUOTES, 'UTF-8'); ?>" <?php echo $vars['js']; ?> />
+ */
+
+ if (!$override) {
+ ?>
+ </a></div>
+ <?php
+ }
+} \ No newline at end of file
diff --git a/mod/tabbed_profile/views/default/profile/javascript.php b/mod/tabbed_profile/views/default/profile/javascript.php
new file mode 100644
index 000000000..96b57fb95
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/javascript.php
@@ -0,0 +1,137 @@
+<?php
+
+/**
+ * Elgg profile image Javascript
+ *
+ * @package ElggProfile
+ *
+ * @uses $vars['entity'] The user entity
+ */
+
+// header("Content-type: text/javascript");
+// header("Pragma: public");
+// header("Cache-Control: public");
+
+?>
+
+var submenuLayer = 1000;
+
+function setup_avatar_menu(parent) {
+ if (!parent) {
+ parent = document;
+ }
+
+ // avatar image menu link
+ $(parent).find("div.usericon img").mouseover(function() {
+ // find nested avatar_menu_button and show
+ $(this.parentNode.parentNode).children(".avatar_menu_button").show();
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").addClass("avatar_menu_arrow");
+ //$(this.parentNode.parentNode).css("z-index", submenuLayer);
+ })
+ .mouseout(function() {
+ if($(this).parent().parent().find("div.sub_menu").css('display')!="block") {
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").removeClass("avatar_menu_arrow");
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").removeClass("avatar_menu_arrow_on");
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").removeClass("avatar_menu_arrow_hover");
+ $(this.parentNode.parentNode).children(".avatar_menu_button").hide();
+ }
+ else {
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").removeClass("avatar_menu_arrow");
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").removeClass("avatar_menu_arrow_on");
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").removeClass("avatar_menu_arrow_hover");
+ $(this.parentNode.parentNode).children(".avatar_menu_button").show();
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").addClass("avatar_menu_arrow");
+ }
+ });
+
+
+ // avatar contextual menu
+ $(".avatar_menu_button img").click(function(e) {
+
+ var submenu = $(this).parent().parent().find("div.sub_menu");
+
+ // close submenu if arrow is clicked & menu already open
+ if(submenu.css('display') == "block") {
+ //submenu.hide();
+ }
+ else {
+ // get avatar dimensions
+ var avatar = $(this).parent().parent().parent().find("div.usericon");
+ //alert( "avatarWidth: " + avatar.width() + ", avatarHeight: " + avatar.height() );
+
+ // move submenu position so it aligns with arrow graphic
+ if (e.pageX < 840) { // popup menu to left of arrow if we're at edge of page
+ submenu.css("top",(avatar.height()) + "px")
+ .css("left",(avatar.width()-15) + "px")
+ .fadeIn('normal');
+ }
+ else {
+ submenu.css("top",(avatar.height()) + "px")
+ .css("left",(avatar.width()-166) + "px")
+ .fadeIn('normal');
+ }
+
+ // force z-index - workaround for IE z-index bug
+ avatar.css("z-index", submenuLayer);
+ avatar.find("a.icon img").css("z-index", submenuLayer);
+ submenu.css("z-index", submenuLayer+1);
+
+ submenuLayer++;
+
+ // change arrow to 'on' state
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").removeClass("avatar_menu_arrow");
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").removeClass("avatar_menu_arrow_hover");
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").addClass("avatar_menu_arrow_on");
+ }
+
+ // hide any other open submenus and reset arrows
+ $("div.sub_menu:visible").not(submenu).hide();
+ $(".avatar_menu_button").removeClass("avatar_menu_arrow");
+ $(".avatar_menu_button").removeClass("avatar_menu_arrow_on");
+ $(".avatar_menu_button").removeClass("avatar_menu_arrow_hover");
+ $(".avatar_menu_button").hide();
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").addClass("avatar_menu_arrow_on");
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").show();
+ //alert("submenuLayer = " +submenu.css("z-index"));
+ })
+ // hover arrow each time mouseover enters arrow graphic (eg. when menu is already shown)
+ .mouseover(function() {
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").removeClass("avatar_menu_arrow_on");
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").removeClass("avatar_menu_arrow");
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").addClass("avatar_menu_arrow_hover");
+ })
+ // if menu not shown revert arrow, else show 'menu open' arrow
+ .mouseout(function() {
+ if($(this).parent().parent().find("div.sub_menu").css('display')!="block"){
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").removeClass("avatar_menu_arrow_hover");
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").removeClass("avatar_menu_arrow");
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").addClass("avatar_menu_arrow");
+ }
+ else {
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").removeClass("avatar_menu_arrow_hover");
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").removeClass("avatar_menu_arrow");
+ $(this.parentNode.parentNode).children("div.avatar_menu_button").addClass("avatar_menu_arrow_on");
+ }
+ });
+
+ // hide avatar menu if click occurs outside of menu
+ // and hide arrow button
+ $(document).click(function(event) {
+ var target = $(event.target);
+ if (target.parents(".usericon").length == 0) {
+ $(".usericon div.sub_menu").fadeOut();
+ $(".avatar_menu_button").removeClass("avatar_menu_arrow");
+ $(".avatar_menu_button").removeClass("avatar_menu_arrow_on");
+ $(".avatar_menu_button").removeClass("avatar_menu_arrow_hover");
+ $(".avatar_menu_button").hide();
+ }
+ });
+
+
+}
+
+$(document).ready(function() {
+
+ setup_avatar_menu();
+
+});
diff --git a/mod/tabbed_profile/views/default/profile/listing.php b/mod/tabbed_profile/views/default/profile/listing.php
new file mode 100644
index 000000000..0622264b8
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/listing.php
@@ -0,0 +1,49 @@
+<?php
+/**
+ * Elgg user display (small)
+ *
+ * @package ElggProfile
+ *
+ * @uses $vars['entity'] The user entity
+ */
+
+$icon = elgg_view(
+ "profile/icon", array(
+ 'entity' => $vars['entity'],
+ 'size' => 'tiny',
+ )
+);
+
+$banned = $vars['entity']->isBanned();
+
+// Simple XFN
+$rel_type = "";
+if (get_loggedin_userid() == $vars['entity']->guid) {
+ $rel_type = 'me';
+} elseif (check_entity_relationship(get_loggedin_userid(), 'friend', $vars['entity']->guid)) {
+ $rel_type = 'friend';
+}
+
+if ($rel_type) {
+ $rel = "rel=\"$rel_type\"";
+}
+
+if (!$banned) {
+ $info .= "<p class='entity-title user'><a href=\"" . $vars['entity']->getUrl() . "\" $rel>" . $vars['entity']->name . "</a></p>";
+ $location = $vars['entity']->location;
+ if (!empty($location)) {
+ $info .= "<p class='entity-subtext user'>" . elgg_echo("profile:location") . ": " . elgg_view("output/tags",array('value' => $vars['entity']->location)) . "</p>";
+ }
+ //create a view that a status plugin could extend - in the default case, this is the wire
+ $info .= elgg_view("profile/status", array("entity" => $vars['entity']));
+}else{
+ $info .= "<p class='entity-title user banned'>";
+ if (isadminloggedin())
+ $info .= "<a href=\"" . $vars['entity']->getUrl() . "\">";
+ $info .= $vars['entity']->name;
+ if (isadminloggedin())
+ $info .= "</a>";
+ $info .= "</p>";
+}
+
+echo elgg_view_listing($icon, $info);
diff --git a/mod/tabbed_profile/views/default/profile/menu/adminlinks.php b/mod/tabbed_profile/views/default/profile/menu/adminlinks.php
new file mode 100644
index 000000000..39807764a
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/menu/adminlinks.php
@@ -0,0 +1,28 @@
+<?php
+/**
+ * Profile admin context links
+ *
+ * @package ElggProfile
+ *
+ * @uses $vars['entity'] The user entity
+ */
+
+if (isadminloggedin()){
+ if (get_loggedin_userid()!=$vars['entity']->guid){
+?>
+ <a href="<?php echo elgg_get_site_url(); ?>pg/settings/user/<?php echo $vars['entity']->username; ?>/"><?php echo elgg_echo('profile:editdetails'); ?></a>
+<?php
+ if (!$vars['entity']->isBanned()) {
+ echo elgg_view('output/confirmlink', array('text' => elgg_echo("ban"), 'href' => "action/admin/user/ban?guid={$vars['entity']->guid}"));
+ } else {
+ echo elgg_view('output/confirmlink', array('text' => elgg_echo("unban"), 'href' => "action/admin/user/unban?guid={$vars['entity']->guid}"));
+ }
+ echo elgg_view('output/confirmlink', array('text' => elgg_echo("delete"), 'href' => "action/admin/user/delete?guid={$vars['entity']->guid}"));
+ echo elgg_view('output/confirmlink', array('text' => elgg_echo("resetpassword"), 'href' => "action/admin/user/resetpassword?guid={$vars['entity']->guid}"));
+ if (!$vars['entity']->isAdmin()) {
+ echo elgg_view('output/confirmlink', array('text' => elgg_echo("makeadmin"), 'href' => "action/admin/user/makeadmin?guid={$vars['entity']->guid}"));
+ } else {
+ echo elgg_view('output/confirmlink', array('text' => elgg_echo("removeadmin"), 'href' => "action/admin/user/removeadmin?guid={$vars['entity']->guid}"));
+ }
+ }
+ }
diff --git a/mod/tabbed_profile/views/default/profile/menu/friendlinks.php b/mod/tabbed_profile/views/default/profile/menu/friendlinks.php
new file mode 100644
index 000000000..ed13edb8b
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/menu/friendlinks.php
@@ -0,0 +1,23 @@
+<?php
+/**
+ * Elgg profile icon avatar menu: Add / Remove friend links
+ *
+ * @package ElggProfile
+ *
+ * @uses $vars['entity'] The user entity. If none specified, the current user is assumed.
+ */
+$ts = time();
+$token = generate_action_token($ts);
+if ($vars['entity']->isFriend()) {
+ echo elgg_view('output/confirmlink', array(
+ 'href' => "action/friends/remove?friend={$vars['entity']->getGUID()}",
+ 'text' => elgg_echo('friend:remove'),
+ 'class' => 'remove_friend'
+ ));
+} else {
+ echo elgg_view('output/confirmlink', array(
+ 'href' => "action/friends/add?friend={$vars['entity']->getGUID()}",
+ 'text' => elgg_echo('friend:add'),
+ 'class' => 'add_friend'
+ ));
+} \ No newline at end of file
diff --git a/mod/tabbed_profile/views/default/profile/menu/links.php b/mod/tabbed_profile/views/default/profile/menu/links.php
new file mode 100644
index 000000000..4233d7ec5
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/menu/links.php
@@ -0,0 +1,9 @@
+<?php
+/**
+ * Elgg profile icon avatar menu: view for plugins to extend
+ *
+ * @package ElggProfile
+ *
+ * @uses $vars['entity'] The user entity. If none specified, the current user is assumed.
+ */
+?>
diff --git a/mod/tabbed_profile/views/default/profile/metatags.php b/mod/tabbed_profile/views/default/profile/metatags.php
new file mode 100644
index 000000000..1197a2e0a
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/metatags.php
@@ -0,0 +1,14 @@
+<?php
+/**
+ * FOAF
+ *
+ * @package ElggProfile
+ *
+ */
+
+if (elgg_get_page_owner()) {
+?>
+ <link rel="meta" type="application/rdf+xml" title="FOAF" href="<?php echo full_url(); ?>?view=foaf" />
+<?php
+
+} \ No newline at end of file
diff --git a/mod/tabbed_profile/views/default/profile/ownerblock.php b/mod/tabbed_profile/views/default/profile/ownerblock.php
new file mode 100755
index 000000000..3fb5f509e
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/ownerblock.php
@@ -0,0 +1,136 @@
+<?php
+
+/**
+ * A simple owner block which houses info about the user whose 'stuff' you are looking at
+ */
+
+// get the user who owns this profile
+if ($vars['entity']) {
+ if ($vars['context'] == 'edit') {
+ $user = get_entity($vars['entity']->container_guid);
+ } else {
+ $user = get_entity($vars['entity']->guid);
+ }
+} else {
+ $user = elgg_get_page_owner();
+}
+if (!$user) {
+ // no user so we quit view
+ echo elgg_echo('viewfailure', array(__FILE__));
+ return TRUE;
+}
+
+$more_info = '';
+
+$location = elgg_view("output/tags",array('value' => $user->location));
+$section = $vars['section'];
+if ($section == 'details') {
+ $icon = elgg_view("profile/icon",array('entity' => $user, 'size' => 'large', 'override' => 'true'));
+ $icon_class = "large";
+} else {
+ $icon = elgg_view("profile/icon",array('entity' => $user, 'size' => 'small'));
+ $more_info = "<div class='owner_block_contents clearfix'>";
+ $more_info .= "<h3><a href='{$url}'>{$user->name}</a></h3>";
+ $more_info .= "<p class='profile_info briefdescription'>{$user->briefdescription}</p>";
+ $more_info .= "<p class='profile_info location'>{$location}</p>";
+ $more_info .= "</div>";
+}
+$profile_actions = "";
+if (isloggedin() && (get_loggedin_userid() == elgg_get_page_owner_guid())) {
+ $profile_actions = "<div class='clearfix profile_actions'>";
+ $profile_actions .= "<a href='".elgg_get_site_url()."pg/profile/{$user->username}/edit/details' class='action-button'>". elgg_echo('profile:edit') ."</a>";
+ $profile_actions .= "<a href='".elgg_get_site_url()."pg/avatar/edit/{$user->username}' class='action-button'>". elgg_echo('avatar:edit') ."</a>";
+ $profile_actions .= "</div>";
+} else {
+ $profile_actions = "<div class='profile_actions'>";
+ if (isloggedin()) {
+ if (get_loggedin_userid() != $user->getGUID()) {
+ if ($user->isFriend()) {
+ $url = elgg_get_site_url()."action/friends/remove?friend={$user->getGUID()}";
+ $url = elgg_add_action_tokens_to_url($url);
+ $profile_actions .= "<a href=\"$url\" class='action-button'>" . elgg_echo('friend:remove') . "</a>";
+ } else {
+ $url = elgg_get_site_url()."action/friends/add?friend={$user->getGUID()}";
+ $url = elgg_add_action_tokens_to_url($url);
+ $profile_actions .= "<a href=\"$url\" class='action-button'>" . elgg_echo('friend:add') . "</a>";
+ }
+ }
+ }
+ if (is_plugin_enabled('messages') && isloggedin()) {
+ $profile_actions .= "<a href=\"".elgg_get_site_url()."mod/messages/send.php?send_to={$user->guid}\" class='action-button'>". elgg_echo('messages:send') ."</a>";
+ }
+ $profile_actions .= "</div>";
+}
+
+$username = $user->username;
+$email = $user->email;
+$phone = $user->phone;
+
+
+//if admin display admin links
+if (isadminloggedin()) {
+ $admin_links = elgg_view('profile/admin_menu');
+} else {
+ $admin_links = '';
+}
+
+
+//check tools are enabled - hard-coded for phase1
+// @todo - provide a view to extend for profile pages ownerblock tool-links
+if(is_plugin_enabled('blog')){
+ $blog_link = "<li><a href=\"".elgg_get_site_url()."pg/blog/{$username}\">Blog</a></li>";
+}else{
+ $blog_link = "";
+}
+if(is_plugin_enabled('bookmarks')){
+ $bookmark_link = "<li><a href=\"".elgg_get_site_url()."pg/bookmarks/{$username}\">Bookmarks</a></li>";
+}else{
+ $bookmark_link = "";
+}
+if(is_plugin_enabled('document')){
+ $docs_link = "<li><a href=\"".elgg_get_site_url()."pg/document/{$username}\">Documents</a></li>";
+}else{
+ $docs_link = "";
+}
+if(is_plugin_enabled('feeds')){
+ $feeds_link = "<li><a href=\"".elgg_get_site_url()."pg/feeds/{$username}\">Feeds</a></li>";
+}else{
+ $feeds_link = "";
+}
+if(is_plugin_enabled('tidypics')){
+ $tidypics_link = "<li><a href=\"".elgg_get_site_url()."pg/photos/owned/{$username}\">Photos</a></li>";
+}else{
+ $tidypics_link = "";
+}
+if(is_plugin_enabled('videolist')){
+ $video_link = "<li><a href=\"".elgg_get_site_url()."pg/videolist/owned/{$username}\">Videos</a></li>";
+}else{
+ $video_link = "";
+}
+
+//contruct the display
+$display = <<<EOT
+
+<div id="owner_block">
+ <div class="owner_block_icon {$icon_class}">
+ {$icon}
+ </div>
+ {$more_info}
+ {$profile_actions}
+ <div class="owner_block_links">
+ <ul>
+ {$blog_link}
+ {$bookmark_link}
+ {$docs_link}
+ {$feeds_link}
+ {$tidypics_link}
+ {$video_link}
+ </ul>
+ </div>
+ <!-- if admin user -->
+ {$admin_links}
+</div>
+
+EOT;
+
+echo $display;
diff --git a/mod/tabbed_profile/views/default/profile/sidebar.php b/mod/tabbed_profile/views/default/profile/sidebar.php
new file mode 100644
index 000000000..525a2da81
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/sidebar.php
@@ -0,0 +1,13 @@
+<?php
+/**
+ * Elgg profile icon edit form
+ *
+ * @package ElggProfile
+ */
+?>
+<div id="profile_sidebar">
+<?php
+ $section = $vars['section'];
+ echo elgg_view('profile/ownerblock', array('section' => $section));
+?>
+</div> \ No newline at end of file
diff --git a/mod/tabbed_profile/views/default/profile/tab_navigation.php b/mod/tabbed_profile/views/default/profile/tab_navigation.php
new file mode 100755
index 000000000..ca0873ebd
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/tab_navigation.php
@@ -0,0 +1,68 @@
+<?php
+
+$section = 'activity';
+if (isset($vars['section'])) {
+ $section = $vars['section'];
+}
+
+$user = $vars['entity'];
+if (!$user) {
+ // no user so no profile
+ echo elgg_echo('viewfailure', array(__FILE__));
+ return TRUE;
+}
+
+
+$activity = '';
+$friends = '';
+$extend = '';
+$twitter = '';
+
+$url = "{$user->getURL()}/";
+
+//select section
+switch($section){
+ case 'friends':
+ $friends = 'class="selected"';
+ break;
+
+ case 'details':
+ $details = 'class="selected"';
+ break;
+ case 'groups':
+ $groups = 'class="selected"';
+ break;
+ case 'twitter':
+ $twitter = 'class="selected"';
+ break;
+
+ case 'commentwall':
+ $commentwall = 'class="selected"';
+ break;
+ case 'activity':
+ default:
+ $activity = 'class="selected"';
+ break;
+}
+?>
+<div class="elgg-horizontal-tabbed-nav profile">
+<div class="profile_name"><h2><?php echo $user->name; ?></h2></div>
+<ul>
+ <li <?php echo $activity; ?>><a href="<?php echo $url; ?>"><?php echo elgg_echo('activity'); ?></a></li>
+ <li <?php echo $details; ?>><a href="<?php echo $url . 'details'; ?>"><?php echo elgg_echo('Details'); ?></a></li>
+ <li <?php echo $friends; ?>><a href="<?php echo $url . 'friends'; ?>"><?php echo elgg_echo('friends'); ?></a></li>
+ <li <?php echo $groups; ?>><a href="<?php echo $url . 'groups'; ?>"><?php echo elgg_echo('groups'); ?></a></li>
+ <li <?php echo $commentwall; ?>><a href="<?php echo $url . 'commentwall'; ?>"><?php echo elgg_echo('profile:commentwall'); ?></a></li>
+ <?php
+ //check to see if the twitter username is set
+ if($vars['entity']->twitter){
+ ?>
+ <li <?php echo $twitter; ?>><a href="<?php echo $url . 'twitter'; ?>">Twitter</a></li>
+ <?php
+ }
+
+ //insert a view which others can extend
+ echo elgg_view('profile_navigation/extend', array('entity' => $user));
+ ?>
+</ul>
+</div> \ No newline at end of file
diff --git a/mod/tabbed_profile/views/default/profile/tabs/activity.php b/mod/tabbed_profile/views/default/profile/tabs/activity.php
new file mode 100755
index 000000000..ccd2a3915
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/tabs/activity.php
@@ -0,0 +1,32 @@
+<?php
+/**
+ * Elgg user display (details)
+ * @uses $vars['entity'] The user entity
+ *
+ * @todo this needs to recieve a list of activity or HTML in $vars that's generated by a plugin hook.
+ * None of this logic should be here.
+ */
+$limit = 20;
+
+if (is_plugin_enabled('thewire')) {
+ // users last status msg, if they posted one
+ echo elgg_view("profile/status", array("entity" => $vars['entity']));
+}
+
+if (is_plugin_enabled('conversations')) {
+ // users last status msg, if they posted one
+ echo elgg_view("profile/status", array("entity" => $vars['entity']));
+}
+
+if (is_plugin_enabled('riverdashboard')) {
+ //select the correct river
+ if (get_plugin_setting('activitytype', 'riverdashboard') == 'classic') {
+ echo elgg_view_river_items($vars['entity']->getGuid(), 0, '', '', '', '', $limit,0,0,false,true);
+ } else {
+ echo elgg_view_river_items($vars['entity']->getGuid(), 0, '', '', '', '', $limit,0,0,false,false);
+ echo elgg_view('riverdashboard/js');
+ }
+} else {
+ // @todo this should not be here.
+ echo "Riverdashboard not loaded";
+} \ No newline at end of file
diff --git a/mod/tabbed_profile/views/default/profile/tabs/commentwall.php b/mod/tabbed_profile/views/default/profile/tabs/commentwall.php
new file mode 100644
index 000000000..bf54bd7e7
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/tabs/commentwall.php
@@ -0,0 +1,13 @@
+<?php
+/**
+ * Elgg profile comment wall
+ */
+
+$user = elgg_get_page_owner();
+$comments = $user->getAnnotations('commentwall', 200, 0, 'desc');
+
+if (isloggedin()) {
+ echo elgg_view("profile/commentwall/commentwalladd");
+}
+
+echo elgg_view("profile/commentwall/commentwall", array('annotation' => $comments));
diff --git a/mod/tabbed_profile/views/default/profile/tabs/details.php b/mod/tabbed_profile/views/default/profile/tabs/details.php
new file mode 100755
index 000000000..27b0f943b
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/tabs/details.php
@@ -0,0 +1,41 @@
+<?php
+/**
+ * Elgg user display (details)
+ * @uses $vars['entity'] The user entity
+ */
+
+$even_odd = null;
+if (is_array($vars['config']->profile) && sizeof($vars['config']->profile) > 0) {
+ foreach($vars['config']->profile as $shortname => $valtype) {
+ if ($shortname != "description") {
+ $value = $vars['entity']->$shortname;
+ if (!empty($value)) {
+ //This function controls the alternating class
+ $even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even';
+ ?>
+ <p class="<?php echo $even_odd; ?>">
+ <b><?php
+ echo elgg_echo("profile:{$shortname}");
+ ?>: </b>
+ <?php
+ echo elgg_view("output/{$valtype}", array('value' => $vars['entity']->$shortname));
+ ?>
+ </p>
+ <?php
+ }
+ }
+ }
+}
+
+if (!get_plugin_setting('user_defined_fields', 'profile')) {
+ if ($vars['entity']->isBanned()) {
+ echo "<div class='banned_user'>";
+ echo elgg_echo('profile:banned');
+ echo "</div>";
+ } else {
+ if ($vars['entity']->description) {
+ echo "<p class='aboutme_title'><b>" . elgg_echo("profile:aboutme") . "</b></p>";
+ echo "<div class='aboutme_contents'>" . elgg_view('output/longtext', array('value' => $vars['entity']->description)) . "</div>";
+ }
+ }
+}
diff --git a/mod/tabbed_profile/views/default/profile/tabs/friends.php b/mod/tabbed_profile/views/default/profile/tabs/friends.php
new file mode 100755
index 000000000..9195629e5
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/tabs/friends.php
@@ -0,0 +1,12 @@
+<?php
+/**
+ * Profile friends
+ **/
+
+$friends = list_entities_from_relationship('friend', $vars['entity']->getGUID(), FALSE, 'user', '', 0, 10, FALSE);
+
+if(!$friends) {
+ $friends = '<p>' . elgg_echo('profile:no_friends') . '</p>';
+}
+
+echo $friends; \ No newline at end of file
diff --git a/mod/tabbed_profile/views/default/profile/tabs/groups.php b/mod/tabbed_profile/views/default/profile/tabs/groups.php
new file mode 100644
index 000000000..323bb61f1
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/tabs/groups.php
@@ -0,0 +1,11 @@
+<?php
+/**
+ * Profile groups
+ **/
+$groups = list_entities_from_relationship('member',$vars['entity']->getGUID(),false,'group','',0, $limit,false, false);
+
+if(!$groups) {
+ $groups = '<p>' . elgg_echo('profile:no_groups') . '</p>';
+}
+
+echo $groups; \ No newline at end of file
diff --git a/mod/tabbed_profile/views/default/profile/tabs/twitter.php b/mod/tabbed_profile/views/default/profile/tabs/twitter.php
new file mode 100755
index 000000000..06a0551d4
--- /dev/null
+++ b/mod/tabbed_profile/views/default/profile/tabs/twitter.php
@@ -0,0 +1,17 @@
+<?php
+/**
+ * Elgg twitter view page
+ */
+
+$twitter_username = $vars['entity']->twitter;
+
+// if the twitter username is empty, then do not show
+if($twitter_username){
+?>
+<ul id="twitter_update_list"></ul>
+<p class="visit_twitter"><a href="http://twitter.com/<?php echo $twitter_username; ?>" target="_blank"><?php echo elgg_echo("twitter:visit"); ?></a></p>
+<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
+<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/<?php echo $twitter_username; ?>.json?callback=twitterCallback2&count=10"></script>
+
+<?php
+} \ No newline at end of file