[WordPress] 外掛分享: Terrific Integration

首頁外掛目錄 › Terrific Integration
WordPress 外掛 Terrific Integration 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
全新外掛
安裝啟用
尚無評分
4479 天前
最後更新
問題解決
v1.1 上架:2013-10-06

內容簡介

注意:此外掛無法在由WordPress.com託管的WordPress實例上運作。

此外掛將Terrific概念整合到WordPress中,並基於Roger Dudler的Terrific micro。

此外掛已從整合中刪除了視圖和局部文件,請改用WordPress功能(範本/範本部件)。

功能

建立新主題或添加結構到您的活動主題,以便在專案中使用Terrific micro
提供選項緩存和壓縮合併後的樣式和腳本以供生產使用
提供介面以基於檔案範本創建新模組和皮膚
檢測模式以獲取頁面上的模組概述
使用WordPress自己的jQuery的選項

用法

您可以在模板檔中使用'module'-function來呈現模組,例如:

<?php module('TeaserBox'); ?>

您可以向函數提供更多參數以控制輸出:

module(模組名稱,模組範本名稱(可選,預設:null),皮膚名稱(可選,預設:null),其他屬性(可選,預設:array()))

由於此函數是Terrific micro的一部分,因此您可以在Github上找到更詳細的描述。

您可以手動刷新Terrific快取,並通過管理欄啟動檢查模式(參見屏幕截圖)。

此外掛會自動將WordPress自己的jQuery版本作為第一個腳本檔包含在內。您可以在管理頁面中關閉此選項,並像往常一樣在assets.json中包含自己的jQuery或Zepto版本。

有關整合的更多信息,建議您讓此外掛創建一個新主題,以了解可以如何完成。如果在使用Terrific時遇到問題,請查看terrifically.org、Terrific micro github頁面和Terrific google group。

依賴

Terrific micro
Cssmin
Jsmin
Lessphp
Phpsass
jQuery

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Terrific Integration」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Note: This plugin won’t work on WordPress-instances hosted by WordPress.com.
This plugin integrates the Terrific concept into WordPress and is based on Roger Dudler’s Terrific micro.
Views as well as partials were removed from the integration, use WordPress functionality (templates/template parts) instead.
Features

Create a new theme or add a structure to your active theme to be able to use Terrific micro in your project
Provides you the option to cache and minify the concatenated styles and scripts for production use
Provides an interface to create new modules and skins based on file templates
Inspect mode to get an overview of the modules on a page
Option to use WordPress’ own jQuery

Usage
You can render a module in your template files using the ‘module’-function, e.g.:

You can provide more parameters to the function to control the output:
module(Module Name, Module Template Name (optional, default: null), Skin Name (optional, default: null), Additional Attributes (optional, default: array()))

As this function is part of Terrific micro, you’ll find a more detailed description on Github.
You can flush the Terrific cache manually as well as start the inspect mode via the admin bar (see screenshot).
The plugin automatically includes WordPress’ own jQuery version as the first script file. You can disable this option in the admin page and include your own jQuery or Zepto version in the assets.json as usual.
There’s not much to know about the integration, I recommend you to let the plugin create a new theme to get an idea on how things could be done. If you have problems using Terrific, check out terrifically.org, the Terrific micro github page and the Terrific google group.
Dependencies

Terrific micro
Cssmin
Jsmin
Lessphp
Phpsass
jQuery

文章
Filter
Apply Filters
Mastodon