Changeset 641081
- Timestamp:
- 12/18/2012 01:54:15 PM (13 years ago)
- Location:
- weather-layer/trunk
- Files:
-
- 2 added
- 3 edited
-
readme.txt (modified) (3 diffs)
-
style.css (modified) (1 diff)
-
weather_layer.php (modified) (3 diffs)
-
widgets (added)
-
widgets/weather_layer.php (added)
Legend:
- Unmodified
- Added
- Removed
-
weather-layer/trunk/readme.txt
r606958 r641081 2 2 Contributors: MorganF 3 3 Donate link: http://blogovoyage.fr/weather-layer 4 Tags: weather, forecast, météo 4 Tags: weather, forecast, météo, travel 5 5 Stable tag: trunk 6 Tested up to: 3. 4.26 Tested up to: 3.5 7 7 License: CC-BY-ND 8 8 … … 13 13 Weather Layer is a plugin which allows you to display a layer with weather information for a choosen city. 14 14 15 For example, if you want to display weather for Paris , you just need to insert the following shortcode :15 For example, if you want to display weather for Paris into a post, you just need to insert the following shortcode : 16 16 17 17 [weatherlayer country="France" city="Paris"] 18 18 19 This will display a horizontal layer with weather information related to Paris, France. This format fits well for single posts. However, if you want to insert a weather layer into your sidebar, use this sortcode instead :19 This will display a horizontal layer with weather information related to Paris, France. This format fits well for single posts. However, if you want to insert a weather layer into your sidebar, the WL widget is what you need. Drag and drop it in the widgets menu then fill the form. 20 20 21 [weatherlayer country="France" city="Paris" display="horizontal"] 21 Finally, if you want to display a vertical layer with a shortcode, use this : 22 23 [weatherlayer country="France" city="Paris" display="vertical"] 22 24 23 25 NB : … … 31 33 4. Activate the plugin through the 'Plugins' menu in WordPress 32 34 5. Configure the plugin through your admin interface 33 6. Use shortcode like [weatherlayer country="England" city="London"] 35 6. Use shortcode like [weatherlayer country="England" city="London"] for posts and WL widget for the sidebar 34 36 35 37 == Screenshots == -
weather-layer/trunk/style.css
r591931 r641081 12 12 { 13 13 width: 220px; 14 margin-bottom: 20px; 14 15 } 15 16 -
weather-layer/trunk/weather_layer.php
r603854 r641081 3 3 Plugin Name: Weather Layer 4 4 Plugin URI: http://blogovoyage.fr/weather-layer 5 Description: This plugin allows you to display weather data on your blog thanks to Yahoo! Weather. Example of use : [weatherlayer country="France" city="Paris"]6 Version: 3. 25 Description: This plugin allows you to display weather data on your blog thanks to Yahoo! Weather. Example of use with shortcode : [weatherlayer country="France" city="Paris"] You can also add the Weather Widget in order to display weather information into your sidebar. 6 Version: 3.3 7 7 Author: Morgan Fabre 8 8 Author URI: http://blogovoyage.fr … … 14 14 require_once($weatherDir . '/config.php'); 15 15 require_once($weatherDir . '/admin.php'); 16 require_once($weatherDir . '/widgets/weather_layer.php'); 16 17 17 18 /** … … 390 391 391 392 if (empty($retour)) 392 $retour = 'No data found for weather at ' . $city . ' (' . $country . ')';393 $retour = 'No weather data found for [' . implode($args, ', ') . ']'; 393 394 394 395 return $retour;
Note: See TracChangeset
for help on using the changeset viewer.