| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Artiss Code Embed |
| 4 |
Plugin URI: http://www.artiss.co.uk/code-embed |
| 5 |
Description: Allows you to embed code into your posts & pages |
| 6 |
Version: 1.6.1 |
| 7 |
Author: David Artiss |
| 8 |
Author URI: http://www.artiss.co.uk |
| 9 |
*/ |
| 10 |
|
| 11 |
/** |
| 12 |
* Artiss Code Embed |
| 13 |
* |
| 14 |
* Embed code into a post |
| 15 |
* |
| 16 |
* @package Artiss-Code-Embed |
| 17 |
* @since 1.6 |
| 18 |
*/ |
| 19 |
|
| 20 |
define( 'artiss_code_embed_version', '1.6.1' ); |
| 21 |
|
| 22 |
$functions_dir = WP_PLUGIN_DIR . '/simple-embed-code/includes/'; |
| 23 |
|
| 24 |
// Include all the various functions |
| 25 |
|
| 26 |
include_once( $functions_dir . 'get-options.php' ); // Get the default options |
| 27 |
|
| 28 |
if ( is_admin() ) { |
| 29 |
|
| 30 |
include_once( $functions_dir . 'admin-menu.php' ); // Administration menus |
| 31 |
|
| 32 |
if ( !has_action( 'wp_dashboard_setup', 'artiss_dashboard_widget' ) ) { |
| 33 |
|
| 34 |
include_once( $functions_dir . 'artiss-dashboard-widget.php' ); // Artiss dashboard widget |
| 35 |
|
| 36 |
} |
| 37 |
|
| 38 |
} else { |
| 39 |
|
| 40 |
include_once( $functions_dir . 'code-embed-filter.php' ); // Filter to apply code embeds |
| 41 |
|
| 42 |
} |
| 43 |
?> |