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');
}
}
--- /dev/null
+<?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>
?>
<div id="elgg_footer">
<div id="elgg_footer_contents" class="clearfloat">
- <?php
- if(is_plugin_enabled('reportedcontent') && isloggedin()){
- ?>
- <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)">Report this</a>
- </div>
- <?php
- }
- ?>
<?php echo elgg_view('footer/links'); ?>
<a href="http://www.elgg.org" class="powered_by_elgg_badge">
<img src="<?php echo $vars['url']; ?>_graphics/powered_by_elgg_badge_drk_bckgnd.gif" alt="Powered by Elgg" />