Note: This plugin won't work on WordPress-instances hosted by
WordPress.com.
This plugin integrates the
Terrific concept into WordPress and is based on
Roger Dudler's Terrific micro.
Views as well as partials were removed from the integration, use WordPress functionality (templates/template parts) instead.
Features
- Create a new theme or add a structure to your active theme to be able to use Terrific micro in your project
- Provides you the option to cache and minify the concatenated styles and scripts for production use
- Provides an interface to create new modules and skins based on file templates
- Inspect mode to get an overview of the modules on a page
- Option to use WordPress' own jQuery
Usage
You can render a module in your template files using the 'module'-function, e.g.:
<?php module('TeaserBox'); ?>
You can provide more parameters to the function to control the output:
module(Module Name, Module Template Name (optional, default: null), Skin Name (optional, default: null), Additional Attributes (optional, default: array()))
As this function is part of Terrific micro, you'll find a more detailed description
on Github.
You can flush the Terrific cache manually as well as start the inspect mode via the admin bar (see screenshot).
The plugin automatically includes WordPress' own jQuery version as the first script file. You can disable this option in the admin page and include your own jQuery or Zepto version in the assets.json as usual.
There's not much to know about the integration, I recommend you to let the plugin create a new theme to get an idea on how things could be done. If you have problems using Terrific, check out
terrifically.org, the
Terrific micro github page and the
Terrific google group.
Dependencies