
內容簡介
這個小補丁變成了一個全新的外掛程式。天氣預報是基於 http://www.worldweatheronline.com/ API (JSON)。這個外掛程式比起前代要輕巧得多,具有更多功能,最重要的是它能夠運作!
安裝
您可以使用 WordPress 後台的自動安裝工具安裝外掛程式。
在 WordPress 的「外掛程式」菜單中啟用這個外掛程式
現在,您可以在「小工具」菜單下看到這個小工具。將其放入側邊欄中。
日期名稱是如何本地化的?
本地化是由內部 WordPress 邏輯處理的。使用何種語言就會顯示對應的語言。
為什麼要創建另一個天氣小工具?
嗯,我們(http://prahounakole.cz)使用 ICIT 天氣小工具有一段時間,當它停止運作時,我就開始「修復」它。
我能免費使用捆綁的圖片嗎?
當然可以!
即使是商業項目也一樣嗎?
當然可以!
如果我想使用自己的圖示怎麼辦?
這很簡單,製作您自己的圖示,並將它們放在位於此外掛程式目錄下圖像檔案夾中使用您自己的自訂名稱的子文件夾中。
刷新小工具管理畫面。您會在「圖示集」中找到自己的圖示。
(好的圖示來源是:http://www.iconarchive.com/ 或 http://www.deviantart.com/)
查看捆綁的圖片,了解它們是如何命名的,然後遵循這種命名結構:
WORLD WEATHER 可能的天氣情況(圖像名稱為395.png,縮略圖名為395-thumb.png)
天氣資料怎麼辦?
如果您要使用這個小工具,您必須先從 (http://www.worldweatheronline.com/register.aspx) 獲取 API。不用擔心,它是免費的,只需要遵循 WWO 策略 (http://www.worldweatheronline.com/free-weather-feed.aspx?menu=usage)。
外掛標籤
開發者團隊
原文外掛簡介
Small patch turned into a completely new plugin. The weather forecast is based on http://www.worldweatheronline.com/ API (JSON).
The plugin is much more light then its ancestor. It has more features and most importantly it works!
The install
You can install the plugin using the auto-install tool from the WordPress back-end.
Activate the plugin through the ‘Plugins’ menu in WordPress
You should now see the widget show up under ‘widgets’ menu. Drop that widget into a sidebar.
How are the day name localized?
The localization is treated by the internal WordPress logic. What language you have that language you get.
Why did you make another Weather widget?
Well, we (http://prahounakole.cz) were using the ICIT Weather widget for a while and when it stopped to work I went ahead and “fix” it.
Can I use the bundled images for free?
Sure!
Even on commercial project?
Sure!
What if I want to use my own icons?
It’s easy, make your own and put them images in the sub-folder with your custom name to the images folder in this plugin directory.
Refresh the widget admin screen. You’ll find your pack in the “Image set” Weather widget menu.
(good source of icons is:http://www.iconarchive.com/ or http://www.deviantart.com/)
Check how the bundled images how they are done, and follow this naming structure:
WORLD WEATHER possible weather cases (image names are 395.png and it thumbnail 395-thumb.png)
and what about the weather informations?
If you want to use this widget you have to first get the API from (http://www.worldweatheronline.com/register.aspx)..don’t wary it’s free, just follow the WWO Policy (http://www.worldweatheronline.com/free-weather-feed.aspx?menu=usage).
