bibhamrokhanpin/wp-content/plugins/advanced-custom-fields-pro/pro/admin/views/acf-ui-options-page/create-options-page-modal.php
2024-04-10 17:46:06 +05:45

67 lines
1.8 KiB
PHP

<form id="acf-create-options-page-form">
<?php
$acf_options_page_prefilled_title = '';
if ( ! empty( $field_group_title ) ) {
$acf_options_page_prefilled_title = (string) apply_filters( 'acf/options_page_modal/prefill_title', '%s' );
$acf_options_page_prefilled_title = sprintf(
$acf_options_page_prefilled_title,
$field_group_title
);
}
acf_render_field_wrap(
array(
'label' => __( 'Page Title', 'acf' ),
/* translators: example options page name */
'placeholder' => __( 'Site Settings', 'acf' ),
'value' => $acf_options_page_prefilled_title,
'type' => 'text',
'name' => 'page_title',
'key' => 'page_title',
'class' => 'acf_options_page_title acf_slugify_to_key',
'prefix' => 'acf_ui_options_page',
'required' => true,
),
'div',
'field'
);
acf_render_field_wrap(
array(
'label' => __( 'Menu Slug', 'acf' ),
'type' => 'text',
'name' => 'menu_slug',
'key' => 'menu_slug',
'class' => 'acf-options-page-menu_slug acf_slugified_key',
'prefix' => 'acf_ui_options_page',
'required' => true,
),
'div',
'field'
);
acf_render_field_wrap(
array(
'label' => __( 'Parent Page', 'acf' ),
'type' => 'select',
'name' => 'parent_slug',
'key' => 'parent_slug',
'class' => 'acf-options-page-parent_slug',
'prefix' => 'acf_ui_options_page',
'choices' => $acf_parent_page_choices,
'required' => true,
),
'div',
'field'
);
?>
<div class="acf-actions">
<button type="button" class="acf-btn acf-btn-secondary acf-close-popup"><?php esc_html_e( 'Cancel', 'acf' ); ?></button>
<button type="submit" class="acf-btn acf-btn-primary"><?php esc_html_e( 'Done', 'acf' ); ?></button>
</div>
</form>