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

Js Css Include Manager

描述

This plugin allows you to include extra JavaScript or CSS files in your WordPress page.

You can:

  • Include as many as you like.
  • Choose whether files are to be included on the front-end or the back-end.
  • Choose where to include them in the header or the footer.
  • Choose conditions to use for inclusion (logged-in users only, admin users only, front page only).
  • Choose conditions of you can add.

Please if you want to add conditions.
For example add filter:

add_filter( 'jcim_condition' , 'my_conditions' );
function my_conditions( ) {
    $conditions = array(
        array(
            "code" => "current_user_can",
            "val" => "edit_themes",
            "desc" => "Only edit theme role have user",
            "help_link" => "https://codex.wordpress.org/Function_Reference/current_user_can"
        ),
        array(
            "code" => "is_admin",
            "val" => "",
            "desc" => "Only admin screen",
            "help_link" => ""
        ),
    );
    return $conditions;
}

日本語でのご説明

このプラグインは、よくごちゃごちゃになってしまうjavascriptファイルの読み込みとcssファイルの読み込みを、
管理画面だけ、またはサイトだけに読み込むファイルを、1箇所で管理するためのプラグインです。
サイトで何のファイルを読み込んでいるのか、すっきり。

屏幕截图

  • Settings Interface
  • Configuration Example
  • Conditions after added of settins interface

安装

  1. Upload the full directory to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to WP-Admin -> Settings -> Js Css Include Manager to configure the plugin.

常见问题

A question that someone might have
What about foo bar?

评价

此插件暂无评价。

贡献者及开发者

“Js Css Include Manager” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Js Css Include Manager”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.4.4

  • Fixed: Re-setting data broken to file location.
  • Changed: Delete the parent theme location if use child theme.

1.4.3

  • Security enhancement: Escape to add_query_arg/remove_query_arg.

1.4.2

  • Fixed: Get the current user group.

1.4.1

  • Fixed: Small bug fixes.
  • Fixed: Remove useless globals.

1.4

  • Added: Support to Multisite.
  • Added: Allows the change of setting user role.
  • Updated: Organize sorce files.
  • Updated: Delete how to update in ajax.
  • Updated: Strinct condition check.

1.3.3.1

  • Fixed: Data update way.

1.3.3

  • Updated: Change the source code.
  • Updated: Data save way of settings.
  • Updated: Change way to edit of settings.
  • Updated: Compatible for WP 3.8.
  • Updated: Screen shots.
  • Added: Filter for condition of settings.

1.3.2

  • Support on SSL.

1.3.1.2 alpha

  • Fixed bug : Active themes directory location settings.
  • Added field to data identification for backwards compatibility.

1.3.1.1

  • Translate fix : Japanese.
  • Checked Compatibility.
  • Added Information of plugin.

1.3.1

Added a confirmation of Nonce field.

1.3

Adding capability to add file based on conditions (e.g. user is logged in, user is an admin, etc.).

1.2.1

Bugfix: Action footer bug fixed.

1.2

Change the notation of the donation.

1.1

Change Layout.
Fixed a bug that does not appear in the footer.

1.0

This is the initial release.