contact_form = $contact_form; } public function add_panel( $id, $title, $callback ) { if ( wpcf7_is_name( $id ) ) { $this->panels[$id] = array( 'title' => $title, 'callback' => $callback ); } } public function display() { if ( empty( $this->panels ) ) { return; } echo ''; foreach ( $this->panels as $id => $panel ) { echo sprintf( '
', esc_attr( $id ) ); call_user_func( $panel['callback'], $this->contact_form ); echo '
'; } } } function wpcf7_editor_panel_form( $post ) { ?>

print_buttons(); ?> '; wpcf7_editor_box_mail( $post, array( 'id' => 'wpcf7-mail-2', 'name' => 'mail_2', 'title' => __( 'Mail (2)', 'contact-form-7' ), 'use' => __( 'Use Mail (2)', 'contact-form-7' ) ) ); } function wpcf7_editor_box_mail( $post, $args = '' ) { $args = wp_parse_args( $args, array( 'id' => 'wpcf7-mail', 'name' => 'mail', 'title' => __( 'Mail', 'contact-form-7' ), 'use' => null ) ); $id = esc_attr( $args['id'] ); $mail = wp_parse_args( $post->prop( $args['name'] ), array( 'active' => false, 'recipient' => '', 'sender' => '', 'subject' => '', 'body' => '', 'additional_headers' => '', 'attachments' => '', 'use_html' => false, 'exclude_blank' => false ) ); ?>


suggest_mail_tags( $args['name'] ); ?>

$arr ) { $field_name = 'wpcf7-message-' . strtr( $key, '_', '-' ); ?>