AIEO_DMM::MENU_SLUG, 'dmm_tab' => 'contact_form', ), admin_url( 'admin.php' ) ); $aieo_cf_statuses = AIEO_DMM_Contact_Form::status_labels(); ?> 'contact-form', 'icon' => 'inbox', 'title' => __( 'Messages', 'ai-eshop-optimizer' ) . ' (' . number_format_i18n( (int) $total ) . ')', 'description' => __( 'Every message sent through the contact form, newest first. Opening a new message marks it read.', 'ai-eshop-optimizer' ), 'flush' => true, ) ); echo $aieo_cf_open; $aieo_cf_place = wp_kses_post( sprintf( __( 'Place the form with the %1$s shortcode, the %2$s block, or the Elementor widget of the same name. Fields, wording and emails are on the Settings tab.', 'ai-eshop-optimizer' ), '[aieo_contact_form]', '' . esc_html__( 'Contact Form', 'ai-eshop-optimizer' ) . '' ) ); $aieo_cf_lib = class_exists( '\Rooster\Admin\Ui' ); if ( $aieo_cf_lib ) { echo \Rooster\Admin\Ui::notice( $aieo_cf_place, 'mono', array( 'inline' => true ) ); } else { echo '

' . $aieo_cf_place . '

'; } if ( ! empty( $recipients['emails'] ) ) : ?>

—

' . esc_html__( 'New messages are emailed to:', 'ai-eshop-optimizer' ) . ' ' . esc_html__( 'nobody. Set a recipient on the Settings tab, or the notice goes nowhere.', 'ai-eshop-optimizer' ), 'warning', array( 'inline' => true ) ); else : ?>

'sm', 'attrs' => array( 'data-aieo-cf-page' => 'aieo_dmm_contact_form_create_page' ) ) ), 'info' ); } elseif ( ! AIEO_DMM_Contact_Form::page_has_form( $aieo_cf_page ) && ! get_option( AIEO_DMM_Contact_Form::PAGE_NOTICE_DISMISSED ) ) { $aieo_cf_buttons = true; echo AIEO_DMM_UI::notice( esc_html( sprintf( __( 'Your page "%s" has no contact form.', 'ai-eshop-optimizer' ), get_the_title( $aieo_cf_page ) ) ) . ' ' . AIEO_Kit::button( __( 'Add the form to the page', 'ai-eshop-optimizer' ), array( 'size' => 'sm', 'attrs' => array( 'data-aieo-cf-page' => 'aieo_dmm_contact_form_add_form' ) ) ) . ' ' . AIEO_Kit::button( __( 'Dismiss', 'ai-eshop-optimizer' ), array( 'variant' => 'ghost', 'size' => 'sm', 'attrs' => array( 'data-aieo-cf-page' => 'aieo_dmm_contact_form_dismiss_page_notice' ) ) ), 'warning' ); } else { echo '

' . esc_html__( 'Contact page:', 'ai-eshop-optimizer' ) . ' ' . esc_html( get_the_title( $aieo_cf_page ) ) . ' · ' . esc_html__( 'View', 'ai-eshop-optimizer' ) . '' . ' · ' . esc_html__( 'Edit', 'ai-eshop-optimizer' ) . '

'; } if ( $aieo_cf_buttons ) : ?> true ) ); } else { echo '

' . esc_html__( 'The messages table does not exist yet. Reload this page once; it is created automatically.', 'ai-eshop-optimizer' ) . '

'; } } AIEO_Report_Render::card( 'contact_form_messages', array( 'wrap' => false ) ); ?> 'contact-form-pages', 'icon' => 'map-pin', 'title' => __( 'Where messages come from', 'ai-eshop-optimizer' ), 'description' => __( 'The pages the contact form was sent from. Counted by Rooster One for each page, apart from the campaign reports.', 'ai-eshop-optimizer' ), ) ); echo $aieo_cf_pa_open; \Rooster\Admin\Markup::out( AIEO_Page_Actions::form_pages( 'contact_form', array( 'caption' => __( 'Where messages come from', 'ai-eshop-optimizer' ), 'empty' => __( 'No message counted yet: each one sent from now on is counted on the page it was sent from.', 'ai-eshop-optimizer' ), ) ) ); echo $aieo_cf_pa_close; } ?>