From 0b1610e50e600810493c46208ed976282976288c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Loguercio?= Date: Wed, 22 Jun 2016 15:19:43 -0500 Subject: [PATCH 1/4] Fix Session delete if documents inside --- main/inc/lib/document.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/inc/lib/document.lib.php b/main/inc/lib/document.lib.php index d9a788d5ac..8d47bf16eb 100755 --- a/main/inc/lib/document.lib.php +++ b/main/inc/lib/document.lib.php @@ -6242,7 +6242,7 @@ class DocumentManager * * @return bool */ - public function deleteDocumentsFromSession($courseInfo, $sessionId) + public static function deleteDocumentsFromSession($courseInfo, $sessionId) { if (empty($courseInfo)) { return false; From 31dcd7e86bcc72a7c707f19d20644be491c5cdca Mon Sep 17 00:00:00 2001 From: Alex Aragon Date: Wed, 22 Jun 2016 16:02:00 -0500 Subject: [PATCH 2/4] fix css default theme and help --- app/Resources/public/css/themes/chamilo/default.css | 13 ++++--------- main/inc/lib/template.lib.php | 10 +++++----- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/app/Resources/public/css/themes/chamilo/default.css b/app/Resources/public/css/themes/chamilo/default.css index 7866ee62c1..06e488976d 100644 --- a/app/Resources/public/css/themes/chamilo/default.css +++ b/app/Resources/public/css/themes/chamilo/default.css @@ -56,7 +56,7 @@ a:focus { overflow: hidden !important; } .navbar-default { - background: #3C8DBC; + background: #1D5591; -webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); } @@ -68,7 +68,7 @@ a:focus { .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus{ color: #fff; - background-color:#367FA9; + background-color:#18477A; } .navbar-default .navbar-nav > li > a{ color: #ffffff; @@ -140,13 +140,8 @@ a:focus { } /* End Jquery UI */ footer{ - background-color:#2C3E50; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff54b4eb', endColorstr='#ff1d9ce5', GradientType=0); - border-bottom: 1px solid #2C3E50; - -webkit-filter: none; - filter: none; - -webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); - box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); + background-color:#1A2226; + border-top: 2px solid #D2D6DE; } footer{ color: #ffffff; diff --git a/main/inc/lib/template.lib.php b/main/inc/lib/template.lib.php index 0d42b8c543..62282acb27 100755 --- a/main/inc/lib/template.lib.php +++ b/main/inc/lib/template.lib.php @@ -273,7 +273,7 @@ class Template if (api_get_setting('enable_help_link') == 'true') { if (!empty($help)) { $help = Security::remove_XSS($help); - $content = '
  • '; + $content = '
    '; $content .= Display::url( Display::return_icon('help.large.png', get_lang('Help')), api_get_path(WEB_CODE_PATH) . 'help/help.php?open=' . $help, @@ -282,7 +282,7 @@ class Template 'data-title' => get_lang('Help') ] ); - $content .= '
  • '; + $content .= ''; } } $this->assign('help_content', $content); @@ -923,12 +923,12 @@ class Template //Profile link if (api_get_setting('allow_social_tool') == 'true') { $profile_url = api_get_path(WEB_CODE_PATH).'social/home.php'; - $profile_link = Display::url(get_lang('Profile'), $profile_url); + } else { $profile_url = api_get_path(WEB_CODE_PATH).'auth/profile.php'; - $profile_link = Display::url(get_lang('Profile'), $profile_url); + } - $this->assign('profile_link', $profile_link); + $this->assign('profile_url', $profile_url); //Message link From 3ac95c96dd50f6d3d186a548b3dfd1a3e6188f47 Mon Sep 17 00:00:00 2001 From: Alex Aragon Date: Wed, 22 Jun 2016 16:05:07 -0500 Subject: [PATCH 3/4] fix css default theme and help --- app/Resources/public/css/themes/chamilo/default.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Resources/public/css/themes/chamilo/default.css b/app/Resources/public/css/themes/chamilo/default.css index 06e488976d..a35ca5bb6a 100644 --- a/app/Resources/public/css/themes/chamilo/default.css +++ b/app/Resources/public/css/themes/chamilo/default.css @@ -76,7 +76,7 @@ a:focus { .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus{ - background: #367FA9; + background: #18477A; color: #ffffff; } .navbar-nav > li > .dropdown-menu{ From 830596005099b27b757ebd16aaf4c2e5e2b3d10a Mon Sep 17 00:00:00 2001 From: Alex Aragon Date: Wed, 22 Jun 2016 18:11:05 -0500 Subject: [PATCH 4/4] fix actions admin part-2 --- main/template/default/layout/page_body.tpl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main/template/default/layout/page_body.tpl b/main/template/default/layout/page_body.tpl index b680cb3b2e..781814951f 100755 --- a/main/template/default/layout/page_body.tpl +++ b/main/template/default/layout/page_body.tpl @@ -1,10 +1,13 @@ {# Actions #} {% if actions != '' %} +
    + {{ actions }} +
    +{% else %}
    {{ actions }}
    {% endif %} - {{ flash_messages }}