themeus

Simple Wordpress framework and utility library.


License
MIT
Install
bower install themeus

Documentation

Themeus v0.2.0

Simple WP Framework and utility library.

What's this?

Themeus is a simple Wordpress framework and utility library with support for Bootstrap 3 dropdown menus.

Installation

Download with bower install themeus and include it in your Wordpress project with require_once('.../themeus.php');.

Usage

Creating a theme.

th_init ( $theme, [$images] )

Initializes the theme's global constants and enables translation support. $theme is name of the theme and $images is the image directory relative to the root path.

Post Formats

th_formats  ( 'link', 'video', ... )

Adds a list of post formats to the theme.

Theme Support

th_support  ( 'post-thumbnails', ... )

Adds a list of options to the theme support.

Menus

th_menus    ( 'Menu', ... )

Adds a list of menus to the theme. menu-name-slugs are automatically generated.

Sidebars

th_sidebar  ( ['Sidebar', 'Description'], ... )

Adds a list of sidebars with name and description via [$name, $description] adding a default before-after html for widget and title area.

Scripts & Styles

th_enqueue  ( 'path/to/script.js:jquery:dep!', 'path/to/style.css', ... )

Adds a list of scripts and / or styles to the enqueue list based in the file extension. List dependencies as a colon separated string after each path. Append a ! at the end of the path to enqueue the file in the footer.

Bootstrap Menus

th_display_menu( 'Menu' )

Displays a bootstrap dropdown enabled menu. Simplifies wp_nav_menu using the slug as the menu class. Subclasses Wordpress' Walker_Nav_Menu and adds filters to customize the output of classes and attributes.

Translation

_o( 'Thank you for reading my README file.' )

Theme's domain enabled wrapper for __(). The domain is initialized with the theme's name in th_init($theme).

Get Social

Release History

0.2.0 / 2014-09-5
  • Supports Wordpress 4.0. Refer 0.1.0 if you are using < WP 4.0.
0.1.0 / 2014-09-5
  • Initial Release.

By Jorge Bucaran