Plugin Directory

Changeset 641081


Ignore:
Timestamp:
12/18/2012 01:54:15 PM (13 years ago)
Author:
MorganF
Message:

Ajout d'un widget pour l'affichage en sidebar
New feature, the WL widget

Location:
weather-layer/trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • weather-layer/trunk/readme.txt

    r606958 r641081  
    22Contributors: MorganF
    33Donate link: http://blogovoyage.fr/weather-layer
    4 Tags: weather, forecast, météo
     4Tags: weather, forecast, météo, travel
    55Stable tag: trunk
    6 Tested up to: 3.4.2
     6Tested up to: 3.5
    77License: CC-BY-ND
    88
     
    1313Weather Layer is a plugin which allows you to display a layer with weather information for a choosen city.
    1414
    15 For example, if you want to display weather for Paris, you just need to insert the following shortcode :
     15For example, if you want to display weather for Paris into a post, you just need to insert the following shortcode :
    1616
    1717[weatherlayer country="France" city="Paris"]
    1818
    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 :
     19This 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.
    2020
    21 [weatherlayer country="France" city="Paris" display="horizontal"]
     21Finally, if you want to display a vertical layer with a shortcode, use this :
     22
     23[weatherlayer country="France" city="Paris" display="vertical"]
    2224
    2325NB :
     
    31334. Activate the plugin through the 'Plugins' menu in WordPress
    32345. Configure the plugin through your admin interface
    33 6. Use shortcode like [weatherlayer country="England" city="London"]
     356. Use shortcode like [weatherlayer country="England" city="London"] for posts and WL widget for the sidebar
    3436
    3537== Screenshots ==
  • weather-layer/trunk/style.css

    r591931 r641081  
    1212{
    1313    width: 220px;
     14    margin-bottom: 20px;
    1415}
    1516
  • weather-layer/trunk/weather_layer.php

    r603854 r641081  
    33  Plugin Name: Weather Layer
    44  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.2
     5  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
    77  Author: Morgan Fabre
    88  Author URI: http://blogovoyage.fr
     
    1414require_once($weatherDir . '/config.php');
    1515require_once($weatherDir . '/admin.php');
     16require_once($weatherDir . '/widgets/weather_layer.php');
    1617
    1718/**
     
    390391   
    391392    if (empty($retour))
    392         $retour = 'No data found for weather at ' . $city . ' (' . $country . ')';
     393        $retour = 'No weather data found for [' . implode($args, ', ') . ']';
    393394   
    394395    return $retour;
Note: See TracChangeset for help on using the changeset viewer.