| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Widget Context |
| 4 |
* Plugin URI: https://widgetcontext.com |
| 5 |
* Description: Show or hide widgets depending on the section of the site that is being viewed. |
| 6 |
* Version: 1.1.1 |
| 7 |
* Author: Preseto |
| 8 |
* Author URI: https://preseto.com |
| 9 |
* Text Domain: widget-context |
| 10 |
*/ |
| 11 |
|
| 12 |
// TODO Switch to proper autoloading. |
| 13 |
require_once dirname( __FILE__ ) . '/src/WidgetContext.php'; |
| 14 |
require_once dirname( __FILE__ ) . '/src/modules/custom-post-types-taxonomies/module.php'; |
| 15 |
require_once dirname( __FILE__ ) . '/src/modules/word-count/module.php'; |
| 16 |
|
| 17 |
$plugin = new WidgetContext( dirname( __FILE__ ) ); |
| 18 |
|
| 19 |
$plugin->register_module( new WidgetContextCustomCptTax( $plugin ) ); |
| 20 |
$plugin->register_module( new WidgetContextWordCount( $plugin ) ); |
| 21 |
|
| 22 |
$plugin->init(); |
| 23 |
|