[WordPress] 外掛分享: Global Javascript

首頁外掛目錄 › Global Javascript
100+
安裝啟用
★★★☆☆
3.5/5 分(2 則評價)
4754 天前
最後更新
問題解決
v1.0 上架:2013-03-10

內容簡介

讓使用者在全域設定中建立自定義 JavaScript,應用於 WordPress 網站。

透過外掛製作的 JavaScript 會在其他外掛和/或主題使用的 JavaScript 之後載入。

外掛功能:

此外掛包含以下功能:

語法突出顯示

代碼壓縮

修訂版本

將代碼區塊分組

包含相依性(如 jQuery 和 backbone.js 等庫)

優雅的編輯器介面,由 ACE 提供

未來的新增功能:

以下是隨著外掛成長,未來可能添加的一些功能 🙂:

能夠從 minify 函式庫中選擇您的喜好壓縮器

能夠載入不同的 JavaScript 檔案,供外掛使用者決定每個頁面/文章

能夠保存其他 JavaScript 檔案並建立選項卡以組織檔案

一個單獨的按鈕,可完全從伺服器刪除 JavaScript 檔案

鳴謝

此外掛使用由 Steve Clay([email protected])和 Ryan Grove([email protected])開發的 minify 函式庫套件。
更多資訊,請參閱 http://code.google.com/p/minify/

外掛標籤

開發者團隊

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

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

原文外掛簡介

Allows the user to create custom javascript for their WordPress powered site on a global level.
The Javascript made by the user of the plugin will be loaded after any other Javascript that is used by other plugins and/or themes.
PLUGIN FEATURES:
Some of the features that are included in this plugin are:

syntax highlighting

code minification

revisions

grouping blocks of code

including dependencies (libraries such as jQuery and backbone.js)

elegant editor interface courtesy of ACE

FUTURE ADDITIONS:
Here are some of the things that I will be adding sometime in the future as the plugin grows 🙂 :

ability to choose your minifier of choice from the minify library

ability to load different javascript files for each page/post as decided by the plugin user

ability to save additional javascript files and create tabs to organize the files

a separate button to completely delete the javascript files from the server

Acknowledgements
This plugin uses the minify library package by Steve Clay ([email protected]) and Ryan Grove ([email protected]).
More info at http://code.google.com/p/minify/

延伸相關外掛

文章
Filter
Mastodon