=' ) ) {
add_action( 'admin_notices', array( $this, 'admin_notice_minimum_elementor_version' ) );
return;
}
if ( version_compare( PHP_VERSION, self::MINIMUM_PHP_VERSION, '<' ) ) {
add_action( 'admin_notices', array( $this, 'admin_notice_minimum_php_version' ) );
return;
}
require_once( 'plugin.php' );
}
public function admin_notice_missing_main_plugin() {
if ( isset( $_GET['activate'] ) ) {
unset( $_GET['activate'] );
}
$message = sprintf(
esc_html__( '"%1$s" requires "%2$s" to be installed and activated.', 'addon-package-for-elementor' ),
'' . esc_html__( 'Elementor Addon Package for Elementor', 'addon-package-for-elementor' ) . '',
'' . esc_html__( 'Elementor', 'apfetd' ) . ''
);
printf( '
', $message );
}
public function admin_notice_minimum_elementor_version() {
if ( isset( $_GET['activate'] ) ) {
unset( $_GET['activate'] );
}
$message = sprintf(
esc_html__( '"%1$s" requires "%2$s" version %3$s or greater.', 'apfetd' ),
'' . esc_html__( 'Elementor Addon Package for Elementor', 'apfetd' ) . '',
'' . esc_html__( 'Elementor', 'apfetd' ) . '',
self::MINIMUM_ELEMENTOR_VERSION
);
printf( '', $message );
}
public function admin_notice_minimum_php_version() {
if ( isset( $_GET['activate'] ) ) {
unset( $_GET['activate'] );
}
$message = sprintf(
esc_html__( '"%1$s" requires "%2$s" version %3$s or greater.', 'apfetd' ),
'' . esc_html__( 'Elementor Addon Package for Elementor', 'apfetd' ) . '',
'' . esc_html__( 'PHP', 'apfetd' ) . '',
self::MINIMUM_PHP_VERSION
);
printf( '', $message );
}
}
new Apfetd_Load();