2017 © Pedro Peláez
 

library loader

Loader for files in wordpress making things easier instead of using a require

image

moxie-leean/loader

Loader for files in wordpress making things easier instead of using a require

  • Tuesday, March 8, 2016
  • by mitogh
  • Repository
  • 4 Watchers
  • 1 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Loader Build Status

Allows to load files from directories with a more sugared syntax, and allowing the use of params passed to the fils., (*1)

Register directories where to look for file.

add_filter( 'loader_directories', function( $directories ){
  $directories[] = get_template_directory();
  return $directories;
});

That will search files on the root directory of your theme., (*2)

Register alias

The alias are used to search inside of directories more easily for example:, (*3)

add_filter('loader_alias', function( $alias ){
  $alias['partial'] = 'partials';
  return $alias;
});

Which give us a sintax like this:, (*4)

Load::partial( 'button' );

From a file located in:, (*5)

get_template_directory() . '/partials/button.php',, (*6)

The Versions

08/03 2016

dev-master

9999999-dev

Loader for files in wordpress making things easier instead of using a require

  Sources   Download

MIT

The Requires

 

The Development Requires

by Crisoforo Gaspar

08/03 2016

0.2.0

0.2.0.0

Loader for files in wordpress making things easier instead of using a require

  Sources   Download

MIT

The Requires

 

The Development Requires

by Crisoforo Gaspar

08/03 2016

dev-develop

dev-develop

Loader for files in wordpress making things easier instead of using a require

  Sources   Download

MIT

The Requires

 

The Development Requires

by Crisoforo Gaspar

26/01 2016

0.1.0

0.1.0.0

Loader for files in wordpress making things easier instead of using a require

  Sources   Download

MIT

The Requires

 

The Development Requires

by Crisoforo Gaspar