PluginProbe
Post Grid Gutenberg Blocks – PostX / 5.0.41
Post Grid Gutenberg Blocks – PostX v5.0.41
5.0.41 5.0.39 5.0.38 5.0.37 5.0.36 5.0.35 5.0.34 5.0.33 5.0.32 5.0.31 5.0.30 5.0.29 5.0.28 5.0.27 5.0.26 5.0.25 5.0.23 5.0.24 5.0.22 5.0.21 5.0.20 5.0.19 5.0.18 5.0.17 2.1.1 All 238 releases
← All changes | classes/Initialization.php +15 -3 5.0.215.0.41 View file →
@@ -91,11 +91,15 @@
91 91 require_once ULTP_PATH . 'includes/deactive/class-deactive.php';
92 92 require_once ULTP_PATH . 'includes/notice/class-notice.php';
93 93 require_once ULTP_PATH . 'includes/durbin/class-our-plugins.php';
94 94 require_once ULTP_PATH . 'includes/notice/class-wow-shipping-promotion.php';
95 + require_once ULTP_PATH . 'includes/notice/class-wow-revenue-promotion.php';
96 + require_once ULTP_PATH . 'includes/notice/class-wow-addons-promotion.php';
95 97 new \ULTP\Includes\Deactive\Deactive();
96 98 new \ULTP\Includes\notice\Notice();
97 99 new \ULTP\Includes\notice\WowShippingPromotion();
100 + new \ULTP\Includes\notice\WowRevenuePromotion();
101 + new \ULTP\Includes\notice\WowAddonsPromotion();
98 102 new \ULTP\Includes\Durbin\OurPlugins();
99 103 }
100 104
101 105 /**
@@ -361,12 +365,15 @@
361 365 * @since v.1.0.0
362 366 * @return void No return value.
363 367 */
364 368 public function register_option_panel_scripts_callback() {
365 - $is_active = ultimate_post()->is_lc_active();
366 - $license_key = Xpo::get_lc_key();
369 + $is_active = ultimate_post()->is_lc_active();
370 + $is_expired = Xpo::is_lc_expired();
371 +
372 + $license_key = Xpo::get_lc_key();
367 373 $_page = isset($_GET['page']) ? sanitize_text_field($_GET['page']) : ''; // @codingStandardsIgnoreLine
368 - $post_type = get_post_type();
374 + $post_type = get_post_type();
375 + $is_woocommerce_active = class_exists( 'WooCommerce' ) ? true : false;
369 376
370 377 wp_enqueue_style( 'wp-color-picker' );
371 378 wp_enqueue_script( 'wp-color-picker' );
372 379
@@ -378,13 +385,15 @@
378 385 array(
379 386 'url' => ULTP_URL,
380 387 'version' => ULTP_VER,
381 388 'active' => $is_active,
389 + 'expierd' => $is_expired,
382 390 'security' => wp_create_nonce( 'ultp-nonce' ),
383 391 'ajax' => admin_url( 'admin-ajax.php' ),
384 392 'settings' => ultimate_post()->get_setting(),
385 393 'post_type' => $post_type,
386 394 'saved_template_url' => admin_url( 'admin.php?page=ultp-settings#saved-templates' ),
395 + 'woocommerce' => $is_woocommerce_active,
387 396 )
388 397 );
389 398
390 399 if ( $post_type == 'ultp_custom_font' ) {
@@ -427,8 +436,9 @@
427 436 'ajax' => admin_url( 'admin-ajax.php' ),
428 437 'security' => wp_create_nonce( 'ultp-nonce' ),
429 438 'url' => ULTP_URL,
430 439 'active' => $is_active,
440 + 'expierd' => $is_expired,
431 441 'license' => $license_key,
432 442 'settings' => ultimate_post()->get_setting(),
433 443 'addons_settings' => apply_filters( 'ultp_settings', array() ),
434 444 'builder_url' => admin_url( 'admin.php?page=ultp-settings#builder' ),
@@ -458,8 +468,9 @@
458 468 * @return void No return value.
459 469 */
460 470 public function register_block_scripts_editor_area() {
461 471 ultimate_post()->register_scripts_common();
472 + $is_expired = Xpo::is_lc_expired();
462 473 global $pagenow;
463 474 $depends = 'wp-editor';
464 475 if ( $pagenow === 'widgets.php' ) {
465 476 $depends = 'wp-edit-widgets';
@@ -524,8 +535,9 @@
524 535 'disable_image_size' => ultimate_post()->get_setting( 'disable_image_size' ),
525 536 'dark_logo' => get_option( 'ultp_site_dark_logo' ) ? get_option( 'ultp_site_dark_logo' ) : false,
526 537 'builder_url' => admin_url( 'admin.php?page=ultp-settings#builder' ),
527 538 'custom_fonts' => $custom_fonts,
539 + 'expierd' => $is_expired,
528 540 )
529 541 );
530 542 wp_set_script_translations( 'ultp-blocks-editor-script', 'ultimate-post', ULTP_PATH . 'languages/' );
531 543 }