diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-22 16:20:15 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-22 16:20:15 +0000 |
commit | 146aa6bf8b3c7bb0ce9cb85f99613cf9b22258c0 (patch) | |
tree | 4e128bb75e641cdd7d587927bde57e9d85d3c58d /mod | |
parent | 4d21dc679676166b1ea93412dbe0cdba73a88721 (diff) | |
download | elgg-146aa6bf8b3c7bb0ce9cb85f99613cf9b22258c0.tar.gz elgg-146aa6bf8b3c7bb0ce9cb85f99613cf9b22258c0.tar.bz2 |
removing reported content dependency from core code...again
git-svn-id: http://code.elgg.org/elgg/trunk@6137 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r-- | mod/reportedcontent/start.php | 9 | ||||
-rw-r--r-- | mod/reportedcontent/views/default/reportedcontent/footer_link.php | 15 |
2 files changed, 20 insertions, 4 deletions
diff --git a/mod/reportedcontent/start.php b/mod/reportedcontent/start.php index e9b86230a..ad75f06f0 100644 --- a/mod/reportedcontent/start.php +++ b/mod/reportedcontent/start.php @@ -17,14 +17,15 @@ function reportedcontent_init() { global $CONFIG; // Register a page handler, so we can have nice URLs - register_page_handler('reportedcontent','reportedcontent_page_handler'); + register_page_handler('reportedcontent', 'reportedcontent_page_handler'); // Extend CSS - elgg_extend_view('css','reportedcontent/css'); + elgg_extend_view('css', 'reportedcontent/css'); - // Extend context menu and owner_block with report content link + // Extend context menu and footer with report content link if (isloggedin()) { - elgg_extend_view('profile/menu/links','reportedcontent/user_report'); + elgg_extend_view('profile/menu/links', 'reportedcontent/user_report'); + elgg_extend_view('footer/links', 'reportedcontent/footer_link'); } } diff --git a/mod/reportedcontent/views/default/reportedcontent/footer_link.php b/mod/reportedcontent/views/default/reportedcontent/footer_link.php new file mode 100644 index 000000000..729aef2af --- /dev/null +++ b/mod/reportedcontent/views/default/reportedcontent/footer_link.php @@ -0,0 +1,15 @@ +<?php +/** + * Elgg report this link + * + * @package ElggReportContent + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Curverider <info@elgg.com> + * @copyright Curverider Ltd 2008-2010 + * @link http://elgg.org/ + */ +?> + +<div id="report_this"> + <a href="javascript:location.href='<?php echo $vars['url']; ?>mod/reportedcontent/add.php?address='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><?php echo elgg_echo('reportedcontent:report'); ?></a> +</div> |