aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-26 09:29:42 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-26 09:29:42 +0000
commit3692a1fbe3f250bdd772d1e07bb5cb69e86f9c3b (patch)
tree87896229cda718a90a8a3234c91372d827d58d54 /mod
parent76d3b27335145459e1b9da4e07cf37ad8bd050c1 (diff)
downloadelgg-3692a1fbe3f250bdd772d1e07bb5cb69e86f9c3b.tar.gz
elgg-3692a1fbe3f250bdd772d1e07bb5cb69e86f9c3b.tar.bz2
Additional links to tools added to profile pages ownerblock (hardcoded for phase1)
git-svn-id: http://code.elgg.org/elgg/trunk@6222 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rwxr-xr-xmod/profile/views/default/profile/profile_ownerblock.php41
1 files changed, 20 insertions, 21 deletions
diff --git a/mod/profile/views/default/profile/profile_ownerblock.php b/mod/profile/views/default/profile/profile_ownerblock.php
index a040582d0..a0c551b94 100755
--- a/mod/profile/views/default/profile/profile_ownerblock.php
+++ b/mod/profile/views/default/profile/profile_ownerblock.php
@@ -69,40 +69,39 @@ if(isadminloggedin()){
}
-//check tools are enabled
-if(is_plugin_enabled('file')){
- $file_link = "<li><a href=\"{$vars['url']}pg/file/{$username}\">Files</a></li>";
-}else{
- $file_link = "";
-}
+//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=\"{$vars['url']}pg/blog/{$username}\">Blog</a></li>";
}else{
$blog_link = "";
}
-if(is_plugin_enabled('videolist')){
- $video_link = "<li><a href=\"{$vars['url']}pg/videolist/{$username}\">Videos</a></li>";
+if(is_plugin_enabled('bookmarks')){
+ $bookmark_link = "<li><a href=\"{$vars['url']}pg/bookmarks/{$username}\">Bookmarks</a></li>";
}else{
- $video_link = "";
+ $bookmark_link = "";
+}
+if(is_plugin_enabled('document')){
+ $docs_link = "<li><a href=\"{$vars['url']}pg/document/{$username}\">Documents</a></li>";
+}else{
+ $docs_link = "";
}
if(is_plugin_enabled('feeds')){
$feeds_link = "<li><a href=\"{$vars['url']}pg/feeds/{$username}\">Feeds</a></li>";
}else{
$feeds_link = "";
}
-if(is_plugin_enabled('pages')){
- $pages_link = "<li><a href=\"{$vars['url']}pg/pages/owned/{$username}\">Pages</a></li>";
+if(is_plugin_enabled('tidypics')){
+ $tidypics_link = "<li><a href=\"{$vars['url']}pg/photos/owned/{$username}\">Photos</a></li>";
}else{
- $pages_link = "";
+ $tidypics_link = "";
}
-if(is_plugin_enabled('bookmarks')){
- $bookmark_link = "<li><a href=\"{$vars['url']}pg/bookmarks/{$username}\">Bookmarks</a></li>";
+if(is_plugin_enabled('videolist')){
+ $video_link = "<li><a href=\"{$vars['url']}pg/videolist/{$username}\">Videos</a></li>";
}else{
- $bookmark_link = "";
+ $video_link = "";
}
-
-
//contruct the display
$display = <<<EOT
@@ -114,12 +113,12 @@ $display = <<<EOT
{$profile_actions}
<div class="owner_block_links">
<ul>
- {$file_link}
{$blog_link}
- {$video_link}
- {$feeds_link}
{$bookmark_link}
- {$pages_link}
+ {$docs_link}
+ {$feeds_link}
+ {$tidypics_link}
+ {$video_link}
</ul>
</div>
<!-- if admin user -->