Title: CodeLibs
Author: Agnel Waghela
Published: <strong>2012 年 1 月 6 日</strong>
Last modified: 2012 年 1 月 11 日

---

搜索插件

![](https://ps.w.org/codelibs/assets/banner-772x250.png?rev=485716)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/codelibs_181818.svg)

# CodeLibs

 作者：[Agnel Waghela](https://profiles.wordpress.org/agnelwaghela/)

[下载](https://downloads.wordpress.org/plugin/codelibs.1.3.zip)

 * [详情](https://cn.wordpress.org/plugins/codelibs/#description)
 * [评价](https://cn.wordpress.org/plugins/codelibs/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/codelibs/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/codelibs/#developers)

 [支持](https://wordpress.org/support/plugin/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](https://github.com/maxatwork/form2js)**
 * **[Geo Location](http://code.google.com/p/geo-location-javascript)**
 * **[Modernizr.js](http://www.modernizr.com)**
 * **[URI.js](https://github.com/medialize/URI.js)**
 * **[Impress.js](https://github.com/bartaz/impress.js)**
 * **[Filer.js](https://github.com/ebidel/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](https://wordpress.org/extend/plugins/codelibs/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](https://github.com/maxatwork/form2js)**
 * **[Geo Location](http://code.google.com/p/geo-location-javascript)**
 * **[Modernizr.js](http://www.modernizr.com)**
 * **[URI.js](https://github.com/medialize/URI.js)**
 * **[Impress.js](https://github.com/bartaz/impress.js)**
 * **[Filer.js](https://github.com/ebidel/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

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

 * To Add more than one library use this simply as –
 * <?php include(ABSPATH.”/wp-content/plugins/codelibs/func.php”); // just once
   
   CodeLibs(‘jQuery’, ‘latest’); … … CodeLibs(‘jQueryUI’,’latest’); … … CodeLibs(‘
   URI’,’latest’);
 * Any question, then contact me at [AgnelWaghela](http://twitter.com/agnel_waghela)

## 安装

This section describes how to install the plugin and get it working.

 1. Upload `codelibs` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Place `<?php include(ABSPATH."/wp-content/plugins/codelibs/func.php");
     CodeLibs('
    scriptname', 'version'); ?>
     in your templates.

_MarkUp to add scripts:-_

CodeLibs is a collection of all the necessary js required for development purposes.

With this plugin in your blog you can use any js framework for development. And 
whenever you feel like you can just copy that js to your theme’s or plugin’s js 
folder. If Your plugin or theme is completely dependent on this plugin then you 
can ask your theme or plugin user to download this plugin as well. This plugin is
created for meeting the development needs.

CodeLibs() is a Function Located in func.php file in the codelibs plugin.
 We are
just including it and calling as many times as we want. Once you have included you
can just call CodeLibs() any number of times with valid parameters.

 * 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

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

 * To Add more than one library use this simply as –
 * <?php include(ABSPATH.”/wp-content/plugins/codelibs/func.php”); // just once
   
   CodeLibs(‘jQuery’, ‘latest’); … … CodeLibs(‘jQueryUI’,’latest’); … … CodeLibs(‘
   URI’,’latest’);
 * Any question, then contact me at [AgnelWaghela](http://twitter.com/agnel_waghela)

## 常见问题

  No Question?

Because, Its the 1st release.

## 评价

此插件暂无评价。

## 贡献者及开发者

「CodeLibs」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Agnel Waghela ](https://profiles.wordpress.org/agnelwaghela/)

[帮助将「CodeLibs」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/codelibs)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/codelibs/)，查看[SVN仓库](https://plugins.svn.wordpress.org/codelibs/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/codelibs/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/codelibs/)。

## 更新日志

#### 1.3

 * Added [form2js](https://github.com/maxatwork/form2js)

#### 1.2

 * Added [Geo Location Javascript](http://code.google.com/p/geo-location-javascript)

#### 1.1

 * Added the Best frameworks.
    **Latest Additions to this plugin:-**
 * **[Modernizr.js](http://www.modernizr.com)**
 * **[URI.js](https://github.com/medialize/URI.js)**
 * **[Impress.js](https://github.com/bartaz/impress.js)**
 * **[Filer.js](https://github.com/ebidel/filer.js)**

#### 1.0

 * 1st Release.

## 额外信息

 *  版本 **1.3**
 *  最后更新：**14 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.2.1 或更高版本 **
 *  已测试的最高版本为 **3.3.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/codelibs/)
 *  [高级视图](https://cn.wordpress.org/plugins/codelibs/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/codelibs/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/codelibs/reviews/)

## 贡献者

 *   [ Agnel Waghela ](https://profiles.wordpress.org/agnelwaghela/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/codelibs/)