[WordPress] 外掛分享: CPS | Before / After Images

首頁外掛目錄 › CPS | Before / After Images
WordPress 外掛 CPS | Before / After Images 的封面圖片
10+
安裝啟用
尚無評分
442 天前
最後更新
問題解決
WordPress 5.5+ PHP 7.4+ v2.2 上架:2017-12-31

內容簡介

這個外掛可以在一個畫面上顯示兩張相似的圖片,並在中間加上一條槓,讓訪問者可以透過左右移動槓看到圖片的不同。典型的用途是當您想要展示兩張圖片的「 Before-After 」狀態時。

簡碼:[surbma-before-after before_src="" before_alt="" after_src="" after_alt="" with="" height=""]

參數:

before_src:左側圖片的網址。必填
before_alt:左側圖片的 ALT 屬性。
after_src:右側圖片的網址。必填
after_alt:右側圖片的 ALT 屬性。
with:圖片的寬度。
height:圖片的高度。

只有兩個 src 參數是必需的,其他參數是可選的。

您想要貢獻或改善這個外掛嗎?

您可以在 GitHub 上找到它:https://github.com/Surbma/surbma-before-after

您可以在 GitHub 上找到我其他的外掛和專案:

https://github.com/Surbma

歡迎隨時貢獻、幫忙或推薦我的外掛、主題和其他專案的新功能。

想要了解更多關於我嗎?

請訪問我的網站:Surbma.com

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「CPS | Before / After Images」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

With this plugin, you can display two similar images in one frame with a bar in the middle. So visitors can see the difference by moving the bar from left to right. Typical usecase is, when you want to show a “before-after” state with two images.
The shortcode: [surbma-before-after before_src="" before_alt="" after_src="" after_alt="" with="" height=""]
Parameters:

before_src: This is the URL of the left image. REQUIRED
before_alt: This is the ALT attribute of the left image.
after_src: This is the URL of the right image. REQUIRED
after_alt: This is the ALT attribute of the right image.
with: This is the width of the image.
height: This is the height of the image.

Only the two src parameters are required, the rest of them are optional.
Do you want to contribute or help improving this plugin?
You can find it on GitHub: https://github.com/Surbma/surbma-before-after
You can find my other plugins and projects on GitHub:
https://github.com/Surbma
Please feel free to contribute, help or recommend any new features for my plugins, themes and other projects.
Do you want to know more about me?
Visit my webpage: Surbma.com

延伸相關外掛

文章
Filter
Mastodon