novuso/novuso-wp-common
最新稳定版本:0.2.1
Composer 安装命令:
composer require novuso/novuso-wp-common
包简介
Common libraries for Novuso WordPress development
README 文档
README
Registers common libraries to allow plugins and themes to share a common dependency in WordPress.
Goal
Register CSS and JavaScript libraries that are not available in WordPress core.
Installation
If you use Composer to manage WordPress dependencies, simply add the following line to your composer.json file:
"novuso/novuso-wp-common": "~0.2"
And run composer update and this plugin will be installed in your configured
plugin folder using the composer/installers
project.
If you are not using Composer, you can download this project and place the
entire contents in a novuso-wp-common folder in your plugins folder. In that
case, you will need to periodically update manually (which sort of defeats the purpose).
Usage
Just use the normal process to enqueue scripts and styles in WordPress.
The handle names listed below are registered once the plugin is active.
Here are some examples of how to load the assets in a theme functions.php file:
// functions.php
function mytheme_load_assets() {
wp_enqueue_script('bootstrap');
wp_enqueue_style('bootstrap');
wp_enqueue_script('marionette');
}
add_action('wp_enqueue_scripts', 'mytheme_load_assets');
Project Maintained CSS
Project Maintained JavaScript
- backstretch
- bootstrap
- datatables
- datatables-bootstrap
- jquery-spin
- marionette
- markdown
- modernizr
- moment
- moment-intl (includes locales)
- respond
- spin
- swipebox
- videojs
License
MIT
统计信息
- 总下载量: 53
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-11-09