| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Plugin Name: Post Grid Gutenberg Blocks - PostX |
| 5 |
* Plugin URI: https://www.wpxpo.com/postx/ |
| 6 |
* Description: Gutenberg Blocks plugin with 38+ free blocks that include post grid, post list, post slider, carousel, news ticker, and more. Dynamic site building and design variations make it a fit for News Magazine sites and any kind of blog, such as Personal, Travel, Fashion, Food Review and Recipe blogs. |
| 7 |
* Version: 5.1.1 |
| 8 |
* Author: Post Grid Team by WPXPO |
| 9 |
* Author URI: https://www.wpxpo.com/postx/?utm_source=db-postx-plugin&utm_medium=details&utm_campaign=postx-dashboard |
| 10 |
* Requires at least: 6.0 |
| 11 |
* Requires PHP: 7.4 |
| 12 |
* Text Domain: ultimate-post |
| 13 |
* License: GPLv3 |
| 14 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html |
| 15 |
*/ |
| 16 |
|
| 17 |
defined( 'ABSPATH' ) || exit; |
| 18 |
|
| 19 |
// Define |
| 20 |
define( 'ULTP_VER', '5.1.1' ); |
| 21 |
define( 'ULTP_URL', plugin_dir_url( __FILE__ ) ); |
| 22 |
define( 'ULTP_BASE', plugin_basename( __FILE__ ) ); |
| 23 |
define( 'ULTP_PATH', plugin_dir_path( __FILE__ ) ); |
| 24 |
define( 'ULTP_HELLOBAR', '510' ); |
| 25 |
|
| 26 |
|
| 27 |
// Language Load |
| 28 |
add_action( 'init', 'ultp_language_load' ); |
| 29 |
function ultp_language_load() { |
| 30 |
// template section wrapped inside a hook for netwrok site compatibility |
| 31 |
// Template |
| 32 |
require_once ULTP_PATH . 'classes/Templates.php'; |
| 33 |
new \ULTP\Templates(); |
| 34 |
} |
| 35 |
|
| 36 |
// Common Function |
| 37 |
if ( ! function_exists( 'ultimate_post' ) ) { |
| 38 |
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound -- Public API used by PostX Pro and themes; renaming breaks them. |
| 39 |
function ultimate_post() { |
| 40 |
require_once ULTP_PATH . 'classes/Functions.php'; |
| 41 |
return \ULTP\Functions::get_instance(); |
| 42 |
} |
| 43 |
} |
| 44 |
|
| 45 |
// Plugin Initialization |
| 46 |
if ( ! class_exists( 'ULTP_Initialization' ) ) { |
| 47 |
require_once ULTP_PATH . 'classes/Initialization.php'; |
| 48 |
new \ULTP\ULTP_Initialization(); |
| 49 |
} |
| 50 |
|