[WordPress] 外掛分享: Auto iFrame

WordPress 外掛 Auto iFrame 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Auto iFrame」是 2015-03-24 上架。
  • 目前有 4000 個安裝啟用數。
  • 上一次更新是 2024-12-02,距離現在已有 152 天。
  • 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
  • 有 18 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

gregross |

外掛標籤

iframe | resize |

內容簡介

Auto iFrame 外掛可以輕鬆快速的將 iframe 嵌入到頁面中,並能夠自動調整 iframe 大小以適應嵌入頁面的內容。

Auto iFrame 的縮寫格式如下:

[auto-iframe link=xxx tag=xxx width=xxx height=xxx autosize=yes/no]

其中:

link = iframe 的來源 URL,為必填項目。
tag = 唯一的標識符,以區分頁面中的多個 iframe。 預設值為 auto-iframe。
width = iframe 的寬度(預設狀態下為 100%)。可設定百分比或像素值。預設值為 100%。
height = iframe 的起始高度(預設狀態下為 100%)。可設定百分比或像素值。預設值為 100%。
autosize = 啟用自動調整 iframe 大小。iframe 的起始高度會設定為 "height" ,然後進行自動調整。預設值為 true。
fudge = 調整高度的補正值(正整數,不加 "px")。預設值為 50。
border = 啟用 iframe 邊框。預設值為 0。
scroll = 啟用 iframe 捲軸。預設值為 no。
query = 傳遞父頁面的查詢字符串給 iframe。預設值為 no。

注意:跨域網站的自動調整 iframe 大小不起作用,這是瀏覽器提供的安全保護措施,沒有任何解決方案。

現在支援 (Shortcode UI)[https://github.com/fusioneng/Shortcake] (也稱為 Shortcake)!

原文外掛簡介

A quick and easy shortcode to embed iframe’s that resize to the content of the remote site.
Auto iFrame shortcode is in the format of:
[auto-iframe link=xxx tag=xxx width=xxx height=xxx autosize=yes/no]

Where:

link = the url of the source for the iFrame. REQUIRED.
tag = a unique identifier in case you want more than one iFrame on a page. Default = auto-iframe.
width = width of the iFrame (100% by default). Can be % or px. Default = 100%.
height = the initial height of the iframe (100% by default). Can be % or px. Default = 100%.
autosize = enable the auto sizing of the iFrame based on the content. The initial height of the iFrame will be set to “height” and then resized. Default = true.
fudge = a fudge factor to apply when changing the height (integer number, no “px”). Default = 50.
border = enable the border on the iFrame. Default = 0.
scroll = enable the scroll bar on the iFrame. Default = no.
query = pass the parent’s page query string to the iFrame. Default = no.

Note: Auto re-sizing of the iFrame for cross domain sites does not work, this is a security protection provided by the browser and there is no way around it.
Now supports (Shortcode UI)[https://github.com/fusioneng/Shortcake] (aka Shortcake)!

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Auto iFrame」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.5 | 1.0 | 1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.7 | 1.8 | 1.9 | 2.0 | trunk |

延伸相關外掛(你可能也想知道)

  • iframe 》, 高級 iFrame Pro, iframe, 捐贈, GitHub, , [iframe src=”http://www.youtube.com/embed/oDlbBy9vfgI” width=”100%” height=̶...。
  • Advanced iFrame 》看起來您正在尋找一個 WordPress 外掛 - Advanced iFrame Pro。這個外掛可讓您使用 iframe 包含其他網頁到您的網站中,同時具有隱藏和修改元素、自動調整高度...。
  • Simple Iframe 》輕鬆地在區塊編輯器中插入 iframe。, 此外掛會在 Embeds 類別中新增一個 Iframe 區塊。, 只需拖曳 Simple Iframe 區塊,即可插入外部(或內部)URL。。
  • Simple YouTube Embed 》Simple YouTube Embed 外掛是在 WordPress 中嵌入 YouTube 影片最簡單的方法。此外掛延伸了預設的 YouTube 影片嵌入,加入了進階的播放器參數。, 與其他 YouT...。
  • Include Me 》Include Me 可以幫助您在文章或頁面中包含外部檔案,通常用於在不同文章或頁面之間分享檔案,或包含可能被視覺化編輯器破壞的 PHP 或其他程式碼。, 使用方法...。
  • Embed Iframe 》Embed Iframe 是一個外掛,可以讓您在 WordPress 文章中嵌入 iframe。iframe 是一個 HTML 標籤,允許在當前頁面中內嵌顯示網頁,儘管 iframe 可能導致網站變...。
  • AWEOS Google Maps iframe load per click 》自動 Google 地圖 iFrame 阻擋器, 您想在您的網站上使用嵌入式 Google 地圖,但您必須遵守 GDPR/DSGVO 的指南嗎?也許您希望加快您的網站速度,只有在必要時...。
  • Unfiltered MU 》Unfiltered MU 提供給管理者和編輯者 unfiltered_html 功能。這可避免 WordPress MU/WordPress 3.0 多站點從這些使用者的文章中刪除