Making big icon course home style by default. When upgrading the style will be the same

skala
Julio Montoya 13 years ago
parent a989ae5f95
commit 2c255c4e39
  1. 10
      main/inc/lib/course_home.lib.php
  2. 2
      main/install/db_main.sql

@ -774,10 +774,9 @@ class CourseHome {
foreach($items as $item) {
switch($theme) {
case 'activity_big':
$data = '';
$data = '';
if ($i == 0) {
echo '<table class="100%">';
echo '<table style="width:100%">';
}
$row_per = 33;
$mod = 3;
@ -794,8 +793,11 @@ class CourseHome {
echo '<td width="'.$row_per.'%">';
$image = (substr($item['tool']['image'], 0, strpos($item['tool']['image'], '.'))).'.png';
$image = Display::tag('center', Display::return_icon($image, $item['name'], array('id'=>'toolimage_'.$item['tool']['id']), 64));
//experimental changes nothing serious
//$my_icon = api_get_path(WEB_CODE_PATH).'img/icons/64/'.$image;
//$image = Display::tag('span', Display::return_icon($image, $item['name'], array('id'=>'toolimage_'.$item['tool']['id'],'style'=>'opacity:0'), 64),array('class'=>'image-wrap','style'=>'background:url('.$my_icon.')'));
$data .= Display::url($image , $item['url_params']['href'], $item['url_params']);
echo Display::div($data, array('class'=>'big_icon'));
echo Display::div($data, array('class'=>'big_icon')); //box-image reflection
echo Display::tag('center', Display::div($item['visibility'].$item['extra'].$item['link'], array('class'=>'content')));
echo '</td>';

@ -580,7 +580,7 @@ VALUES
('show_administrator_data',NULL,'radio','Platform','true','ShowAdministratorDataTitle','ShowAdministratorDataComment',NULL,NULL, 1),
('show_tutor_data',NULL,'radio','Platform','true','ShowTutorDataTitle','ShowTutorDataComment',NULL,NULL, 1),
('show_teacher_data',NULL,'radio','Platform','true','ShowTeacherDataTitle','ShowTeacherDataComment',NULL,NULL, 1),
('homepage_view',NULL,'radio','Course','activity','HomepageViewTitle','HomepageViewComment',NULL,NULL, 0),
('homepage_view',NULL,'radio','Course','activity_big','HomepageViewTitle','HomepageViewComment',NULL,NULL, 0),
('show_toolshortcuts',NULL,'radio','Course','false','ShowToolShortcutsTitle','ShowToolShortcutsComment',NULL,NULL, 0),
('allow_group_categories',NULL,'radio','Course','false','AllowGroupCategories','AllowGroupCategoriesComment',NULL,NULL, 0),
('server_type',NULL,'radio','Platform','production','ServerStatusTitle','ServerStatusComment',NULL,NULL, 0),

Loading…
Cancel
Save