Plugin Directory

Changeset 1670914


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

bugfix when weather string is blank
adding custom icon

Location:
pdsweather
Files:
4 edited

Legend:

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

    r1670903 r1670914  
    55Description: Weather plugin by Proodos. Shows current conditions anywhere on your web page. After activation adjust plugin's settings and then echo pdsWeather() where you want it to show
    66Author: Iva Korlevic, Proodos j.d.o.o.
    7 Version: 3.2
     7Version: 3.3
    88Author URI: http://prood-os.com
    99License: GPL2
     
    1212/**
    1313 * @package pdsWeather
    14  * @version 3.2
     14 * @version 3.3
    1515 */
    1616
     
    6565
    6666            if (get_option('iconset') == 2) {
    67                 $html .= '<i class="wi wi-' . $current['tod'] . '-' . $current['icon'] . '"></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'] . '</span>';
     72                $html .= '<span class="wthr">' . ($current['weather']) ? $current['weather'] : "Clear" . '</span>';
    7373            }
    7474
  • pdsweather/tags/3.2/readme.txt

    r1670885 r1670914  
    5555== Changelog ==
    5656
     57= 3.3 =
     58* bugix when weather string is blank set clear for weather
     59
    5760= 3.2 =
    5861* solved bug for conditions after new year has started
  • pdsweather/trunk/pdsWeather.php

    r1670903 r1670914  
    55Description: Weather plugin by Proodos. Shows current conditions anywhere on your web page. After activation adjust plugin's settings and then echo pdsWeather() where you want it to show
    66Author: Iva Korlevic, Proodos j.d.o.o.
    7 Version: 3.2
     7Version: 3.3
    88Author URI: http://prood-os.com
    99License: GPL2
     
    1212/**
    1313 * @package pdsWeather
    14  * @version 3.2
     14 * @version 3.3
    1515 */
    1616
     
    6565
    6666            if (get_option('iconset') == 2) {
    67                 $html .= '<i class="wi wi-' . $current['tod'] . '-' . $current['icon'] . '"></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'] . '</span>';
     72                $html .= '<span class="wthr">' . ($current['weather']) ? $current['weather'] : "Clear" . '</span>';
    7373            }
    7474
  • pdsweather/trunk/readme.txt

    r1670885 r1670914  
    5555== Changelog ==
    5656
     57= 3.3 =
     58* bugix when weather string is blank set clear for weather
     59
    5760= 3.2 =
    5861* solved bug for conditions after new year has started
Note: See TracChangeset for help on using the changeset viewer.