abchospitality/wp-content/plugins/advanced-custom-fields-pro/pro/admin/views/acf-ui-options-page/basic-settings.php

75 lines
2.0 KiB
PHP
Raw Normal View History

2024-04-18 09:47:23 +00:00
<?php
global $acf_ui_options_page, $acf_parent_page_options;
acf_render_field_wrap(
array(
'label' => __( 'Page Title', 'acf' ),
/* translators: example options page name */
'placeholder' => __( 'Site Settings', 'acf' ),
'type' => 'text',
'name' => 'page_title',
'key' => 'page_title',
'class' => 'acf_options_page_title acf_slugify_to_key',
'prefix' => 'acf_ui_options_page',
'value' => $acf_ui_options_page['page_title'],
'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',
'value' => $acf_ui_options_page['menu_slug'],
'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',
'value' => $acf_ui_options_page['parent_slug'],
'choices' => $acf_parent_page_options,
'required' => true,
),
'div',
'field'
);
do_action( 'acf/post_type/basic_settings', $acf_ui_options_page );
acf_render_field_wrap( array( 'type' => 'seperator' ) );
acf_render_field_wrap(
array(
'label' => __( 'Advanced Configuration', 'acf' ),
'instructions' => __( 'I know what I\'m doing, show me all the options.', 'acf' ),
'type' => 'true_false',
'name' => 'advanced_configuration',
'key' => 'advanced_configuration',
'prefix' => 'acf_ui_options_page',
'value' => $acf_ui_options_page['advanced_configuration'],
'ui' => 1,
'class' => 'acf-advanced-settings-toggle',
)
);
?>
<div class="acf-hidden">
<input type="hidden" name="acf_ui_options_page[key]" value="<?php echo esc_attr( $acf_ui_options_page['key'] ); ?>" />
</div>
<?php