strtotime( '-240 hours' ) || class_exists( 'Ocean_White_Label' ) || '1' === get_option( 'ocean_extra_dismiss_notice' ) || ! current_user_can( 'manage_options' ) || apply_filters( 'ocean_show_sticky_notice', false ) ) { return; } // CSS wp_enqueue_style( 'oe-admin-notice', plugins_url( '/assets/css/notice.min.css', __FILE__ ) ); } /** * Display rating notice * * @since 1.4.27 */ public static function rating_notice() { // Show notice after 240 hours from installed time. if ( self::get_installed_time() > strtotime( '-240 hours' ) || class_exists( 'Ocean_White_Label' ) || '1' === get_option( 'ocean_extra_dismiss_rating_notice' ) || ! current_user_can( 'manage_options' ) || apply_filters( 'ocean_show_sticky_notice', false ) ) { return; } $no_thanks = wp_nonce_url( add_query_arg( 'ocean_extra_rating_notice', 'no_thanks_rating_btn' ), 'no_thanks_rating_btn' ); $dismiss = wp_nonce_url( add_query_arg( 'ocean_extra_rating_notice', 'dismiss_rating_btn' ), 'dismiss_rating_btn' ); ?>

' ); ?>

strtotime( '-240 hours' ) || class_exists( 'Ocean_White_Label' ) || '1' === get_option( 'ocean_extra_dismiss_rating_notice' ) || ! current_user_can( 'manage_options' ) || apply_filters( 'ocean_show_sticky_notice', false ) ) { return; } // CSS wp_enqueue_style( 'oe-rating-notice', plugins_url( '/assets/css/notice.min.css', __FILE__ ) ); } /** * Installed time * * @since 1.2.6 */ private static function get_installed_time() { $installed_time = get_option( 'ocean_extra_installed_time' ); if ( ! $installed_time ) { $installed_time = time(); update_option( 'ocean_extra_installed_time', $installed_time ); } return $installed_time; } } new Ocean_Extra_Admin_Notice(); }