aboutsummaryrefslogtreecommitdiff
path: root/mod/embed/views/default/embed/link.php
blob: e2c3b1bff11b5bfaadb714f2bcc1e1313801f337 (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 (is_plugin_enabled('ecml')) {
	$active_section = 'active_section=web_services&';
} else {
	$active_section = '';
}

?>
<a class="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>