From 00aee04ce7536ad342e8f0196d2a65ebc3ae1e71 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Tue, 21 Jul 2015 22:52:05 -0500 Subject: [PATCH] Add "courses-history" class to section id="page-content" element to allow for specific styling of closed courses - loosely refs BT#9885 #TMI --- main/template/default/layout/layout_2_col.tpl | 2 +- user_portal.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/main/template/default/layout/layout_2_col.tpl b/main/template/default/layout/layout_2_col.tpl index 598bcf3be0..9388a45cac 100755 --- a/main/template/default/layout/layout_2_col.tpl +++ b/main/template/default/layout/layout_2_col.tpl @@ -101,7 +101,7 @@ {% block content %} {% if content is not null %} -
+
{{ content }}
{% endif %} diff --git a/user_portal.php b/user_portal.php index bcb930d7a2..acfa80bcf7 100755 --- a/user_portal.php +++ b/user_portal.php @@ -186,6 +186,11 @@ $controller->tpl->assign('classes_block', $controller->return_classes_block()); //if (api_is_platform_admin() || api_is_drh()) { $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(); // Deleting the session_id.