Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions public/main/exercise/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,15 @@
$template = new Template();
$templateName = $template->get_template('exercise/submit.js.tpl');
$htmlHeadXtra[] = $template->fetch($templateName);
$htmlHeadXtra[] = api_get_js('d3/jquery.xcolor.js');
$htmlHeadXtra[] = '<link rel="stylesheet" href="'.api_get_path(WEB_LIBRARY_JS_PATH).'hotspot/css/hotspot.css">';
$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_JS_PATH).'hotspot/js/hotspot.js"></script>';

if (isset($_GET['message'])) {
if (in_array($_GET['message'], ['ExerciseStored', 'ItemUpdated', 'ItemAdded'])) {
Display::addFlash(Display::return_message(get_lang($_GET['message']), 'confirmation'));
}
}

Display::display_header($nameTools, 'Exercise');

Expand Down
6 changes: 5 additions & 1 deletion src/CoreBundle/Resources/views/Layout/base-layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
{% block chamilo_head %}
{%- include "@ChamiloCore/Layout/head.html.twig" %}
{% endblock %}
<body class="font-sans antialiased {{ section_name }}">
<body class="font-sans antialiased {{ section_name }}"
data-in-course="{{ course ? 'true' : 'false' }}"
data-course-id="{{ course ? course.id : '' }}"
data-session-id="{{ session ? session.id : '' }}"
>
<noscript>{{ "Your browser does not support Javascript"|trans }}</noscript>
{%- block chamilo_wrap -%}
{%- block page_content %}
Expand Down
Loading