前言介紹
- 這款 WordPress 外掛「Weather Widget」是 2008-03-25 上架。
- 目前有 100 個安裝啟用數。
- 上一次更新是 2009-07-16,距離現在已有 5771 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 2.0.2 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
sk33t |
外掛標籤
widget | weather | weather.com |
內容簡介
需求
WordPress 2.2或 2.0.x/2.1.x,並且安裝 WordPress Widgets
PHP 4.3.0 或更高版本(需要功能 file_get_contents)
位置
位置可以是美國用戶的郵遞區號或 locid。要找到 locid,您可以使用 http://xoap.weather.com/search/search?where=[search parameters] 這個網址進行搜索。這將返回一個包含搜索結果及其對應的 locid 的 XML 文件。
您也可以在 Weather.com 網站上找到它。在搜索和選擇您的城市後,您將被送到一個類似於 http://www.weather.com/outlook/driving/interstate/local/USTX0617?from=search_city 的URL,其中 USTX0617 是 locid。
圖像託管
我提供了由 weather.com 使用和提供的圖像,您可以在此處下載。如果您要託管自己的圖像,請解壓縮並上傳文件,然後在管理面板中編輯“圖像位置”字段,將其指向您的圖像目錄。請確保有尾隨斜杠。
如果您不使用您自己的圖像,您可以使用我託管的那些位於 http://nothingoutoftheordinary.com/weatherimages/ 的圖像。
格式設定
您可以編輯“小工具格式”以更改顯示信息的方式。要訪問變量,請使用此格式:
%loc% – 位置
%temp% – 當前溫度
%feels% – 像感溫度
%icon% – 指代當前天氣的圖標。這只是一個數字
%iconhref% – 夾雜著您設定的圖像位置的圖像位置
%attribution% – 據稱需要顯示的鏈接。由 weather.com® 提供的天氣數據
默認格式如下:
%loc%
%temp% °F
(%feels% °F)
%attribution%
原文外掛簡介
Requirements
WordPress 2.2 or 2.0.x/2.1.x with WordPress Widgets
PHP 4.3.0 or greater (needed for function file_get_contents)
Location
The location can either be a zip code for US users or the locid. To find the locid, you can do a search using http://xoap.weather.com/search/search?where=[search parameters].This will return an XML file with search results and their corresponding locid’s.
You can also find it using the Weather.com website. After searching for and selecting your city, you will be sent to a url that will look something like, http://www.weather.com/outlook/driving/interstate/local/USTX0617?from=search_city, where USTX0617 is the locid.
Image Hosting
I’ve provided the images used and provided by weather.com here. If you want to host your own images, extract and upload the files, then, in the admin panel, edit the ‘Image Location’ field to point to your directory of images. Make sure to have the trailing slash.
If you don’t use your own images, you are free to use the ones that I’ve hosted, which are located at http://nothingoutoftheordinary.com/weatherimages/
Formatting
You can edit ‘Widget Formatting’ to change how the info is displayed. To access the variables, use this formatting:
%loc% – Location
%temp% – Current temperature
%feels% – Feels like temperature
%icon% – The icon referring to the current weather. This is just a number
%iconhref% – The location of the image with your set image location at the front
%attribution% – The link supposedly required to be displayed. Weather data provided by weather.com®
The default formatting is:
%loc%
%temp% °F
(%feels% °F)
%attribution%
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Weather Widget」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Widgets for Google Reviews 》onal version of our review software, you can:, , , Display unlimited Google Reviews, Customize widget design and behavior, Respond to reviews direc...。
Blocksy Companion 》Blocksy Companion 是一個外掛,將 Blocksy 主題轉化為強大的瑞士軍刀工具。, 只有在安裝並啟用 Blocksy 主題時,它才會運行並添加增強功能。, 最小需求, , W...。
Black Studio TinyMCE Widget 》此外掛添加了一個新的 Visual Editor 小工具類型,讓您能夠在側邊欄中輕鬆地插入豐富的文字和媒體對象。使用 Black Studio TinyMCE Widget 時,您將能夠使用W...。
Widget Importer & Exporter 》Widget Importer & Exporter 是一個有用的外掛,可將小工具從一個WordPress站點移動到另一個站點,備份小工具,並供主題開發人員為用戶提供範例小工具。...。
Orbit Fox by ThemeIsle 》透過Orbit Fox,您可以使用各種模組擴充您的主題功能,例如社交媒體分享按鈕和圖示、自訂選單圖示、頁首和頁尾腳本、一鍵導入頁面模板、頁面建構器附加元件和...。
Recent Posts Widget With Thumbnails 》列出最新的文章標題、縮略圖、摘要、作者、類別、日期等等!, 雖然此外掛僅建立在小工具區域,但使用者報告說它在 Elementor 和 Oxygen 上運作順暢。但它是否...。
WordPress Popular Posts 》WordPress Popular Posts 是一個高度可定製的小工具,可以顯示您最受歡迎的文章。, 主要特點, , 多小工具功能 – 您可以在您的博客上擁有多個 WordPress...。
Widget Logic 》此外掛可在每個小工具中新增一個名為 "Widget logic" 的額外控制欄,讓您控制這個小工具會出現在哪些頁面上。文字欄位允許您使用 WP 的Conditional Tags或任...。
Social Media Share Buttons & Social Sharing Icons 》在你的免費測試網站上試試看:點擊此處 => https://tastewp.com/plugins/ultimate-social-media-icons, (這個技巧適用於所有外掛 – 只需在外掛的 WP 存儲庫 ...。
Fixed Widget and Sticky Elements for WordPress 》使用 Fixed Widget 外掛可以創建黏貼式的小部件、區塊和其他元素,當用戶向上或向下滾動頁面時,它們會保持在可見的屏幕區域內。, 相較於非固定小工具,黏貼...。
PHP Code Widget 》普通的文字小工具允許您插入任意文字和/或 HTML 代碼。這個外掛程式也允許這樣做,但還會解析文本小工具中的任何 PHP 代碼並執行它。, 這可以讓您更輕鬆地遷...。
Image Widget 》Image Widget 是一個簡單的外掛程式,利用 WordPress 原生媒體管理員,為您的網站新增圖片小工具。, 需要新增幻燈片、燈箱或隨機圖像嗎?, 請查看 Image Widg...。
Custom Sidebars – Dynamic Sidebar Classic Widget Area Manager 》使用 Custom Sidebars,一個靈活的小工具管理器,在您的網站上管理和替換側邊欄和其他小工具區。, 製作自訂側邊欄配置,能夠選擇在您網站的每個頁面或文章上...。
Recent Posts Widget Extended 》外掛描述, 此外掛可以啟用自定義、靈活且進階的最新文章功能,您可以透過簡碼或小工具來顯示它。您可以顯示具有縮略圖、摘要和發佈日期的最新文章清單,並且...。
Widget Shortcode 》這個短碼需要小工具的ID,但不需要猜測,外掛會為你生成代碼。如果你想要覆蓋小工具的標題,你可以使用 "title" 參數:, [widget id=”text-1″...。