array( 'success', __( 'Contact page updated.', 'advisers-contacts' ) ), 'page_linked' => array( 'success', __( 'This page now carries the contact form.', 'advisers-contacts' ) ), 'page_created' => array( 'success', __( 'A new contact page was created.', 'advisers-contacts' ) ), 'slug_adjusted' => array( 'warning', __( 'Saved, but that address is already used by another page, so WordPress picked a similar one. Check the address below.', 'advisers-contacts' ) ), 'page_error' => array( 'error', __( 'The contact page could not be saved. Please try again.', 'advisers-contacts' ) ), ); $title = $page ? $page->post_title : ''; $slug = $page ? $page->post_name : ''; $content = $page ? trim( str_replace( ADVC_Page::SHORTCODE, '', $page->post_content ) ) : ''; $link = $page ? get_permalink( $page ) : ''; $prefix = $link && '' !== $slug && substr( $link, -strlen( $slug ) - 1 ) === $slug . '/' ? substr( $link, 0, -strlen( $slug ) - 1 ) : trailingslashit( home_url() ); ?>


'existing_page', 'id' => 'existing_page', 'post_status' => array( 'publish', 'draft', 'private' ), ) ); ?>

post_status ) ? get_post_status_object( $page->post_status )->label : $page->post_status ) ); ?> post_status ) : ?> |

post_status ) : ?>

/

'page_content', 'textarea_rows' => 10, 'media_buttons' => true, ) ); ?>


'existing_page', 'id' => 'existing_page', 'selected' => (int) $page_id, 'post_status' => array( 'publish', 'draft', 'private' ), ) ); ?>