diff --git a/includes/class-admin.php b/includes/class-admin.php index c8a35fe..e908d4c 100644 --- a/includes/class-admin.php +++ b/includes/class-admin.php @@ -35,6 +35,7 @@ public static function init(): void { add_action( 'pre_get_posts', array( self::class, 'handle_meta_orderby' ) ); add_action( 'restrict_manage_posts', array( self::class, 'status_filter_dropdown' ) ); add_filter( 'parse_query', array( self::class, 'apply_status_filter' ) ); + add_action( 'admin_menu', array( self::class, 'register_introduction_page' ), 5 ); add_action( 'admin_enqueue_scripts', array( self::class, 'enqueue_assets' ) ); add_action( 'add_meta_boxes', array( self::class, 'register_help_tabs' ) ); add_action( 'load-post.php', array( self::class, 'register_help_tabs' ) ); @@ -539,4 +540,117 @@ private static function help_content_api(): string { +
+

+ +
+

+ +

+ +

+ +

+

+ +

+ +

+

+ + +

+ +

+

+
    +
  1. +
    + +
  2. +
  3. +
    + +
  4. +
  5. +
    + +
  6. +
  7. +
    + +
  8. +
  9. +
    + +
  10. +
+ +

+

+ +

+ +

+ + + +

+
+
+ + + where( 'post_type', '=', 'odw_dataset' ) ->set_priority( 'high' ) - // ----------------------------------------------------------------- - // Tab 0 — Einstieg - // ----------------------------------------------------------------- - ->add_tab( - __( '0 — Einstieg', 'open-data-wizard' ), - array( - Field::make( 'html', 'odw_introduction_html' ) - ->set_html( self::get_introduction_html() ), - ) - ) - // ----------------------------------------------------------------- // Tab 1 — Grundlegende Informationen // ----------------------------------------------------------------- @@ -620,95 +608,6 @@ public static function get_political_geocoding_level_options(): array { * * @return string HTML markup. */ - /** - * Generates the HTML for the introduction tab. - * - * @return string HTML output. - */ - private static function get_introduction_html(): string { - ob_start(); - ?> -
-

- -

- -

- -

-

- -

- -

-

- - -

- -

-

-
    -
  1. -
    - -
  2. -
  3. -
    - -
  4. -
  5. -
    - -
  6. -
  7. -
    - -
  8. -
  9. -
    - -
  10. -
- -

-

- -

- - -
-