2017 © Pedro Peláez
 

wordpress-plugin novuso-wp-common

Common libraries for Novuso WordPress development

image

novuso/novuso-wp-common

Common libraries for Novuso WordPress development

  • Saturday, February 7, 2015
  • by novuso
  • Repository
  • 0 Watchers
  • 0 Stars
  • 35 Installations
  • JavaScript
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Novuso WP Common

Registers common libraries to allow plugins and themes to share a common dependency in WordPress., (*1)

Goal

Register CSS and JavaScript libraries that are not available in WordPress core., (*2)

Installation

If you use Composer to manage WordPress dependencies, simply add the following line to your composer.json file:, (*3)

"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., (*4)

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)., (*5)

Usage

Just use the normal process to enqueue scripts and styles in WordPress., (*6)

The handle names listed below are registered once the plugin is active., (*7)

Here are some examples of how to load the assets in a theme functions.php file:, (*8)

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

License

MIT, (*9)

The Versions

07/02 2015

dev-master

9999999-dev

Common libraries for Novuso WordPress development

  Sources   Download

MIT

The Requires

 

07/02 2015

0.2.1

0.2.1.0

Common libraries for Novuso WordPress development

  Sources   Download

MIT

The Requires

 

07/02 2015

0.2.0

0.2.0.0

Common libraries for Novuso WordPress development

  Sources   Download

MIT

The Requires

 

09/11 2014

0.1.0

0.1.0.0

Common libraries for Novuso WordPress development

  Sources   Download

MIT

The Requires