[wordpress插件] CodeLibs代码库

wordpress 插件 文章 4 天前 0 10 全屏看文
评分
0
描述

Most people either download or use google hosted js.

大多数人下载或使用Google托管的js。

But now you have all js.

但是现在您有了所有的js。

Add any js to your plugin or theme as per your requirements.

根据您的要求将任何js添加到您的插件或主题中。

Just two lines of code and add any version of any js.

只需两行代码,并添加任何js的任何版本。

This plugin has all the version of the following :-

该插件具有以下所有版本:-

    • ChromeFrame
    • ChromeFrame

    • Dojo
    • 道场

    • Ext-Core
    • Ext-Core

    • jQuery
    • jQuery

    • jQueryUI
    • jQueryUI

    • MooTools
    • MooTools

    • ProtoType
    • ProtoType

    • Scriptaculous
    • 精巧

    • SWFObject
    • SWFObject

    • WebFontLoader
    • WebFontLoader

    • YUI(only version 3.3.0)
    • YUI(仅3.3.0版)

    Latest Additions to this plugin:-

    此插件的最新添加:-

      None of the js will be added even after the plugin is activated.

      即使激活了插件,也不会添加任何js。

      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 –

            例如,对于您的项目,如果您想要最新版本的jQuery,请执行此操作–

          OR

          OR

            <?php include(ABSPATH。“ / wp-content / plugins / codelibs / func.php”);

          CodeLibs('jQuery', 'latest');

          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('jQuery','latest');





              CodeLibs(‘jQueryUI’,’latest’);

              CodeLibs('jQueryUI','latest');





              CodeLibs(‘URI’,’latest’);

              CodeLibs(“ URI”,“最新”);

            • Any question, then contact me at AgnelWaghela

              有任何问题,请通过 AgnelWaghela 与我联系

安装步骤

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

本节介绍如何安装插件并使其正常工作。

    1. Upload codelibs to the /wp-content/plugins/ directory
    2. codelibs 上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Place             

    6. 放置 <?php include(ABSPATH。“ / wp-content / plugins / codelibs / func.php”);
                  

      CodeLibs('scriptname', 'version');

      CodeLibs('scriptname','version');

      ?> in your templates.

    7. ?> 在您的模板中。

    MarkUp to add scripts:-

    MarkUp添加脚本:-

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

    CodeLibs是开发所需的所有必需js的集合。

    With this plugin in your blog you can use any js framework for development.

    使用博客中的此插件,您可以使用任何js框架进行开发。

    And whenever you feel like you can just copy that js to your theme’s or plugin’s js folder.

    而且只要您愿意,就可以将该js复制到主题或插件的js文件夹中。

    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.

    CodeLibs()是位于codelibs插件中func.php文件中的函数。

    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.

    包含代码后,您可以使用有效参数任意次调用CodeLibs()。

      • 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 –

        例如,对于您的项目,如果您想要最新版本的jQuery,请执行此操作–

      OR

      OR

        <?php include(ABSPATH。“ / wp-content / plugins / codelibs / func.php”);

      CodeLibs('jQuery', 'latest');

      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('jQuery','latest');





          CodeLibs(‘jQueryUI’,’latest’);

          CodeLibs('jQueryUI','latest');





          CodeLibs(‘URI’,’latest’);

          CodeLibs(“ URI”,“最新”);

        • Any question, then contact me at AgnelWaghela

          有任何问题,请通过 AgnelWaghela 与我联系

下载地址
https://downloads.wordpress.org/plugin/codelibs.1.3.zip
-EOF-