| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Uji Countdown |
| 4 |
Plugin URI: http://www.wpmanage.com/uji-countdown |
| 5 |
Description: Customizable Countdown. |
| 6 |
Version: 3.0 |
| 7 |
Text Domain: ujicountdown |
| 8 |
Domain Path: /lang |
| 9 |
Author: Wpmanage.com |
| 10 |
Author URI: http://wpmanage.com |
| 11 |
Requires at least: 6.4 |
| 12 |
Requires PHP: 8.0 |
| 13 |
License: GPLv2 |
| 14 |
Copyright 2025 WPmanage (email : info@wpmanage.com) |
| 15 |
*/ |
| 16 |
|
| 17 |
// Exit if accessed directly. |
| 18 |
if ( ! defined( 'ABSPATH' ) ) { |
| 19 |
exit; |
| 20 |
} |
| 21 |
|
| 22 |
// If this file is called directly, abort. |
| 23 |
defined( 'WPINC' ) || exit; |
| 24 |
|
| 25 |
define( 'UJIC_NAME', defined('UJIC_NAMEPRO') ? UJIC_NAMEPRO : 'Uji Countdown' ); |
| 26 |
define( 'UJIC_ORIG', '3.0' ); |
| 27 |
define( 'UJIC_VERS', defined('UJIC_VERSPRO') ? UJIC_VERSPRO : UJIC_ORIG ); |
| 28 |
define( 'UJIC_FOLD', 'uji-countdown' ); |
| 29 |
define( 'UJICOUNTDOWN', trailingslashit( dirname(__FILE__) ) ); |
| 30 |
define( 'UJICOUNTDOWN_URL', plugin_dir_url( __FILE__ ) ); |
| 31 |
define( 'UJICOUNTDOWN_BASE', plugin_basename(__FILE__) ); |
| 32 |
define( 'UJICOUNTDOWN_FILE', __FILE__ ); |
| 33 |
|
| 34 |
//Google Fonts |
| 35 |
require_once( plugin_dir_path( __FILE__ ) . 'assets/googlefonts.php' ); |
| 36 |
// Functions |
| 37 |
require_once( plugin_dir_path( __FILE__ ) . 'classes/uji-functions.php' ); |
| 38 |
|
| 39 |
/** |
| 40 |
* Block Initializer. |
| 41 |
*/ |
| 42 |
require_once plugin_dir_path( __FILE__ ) . 'src/blocks.php'; |
| 43 |
|
| 44 |
// Classes |
| 45 |
require_once( plugin_dir_path( __FILE__ ) . 'classes/class-uji-countdown-admin.php' ); |
| 46 |
require_once( plugin_dir_path( __FILE__ ) . 'classes/class-uji-countdown.php' ); |
| 47 |
require_once( plugin_dir_path( __FILE__ ) . 'classes/class-uji-countdown-front.php' ); |
| 48 |
|
| 49 |
// INIT |
| 50 |
Uji_Countdown::get_instance(); |
| 51 |
|