|
|
|
|
@ -83,23 +83,6 @@ Session::erase('draw_dir'); |
|
|
|
|
Session::erase('paint_dir'); |
|
|
|
|
Session::erase('temp_audio_nanogong'); |
|
|
|
|
|
|
|
|
|
$plugin = new AppPlugin(); |
|
|
|
|
$pluginList = $plugin->getInstalledPlugins(); |
|
|
|
|
$capturePluginInstalled = in_array('jcapture', $pluginList); |
|
|
|
|
|
|
|
|
|
if ($capturePluginInstalled) { |
|
|
|
|
$jcapturePath = api_get_path(WEB_PLUGIN_PATH).'jcapture/plugin_applet.php'; |
|
|
|
|
$htmlHeadXtra[] |
|
|
|
|
= '<script> |
|
|
|
|
$(function() { |
|
|
|
|
$("#jcapture").click(function(){ |
|
|
|
|
$("#appletplace").load("'.$jcapturePath.'"); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
</script> |
|
|
|
|
'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (empty($courseInfo)) { |
|
|
|
|
api_not_allowed(true); |
|
|
|
|
} |
|
|
|
|
@ -1803,15 +1786,6 @@ if ($isAllowedToEdit || |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($capturePluginInstalled && !$is_certificate_mode) { |
|
|
|
|
$actionsLeft .= '<span id="appletplace"></span>'; |
|
|
|
|
$actionsLeft .= Display::url( |
|
|
|
|
Display::return_icon('capture.png', get_lang('CatchScreenCasts'), '', ICON_SIZE_MEDIUM), |
|
|
|
|
'#', |
|
|
|
|
['id' => 'jcapture'] |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Create directory |
|
|
|
|
if (!$is_certificate_mode) { |
|
|
|
|
$actionsLeft .= Display::url( |
|
|
|
|
|