id(), $taxonomy->name ); $tag_names = $tag_ids = array(); if ( ! empty( $tags ) and ! is_wp_error( $tags ) ) { foreach( $tags as $tag ) { $tag_names[] = $tag->name; $tag_ids[] = $tag->term_id; } } $tag_names = implode( ', ', $tag_names ); $most_used_tags = get_terms( array( 'taxonomy' => Flamingo_Contact::contact_tag_taxonomy, 'orderby' => 'count', 'order' => 'DESC', 'number' => 10, 'exclude' => $tag_ids, 'fields' => 'names', ) ); if ( is_wp_error( $most_used_tags ) ) { $most_used_tags = array(); } ?>


' . esc_html( $tag ) . ' '; } ?>


id() ); $submitted_on = sprintf( /* translators: Publish box date string. 1: Date, 2: Time. */ __( '%1$s at %2$s', 'flamingo' ), wp_date( /* translators: Publish box date format, see https://www.php.net/date */ _x( 'M j, Y', 'publish box date format', 'flamingo' ), $submitted_timestamp ), wp_date( /* translators: Publish box time format, see https://www.php.net/date */ _x( 'H:i', 'publish box time format', 'flamingo' ), $submitted_timestamp ) ); echo wp_kses_data( sprintf( /* translators: %s: Message submission date. */ __( 'Submitted on: %s', 'flamingo' ), $submitted_on ) ); ?>
submission_status ) ) { echo '
', "\n"; echo sprintf( ' %2$s', in_array( $post->submission_status, array( 'mail_failed', 'spam' ) ) ? 'dashicons-no' : 'dashicons-yes', wp_kses_data( sprintf( /* translators: %s: Result of the submission. */ __( 'Submission result: %s', 'flamingo' ), $post->submission_status ) ) ); echo '
', "\n"; } foreach ( (array) $post->spam_log as $log ) { echo '
'; echo sprintf( ' %2$s', esc_attr( $log['agent'] ?? '' ), wp_kses_data( sprintf( /* translators: %s: reason why this message is regarded as spam */ __( 'Spam log: %s', 'flamingo' ), $log['reason'] ?? '' ) ) ); echo '
'; } ?>
id() ) ) { if ( ! EMPTY_TRASH_DAYS ) { $delete_text = __( 'Delete permanently', 'flamingo' ); } else { $delete_text = __( 'Move to trash', 'flamingo' ); } $delete_link = add_query_arg( array( 'post' => $post->id(), 'action' => 'trash', ), menu_page_url( 'flamingo_inbound', false ) ); $delete_link = wp_nonce_url( $delete_link, 'flamingo-trash-inbound-message_' . $post->id() ); echo sprintf( '%2$s', esc_url( $delete_link ), esc_html( $delete_text ) ); } ?>
fields as $key => $value ) : ?>
consent; if ( empty( $consent ) ) { return; } ?> $value ) : ?>
recaptcha as $key => $value ) : ?>
meta as $key => $value ) : ?>