Linux 软件免费装
Banner图

Terrific Integration

开发者 LZurbriggen
更新时间 2013年12月13日 03:47
WordPress版本: 3.8
版权: GPLv2 or later
版权网址: 版权信息

标签

integration frontend modules skins micro terrific

下载

1.1

详情介绍:

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

安装:

  1. Upload the terrific directory to the /wp-content/plugins/ directory or download the plugin via the WordPress plugin system
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Access the 'Terrific' menu in WordPress an let it generate a new theme/create the basic structure for you
  4. Create modules and skins using the same menu

屏幕截图:

  • If your active theme isn't Terrific enabled, the plugin will give you the option to do so
  • Configure caching behaviour and create new modules/skins
  • Inspect mode

更新日志:

1.0 1.1