From e1e90eb92a1d060ad98fc1338c4cda92df9fd083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Arag=C3=B3n?= Date: Wed, 25 Apr 2018 17:25:51 -0500 Subject: [PATCH] fix title tools - refs BT#11338 --- app/Resources/public/css/base.css | 10 ++-- main/inc/introductionSection.inc.php | 7 ++- .../template/default/course_home/activity.tpl | 52 +++++++++---------- 3 files changed, 36 insertions(+), 33 deletions(-) diff --git a/app/Resources/public/css/base.css b/app/Resources/public/css/base.css index ed376431c1..95285f894f 100644 --- a/app/Resources/public/css/base.css +++ b/app/Resources/public/css/base.css @@ -1619,7 +1619,10 @@ a.unread { text-align: right; } -/* Big icons course home page styles */ +/* BIG TOOLS COURSE */ +.title-tools{ + font-weight: bold; +} #course_tools .big_icon { padding: 10px; text-align: center; @@ -6168,7 +6171,6 @@ div#chat-remote-video video { } .toolbar-edit { - padding: 5px; display: inline-block; width: 100%; } @@ -6868,12 +6870,8 @@ div#chat-remote-video video { color: #666; border: 1px dashed #B0B0B0; border-radius: 5px; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; padding: 1em; margin-bottom: 1em; - margin-right: 5%; - margin-left: 5%; text-align: center; } diff --git a/main/inc/introductionSection.inc.php b/main/inc/introductionSection.inc.php index aa101cc821..994c1f1f15 100755 --- a/main/inc/introductionSection.inc.php +++ b/main/inc/introductionSection.inc.php @@ -344,6 +344,11 @@ if ($intro_dispCommand) { } } +$nameSection = get_lang('AddCustomCourseIntro'); +if($moduleId != 'course_homepage'){ + $nameSection = get_lang('AddCustomToolsIntro'); +} + $introduction_section .= '
'; if ($intro_dispDefault) { if (!empty($intro_content)) { @@ -353,7 +358,7 @@ if ($intro_dispDefault) { } else { if (api_is_allowed_to_edit()) { $introduction_section .= '
'; - $introduction_section .= get_lang('AddCustomCourseIntro').' '.$textIntro; + $introduction_section .= $nameSection.' '.$textIntro; $introduction_section .= '
'; } } diff --git a/main/template/default/course_home/activity.tpl b/main/template/default/course_home/activity.tpl index 182c102461..82191d79e2 100644 --- a/main/template/default/course_home/activity.tpl +++ b/main/template/default/course_home/activity.tpl @@ -1,40 +1,40 @@ {% for block in blocks %} {% if block.title %} -
-
-

{{ block.title }}

-
+ - {% endif %} -
- {% if 'homepage_view'|api_get_setting == 'activity' %} +
+
+ {% if 'homepage_view'|api_get_setting == 'activity' %} {% for item in block.content %} -
- {{ item.extra }} - {{ item.visibility }} - {{ item.icon }} - {{ item.link }} -
+
+ {{ item.extra }} + {{ item.visibility }} + {{ item.icon }} + {{ item.link }} +
{% endfor %} - {% endif %} + {% endif %} - {% if 'homepage_view'|api_get_setting == 'activity_big' %} + {% if 'homepage_view'|api_get_setting == 'activity_big' %} {% for item in block.content %} -
-
-
- {{ item.tool.image }} -
-
- {{ item.visibility }} - {{ item.extra }} - {{ item.link }} -
+
+
+
+ {{ item.tool.image }} +
+
+ {{ item.visibility }} + {{ item.extra }} + {{ item.link }}
+
{% endfor %} - {% endif %} + {% endif %} +
+ {% endfor %}