[WordPress] 外掛分享: CodeLibs

首頁外掛目錄 › CodeLibs
WordPress 外掛 CodeLibs 的封面圖片
10+
安裝啟用
尚無評分
5205 天前
最後更新
問題解決
WordPress 3.2.1+ v1.3 上架:2012-01-05

內容簡介

大多數人要么下載要么使用 Google 托管的 js。
但現在你有了所有的 js。按照你的要求將任何 js 添加到你的 WordPress 外掛或主題中。
只需兩行代碼,添加任何版本的任何 js。此 WordPress 外掛包含以下版本的所有 js:

ChromeFrame
Dojo
Ext-Core
jQuery
jQueryUI
MooTools
ProtoType
Scriptaculous
SWFObject
WebFontLoader
YUI(僅限 3.3.0 版本)

此 WordPress 外掛的最新功能:

form2js
Geo Location
Modernizr.js
URI.js
Impress.js
Filer.js

即使啟用了此外掛,也不會添加任何 js。你必須手動添加,如果你不明白,請查看 安裝。

以後的版本中還會添加許多其他腳本

任意部分

此 WordPress 外掛的最新功能:

form2js
Geo Location
Modernizr.js
URI.js
Impress.js
Filer.js

添加腳本的標記:

只需這樣做:

如果你不知道最新版本號,只需這樣做:

例如,如果你想要 jQuery 的最新版本,請這樣做:

或者

<?php include(ABSPATH."/wp-content/plugins/codelibs/func.php");
CodeLibs('jQuery', 'latest'); ?>

要添加多個庫,請簡單使用此代碼 –

<?php include(ABSPATH.”/wp-content/plugins/codelibs/func.php”); //just once
CodeLibs(‘jQuery’, ‘latest’);


CodeLibs(‘jQueryUI’,’latest’);


CodeLibs(‘URI’,’latest’);

有任何問題,請聯繫我 AgnelWaghela

外掛標籤

開發者團隊

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

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

原文外掛簡介

Most people either download or use google hosted js.
But now you have all js. Add any js to your plugin or theme as per your requirements.
Just two lines of code and add any version of any js. This plugin has all the version of the following :-

ChromeFrame
Dojo
Ext-Core
jQuery
jQueryUI
MooTools
ProtoType
Scriptaculous
SWFObject
WebFontLoader
YUI(only version 3.3.0)

Latest Additions to this plugin:-

form2js
Geo Location
Modernizr.js
URI.js
Impress.js
Filer.js

None of the js will be added even after the plugin is activated. You’ll have to do this manually. Check the Installation if you dont understand what i mean!
Many More scripts will be added to this plugin in the later versions
Arbitrary section
Latest Additions to this plugin:-

form2js
Geo Location
Modernizr.js
URI.js
Impress.js
Filer.js

MarkUp to add scripts:-

just do this –

or if you dont know the latest version no. just do this –

For Example, For your project if you want latest version of jQuery then do this –

OR

To Add more than one library use this simply as –

文章
Filter
Apply Filters
Mastodon