=')) { add_action('admin_notices', array($this, 'admin_notice_minimum_elementor_version')); return; } // Check for required PHP version if (version_compare(PHP_VERSION, self::MINIMUM_PHP_VERSION, '<')) { add_action('admin_notices', array($this, 'admin_notice_minimum_php_version')); return; } // Once we get here, We have passed all validation checks so we can safely include our function require_once('function.php'); } /** * Admin notice * * Warning when the site doesn't have Elementor installed or activated. * * @since 1.0.0 * @access public */ public function admin_notice_missing_main_plugin() { if (isset($_GET['activate'])) { unset($_GET['activate']); } $message = sprintf( /* translators: 1: Plugin name 2: Elementor */ esc_html__('"%1$s" requires "%2$s" to be installed and activated.', 'being'), '' . esc_html__('Nr Core', 'being') . '', '' . esc_html__('being', 'being') . '' ); printf('

%1$s

', $message); } /** * Admin notice * * Warning when the site doesn't have a minimum required Elementor version. * * @since 1.0.0 * @access public */ public function admin_notice_minimum_elementor_version() { if (isset($_GET['activate'])) { unset($_GET['activate']); } $message = sprintf( /* translators: 1: Plugin name 2: Elementor 3: Required Elementor version */ esc_html__('"%1$s" requires "%2$s" version %3$s or greater.', 'being'), '' . esc_html__('Nr Core', 'being') . '', '' . esc_html__('Elementor', 'being') . '', self::MINIMUM_ELEMENTOR_VERSION ); printf('

%1$s

', $message); } /** * Admin notice * * Warning when the site doesn't have a minimum required PHP version. * * @since 1.0.0 * @access public */ public function admin_notice_minimum_php_version() { if (isset($_GET['activate'])) { unset($_GET['activate']); } $message = sprintf( /* translators: 1: Plugin name 2: PHP 3: Required PHP version */ esc_html__('"%1$s" requires "%2$s" version %3$s or greater.', 'being'), '' . esc_html__('Nr Core', 'being') . '', '' . esc_html__('PHP', 'being') . '', self::MINIMUM_PHP_VERSION ); printf('

%1$s

', $message); } } // Instantiate BE_Core. new BE_Core();