blob: 5b69ffdcc3b2799d4ceae77a0a822e81b19f4020 (
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 $vars['url'] . 'pg/embed'; ?>?<?php echo $active_section; ?>internal_name=<?php echo $vars['internalname']; ?>" rel="facebox"><?php echo elgg_echo('media:insert'); ?></a>
|