This commit is contained in:
2025-11-18 16:39:33 +00:00
parent c70394d367
commit df1f90c6cd
9673 changed files with 3464697 additions and 34 deletions
@@ -0,0 +1,26 @@
<?php
namespace ElementsKit_Lite\Libs\Pro_Label;
defined( 'ABSPATH' ) || exit;
trait Admin_Notice {
public function footer_alert_box() {
include 'views/modal.php';
}
public function show_go_pro_notice() {
\Oxaim\Libs\Notice::instance( 'elementskit-lite', 'go-pro-noti2ce' )
->set_dismiss( 'global', ( 3600 * 24 * 300 ) )
->set_type( 'warning' )
->set_html(
'
<div class="ekit-go-pro-notice">
<strong>Thank you for using ElementsKit Lite.</strong> To get more amazing features and the outstanding pro ready-made layouts, please get the <a style="color: #FCB214;" target="_blank" href="https://wpmet.com/elementskit-pricing">Premium Version</a>.
</div>
'
)
->call();
}
}
@@ -0,0 +1,25 @@
<?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' ) );
}
}
@@ -0,0 +1,14 @@
<?php defined( 'ABSPATH' ) || exit; ?>
<div class="attr-modal attr-fade ekit-wid-con" id="elementskit_go_pro_modal" tabindex="-1" role="dialog" aria-labelledby="elementskit_go_pro_modalLabel" style="display: none;">
<div class="attr-modal-dialog attr-modal-dialog-centered ekit-go-pro-con" role="document">
<div class="attr-modal-content">
<button type="button" class="close attr-hidden" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<div class="attr-modal-body attr-text-center">
<i class="icon icon-information"></i>
<h2>Go Premium</h2>
<p>Purchase our <a target="_blank" href="https://wpmet.com/elementskit-pricing">pro version</a> to unlock these premium features!</p>
</div>
</div>
</div>
</div>