Merge pull request #5889 from christianbeeznest/ofaj-22145

Exercise: Fix hotspot question zone selection and image clickability - refs BT#22145
pull/5890/head
christianbeeznest 11 months ago committed by GitHub
commit 9e66727631
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      public/main/exercise/admin.php
  2. 6
      src/CoreBundle/Resources/views/Layout/base-layout.html.twig

@ -281,7 +281,15 @@ $htmlHeadXtra[] = api_get_build_js('legacy_exercise.js');
$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');

@ -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 %}

Loading…
Cancel
Save