| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Post Duplicator |
| 4 |
Description: Creates functionality to duplicate any and all post types, including taxonomies & custom fields |
| 5 |
Version: 2.26 |
| 6 |
Author: Metaphor Creations |
| 7 |
Author URI: http://www.metaphorcreations.com |
| 8 |
Text Domain: post-duplicator |
| 9 |
License: GPL2 |
| 10 |
*/ |
| 11 |
|
| 12 |
/* |
| 13 |
Copyright 2012 Metaphor Creations (email : joe@metaphorcreations.com) |
| 14 |
|
| 15 |
This program is free software; you can redistribute it and/or modify |
| 16 |
it under the terms of the GNU General Public License, version 2, as |
| 17 |
published by the Free Software Foundation. |
| 18 |
|
| 19 |
This program is distributed in the hope that it will be useful, |
| 20 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 |
GNU General Public License for more details. |
| 23 |
|
| 24 |
You should have received a copy of the GNU General Public License |
| 25 |
along with this program; if not, write to the Free Software |
| 26 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 27 |
*/ |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
// Plugin version. |
| 32 |
if ( ! defined( 'MTPHR_POST_DUPLICATOR_VERSION' ) ) { |
| 33 |
define( 'MTPHR_POST_DUPLICATOR_VERSION', '2.26' ); |
| 34 |
} |
| 35 |
|
| 36 |
// Plugin Folder Path. |
| 37 |
if ( ! defined( 'MTPHR_POST_DUPLICATOR_DIR' ) ) { |
| 38 |
define( 'MTPHR_POST_DUPLICATOR_DIR', plugin_dir_path( __FILE__ ) ); |
| 39 |
} |
| 40 |
|
| 41 |
// Plugin Folder URL. |
| 42 |
if ( ! defined( 'MTPHR_POST_DUPLICATOR_URL' ) ) { |
| 43 |
define( 'MTPHR_POST_DUPLICATOR_URL', plugin_dir_url( __FILE__ ) ); |
| 44 |
} |
| 45 |
|
| 46 |
// Plugin Root File. |
| 47 |
if ( ! defined( 'MTPHR_POST_DUPLICATOR_FILE' ) ) { |
| 48 |
define( 'MTPHR_POST_DUPLICATOR_FILE', __FILE__ ); |
| 49 |
} |
| 50 |
|
| 51 |
|
| 52 |
add_action( 'plugins_loaded', 'mtphr_post_duplicator_localization' ); |
| 53 |
/** |
| 54 |
* Setup localization |
| 55 |
* |
| 56 |
* @since 2.4 |
| 57 |
*/ |
| 58 |
function mtphr_post_duplicator_localization() { |
| 59 |
load_plugin_textdomain( 'post-duplicator', false, 'post-duplicator/languages/' ); |
| 60 |
} |
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
/** |
| 66 |
* Include files. |
| 67 |
* |
| 68 |
* @since 2.0 |
| 69 |
*/ |
| 70 |
if ( is_admin() ) { |
| 71 |
|
| 72 |
// Load Metaboxer |
| 73 |
require_once( MTPHR_POST_DUPLICATOR_DIR.'includes/helpers.php' ); |
| 74 |
require_once( MTPHR_POST_DUPLICATOR_DIR.'metaboxer/metaboxer.php' ); |
| 75 |
//require_once( MTPHR_POST_DUPLICATOR_DIR.'metaboxer/metaboxer-class.php' ); |
| 76 |
require_once( MTPHR_POST_DUPLICATOR_DIR.'includes/scripts.php' ); |
| 77 |
require_once( MTPHR_POST_DUPLICATOR_DIR.'includes/ajax.php' ); |
| 78 |
require_once( MTPHR_POST_DUPLICATOR_DIR.'includes/edit.php' ); |
| 79 |
require_once( MTPHR_POST_DUPLICATOR_DIR.'includes/functions.php' ); |
| 80 |
require_once( MTPHR_POST_DUPLICATOR_DIR.'includes/notices.php' ); |
| 81 |
require_once( MTPHR_POST_DUPLICATOR_DIR.'includes/settings.php' ); |
| 82 |
} |
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|