| 1 |
<?php |
| 2 |
/** |
| 3 |
* H5P Plugin. |
| 4 |
* |
| 5 |
* Eases the creation and insertion of rich interactive content |
| 6 |
* into you blog. Find content libraries at http://h5p.org |
| 7 |
* |
| 8 |
* @package H5P |
| 9 |
* @author Joubel <contact@joubel.com> |
| 10 |
* @license MIT |
| 11 |
* @link http://joubel.com |
| 12 |
* @copyright 2014 Joubel |
| 13 |
* |
| 14 |
* @wordpress-plugin |
| 15 |
* Plugin Name: H5P |
| 16 |
* Plugin URI: http://h5p.org/wordpress |
| 17 |
* Description: Allows you to upload, create, share and use rich interactive content on your WordPress site. |
| 18 |
* Version: 1.7.4 |
| 19 |
* Author: Joubel |
| 20 |
* Author URI: http://joubel.com |
| 21 |
* Text Domain: h5p |
| 22 |
* License: MIT |
| 23 |
* License URI: http://opensource.org/licenses/MIT |
| 24 |
* Domain Path: /languages |
| 25 |
* GitHub Plugin URI: https://github.com/h5p/h5p-wordpress |
| 26 |
*/ |
| 27 |
|
| 28 |
// If this file is called directly, abort. |
| 29 |
if (!defined('WPINC')) { |
| 30 |
die; |
| 31 |
} |
| 32 |
|
| 33 |
require_once plugin_dir_path(__FILE__) . 'autoloader.php'; |
| 34 |
|
| 35 |
// Public-Facing Functionality |
| 36 |
register_activation_hook(__FILE__, array('H5P_Plugin', 'activate')); |
| 37 |
register_deactivation_hook( __FILE__, array('H5P_Plugin', 'deactivate')); |
| 38 |
add_action('plugins_loaded', array('H5P_Plugin', 'get_instance')); |
| 39 |
|
| 40 |
// Dashboard and Administrative Functionality |
| 41 |
if (is_admin()) { |
| 42 |
add_action('plugins_loaded', array('H5P_Plugin_Admin', 'get_instance')); |
| 43 |
} |
| 44 |
|