This commit is contained in:
Laurent Destailleur 2020-09-15 12:07:15 +02:00
parent 522676d745
commit 9a9b7ecb95
3 changed files with 136 additions and 133 deletions

View File

@ -229,7 +229,7 @@ if ($action == 'edit')
$value = (!empty($conf->global->{$delay['code']}) ? $conf->global->{$delay['code']}:0); $value = (!empty($conf->global->{$delay['code']}) ? $conf->global->{$delay['code']}:0);
print '<tr class="oddeven">'; print '<tr class="oddeven">';
print '<td width="20px">'.img_object('', $delay['img']).'</td>'; print '<td width="20px">'.img_object('', $delay['img']).'</td>';
print '<td>'.$langs->trans('Delays_'.$delay['code']).'</td><td>'; print '<td>'.$langs->trans('Delays_'.$delay['code']).'</td><td class="nowraponall">';
print '<input class="right maxwidth75" type="number" name="'.$delay['code'].'" value="'.$value.'"> '.$langs->trans("days").'</td></tr>'; print '<input class="right maxwidth75" type="number" name="'.$delay['code'].'" value="'.$value.'"> '.$langs->trans("days").'</td></tr>';
} }
} }
@ -290,6 +290,8 @@ if ($action == 'edit')
print '<br>'; print '<br>';
if ($conf->global->MAIN_DISABLE_METEO != 1) {
// Show logo for weather // Show logo for weather
print '<span class="opacitymedium">'.$langs->trans("DescWeather").'</span> '; print '<span class="opacitymedium">'.$langs->trans("DescWeather").'</span> ';
@ -430,8 +432,8 @@ if ($action == 'edit') {
print '</div>'; print '</div>';
} }
} }
}
print '</div>';
if ($action == 'edit') { if ($action == 'edit') {
print '<br><div class="center"><input type="submit" class="button" value="'.$langs->trans("Save").'"></div>'; print '<br><div class="center"><input type="submit" class="button" value="'.$langs->trans("Save").'"></div>';

View File

@ -379,23 +379,23 @@ if (GETPOSTISSET('THEME_SATURATE_RATIO')) $conf->global->THEME_SATURATE_RATIO =
} }
.fa-weather-level0:before{ .fa-weather-level0:before{
content: "\f185"; content: "\f185";
color : #ffbf00; color : #cfbf00;
} }
.fa-weather-level1:before{ .fa-weather-level1:before{
content: "\f6c4"; content: "\f6c4";
color : #b0b0b0; color : #bc9526;
} }
.fa-weather-level2:before{ .fa-weather-level2:before{
content: "\f0c2"; content: "\f743";
color : #9b9b9b; color : #b16000;
} }
.fa-weather-level3:before{ .fa-weather-level3:before{
content: "\f740"; content: "\f740";
color : #888888; color : #b04000;
} }
.fa-weather-level4:before{ .fa-weather-level4:before{
content: "\f0e7"; content: "\f0e7";
color : #b91f1f; color : #b01000;
} }

View File

@ -388,25 +388,26 @@ if (GETPOSTISSET('THEME_SATURATE_RATIO')) $conf->global->THEME_SATURATE_RATIO =
} }
.fa-weather-level0:before{ .fa-weather-level0:before{
content: "\f185"; content: "\f185";
color : #000000; color : #cfbf00;
} }
.fa-weather-level1:before{ .fa-weather-level1:before{
content: "\f6c4"; content: "\f6c4";
color : #000000; color : #bc9526;
} }
.fa-weather-level2:before{ .fa-weather-level2:before{
content: "\f0c2"; content: "\f743";
color : #000000; color : #b16000;
} }
.fa-weather-level3:before{ .fa-weather-level3:before{
content: "\f740"; content: "\f740";
color : #000000; color : #b04000;
} }
.fa-weather-level4:before{ .fa-weather-level4:before{
content: "\f0e7"; content: "\f0e7";
color : #000000; color : #b01000;
} }
/* USING IMAGES FOR WEATHER INTEAD OF FONT AWESOME */ /* USING IMAGES FOR WEATHER INTEAD OF FONT AWESOME */
/* For other themes just uncomment this part */ /* For other themes just uncomment this part */
/*.info-box-weather-level0, /*.info-box-weather-level0,