CodeLibs

plugin banner

A simple plugin to add javascripts to your plugin or the theme. Useful for development work!

Author:Agnel Waghela (profile at wordpress.org)
WordPress version required:3.2.1
WordPress version tested:3.3.2
Plugin version:1.3
Added to WordPress repository:06-01-2012
Last updated:11-01-2012
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:
Total downloads:2 069
Active installs:10+
plugin download
Click to start download

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:-

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:-

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


FAQ
ChangeLog