@ -64,6 +64,14 @@ body {
margin-bottom: 60px;
}
body.page_origin_embeddable {
padding-top: 10px;
body.page_origin_embeddable #cm-content > .container {
margin-bottom: 0px;
padding-bottom: 0px;
.footer > .container {
padding-right: 15px;
padding-left: 15px;
@ -86,11 +86,6 @@ if (!in_array($origin, ['learnpath', 'embeddable'])) {
// So we are not in learnpath tool
Display::display_header($nameTools, get_lang('Exercise'));
} else {
$htmlHeadXtra[] = "
<style>
body { background: none;}
</style>
";
Display::display_reduced_header();
@ -862,7 +862,6 @@ if (!in_array($origin, ['learnpath', 'embeddable'])) { //so we are not in learnp
Display::display_header(null, 'Exercises');
$htmlHeadXtra[] = "<style> body { background: none;} </style> ";
echo '<div style="height:10px"> </div>';
@ -963,6 +963,7 @@ class Template
*/
public function display($template, $clearFlashMessages = true)
{
$this->assign('page_origin', api_get_origin());
$this->assign('flash_messages', Display::getFlashToString());
if ($clearFlashMessages) {
@ -9,7 +9,7 @@
{% include 'layout/head.tpl'|get_template %}
{% endblock %}
</head>
<body>
<body class="{{ 'page_origin' ? ('page_origin_' ~ page_origin) : '' }}">
<!-- START MAIN -->
<main id="main" dir="{{ text_direction }}" class="{{ section_name }} {{ login_class }}">
<noscript>{{ "NoJavascript"|get_lang }}</noscript>