PluginProbe
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor / 4.0.4
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor v4.0.4
4.0.4 4.0.3 4.0.2 4.0.1 4.0.0 3.10.02 3.10.01 3.9.10 3.9.9 3.9.8 3.9.7 3.9.5 3.9.6 3.9.3 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.2.0 2.2.1 2.2.2 All 183 releases
elementskit-lite / libs / pro-label / init.php
init.php
26 lines 703 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace ElementsKit_Lite\Libs\Pro_Label;
3
4 defined( 'ABSPATH' ) || exit;
5
6 class Init {
7 use Admin_Notice;
8
9 public function __construct() {
10 add_action( 'current_screen', array( $this, 'hook_current_screen' ) );
11 }
12
13 public function hook_current_screen( $screen ) {
14 if ( ! in_array( $screen->id, array( 'nav-menus', 'toplevel_page_elementskit', 'edit-elementskit_template', 'dashboard' ) ) ) {
15 return;
16 }
17
18 $activation_stamp = get_option( 'elementskit_lite_activation_stamp' );
19 if ( gmdate( 'd', ( time() - $activation_stamp ) ) > 10 ) {
20 add_action( 'admin_head', array( $this, 'show_go_pro_notice' ) );
21 }
22
23 add_action( 'admin_footer', array( $this, 'footer_alert_box' ) );
24 }
25 }
26