{* 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}
{if empty($weather) || !empty($weather.message)} {if !empty($weather.message) && $weather.message !== 'Error: Not found city'}
{$weather.message}
{else}
{if $city} {sprintf('[`Could not retrieve weather conditions for %s. Please check city name in widget settings or in your contact info.`]', $city|escape|default:'[`(unknown city)`]')} {else} [`Please enter city name in your contact information or in this widget settings.`] {/if}
{/if} {else}

{$weather.main.temp}°{if $unit == "F"}F{/if}

{$city|escape}
{/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 empty($weather) || !empty($weather.message)} {if !empty($weather.message) && $weather.message !== 'Error: Not found city'}
{$weather.message}
{else}
{if $city} {sprintf('[`Could not retrieve weather conditions for %s. Please check city name in widget settings or in your contact info.`]', $city|escape|default:'[`(unknown city)`]')} {else} [`Please enter city name in your contact information or in this widget settings.`] {/if}
{/if} {else}

{$weather.main.temp}°{if $unit == "F"}F{/if}

{$city|escape}
{/if}
{/if}