aboutsummaryrefslogtreecommitdiff
path: root/mod/reportedcontent/views/default/reportedcontent/footer_link.php
blob: 58a19b34323e5d443b4a7e0ea540e0175e29a64e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/**
 * Elgg report this link
 *
 * @package ElggReportContent
 */

$title = elgg_echo('reportedcontent:this:tooltip');
$text  = elgg_echo('reportedcontent:this');

$url = elgg_get_site_url() . 'pg/reportedcontent/add/?address=';
$href = "javascript:location.href='$url'";
$href .= "+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)";
$href = elgg_format_url($href);
?>

<a class="report-this" href="<?php echo $href; ?>" title="<?php echo $title; ?>">
	<span class="elgg-icon report-this-icon"></span>
	<?php echo $text; ?>
</a>