fix hot course tpl

1.10.x
aragonc 10 years ago
parent 48c66062dc
commit 054e75a4ab
  1. 9
      main/css/base.css
  2. 14
      main/css/chamilo/default.css
  3. BIN
      main/img/alt_star.png
  4. 7
      main/inc/lib/course.lib.php
  5. 12
      main/template/default/layout/hot_course_item.tpl
  6. 14
      main/template/default/layout/hot_courses.tpl

@ -4913,7 +4913,7 @@ i.size-32.icon-new-work{
}
.text-h3 {
font-size: 18px;
font-size: 16px;
}
.text-h4 {
@ -5793,12 +5793,12 @@ ul.holder li.bit-box{
display: block;
}
}
#search_settings{
margin-bottom: 15px;
}
.src-image {
display: none;
}
.card {
overflow: hidden;
position: relative;
@ -5810,7 +5810,6 @@ ul.holder li.bit-box{
color: rgb(136, 172, 217);
margin-bottom: 20px;
}
.card .header-bg {
/* This stretches the canvas across the entire hero unit */
position: absolute;

@ -131,15 +131,17 @@ a:focus {
background-color:#00829C;
}
.nav > li > a:hover, .nav > li > a:focus{
background-color: transparent;
}
.navbar-inverse li a{
line-height: 26px !important;
background: none !important;
border-right:1px solid rgba(0, 0, 0, 0.2) !important;
border-left:1px solid rgba(255, 255, 255, 0.1) !important;
}
.nav > li > a:hover, .nav > li > a:focus{
background-color: transparent;
}
.navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus{
color: #ffffff;
}
@ -154,6 +156,12 @@ a:focus {
filter: none !important;
border-left-color: transparent !important;
}
.navbar-inverse .dropdown-menu li a:hover,
.navbar-inverse .dropdown-menu li a:focus{
background:#3C4147 !important;
color: #fff;
}
.badge-warning{
background-color: #FD6600;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

@ -3512,8 +3512,10 @@ class CourseManager
$html .= '</div>';
$notifications = isset($params['notifications']) ? $params['notifications'] : null;
$param_class = isset($params['class']) ? $params['class'] : null;
$params['right_actions'] = isset($params['right_actions']) ? $params['right_actions'] : null;
$html .= '<div class="col-md-10 ' . $param_class . '">';
$html .= '<div class="pull-right">' . $params['right_actions'] . '</div>';
$html .= '<h4 class="title">' . $params['title'] . $notifications . '</h4> ';
if (isset($params['show_description'], $params['description']) && $params['show_description'] == 1) {
@ -3535,8 +3537,7 @@ class CourseManager
$html .= '</div>';
$html .= '</div>';
$params['right_actions'] = isset($params['right_actions']) ? $params['right_actions'] : null;
$html .= '<div class="pull-right">' . $params['right_actions'] . '</div>';
$html .= '</div>';
$html .= '</div>';
return $html;
@ -4804,7 +4805,7 @@ class CourseManager
) {
$my_course['extra_info']['description_button'] = Display::url(get_lang('Description'),
api_get_path(WEB_AJAX_PATH) . 'course_home.ajax.php?a=show_course_information&amp;code=' . $course_info['code'],
array('class' => 'ajax btn'));
array('class' => 'btn btn-default ajax'));
}
$my_course['extra_info']['teachers'] = CourseManager::get_teacher_list_from_course_code_to_string($course_info['code']);

@ -1,14 +1,14 @@
{% for hot_course in hot_courses %}
{% if hot_course.extra_info.title %}
<div class="col-md-12 hot-course-box">
<div class="well_border">
<div class="row">
<div class="span2">
<div class="col-md-2">
<div class="thumbnail">
<img src="{{ hot_course.extra_info.course_image }}" alt="{{ hot_course.extra_info.title|e }}" />
</div>
</div>
<div class="span6">
<div class="col-md-10">
<div class="categories-course-description">
<div class="text-h3">{{ hot_course.extra_info.title}}</div>
<div class="text-h5">{{ hot_course.extra_info.teachers }}</div>
@ -22,7 +22,7 @@
</p>
</div>
</div>
</div>
</div>
{% endif %}
{% endfor %}

@ -21,19 +21,21 @@ $(document).ready( function() {
});
</script>
<section id="hot_courses">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
{{ "HottestCourses"|get_lang}}
{% if _u.is_admin %}
<span class="pull-right">
<a title="{{ "Hide"|get_lang }}" alt="{{ "Hide"|get_lang }}" href="{{ _p.web_main }}admin/settings.php?search_field=show_hot_courses&submit_button=&_qf__search_settings=&category=search_setting">
<img src="{{ "visible.png"|icon(32) }}">
<img src="{{ "eyes.png"|icon(22) }}">
</a>
</span>
{% endif %}
{{ "HottestCourses"|display_page_subheader }}
</div>
{% include template ~ '/layout/hot_course_item.tpl' %}
</div>
<div class="panel-body">
{% include template ~ '/layout/hot_course_item.tpl' %}
</div>
</div>
</section>
{% endif %}

Loading…
Cancel
Save