[WordPress] 外掛分享: WordPress Wall Paint Calculator by Ostheimer

首頁外掛目錄 › WordPress Wall Paint Calculator by Ostheimer
WordPress 外掛 WordPress Wall Paint Calculator by Ostheimer 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
20+
安裝啟用
尚無評分
2491 天前
最後更新
問題解決
WordPress 3.0+ v1.2 上架:2013-09-19

內容簡介

使用者需輸入房間大小(以平方米為單位)、門數和窗戶數,此小工具依此計算需要的油漆重量(以公斤為單位)。

短碼

您可以透過短碼 [wall_paint_calculator] 加入牆壁油漆計算器。
若要顯示我們的回鏈,請使用短碼 [wall_paint_calculator link=”true”]
若要更改小工具標題,請使用短碼 [wall_paint_calculator link=”true” title=”YOUR TITLE”]

小工具

只需將小工具插入所選側邊列,輸入標題並啟用所需選項

翻譯 jQuery 訊息

打開 wall-paint-calculator.php 檔案,並尋找 wp_localize_script
在此函數中,您將找到定義一個字串的陣列
將=>後的字串翻譯為您的語言,並儲存檔案
若要更改結果字串,請打開 wall-paint-calculator.js 檔案並更改第 59 行的字串

試用示範

參觀此外掛的官方插件網站以觀看牆壁油漆計算器範例:Wall Paint Calculator site

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WordPress Wall Paint Calculator by Ostheimer」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

The user has to write the roomsize in square meters, the number of doors and the number of windows and the widget calculates the needed paint in kilograms.
Shortcode

You can add the Wall Paint Calculator via shortcode [wall_paint_calculator]
If you want to show our backlink use the shortcode [wall_paint_calculator link=”true”]
To change the title of the widget use the shortcode [wall_paint_calculator link=”true” title=”YOUR TITLE”]

Widget

Just insert the widget in the chosen sidebar, type a title and activate the wanted options

Translate jQuery Messages

Open the file wall-paint-calculator.php and search for wp_localize_script
In this function you will find an array with 1 defined string
Translate the strings after the => into your language and save the file
To change the result string open the file wall-paint-calculator.js and change the strings on line 59

Try the demo

See the Wall Paint Calculator site on the official plugin site.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon