html-admin-form-top.php 1.1 KB

1234567891011121314151617181920212223242526
  1. <?php
  2. global $title, $post_new_file, $post_type_object, $post;
  3. $title_placeholder = apply_filters( 'enter_title_here', __( 'Add title' ), $post );
  4. ?>
  5. <div class="acf-headerbar acf-headerbar-field-editor">
  6. <div class="acf-headerbar-inner">
  7. <div class="acf-headerbar-content">
  8. <h1 class="acf-page-title">
  9. <?php
  10. echo esc_html( $title );
  11. ?>
  12. </h1>
  13. <div class="acf-title-wrap">
  14. <label class="screen-reader-text" id="title-prompt-text" for="title"><?php echo $title_placeholder; ?></label>
  15. <input form="post" type="text" name="post_title" size="30" value="<?php echo esc_attr( $post->post_title ); ?>" id="title" class="acf-headerbar-title-field" spellcheck="true" autocomplete="off" placeholder="<?php esc_attr_e( 'Field Group Title', 'acf' ); ?>" />
  16. </div>
  17. </div>
  18. <div class="acf-headerbar-actions" id="submitpost">
  19. <a href="#" class="acf-btn acf-btn-secondary add-field"><i class="acf-icon acf-icon-plus"></i><?php _e( 'Add Field', 'acf' ); ?></a>
  20. <button form="post" class="acf-btn acf-publish" type="submit"><?php _e( 'Save Changes', 'acf' ); ?></button>
  21. </div>
  22. </div>
  23. </div>