fix imagen in configuration course and tpl change hot course BT#7683

1.10.x
aragonc 10 years ago
parent d39c9368a9
commit 9f5cbbbc58
  1. 21
      app/Resources/public/css/base.css
  2. 3
      main/course_info/infocours.php
  3. 16
      main/template/default/layout/hot_course_item.tpl
  4. 11
      main/template/default/layout/hot_courses.tpl

@ -75,6 +75,9 @@ select {
margin-top: 10px;
margin-bottom: 10px;
}
#login_block #formLogin .form-group{
display: none;
}
#login_block .nav-pills{
margin-bottom: 5px;
padding-top: 10px;
@ -4184,11 +4187,9 @@ a.forum_group_link {
margin-right: 10px;
vertical-align:middle;
}
.exercise_overview_options {
text-align: center;
}
.new_actions {
background-color: #EEEEEE;
background-image: -moz-linear-gradient(center top , #F5F5F5 0%, #EEEEEE 100%);
@ -4197,7 +4198,6 @@ a.forum_group_link {
border-radius: 4px 4px 4px 4px;
height: 53px;
}
.new_actions .nav > li > a {
border-left: 1px solid #F5F5F5;
border-radius: 0 0 0 0;
@ -4206,7 +4206,6 @@ a.forum_group_link {
padding-bottom: 11px;
padding-top: 11px;
}
.new_actions-fixed {
border-color: #D5D5D5;
border-radius: 0 0 0 0;
@ -4217,7 +4216,6 @@ a.forum_group_link {
top: 0px;
z-index: 1030;
}
.new_actions .nav > .active > a, .new_actions .nav > .active > a:hover {
background-color: #E9E9E9;
border-left: 0 none;
@ -4226,43 +4224,34 @@ a.forum_group_link {
color: #777777;
padding-left: 13px;
}
.new_actions .nav-tabs > li > a, .new_actions .nav-pills > li > a {
padding-left: 6px;
padding-right: 6px;
}
.subnav .nav > li > .logout {
padding-top:8px;
}
.doc_folder {
margin-right:5px;
margin-top:5px;
width: 100%;
float:left;
}
.doc_folder_hidden {
color : grey;
}
.doc_resource{
margin: 5px;
width: 100%;
float:left;
}
.lp_resource_element_new {
border: 2px dotted green;
}
#course_thing_to_do .thumbnail {
text-align: center;
margin-bottom: 5px;
}
.handle{
background-image: url('../../main/img/div_show.gif');
background-repeat: no-repeat;
@ -4270,7 +4259,6 @@ a.forum_group_link {
padding-left: 25px;
box-shadow:none;
}
.handle.collapsed{
background-image: url('../../main/img/div_show.gif');
background-repeat: no-repeat;
@ -6228,6 +6216,9 @@ div#chat-remote-video video {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
margin-bottom: 10px;
}
.ui-accordion .ui-accordion-content-active{
}
.ui-jqgrid-view .label-success{
font-size: 14px;

@ -116,10 +116,11 @@ if ($form->validate() && is_settings_editable()) {
// Display course picture
$course_path = api_get_path(SYS_COURSE_PATH).$currentCourseRepository; // course path
if (file_exists($course_path.'/course-pic85x85.png')) {
$course_web_path = api_get_path(WEB_COURSE_PATH).$currentCourseRepository; // course web path
$course_medium_image = $course_web_path.'/course-pic85x85.png?'.rand(1, 1000); // redimensioned image 85x85
$image_html = '<div class="row"><div class="formw"><img src="'.$course_medium_image.'" /></div></div>';
$image_html = '<div class="row"><label class="col-md-2 control-label">'.get_lang('Imagen').'</label> <div class="col-md-8"><img src="'.$course_medium_image.'" /></div></div>';
}
$form->addElement('html', $image_html);

@ -1,14 +1,9 @@
{% for hot_course in hot_courses %}
{% if hot_course.extra_info.title %}
<div class="row">
<div class="col-md-2">
{% for hot_course in hot_courses %}
{% if hot_course.extra_info.title %}
<div class="col-md-4">
<div class="thumbnail">
<img src="{{ hot_course.extra_info.course_image }}" alt="{{ hot_course.extra_info.title|e }}" width="85" height="85" />
<img src="{{ hot_course.extra_info.course_image }}" alt="{{ hot_course.extra_info.title|e }}"/>
</div>
</div>
<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>
@ -21,8 +16,5 @@
{{ hot_course.extra_info.unsubscribe_button }}
</p>
</div>
</div>
{% endif %}
{% endfor %}

@ -21,8 +21,8 @@ $(document).ready( function() {
});
</script>
<section id="hot_courses">
<div class="panel panel-default">
<div class="panel-heading">
<div class="hot-course-head">
<h4 class="hot-course-title">
{{ "HottestCourses"|get_lang}}
{% if _u.is_admin %}
<span class="pull-right">
@ -31,9 +31,10 @@ $(document).ready( function() {
</a>
</span>
{% endif %}
</div>
<div class="panel-body">
</h4>
</div>
<div class="hot-course-body">
<div class="row">
{% include template ~ '/layout/hot_course_item.tpl' %}
</div>
</div>

Loading…
Cancel
Save