| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: PostX - Gutenberg Post Grid Blocks |
| 4 |
* Description: Gutenberg Post blocks is a Gutenberg block Plugin for creating dynamic blog listing, grid and slider. |
| 5 |
* Version: 2.4.7 |
| 6 |
* Author: wpxpo |
| 7 |
* Author URI: https://wpxpo.com/ |
| 8 |
* Text Domain: ultimate-post |
| 9 |
* License: GPLv3 |
| 10 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html |
| 11 |
*/ |
| 12 |
|
| 13 |
defined( 'ABSPATH' ) || exit; |
| 14 |
|
| 15 |
// Define |
| 16 |
define('ULTP_VER', '2.4.7'); |
| 17 |
define('ULTP_URL', plugin_dir_url(__FILE__)); |
| 18 |
define('ULTP_BASE', plugin_basename(__FILE__)); |
| 19 |
define('ULTP_PATH', plugin_dir_path(__FILE__)); |
| 20 |
|
| 21 |
// Language Load |
| 22 |
add_action('init', 'ultp_language_load'); |
| 23 |
function ultp_language_load() { |
| 24 |
load_plugin_textdomain( 'ultimate-post', false, basename(dirname(__FILE__))."/languages/" ); |
| 25 |
} |
| 26 |
|
| 27 |
// Common Function |
| 28 |
if(!function_exists('ultimate_post')) { |
| 29 |
function ultimate_post() { |
| 30 |
require_once ULTP_PATH . 'classes/Functions.php'; |
| 31 |
return new \ULTP\Functions(); |
| 32 |
} |
| 33 |
} |
| 34 |
|
| 35 |
// Plugin Initialization |
| 36 |
if (!class_exists( 'ULTP_Initialization' )) { |
| 37 |
require_once ULTP_PATH . 'classes/Initialization.php'; |
| 38 |
new \ULTP\ULTP_Initialization(); |
| 39 |
} |
| 40 |
|
| 41 |
// Template |
| 42 |
require_once ULTP_PATH . 'classes/Templates.php'; |
| 43 |
new \ULTP\Templates(); |