esc_html__( 'See Which Plugins Send Emails', 'wp-mail-smtp' ), 'text' => esc_html__( 'Upgrade to Pro to unlock the email log and see exactly where every email comes from.', 'wp-mail-smtp' ), 'cta' => [ 'label' => esc_html__( 'Upgrade to Pro', 'wp-mail-smtp' ), 'url' => $education_url, 'target_blank' => true, ], 'teaser' => wp_mail_smtp_render( 'dashboard/teasers/email-sources', [], true ), ], true ); ?> esc_html__( 'Send a Test Email', 'wp-mail-smtp' ), 'url' => $test_email_url, ]; } else { $cta = [ 'label' => esc_html__( 'Setup Primary Connection', 'wp-mail-smtp' ), 'url' => $connect_url, ]; } echo wp_mail_smtp_render( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- wp_mail_smtp_render() returns escaped HTML. 'dashboard/widget-overlay', [ 'title' => esc_html__( 'No Email Source Data Yet', 'wp-mail-smtp' ), 'text' => esc_html__( 'Sorry, there\'s not enough email data from this date range to show sources. Once your site sends more emails, sources will show up here.', 'wp-mail-smtp' ), 'cta' => $cta, 'teaser' => wp_mail_smtp_render( 'dashboard/teasers/email-sources', [], true ), ], true ); ?>