Time to enable fontawesome icons on weather feature
This commit is contained in:
parent
b7b1de4580
commit
4137e92430
@ -3268,7 +3268,7 @@ function img_weather($titlealt, $picto, $moreatt = '', $pictoisfullpath = 0, $mo
|
|||||||
if (is_numeric($picto))
|
if (is_numeric($picto))
|
||||||
{
|
{
|
||||||
$leveltopicto = array(0=>'weather-clear.png', 1=>'weather-few-clouds.png', 2=>'weather-clouds.png', 3=>'weather-many-clouds.png', 4=>'weather-storm.png');
|
$leveltopicto = array(0=>'weather-clear.png', 1=>'weather-few-clouds.png', 2=>'weather-clouds.png', 3=>'weather-many-clouds.png', 4=>'weather-storm.png');
|
||||||
//return '<i class="fa fa-weather-level'.$picto.'"></i>';
|
return '<i class="fa fa-weather-level'.$picto.'"></i>';
|
||||||
$picto = $leveltopicto[$picto];
|
$picto = $leveltopicto[$picto];
|
||||||
} elseif (!preg_match('/(\.png|\.gif)$/i', $picto)) $picto .= '.png';
|
} elseif (!preg_match('/(\.png|\.gif)$/i', $picto)) $picto .= '.png';
|
||||||
|
|
||||||
|
|||||||
@ -379,19 +379,19 @@ if (GETPOSTISSET('THEME_SATURATE_RATIO')) $conf->global->THEME_SATURATE_RATIO =
|
|||||||
}
|
}
|
||||||
.fa-weather-level0:before{
|
.fa-weather-level0:before{
|
||||||
content: "\f185";
|
content: "\f185";
|
||||||
color : #cccccc;
|
color : #ffbf00;
|
||||||
}
|
}
|
||||||
.fa-weather-level1:before{
|
.fa-weather-level1:before{
|
||||||
content: "\f6c4";
|
content: "\f6c4";
|
||||||
color : #cccccc;
|
color : #b0b0b0;
|
||||||
}
|
}
|
||||||
.fa-weather-level2:before{
|
.fa-weather-level2:before{
|
||||||
content: "\f0c2";
|
content: "\f0c2";
|
||||||
color : #cccccc;
|
color : #9b9b9b;
|
||||||
}
|
}
|
||||||
.fa-weather-level3:before{
|
.fa-weather-level3:before{
|
||||||
content: "\f740";
|
content: "\f740";
|
||||||
color : #cccccc;
|
color : #888888;
|
||||||
}
|
}
|
||||||
.fa-weather-level4:before{
|
.fa-weather-level4:before{
|
||||||
content: "\f0e7";
|
content: "\f0e7";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user