should_display_notice() ) { return; } $this->set_seen_today(); $this->enqueue_dependencies(); $pointer_content = '

' . esc_html__( 'Elementor’s 9th Birthday sale!', 'elementor' ) . '

'; $pointer_content .= '

' . esc_html__( 'Celebrate Elementor’s birthday with us—exclusive deals are available now.', 'elementor' ); $pointer_content .= sprintf( '

%s

', self::PROMOTION_URL, esc_html__( 'View Deals', 'elementor' ) ); $allowed_tags = [ 'h3' => [], 'p' => [], 'a' => [ 'class' => [], 'target' => [ '_blank' ], 'href' => [], ], ]; ?> = $start && $now <= $end; } private static function is_already_seen_today() { return get_transient( self::get_user_transient_id() ); } private function set_seen_today() { $now = time(); $midnight = strtotime( 'tomorrow midnight' ); $seconds_until_midnight = $midnight - $now; set_transient( self::get_user_transient_id(), $now, $seconds_until_midnight ); } private static function get_user_transient_id(): string { return self::SEEN_TODAY_KEY . '_' . get_current_user_id(); } private function enqueue_dependencies() { wp_enqueue_script( 'wp-pointer' ); wp_enqueue_style( 'wp-pointer' ); } private static function is_dismissed(): bool { return User::get_introduction_meta( static::DISMISS_ACTION_KEY ); } }