| @@ -49,8 +49,30 @@ | ||
| 49 | 49 | return openstation_pages_app_config(); |
| 50 | 50 | } |
| 51 | 51 | ) |
| 52 | 52 | ->state( openstation_posts_app_state( 'menu_order', 'asc' ) ) |
| 53 | + // Same as Posts. Page atlas is the case the declaration exists | |
| 54 | + // for: a tab wp-admin has no screen for, which the dock now | |
| 55 | + // offers as a row because this list says so. | |
| 56 | + ->menu( | |
| 57 | + 'edit.php?post_type=page', | |
| 58 | + static function () { | |
| 59 | + return array( | |
| 60 | + 'posts' => array( | |
| 61 | + 'label' => __( 'All pages', 'desktop-mode' ), | |
| 62 | + 'page' => 'edit.php?post_type=page', | |
| 63 | + ), | |
| 64 | + 'new' => array( | |
| 65 | + 'label' => __( 'Add Page', 'desktop-mode' ), | |
| 66 | + 'page' => 'post-new.php?post_type=page', | |
| 67 | + ), | |
| 68 | + // No wp-admin page behind this one; the dock offers it | |
| 69 | + // because this list says so. | |
| 70 | + 'atlas' => __( 'Page atlas', 'desktop-mode' ), | |
| 71 | + ); | |
| 72 | + }, | |
| 73 | + 'openstation_pages_window_user_can_use' | |
| 74 | + ) | |
| 53 | 75 | ->action( |
| 54 | 76 | 'filter', |
| 55 | 77 | static function ( State $state ) { |
| 56 | 78 | openstation_posts_app_filter( $state ); |