{* WA2 Widget*} {if $ui == '2.0'} {$_widget_class = "s-weather-day"} {if empty($weather.weather.icon)} {$_widget_class = "s-weather-notavailable"} {else} {if $weather.weather.icon|strstr:'n'} {$_widget_class = "s-weather-night"} {/if} {/if}
{else} {$_widget_class = "s-weather-day"} {if empty($weather.weather.icon)} {$_widget_class = "s-weather-notavailable"} {else} {if $weather.weather.icon|strstr:'n'} {$_widget_class = "s-weather-night"} {/if} {/if} {/if}