| 1 |
<?php |
| 2 |
/** |
| 3 |
* The plugin bootstrap file |
| 4 |
* |
| 5 |
* @link http://hurrytimer.com |
| 6 |
* @since 1.0.0 |
| 7 |
* @package Hurrytimer |
| 8 |
* |
| 9 |
* @wordpress-plugin |
| 10 |
* Plugin Name: HurryTimer |
| 11 |
* Plugin URI: https://hurrytimer.com |
| 12 |
* Description: A Scarcity Countdown Timer for WordPress & WooCommerce. |
| 13 |
* Version: 2.1.2 |
| 14 |
* Author: Nabil Lemsieh |
| 15 |
* Author URI: http://nabillemsieh.com |
| 16 |
* License: GPLv3 |
| 17 |
* License URI: http://www.gnu.org/licenses/gpl.html |
| 18 |
* Text Domain: hurrytimer |
| 19 |
* Domain Path: /languages |
| 20 |
*/ |
| 21 |
|
| 22 |
namespace Hurrytimer; |
| 23 |
|
| 24 |
// If this file is called directly, abort. |
| 25 |
if (!defined('WPINC')) { |
| 26 |
die; |
| 27 |
} |
| 28 |
|
| 29 |
define('HURRYT_VERSION', '2.1.2'); |
| 30 |
define('HURRYT_DB_VERSION', '1.0.0'); |
| 31 |
define('HURRYT_SLUG', 'hurrytimer'); |
| 32 |
define('HURRYT_DIR', plugin_dir_path(__FILE__)); |
| 33 |
define('HURRYT_URL', plugin_dir_url(__FILE__)); |
| 34 |
define('HURRYT_BASENAME', plugin_basename(__FILE__)); |
| 35 |
define('HURRYT_POST_TYPE', 'hurrytimer_countdown'); |
| 36 |
|
| 37 |
function activate() |
| 38 |
{ |
| 39 |
require_once HURRYT_DIR . 'includes/Activator.php'; |
| 40 |
Activator::activate(); |
| 41 |
} |
| 42 |
|
| 43 |
function deactivate() |
| 44 |
{ |
| 45 |
require_once HURRYT_DIR . 'includes/Deactivator.php'; |
| 46 |
Deactivator::deactivate(); |
| 47 |
} |
| 48 |
|
| 49 |
register_activation_hook(__FILE__, 'Hurrytimer\activate'); |
| 50 |
register_deactivation_hook(__FILE__, 'Hurrytimer\deactivate'); |
| 51 |
|
| 52 |
require plugin_dir_path(__FILE__) . 'includes/Bootstrap.php'; |
| 53 |
|
| 54 |
(new Bootstrap())->run(); |
| 55 |
|