', wpcf7_format_atts( array( 'type' => 'submit', 'class' => 'button-primary', 'name' => 'wpcf7-save', 'value' => __( 'Save', 'contact-form-7' ), ) ) ); ?>
%1$s %2$s', esc_html( $post->initial() ? __( 'Add New Contact Form', 'contact-form-7' ) : __( 'Edit Contact Form', 'contact-form-7' ) ), ( $post->initial() || ! current_user_can( 'wpcf7_edit_contact_forms' ) ) ? '' : wpcf7_link( menu_page_url( 'wpcf7-new', false ), __( 'Add New', 'contact-form-7' ), array( 'class' => 'page-title-action' ) ) ); ?>
initial() ? 'wpcf7-new' : 'wpcf7', wpcf7_current_action(), $post ); do_action( 'wpcf7_admin_notices', $post->initial() ? 'wpcf7-new' : 'wpcf7', wpcf7_current_action(), $post ); if ( $post ) : echo sprintf( '
', wpcf7_format_atts( array( 'method' => 'post', 'action' => esc_url( add_query_arg( array( 'post' => $post_id ), menu_page_url( 'wpcf7', false ) ) ), 'id' => 'wpcf7-admin-form-element', 'disabled' => ! current_user_can( 'wpcf7_edit_contact_form', $post_id ), ) ) ); if ( current_user_can( 'wpcf7_edit_contact_form', $post_id ) ) { wp_nonce_field( 'wpcf7-save-contact-form_' . $post_id ); } ?>
', wpcf7_format_atts( array( 'type' => 'text', 'name' => 'post_title', 'value' => $post->initial() ? '' : $post->title(), 'id' => 'title', 'spellcheck' => 'true', 'autocomplete' => 'off', 'disabled' => ! current_user_can( 'wpcf7_edit_contact_form', $post_id ), 'placeholder' => __( 'Enter title here', 'contact-form-7' ), 'aria-label' => __( 'Enter title here', 'contact-form-7' ), ) ) ); ?>
initial() ) { if ( $shortcode = $post->shortcode() ) { echo sprintf( '

', esc_html( __( "Copy this shortcode and paste it into your post, page, or text widget content:", 'contact-form-7' ) ), wpcf7_format_atts( array( 'type' => 'text', 'id' => 'wpcf7-shortcode', 'onfocus' => 'this.select();', 'readonly' => true, 'class' => 'large-text code', 'value' => $shortcode, ) ) ); } if ( $shortcode = $post->shortcode( array( 'use_old_format' => true ) ) ) { echo sprintf( '

', esc_html( __( "You can also use this old-style shortcode:", 'contact-form-7' ) ), wpcf7_format_atts( array( 'type' => 'text', 'id' => 'wpcf7-shortcode-old', 'onfocus' => 'this.select();', 'readonly' => true, 'class' => 'large-text code', 'value' => $shortcode, ) ) ); } } ?>

initial() ) { echo sprintf( '', wpcf7_format_atts( array( 'type' => 'submit', 'name' => 'wpcf7-copy', 'class' => 'copy button', 'value' => __( 'Duplicate', 'contact-form-7' ), ) ) ); } ?>
initial() ) { echo sprintf( '
', wpcf7_format_atts( array( 'type' => 'submit', 'name' => 'wpcf7-delete', 'class' => 'delete submitdelete', 'value' => __( 'Delete', 'contact-form-7' ), ) ) ); } ?>

array( 'title' => __( 'Form', 'contact-form-7' ), 'callback' => 'wpcf7_editor_panel_form', ), 'mail-panel' => array( 'title' => __( 'Mail', 'contact-form-7' ), 'callback' => 'wpcf7_editor_panel_mail', ), 'messages-panel' => array( 'title' => __( 'Messages', 'contact-form-7' ), 'callback' => 'wpcf7_editor_panel_messages', ), ); $additional_settings = $post->prop( 'additional_settings' ); if ( ! is_scalar( $additional_settings ) ) { $additional_settings = ''; } $additional_settings = trim( $additional_settings ); $additional_settings = explode( "\n", $additional_settings ); $additional_settings = array_filter( $additional_settings ); $additional_settings = count( $additional_settings ); $panels['additional-settings-panel'] = array( 'title' => $additional_settings ? sprintf( /* translators: %d: number of additional settings */ __( 'Additional Settings (%d)', 'contact-form-7' ), $additional_settings ) : __( 'Additional Settings', 'contact-form-7' ), 'callback' => 'wpcf7_editor_panel_additional_settings', ); } $panels = apply_filters( 'wpcf7_editor_panels', $panels ); foreach ( $panels as $id => $panel ) { $editor->add_panel( $id, $panel['title'], $panel['callback'] ); } $editor->display(); ?>
%s

', $save_button ); } ?>

print_panels( $post ); do_action( 'wpcf7_admin_footer', $post );