fix grib hot course and courses catalog

remotes/angel/1.11.x
Alex Aragon 9 years ago
parent bd552e9f8b
commit 3c99e4b53f
  1. 14
      app/Resources/public/css/base.css
  2. 4
      main/inc/lib/display.lib.php
  3. 9
      main/template/default/auth/courses_categories.php
  4. 2
      main/template/default/layout/hot_course_item.tpl

@ -4727,9 +4727,14 @@ div#chat-remote-video video {
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05);
text-align: left;
background-color: #fff;
min-height: 285px;
min-height: 250px;
border: 1px solid #DFDFDF;
border-radius: 5px;
margin-bottom: 20px;
}
.grid-courses .items.items-courses,
.grid-courses .items.items-hotcourse{
min-height: 300px;
}
.grid-courses .items .title{
line-height: 1.4;
@ -4783,13 +4788,6 @@ div#chat-remote-video video {
padding-top: 5px;
text-align: center;
}
.grid-courses .items .buycourses-price{
margin-top: 5px;
text-align: left;
}
.grid-courses .items .separator{
margin-top: 5px;
}
.grid-courses .items .admin-actions, .grid-courses .items .user-actions{
position: absolute;
bottom: 0px;

@ -1680,9 +1680,9 @@ class Display
$labels[]= $number_of_users_who_voted == 1 ? $number_of_users_who_voted.' '.get_lang('Vote') : $number_of_users_who_voted.' '.get_lang('Votes');
$labels[]= $accesses == 1 ? $accesses.' '.get_lang('Visit') : $accesses.' '.get_lang('Visits');
if (!empty($number_of_users_who_voted)) {
/* if (!empty($number_of_users_who_voted)) {
$labels[]= get_lang('Average').' '.$point_info['point_average_star'].'/5';
}
} */
$labels[]= $point_info['user_vote'] ? get_lang('YourVote').' ['.$point_info['user_vote'].']' : get_lang('YourVote'). ' [?] ';

@ -217,7 +217,7 @@ if ($showCourses && $action != 'display_sessions') {
$html = null;
// display the course bloc
$html .= '<div class="col-xs-6 col-sm-6 col-md-3"><div class="items">';
$html .= '<div class="col-xs-6 col-sm-6 col-md-3"><div class="items items-courses">';
// display thumbnail
$html .= returnThumbnail($course);
@ -243,10 +243,14 @@ if ($showCourses && $action != 'display_sessions') {
// display course title and button bloc
$html .= '<div class="description">';
$html .= return_title($course);
$html .= $separator;
// display button line
$html .= '<div class="toolbar">';
$html .= '<div class="left">';
$html .= $separator;
$html .= '</div>';
$html .= '<div class="right">';
$html .= '<div class="btn-group">';
// if user registered as student
if ($user_registerd_in_course_as_student) {
@ -280,6 +284,7 @@ if ($showCourses && $action != 'display_sessions') {
$html .= '</div>';
$html .= '</div>';
$html .= '</div>';
$html .= '</div>';
echo $html;
}

@ -1,7 +1,7 @@
{% for item in hot_courses %}
{% if item.title %}
<div class="col-xs-12 col-sm-6 col-md-4">
<div class="items">
<div class="items items-hotcourse">
<div class="image">
<img src="{{ item.course_image_large }}" class="img-responsive">
{% if item.categoryName != '' %}

Loading…
Cancel
Save