new styling of profile-attached files refs#7126

1.9.x
aragonc 11 years ago
parent 6ebb460448
commit a237d096e9
  1. 16
      main/css/base.css
  2. 3
      main/css/chamilo/default.css
  3. BIN
      main/img/archive.png
  4. BIN
      main/img/delete.png
  5. 11
      main/inc/lib/usermanager.lib.php

@ -1046,6 +1046,22 @@ a.personal_agenda:hover, a.personal_agenda:hover {
background-color: #FFFFDD;
}
#profile .control-group .controls .files-production{
padding: 5px 25px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
background-color: #F1F3F5;
border: 1px solid #EAEBED;
}
#productions{
list-style: none;
}
#productions li{
list-style: none;
padding-top: 3px;
padding-bottom: 3px;
}
.message-group-content {
float:right;

@ -13,7 +13,7 @@ body {
}
a {
text-decoration: none;
color :#0B4C5F;
color :#666666;
}
a:visited {
text-decoration: none;
@ -812,7 +812,6 @@ footer a:link, footer a:visited {
#social-content-online {
background-color:#00AAE3;
}
.admin_section li {
background-image:url(images/bullet.gif);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 416 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 911 B

@ -1368,18 +1368,19 @@ class UserManager
$production_path = self::get_user_picture_path_by_id($user_id, 'web');
$production_dir = $production_path['dir'];
$del_image = api_get_path(WEB_CODE_PATH).'img/delete.gif';
$del_image = api_get_path(WEB_CODE_PATH).'img/delete.png';
$add_image = api_get_path(WEB_CODE_PATH).'img/archive.png';
$del_text = get_lang('Delete');
$production_list = '';
if (count($productions) > 0) {
$production_list = '<ul id="productions">';
$production_list = '<div class="files-production"> <ul id="productions">';
foreach ($productions as $file) {
$production_list .= '<li><a href="'.$production_dir.urlencode($file).'" target="_blank">'.htmlentities($file).'</a>';
$production_list .= '<li><img src="'.$add_image.'" /><a href="'.$production_dir.urlencode($file).'" target="_blank">'.htmlentities($file).'</a>';
if ($showdelete) {
$production_list .= '<input style="width:16px;" type="image" name="remove_production['.urlencode($file).']" src="'.$del_image.'" alt="'.$del_text.'" title="'.$del_text.' '.htmlentities($file).'" onclick="javascript: return confirmation(\''.htmlentities($file).'\');" /></li>';
$production_list .= '&nbsp;&nbsp;<input style="width:16px;" type="image" name="remove_production['.urlencode($file).']" src="'.$del_image.'" alt="'.$del_text.'" title="'.$del_text.' '.htmlentities($file).'" onclick="javascript: return confirmation(\''.htmlentities($file).'\');" /></li>';
}
}
$production_list .= '</ul>';
$production_list .= '</ul></div>';
}
return $production_list;

Loading…
Cancel
Save