fix title tools - refs BT#11338

pull/2539/head
Alex Aragón 8 years ago
parent a423d0714e
commit e1e90eb92a
  1. 10
      app/Resources/public/css/base.css
  2. 7
      main/inc/introductionSection.inc.php
  3. 52
      main/template/default/course_home/activity.tpl

@ -1619,7 +1619,10 @@ a.unread {
text-align: right; text-align: right;
} }
/* Big icons course home page styles */ /* BIG TOOLS COURSE */
.title-tools{
font-weight: bold;
}
#course_tools .big_icon { #course_tools .big_icon {
padding: 10px; padding: 10px;
text-align: center; text-align: center;
@ -6168,7 +6171,6 @@ div#chat-remote-video video {
} }
.toolbar-edit { .toolbar-edit {
padding: 5px;
display: inline-block; display: inline-block;
width: 100%; width: 100%;
} }
@ -6868,12 +6870,8 @@ div#chat-remote-video video {
color: #666; color: #666;
border: 1px dashed #B0B0B0; border: 1px dashed #B0B0B0;
border-radius: 5px; border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
padding: 1em; padding: 1em;
margin-bottom: 1em; margin-bottom: 1em;
margin-right: 5%;
margin-left: 5%;
text-align: center; text-align: center;
} }

@ -344,6 +344,11 @@ if ($intro_dispCommand) {
} }
} }
$nameSection = get_lang('AddCustomCourseIntro');
if($moduleId != 'course_homepage'){
$nameSection = get_lang('AddCustomToolsIntro');
}
$introduction_section .= '<div class="col-md-12">'; $introduction_section .= '<div class="col-md-12">';
if ($intro_dispDefault) { if ($intro_dispDefault) {
if (!empty($intro_content)) { if (!empty($intro_content)) {
@ -353,7 +358,7 @@ if ($intro_dispDefault) {
} else { } else {
if (api_is_allowed_to_edit()) { if (api_is_allowed_to_edit()) {
$introduction_section .= '<div class="help-course">'; $introduction_section .= '<div class="help-course">';
$introduction_section .= get_lang('AddCustomCourseIntro').' '.$textIntro; $introduction_section .= $nameSection.' '.$textIntro;
$introduction_section .= '</div>'; $introduction_section .= '</div>';
} }
} }

@ -1,40 +1,40 @@
{% for block in blocks %} {% for block in blocks %}
{% if block.title %} {% if block.title %}
<div class="row"> <div class="page-header">
<div class="col-md-12"> <h4 class="title-tools">{{ block.title }}</h4>
<h4 class="title-tools">{{ block.title }}</h4>
</div>
</div> </div>
{% endif %} {% endif %}
<div class="row {{ block.class }}"> <div class="row">
{% if 'homepage_view'|api_get_setting == 'activity' %} <div class="{{ block.class }}">
{% if 'homepage_view'|api_get_setting == 'activity' %}
{% for item in block.content %} {% for item in block.content %}
<div class="offset2 col-md-4 course-tool"> <div class="offset2 col-md-4 course-tool">
{{ item.extra }} {{ item.extra }}
{{ item.visibility }} {{ item.visibility }}
{{ item.icon }} {{ item.icon }}
{{ item.link }} {{ item.link }}
</div> </div>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if 'homepage_view'|api_get_setting == 'activity_big' %} {% if 'homepage_view'|api_get_setting == 'activity_big' %}
{% for item in block.content %} {% for item in block.content %}
<div class="col-xs-6 col-sm-4 col-md-3"> <div class="col-xs-6 col-sm-4 col-md-3">
<div class="course-tool"> <div class="course-tool">
<div class="big_icon"> <div class="big_icon">
{{ item.tool.image }} {{ item.tool.image }}
</div> </div>
<div class="content"> <div class="content">
{{ item.visibility }} {{ item.visibility }}
{{ item.extra }} {{ item.extra }}
{{ item.link }} {{ item.link }}
</div>
</div> </div>
</div> </div>
</div>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</div>
</div> </div>
{% endfor %} {% endfor %}

Loading…
Cancel
Save