PHP 8.2.31
Preview: init.php Size: 703 B
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/elementskit-lite/libs/pro-label/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' ) );
	}
}

Directory Contents

Dirs: 1 × Files: 2

Name Size Perms Modified Actions
views DIR
- drwxr-xr-x 2026-06-05 03:11:37
Edit Download
744 B lrw-r--r-- 2022-05-21 09:23:10
Edit Download
703 B lrw-r--r-- 2023-11-28 17:47:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).