| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* The plugin bootstrap file |
| 5 |
* |
| 6 |
* This file is read by WordPress to generate the plugin information in the plugin |
| 7 |
* admin area. This file also includes all of the dependencies used by the plugin, |
| 8 |
* registers the activation and deactivation functions, and defines a function |
| 9 |
* that starts the plugin. |
| 10 |
* |
| 11 |
* @link https://icegram.com |
| 12 |
* @since 1.0.0 |
| 13 |
* @package Icegram_Mailer |
| 14 |
* |
| 15 |
* @wordpress-plugin |
| 16 |
* Plugin Name: Icegram Mailer |
| 17 |
* Plugin URI: https://icegram.com |
| 18 |
* Description: Plugin to send emails via Icegram sending service |
| 19 |
* Version: 1.0.14 |
| 20 |
* Author: Icegram |
| 21 |
* Requires at least: 4.7 |
| 22 |
* Tested up to: 7.0 |
| 23 |
* Requires PHP: 7.0 |
| 24 |
* Author URI: https://icegram.com/ |
| 25 |
* License: GPL-2.0+ |
| 26 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 27 |
* Text Domain: icegram-mailer |
| 28 |
* Domain Path: /languages |
| 29 |
*/ |
| 30 |
|
| 31 |
// If this file is called directly, abort. |
| 32 |
if ( ! defined( 'ABSPATH' ) ) { |
| 33 |
exit; // Exit if accessed directly |
| 34 |
} |
| 35 |
|
| 36 |
/** |
| 37 |
* Currently plugin version. |
| 38 |
* Start at version 1.0.0 and use SemVer - https://semver.org |
| 39 |
* Rename this for your plugin and update it as you release new versions. |
| 40 |
*/ |
| 41 |
if ( ! defined( 'ICEGRAM_MAILER_VERSION' ) ) { |
| 42 |
define( 'ICEGRAM_MAILER_VERSION', '1.0.14' ); |
| 43 |
} |
| 44 |
|
| 45 |
if ( ! defined( 'ICEGRAM_MAILER_FEEDBACK_VERSION' ) ) { |
| 46 |
define( 'ICEGRAM_MAILER_FEEDBACK_VERSION', '1.2.12' ); |
| 47 |
} |
| 48 |
|
| 49 |
if ( ! defined( 'ICEGRAM_MAILER_TRACKER_VERSION' ) ) { |
| 50 |
define( 'ICEGRAM_MAILER_TRACKER_VERSION', '1.2.6' ); |
| 51 |
} |
| 52 |
|
| 53 |
if ( ! defined( 'ICEGRAM_MAILER_PLUGIN_PATH' ) ) { |
| 54 |
define( 'ICEGRAM_MAILER_PLUGIN_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) ); |
| 55 |
} |
| 56 |
|
| 57 |
if ( ! defined( 'ICEGRAM_MAILER_PLUGIN_URL' ) ) { |
| 58 |
define( 'ICEGRAM_MAILER_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) ); |
| 59 |
} |
| 60 |
|
| 61 |
if ( ! defined( 'ICEGRAM_MAILER_IMAGE_URL' ) ) { |
| 62 |
define( 'ICEGRAM_MAILER_IMAGE_URL', ICEGRAM_MAILER_PLUGIN_URL . '/assets/images/' ); |
| 63 |
} |
| 64 |
|
| 65 |
/** |
| 66 |
* The code that runs during plugin activation. |
| 67 |
* This action is documented in includes/class-icegram-mailer-activator.php |
| 68 |
*/ |
| 69 |
|
| 70 |
if ( ! function_exists( 'icegram_mailer_activate' ) ) { |
| 71 |
function icegram_mailer_activate() { |
| 72 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-icegram-mailer-activator.php'; |
| 73 |
Icegram_Mailer_Activator::activate(); |
| 74 |
} |
| 75 |
|
| 76 |
register_activation_hook( __FILE__, 'icegram_mailer_activate' ); |
| 77 |
} |
| 78 |
|
| 79 |
/** |
| 80 |
* The code that runs during plugin deactivation. |
| 81 |
* This action is documented in includes/class-icegram-mailer-deactivator.php |
| 82 |
*/ |
| 83 |
if ( ! function_exists( 'icegram_mailer_deactivate' ) ) { |
| 84 |
function icegram_mailer_deactivate() { |
| 85 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-icegram-mailer-deactivator.php'; |
| 86 |
Icegram_Mailer_Deactivator::deactivate(); |
| 87 |
} |
| 88 |
register_deactivation_hook( __FILE__, 'icegram_mailer_deactivate' ); |
| 89 |
} |
| 90 |
|
| 91 |
/** |
| 92 |
* The core plugin class that is used to define internationalization, |
| 93 |
* admin-specific hooks, and public-facing site hooks. |
| 94 |
*/ |
| 95 |
require plugin_dir_path( __FILE__ ) . 'includes/class-icegram-mailer.php'; |
| 96 |
|
| 97 |
/** |
| 98 |
* Begins execution of the plugin. |
| 99 |
* |
| 100 |
* Since everything within the plugin is registered via hooks, |
| 101 |
* then kicking off the plugin from this point in the file does |
| 102 |
* not affect the page life cycle. |
| 103 |
* |
| 104 |
* @since 1.0.0 |
| 105 |
*/ |
| 106 |
if ( ! function_exists( 'icegram_mailer' ) ) { |
| 107 |
function icegram_mailer() { |
| 108 |
return Icegram_Mailer::instance(); |
| 109 |
} |
| 110 |
icegram_mailer(); |
| 111 |
} |
| 112 |
|