Plugin Directory

Changeset 1670920


Ignore:
Timestamp:
06/05/2017 10:28:55 AM (9 years ago)
Author:
proodos
Message:

bugfix when weather string is blank
adding custom icon

Location:
pdsweather
Files:
3 added
1 deleted
2 edited
2 copied

Legend:

Unmodified
Added
Removed
  • pdsweather/tags/3.2/pdsWeather.php

    r1670914 r1670920  
    6565
    6666            if (get_option('iconset') == 2) {
    67                 $html .= '<i class="wi wi-' . $current['tod'] . '-' . ($current['icon']) ? $current['icon']:"clear" . '"></i>';
     67                $html .= '<i class="wi wi-' . $current['tod'] . '-' . ($current['icon']) ? $current['icon']: 'clear' . '"></i>';
    6868            }
    6969
    7070            $html .= '<div class="conditions">';
    7171            if (get_option('weather')) {
    72                 $html .= '<span class="wthr">' . ($current['weather']) ? $current['weather'] : "Clear" . '</span>';
     72                $html .= '<span class="wthr">' . ($current['weather']) ? $current['weather'] : 'clear' . '</span>';
    7373            }
    7474
  • pdsweather/tags/3.3/pdsWeather.php

    r1670914 r1670920  
    6565
    6666            if (get_option('iconset') == 2) {
    67                 $html .= '<i class="wi wi-' . $current['tod'] . '-' . ($current['icon']) ? $current['icon']:"clear" . '"></i>';
     67                $html .= '<i class="wi wi-' . $current['tod'] . '-' . ($current['icon']) ? $current['icon'] : 'clear' . '"></i>';
    6868            }
    6969
    7070            $html .= '<div class="conditions">';
    7171            if (get_option('weather')) {
    72                 $html .= '<span class="wthr">' . ($current['weather']) ? $current['weather'] : "Clear" . '</span>';
     72                $html .= '<span class="wthr">' . ($current['weather']) ? $current['weather'] : 'clear' . '</span>';
    7373            }
    7474
  • pdsweather/trunk/pdsWeather.php

    r1670914 r1670920  
    6565
    6666            if (get_option('iconset') == 2) {
    67                 $html .= '<i class="wi wi-' . $current['tod'] . '-' . ($current['icon']) ? $current['icon']:"clear" . '"></i>';
     67                $html .= '<i class="wi wi-' . $current['tod'] . '-' . ($current['icon']) ? $current['icon'] : 'clear' . '"></i>';
    6868            }
    6969
    7070            $html .= '<div class="conditions">';
    7171            if (get_option('weather')) {
    72                 $html .= '<span class="wthr">' . ($current['weather']) ? $current['weather'] : "Clear" . '</span>';
     72                $html .= '<span class="wthr">' . ($current['weather']) ? $current['weather'] : 'clear' . '</span>';
    7373            }
    7474
Note: See TracChangeset for help on using the changeset viewer.