前言介紹
- 這款 WordPress 外掛「Editor for Timber」是 2020-10-28 上架。
- 目前有 50 個安裝啟用數。
- 上一次更新是 2020-12-16,距離現在已有 1600 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 5.5 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
內容簡介
功能特色
為可配置的文章類型添加元框,以建立並編輯 Twig 模板
為 WP 主題和外掛程式編輯器添加 Twig 支援
甚至可以自訂 CodeMirror 主題
外掛相依性
如何使用元框功能
本外掛使用在 Timber::$locations 中定義的路徑作為模板路徑,如果沒有提供,則回退到上傳資料夾。
請使用以下方式調整您的 Timber::render('page.twig', $context) 函式:
$filenames = [TimberEditor::getTemplateFilename(), 'page.twig'];
Timber::render($filenames, $context);
或是使用以下方式:
TimberEditor::render('page.twig', $context);
# 如果當前文章的模板不存在,則 'page.twig' 作為回退
或是使用以下方式:
TimberEditor::renderPost('page.twig', $context);
# renderPost() 自動將 ['post' => new Timber\Post()] 加入 $context
原文外掛簡介
Features
adds a metabox to configurable Post-Types to create and edit Twig templates
adds Twig support to the WP Theme & Plugin editors
you can even customize the CodeMirror theme
Plugin Dependencies
How to use the MetaBox Feature
The plugin uses the path defined in Timber::$locations as the templates path or falls back to the uploads folder if none is provided.
Either adjust your Timber::render('page.twig', $context)-functions like this:
$filenames = [TimberEditor::getTemplateFilename(), 'page.twig'];
Timber::render($filenames, $context);
like this
TimberEditor::render('page.twig', $context);
# 'page.twig' serves as a fallback if the current posts's template doesn't exist
or like this
TimberEditor::renderPost('page.twig', $context);
# renderPost() automatically adds ['post' => new Timber\Post()] to the $context
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Editor for Timber」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Starter Templates – AI-Powered Templates for Elementor & Gutenberg 》免費模板,支援 Elementor、Beaver Builder 和 Block Editor, 使用 Starter Templates 外掛,只需數分鐘即可建立專業且完美的網站。此外掛為使用者提供超過 2...。
Envato Elements – Photos & Elementor Templates 》使用 Envato Elements WordPress 外掛,您可以更快地建立專業 WordPress 網站。, 在 WordPress 上瀏覽並匯入 Elementor 範本和高級庫存照片,無需離開 WordPr...。
Templately – Elementor & Gutenberg Template Library: 5500+ Free & Pro Ready Templates And Cloud! 》Ultimate Free Templates Cloud for WordPress – 支援 Elementor 和 Gutenberg, 使用Templately,將您最喜愛的頁面建構工具提升到全新高度,並在同一個地方管...。
Extendify 》Extendify 是一個網站設計和製作工具平台,提供豐富的圖案和全頁面佈局,可用於 Gutenberg 區塊編輯器,幫助人們建立美麗的 WordPress 網站。, 使用 Extendif...。
Jeg Elementor Kit 》這是為了 Elementor 頁面建構器所設計的額外小工具,它包含 40 種高度可自訂的小工具。, 必要小工具, 我們提供小工具,您可以按照自己的需求進行自訂。, , 手...。
AI Powered Starter Templates by Kadence WP 》用三個滑鼠點擊建立一個美觀的「效能優化」網站, 在幾分鐘內創建和自定義專業設計的網站。, Kadence Starter Templates 為您提供使用 WordPress 區塊構建器的...。
Starter Sites & Templates by Neve 》一個基於雲端的模板庫,可讓您使用1個按鈕創建或使用現有的網站模板。, 超過100個初學者網站和模板可用於最流行的頁面構建器, 免費和付費模板和起始網站可供...。
Template Kit – Import 》一個範本套件是一組預先設計好的起始範本,供 WordPress 網站建立者使用,並具有統一的視覺風格。, 您可以使用此外掛程式匯入 Elementor 的範本套件。, 啟用...。
amr shortcode any widget 》使用shortcode將小工具或多個小工具或整個小工具區域(側邊欄)插入到頁面中。, 首先在正常的側邊欄中設置小工具。 檢查它是否正常運作。, 然後將所選小工具...。
Timber 》Timber 讓您能使用更持久的程式碼更快速地建立自訂 WordPress 佈景主題。透過 Timber,您可以使用 Twig Template Engine 撰寫 HTML,這可與您的 PHP 檔案分離...。
WPZOOM Addons for Elementor (Templates, Widgets) 》此外掛提供一系列自訂的Elementor頁面建構器範本和小工具,可以讓您更輕鬆地創建WordPress網站上頁面或文章的美觀介面,不需要編寫任何程式碼。, 使用起來非...。
Toolkit for Block Theme (Starter Templates, Portfolio, Gutenberg Blocks, Patterns) – Twentig 》ou use Google Fonts that you can self-host on your server., Options to change the content width, header layout, footer layout, and more., , ENHANCE...。
SKT Templates – 100% free Elementor & Gutenberg templates 》, SKT Templates 是一個可以在 Elementor 和 Gutenberg 主題庫中挑選超過上百款模板的外掛,只需要瀏覽 Demo 畫面,挑選適合的模板後點擊匯入並安裝即可。它...。
Responsive Plus – Starter Templates, Advanced Features and Customizer Settings for Responsive Theme. 》Responsive Starter Templates 是提供設計師製作的 Elementor 和區塊範本,適用於 Responsive WordPress 主題的外掛程式。, , 獲取完全功能且專業設計的現成...。
Ibtana – WordPress Website Builder 》Ibtana Gutenberg Editor提供現成的引人注目、具有響應式的模板,搭載自訂區塊和擴展Gutenberg預設功能的選項。您只需點擊一個按鈕,就可以輕鬆導入區塊或模...。