Changeset 3082292
- Timestamp:
- 05/07/2024 07:33:06 AM (22 months ago)
- Location:
- free-weather
- Files:
-
- 3 added
- 2 edited
-
assets/icon-256x256.png (added)
-
assets/screenshot-1.png (added)
-
assets/screenshot-2.png (added)
-
trunk/README.txt (modified) (1 diff)
-
trunk/free-weather.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
free-weather/trunk/README.txt
r3082269 r3082292 4 4 Tags: weather,weather forecast,weather widget,free weather,weather plugin 5 5 Requires at least: 4.0.1 6 Tested up to: 6. 4.46 Tested up to: 6.5.2 7 7 PHP Version: 5.5 or higher 8 8 Stable tag: 1.0.0 -
free-weather/trunk/free-weather.php
r3082269 r3082292 145 145 { 146 146 // print_r($instance); 147 $city = !empty($instance['city']) ? $instance['city'] : ' New York City';148 $country = !empty($instance['country']) ? $instance['country'] : 'United Stated';147 $city = !empty($instance['city']) ? $instance['city'] : 'London'; 148 $country = !empty($instance['country']) ? $instance['country'] : 'United Kingdom'; 149 149 $backgroundColor = !empty($instance['backgroundColor']) ? $instance['backgroundColor'] : '#becffb'; 150 150 $textColor = !empty($instance['textColor']) ? $instance['textColor'] : '#000000'; … … 385 385 // Define default values 386 386 $defaults = [ 387 'city' => $global_settings['city'] ?? 'New York City',387 'city' => $global_settings['city'] ?? 'New York', 388 388 'country' => $global_settings['country'] ?? 'United Stated', 389 389 'background_color' => $global_settings['backgroundColor'] ?? '#becffb', … … 452 452 support text/html. You can customize it using the following attributes:</p> 453 453 <ul> 454 <li><code>city</code>: The city for which you want to display the weather (default: "New York City").</li>454 <li><code>city</code>: The city for which you want to display the weather (default: "New York").</li> 455 455 <li><code>country</code>: The country that the city is in (default: "United Stated").</li> 456 456 <li><code>days</code>: The number of days to show the weather forecast for (default: 3).</li> … … 594 594 // Default values for attributes 595 595 $defaults = [ 596 'city' => 'New York City',596 'city' => 'New York', 597 597 'country' => 'United Stated', 598 598 'backgroundColor' => '#becffb',
Note: See TracChangeset
for help on using the changeset viewer.