Add "courses-history" class to section id="page-content" element to allow for specific styling of closed courses - loosely refs BT#9885 #TMI

1.10.x
Yannick Warnier 10 years ago
parent a27e71c336
commit 00aee04ce7
  1. 2
      main/template/default/layout/layout_2_col.tpl
  2. 5
      user_portal.php

@ -101,7 +101,7 @@
{% block content %} {% block content %}
{% if content is not null %} {% if content is not null %}
<section id="page-content"> <section id="page-content" class="{{ course_history_page }}">
{{ content }} {{ content }}
</section> </section>
{% endif %} {% endif %}

@ -186,6 +186,11 @@ $controller->tpl->assign('classes_block', $controller->return_classes_block());
//if (api_is_platform_admin() || api_is_drh()) { //if (api_is_platform_admin() || api_is_drh()) {
$controller->tpl->assign('skills_block', $controller->return_skills_links()); $controller->tpl->assign('skills_block', $controller->return_skills_links());
//} //}
$historyClass = '';
if (!empty($_GET['history'])) {
$historyClass = 'courses-history';
}
$controller->tpl->assign('course_history_page', $historyClass);
$controller->tpl->display_two_col_template(); $controller->tpl->display_two_col_template();
// Deleting the session_id. // Deleting the session_id.

Loading…
Cancel
Save