diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-12 21:05:11 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-12 21:05:11 +0000 |
commit | 70d21050c08ddf8ee5253b6e6cd6c16fa125ef74 (patch) | |
tree | 16f3e0ee15c64650346d4c6e897d7c710943bd96 /views | |
parent | 7f6be0148ec5f59de60cc14d1748aabcba2953e5 (diff) | |
download | elgg-70d21050c08ddf8ee5253b6e6cd6c16fa125ef74.tar.gz elgg-70d21050c08ddf8ee5253b6e6cd6c16fa125ef74.tar.bz2 |
owner block tweaked to add report this
git-svn-id: https://code.elgg.org/elgg/trunk@1866 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r-- | views/default/page_elements/owner_block.php | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/views/default/page_elements/owner_block.php b/views/default/page_elements/owner_block.php index 021b058f9..387ad7133 100644 --- a/views/default/page_elements/owner_block.php +++ b/views/default/page_elements/owner_block.php @@ -56,17 +56,22 @@ END;
}
- //is the bookmark plugin installed?
- if(is_plugin_enabled('bookmarks')){
-
- $label3 = elgg_echo('bookmarks:this');
- echo "<div id=\"owner_block_bookmark_this\"><a href=\"javascript:location.href='". $CONFIG->wwwroot . "mod/bookmarks/add.php?address='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)\">{$label3}</a></div>";
-
- }
+ //the follow are for logged in users only
+ if(isloggedin()){
+
+ //is the bookmark plugin installed?
+ if(is_plugin_enabled('bookmarks')){
+
+ $label3 = elgg_echo('bookmarks:this');
+ echo "<div id=\"owner_block_bookmark_this\"><a href=\"javascript:location.href='". $CONFIG->wwwroot . "mod/bookmarks/add.php?address='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)\">{$label3}</a></div>";
+
+ }
+
+ //report this button
+ $label4 = elgg_echo('Report this');
+ echo "<div id=\"owner_block_report_this\"><a href=\"javascript:location.href='". $CONFIG->wwwroot . "mod/reportedcontent/add.php?address='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)\">{$label4}</a></div>";
- //report this button
- $label4 = elgg_echo('Report this');
- echo "<div id=\"owner_block_report_this\"><a href=\"\">{$label4}</a></div>";
+ }
echo elgg_view('owner_block/extend');
|