Changeset 2199014
- Timestamp:
- 11/22/2019 05:43:57 PM (6 years ago)
- Location:
- awesome-weather
- Files:
-
- 73 added
- 3 edited
-
tags/3.0.2 (added)
-
tags/3.0.2/awesome-weather-codes.php (added)
-
tags/3.0.2/awesome-weather-form.php (added)
-
tags/3.0.2/awesome-weather-mediabox.php (added)
-
tags/3.0.2/awesome-weather-settings.php (added)
-
tags/3.0.2/awesome-weather-trigger.php (added)
-
tags/3.0.2/awesome-weather.css (added)
-
tags/3.0.2/awesome-weather.php (added)
-
tags/3.0.2/fonts (added)
-
tags/3.0.2/fonts/weathericons-regular-webfont.eot (added)
-
tags/3.0.2/fonts/weathericons-regular-webfont.svg (added)
-
tags/3.0.2/fonts/weathericons-regular-webfont.ttf (added)
-
tags/3.0.2/fonts/weathericons-regular-webfont.woff (added)
-
tags/3.0.2/fonts/weathericons-regular-webfont.woff2 (added)
-
tags/3.0.2/img (added)
-
tags/3.0.2/img/awe-backgrounds (added)
-
tags/3.0.2/img/awe-backgrounds/atmosphere.jpg (added)
-
tags/3.0.2/img/awe-backgrounds/breeze.jpg (added)
-
tags/3.0.2/img/awe-backgrounds/calm-night.jpg (added)
-
tags/3.0.2/img/awe-backgrounds/calm.jpg (added)
-
tags/3.0.2/img/awe-backgrounds/cloudy-night.jpg (added)
-
tags/3.0.2/img/awe-backgrounds/cloudy.jpg (added)
-
tags/3.0.2/img/awe-backgrounds/drizzle.jpg (added)
-
tags/3.0.2/img/awe-backgrounds/hail.jpg (added)
-
tags/3.0.2/img/awe-backgrounds/hurricane.jpg (added)
-
tags/3.0.2/img/awe-backgrounds/rain.jpg (added)
-
tags/3.0.2/img/awe-backgrounds/sleet.jpg (added)
-
tags/3.0.2/img/awe-backgrounds/snow.jpg (added)
-
tags/3.0.2/img/awe-backgrounds/sunny.jpg (added)
-
tags/3.0.2/img/awe-backgrounds/thunderstorm.jpg (added)
-
tags/3.0.2/img/awe-backgrounds/tornado.jpg (added)
-
tags/3.0.2/img/awe-backgrounds/tropical-storm.jpg (added)
-
tags/3.0.2/img/awe-backgrounds/windy.jpg (added)
-
tags/3.0.2/img/locate.png (added)
-
tags/3.0.2/js (added)
-
tags/3.0.2/js/awesome-weather-widget-admin.js (added)
-
tags/3.0.2/js/awesome-weather-widget-frontend.js (added)
-
tags/3.0.2/languages (added)
-
tags/3.0.2/languages/awesome-weather-ca.mo (added)
-
tags/3.0.2/languages/awesome-weather-ca.po (added)
-
tags/3.0.2/languages/awesome-weather-de_DE.mo (added)
-
tags/3.0.2/languages/awesome-weather-de_DE.po (added)
-
tags/3.0.2/languages/awesome-weather-es_ES.mo (added)
-
tags/3.0.2/languages/awesome-weather-es_ES.po (added)
-
tags/3.0.2/languages/awesome-weather-fr_FR.mo (added)
-
tags/3.0.2/languages/awesome-weather-fr_FR.po (added)
-
tags/3.0.2/languages/awesome-weather-it_IT.mo (added)
-
tags/3.0.2/languages/awesome-weather-it_IT.po (added)
-
tags/3.0.2/languages/awesome-weather-nl_NL.mo (added)
-
tags/3.0.2/languages/awesome-weather-nl_NL.po (added)
-
tags/3.0.2/languages/awesome-weather-pt_BR.mo (added)
-
tags/3.0.2/languages/awesome-weather-pt_BR.po (added)
-
tags/3.0.2/languages/awesome-weather-ru_RU.mo (added)
-
tags/3.0.2/languages/awesome-weather-ru_RU.po (added)
-
tags/3.0.2/languages/awesome-weather-sk_SK.mo (added)
-
tags/3.0.2/languages/awesome-weather-sk_SK.po (added)
-
tags/3.0.2/languages/awesome-weather-sv_SE.mo (added)
-
tags/3.0.2/languages/awesome-weather-sv_SE.po (added)
-
tags/3.0.2/languages/awesome-weather.pot (added)
-
tags/3.0.2/providers (added)
-
tags/3.0.2/providers/darksky.php (added)
-
tags/3.0.2/providers/openweathermaps.php (added)
-
tags/3.0.2/readme.txt (added)
-
tags/3.0.2/templates (added)
-
tags/3.0.2/templates/basic.php (added)
-
tags/3.0.2/templates/boxed.php (added)
-
tags/3.0.2/templates/long.php (added)
-
tags/3.0.2/templates/material.php (added)
-
tags/3.0.2/templates/micro.php (added)
-
tags/3.0.2/templates/showcase.php (added)
-
tags/3.0.2/templates/tall.php (added)
-
tags/3.0.2/templates/wide.php (added)
-
tags/3.0.2/widget.php (added)
-
trunk/awesome-weather.php (modified) (6 diffs)
-
trunk/providers/openweathermaps.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
awesome-weather/trunk/awesome-weather.php
r2198985 r2199014 6 6 Author: Hal Gatewood 7 7 Author URI: https://www.halgatewood.com 8 Version: 3.0 8 Version: 3.0.2 9 9 Text Domain: awesome-weather 10 10 Domain Path: /languages … … 45 45 // SETUP 46 46 function awesome_weather_setup() 47 { 48 if( is_admin() ) add_action( 'admin_menu', 'awesome_weather_setting_page_menu' ); 49 } 50 add_action('plugins_loaded', 'awesome_weather_setup', 99999, 0); 51 52 53 // LANGUAGES 54 function awesome_weather_setup_locale() 47 55 { 48 56 $locale = apply_filters('plugin_locale', get_locale(), 'awesome-weather'); 49 57 $mofile = WP_LANG_DIR . '/awesome-weather/awesome-weather-' . $locale . '.mo'; 50 58 51 59 if( file_exists( $mofile ) ) 52 60 { … … 57 65 load_plugin_textdomain( 'awesome-weather', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 58 66 } 59 60 if( is_admin() ) 61 { 62 add_action( 'admin_menu', 'awesome_weather_setting_page_menu' ); 63 } 64 } 65 add_action('plugins_loaded', 'awesome_weather_setup', 99999, 0); 67 } 68 add_action( 'init', 'awesome_weather_setup_locale' ); 66 69 67 70 … … 187 190 global $awesome_weather_sizes; 188 191 192 if( is_object($atts) ) $atts = (array) $atts; 193 194 189 195 $add_to_transient = ''; 190 196 $weather = new stdclass; 191 197 192 198 // DEFAULT SETTINGS 193 $weather->id = isset($atts['id']) ? $atts['id'] : awe_widget_id ( $atts, true);199 $weather->id = isset($atts['id']) ? $atts['id'] : awe_widget_id_new( $atts ); 194 200 $weather->error = false; 195 $weather->location = isset($atts['location']) ? awesome_weather_prep_location( $atts['location']) : '';201 $weather->location = isset($atts['location']) ? awesome_weather_prep_location( $atts['location'] ) : ''; 196 202 $weather->owm_city_id = isset($atts['owm_city_id']) ? $atts['owm_city_id'] : 0; 197 203 … … 649 655 650 656 // CREATE WIDGET ID 657 function awe_widget_id_new( $atts ) 658 { 659 $w = $atts; 660 return awe_widget_id( $w, true ); 661 } 662 663 651 664 function awe_widget_id( &$weather, $rtn = false ) 652 665 { … … 1205 1218 1206 1219 1207 function awesome_weather_prep_location( $text)1220 function awesome_weather_prep_location( $text ) 1208 1221 { 1209 $text = stripslashes( $text);1210 $text = str_replace( array("\xe2\x80\x98", "\xe2\x80\x99", "\xe2\x80\x9c", "\xe2\x80\x9d", "\xe2\x80\x93", "\xe2\x80\x94", "\xe2\x80\xa6"), array("'", "'", '', '', '-', '--', '...'), $text);1211 $text = str_replace( array(chr(145), chr(146), chr(147), chr(148), chr(150), chr(151), chr(133)), array("'", "'", '', '', '-', '--', '...'), $text);1222 $text = stripslashes( $text ); 1223 $text = str_replace( array("\xe2\x80\x98", "\xe2\x80\x99", "\xe2\x80\x9c", "\xe2\x80\x9d", "\xe2\x80\x93", "\xe2\x80\x94", "\xe2\x80\xa6"), array("'", "'", '', '', '-', '--', '...'), $text); 1224 $text = str_replace( array(chr(145), chr(146), chr(147), chr(148), chr(150), chr(151), chr(133)), array("'", "'", '', '', '-', '--', '...'), $text); 1212 1225 return $text; 1213 1226 } -
awesome-weather/trunk/providers/openweathermaps.php
r2195275 r2199014 40 40 if( $city_id_from_location ) 41 41 { 42 $weather->owm_city_id = $ $city_id_from_location;42 $weather->owm_city_id = $city_id_from_location; 43 43 } 44 44 else -
awesome-weather/trunk/readme.txt
r2198985 r2199014 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Finally beautiful weather widgets for your beautiful site.11 Finally beautiful weather widgets for your beautiful WordPress website. 12 12 13 13 == Description == … … 70 70 == Upgrade Notice == 71 71 72 I havemerged my PRO plugin into this FREE plugin. Enjoy all the new features!72 At version 3.o, I merged my PRO plugin into this FREE plugin. Enjoy all the new features! 73 73 74 74 == Changelog == 75 76 = 3.0.2 = 77 - Fix: More locale changes. 78 - Fix: Nasty possible loop cleaned. 79 - Fix: awe_widget_id issue change array to object 75 80 76 81 = 3.0.1 =
Note: See TracChangeset
for help on using the changeset viewer.