2017-25 © Pedro Peláez
 

library wp-wpx

A utility library for overriding WordPress default HTML output easily

image

manychois/wp-wpx

A utility library for overriding WordPress default HTML output easily

  • Tuesday, July 24, 2018
  • by manychois
  • Repository
  • 2 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 200 % Grown

The README.md

Wpx

Wpx provides you a set of utility functions to help you developing WordPress themes or plugins., (*1)

Installation

composer require manychois/wp-wpx, (*2)

Then in your plugin file or theme functions.php, write this to start using Wpx:, (*3)

require_once(__DIR__ . '/vendor/autoload.php');
$wpx = new \Manychois\Wpx\Utility(new \Manychois\Wpx\WpContext());
$wpx->activate();

Features

  • Check UtilityInterface for available methods. Some highlights:
    • minimizeHead()
      Remove certain WordPress default stuff in <head> tag, e.g. generator tag, emoji script.
    • registerStyle() / registerScript()
      Outputting tag like <link rel="stylesheet" href="..." integrity="..." crossorigin="anonymous" /> has become possible.
    • getMenuItem()
      No more manipulating output from wp_nav_menu(). Wpx provides you hierarchy of menu data for extreme flexibility.
    • getPostPaginationLinks()
      Again, no more manipulation on output from paginate_links().
  • Bundle \Manychois\Views\View to help you build HTML template in parent-child structure. Reference: https://github.com/manychois/php-views
  • Provide \Manychois\Wpx\TagBuilder to simplify HTML tag construction.
  • Register useful stylesheets and JavaScripts for admin pages:
    • wpx-jquery-ui: CSS of Jquery UI theme Smoothness.
    • wpx-codemirror: Latest CodeMirror core script.

To-do list

  • Increase unit test code coverage.
  • Add helper styles and functions to simplify plugin admin screen development.

License

This project is licensed under MIT License., (*4)

Author

This library is created by Siu Pang Tommy Choi., (*5)

The Versions

24/07 2018

dev-master

9999999-dev

A utility library for overriding WordPress default HTML output easily

  Sources   Download

MIT

The Requires

 

The Development Requires

by Siu Pang Tommy Choi

wordpress

24/07 2018

v0.0.2

0.0.2.0

A utility library for overriding WordPress default HTML output easily

  Sources   Download

MIT

The Requires

 

The Development Requires

by Siu Pang Tommy Choi

wordpress

17/07 2018

v0.0.1

0.0.1.0

A utility library for overriding WordPress default HTML output easily

  Sources   Download

MIT

The Requires

 

The Development Requires

by Siu Pang Tommy Choi

wordpress