aboutsummaryrefslogtreecommitdiff
path: root/mod/embed/views/default/embed/link.php
blob: c4fae0d42a60460a1dd817e5df0900cf3800e818 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
/**
 * Displays an "Embed media" link in longtext inputs.
 */

// yeah this is naughty.  embed and ecml might want to merge.
if (elgg_is_active_plugin('ecml')) {
	$active_section = 'active_section=web_services&';
} else {
	$active_section = '';
}

?>
<a class="elgg-longtext-control small link" href="<?php echo elgg_get_site_url() . 'pg/embed'; ?>?<?php echo $active_section; ?>internal_name=<?php echo $vars['internalname']; ?>" rel="facebox"><?php echo elgg_echo('media:insert'); ?></a>