Uname: Linux premium264.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.3.22 [ PHP INFO ] PHP os: Linux
Server Ip: 69.57.162.13
Your Ip: 216.73.216.219
User: workvvfb (1129) | Group: workvvfb (1084)
Safe Mode: OFF
Disable Function:
NONE

name : init.php
<?php 
namespace ElementsKit_Lite\Libs\Pro_Label;

defined( 'ABSPATH' ) || exit;

class Init {
	use Admin_Notice;

	public function __construct() {
		add_action( 'current_screen', array( $this, 'hook_current_screen' ) );
	}

	public function hook_current_screen( $screen ) {
		if ( ! in_array( $screen->id, array( 'nav-menus', 'toplevel_page_elementskit', 'edit-elementskit_template', 'dashboard' ) ) ) {
			return;
		}

		$activation_stamp = get_option( 'elementskit_lite_activation_stamp' );
		if ( gmdate( 'd', ( time() - $activation_stamp ) ) > 10 ) {
			add_action( 'admin_head', array( $this, 'show_go_pro_notice' ) );
		}

		add_action( 'admin_footer', array( $this, 'footer_alert_box' ) );
	}
}
© 2025 GrazzMean