| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: DeepL Pro API translation plugin |
| 4 |
* Description: Get DeepL translation magic right inside your WordPress website |
| 5 |
* Version: 0.1 |
| 6 |
* Plugin Slug: deepl-api-wordpress |
| 7 |
* Author: Malaiac |
| 8 |
* Author URI: http://www.malaiac.net/ |
| 9 |
* Text Domain: wpdeepl_i18n |
| 10 |
* Domain Path: /languages |
| 11 |
*/ |
| 12 |
|
| 13 |
|
| 14 |
if(!function_exists('is_admin') || !is_admin()) |
| 15 |
return; |
| 16 |
|
| 17 |
|
| 18 |
defined('WPDEEPL_NAME') or define( 'WPDEEPL_NAME', plugin_basename( __FILE__ ) ); // plugin name as known by WP. |
| 19 |
defined('WPDEEPL_SLUG') or define( 'WPDEEPL_SLUG', 'wpdeepl_i18n' );// plugin slug (should match above meta: Text Domain). |
| 20 |
defined('WPDEEPL_DIR') or define( 'WPDEEPL_DIR', dirname( __FILE__ ) ); // our directory. |
| 21 |
defined('WPDEEPL_PATH') or define( 'WPDEEPL_PATH', realpath(__DIR__) ); // our directory. |
| 22 |
defined('WPDEEPL_URL') or define( 'WPDEEPL_URL', plugins_url( '', __FILE__ ) ); |
| 23 |
defined('WPDEEPL_VERSION') or define( 'WPDEEPL_VERSION', '0.1.20180323'); |
| 24 |
|
| 25 |
try { |
| 26 |
require_once( WPDEEPL_PATH . '/admin.php' ); |
| 27 |
require_once( WPDEEPL_PATH . '/classes/wpdeepl.php' ); |
| 28 |
require_once( WPDEEPL_PATH . '/classes/deeplapi.php' ); |
| 29 |
require_once( WPDEEPL_PATH . '/classes/deeplapi-translate.php' ); |
| 30 |
require_once( WPDEEPL_PATH . '/classes/deeplapi-usage.php' ); |
| 31 |
require_once( WPDEEPL_PATH . '/classes/wpdeepl-metabox.php' ); |
| 32 |
} catch (Exception $e) { |
| 33 |
|
| 34 |
|
| 35 |
} |
| 36 |
|
| 37 |
|
| 38 |
$WPDeepL = new WPDeepL(); |
| 39 |
//$GLOBALS['wpdeepl'] = new WPDeepL(); |
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|