' . esc_html__( 'Where this form appears', 'accessible-forms-by-accessible-org' ) . '
' . esc_html( get_the_title( $id ) ) . ': ' . esc_html__( 'Use the same accessible form in one place or across your site.', 'accessible-forms-by-accessible-org' ) . '
' . esc_html__( 'Ask a content editor to place this form', 'accessible-forms-by-accessible-org' ) . '
' . esc_html__( 'Your role can build forms but cannot edit public content. Share the form name or shortcode with someone who can edit the destination.', 'accessible-forms-by-accessible-org' ) . '
' . esc_html__( 'Open its editor, insert the form, then save the page or post. You can move the block to any position before saving.', 'accessible-forms-by-accessible-org' ) . '
';
$shown = 0;
foreach ( $query->posts as $post ) {
if ( ! current_user_can( 'edit_post', $post->ID ) ) {
continue;
}
++$shown;
$present = Placement::contains_form( $post->post_content, $id );
// Add-ons may note placement of their own, such as an automatic rule.
$note = $present ? '' : (string) Extensions::filter( 'accessible_forms_placement_item_note', '', $post, $id );
$status = get_post_status_object( $post->post_status );
$title = $post->post_title ?: __( '(no title)', 'accessible-forms-by-accessible-org' );
echo '
' . esc_html__( 'No editable items match. Try another title or content type, or create a draft below.', 'accessible-forms-by-accessible-org' ) . '
';
}
if ( $query->max_num_pages > 1 ) {
echo '';
}
echo '';
$creatable = array_filter(
$types,
static function ( $object ) {
return current_user_can( $object->cap->create_posts );
}
);
if ( $creatable ) {
echo '' . esc_html__( 'Create a new page or post instead', 'accessible-forms-by-accessible-org' ) . '
' . esc_html__( 'Starts a draft with the form already included. Review and publish it from the content editor.', 'accessible-forms-by-accessible-org' ) . '
' . esc_html__( 'Place an Accessible Form block', 'accessible-forms-by-accessible-org' ) . '
' . esc_html__( 'Open the page, post, custom content or template in the WordPress block editor.', 'accessible-forms-by-accessible-org' ) . '
' . esc_html__( 'Open the block inserter and search for “Accessible Form”.', 'accessible-forms-by-accessible-org' ) . '
' . esc_html__( 'Choose this published form:', 'accessible-forms-by-accessible-org' ) . ' ' . esc_html( get_the_title( $id ) ) . '
' . esc_html__( 'Move the block to the intended position. Use its alignment control if your theme supports wide or full width.', 'accessible-forms-by-accessible-org' ) . '
' . esc_html__( 'Save the content, then check the published form with a keyboard and on a small screen.', 'accessible-forms-by-accessible-org' ) . '
' . esc_html__( 'For every item of a post type, you can place the block in that type’s Single template. Avoid adding it to a Query Loop unless you intend a separate form on every listed item.', 'accessible-forms-by-accessible-org' ) . '
' . esc_html__( 'Paste this shortcode in a Shortcode block or a shortcode-enabled content area.', 'accessible-forms-by-accessible-org' ) . '
' . esc_html__( 'All placements use this form’s published fields, recipients and accessible color theme. Change the form once to update every placement.', 'accessible-forms-by-accessible-org' ) . '