diff --git a/Core/Admin/Menu.php b/Core/Admin/Menu.php index 45f5dcbc..2b76e0a5 100644 --- a/Core/Admin/Menu.php +++ b/Core/Admin/Menu.php @@ -61,6 +61,10 @@ public function action_hooks() { 'hook' => 'admin_init', 'method' => 'pf_options_admin_page_save', ), + [ + 'hook' => 'admin_init', + 'method' => 'register_welcome_meta_boxes', + ], ); } @@ -155,9 +159,59 @@ public function state_pf_admin_pages( $thepages ) { * @return void */ public function display_welcome_page() { - echo 'Test content'; + pressforward( 'admin.templates' )->the_view_for( 'welcome' ); + } + + /** + * Registers meta boxes for the welcome page. + * + * @since 5.7.0 + * + * @return void + */ + public function register_welcome_meta_boxes() { + add_meta_box( + 'pf-welcome-getting-started', + __( 'Getting Started', 'pressforward' ), + [ $this, 'display_getting_started_meta_box' ], + 'toplevel_page_pf-menu', + 'normal', + 'high' + ); + + add_meta_box( + 'pf-welcome-curation', + __( 'Content Awaiting Review', 'pressforward' ), + [ $this, 'display_curation_meta_box' ], + 'toplevel_page_pf-menu', + 'normal', + 'high' + ); + } + + /** + * Display function for the Getting Started meta box. + * + * @since 5.7.0 + * + * @return void + */ + public function display_getting_started_meta_box() { + echo 'Getting started'; } + /** + * Display function for the Curation meta box. + * + * @since 5.7.0 + * + * @return void + */ + public function display_curation_meta_box() { + echo 'Curation'; + } + + /** * Save routine for the PF options page. */ diff --git a/assets/css/pf-settings.css b/assets/css/pf-settings.css index 83daf066..0957c4c3 100644 --- a/assets/css/pf-settings.css +++ b/assets/css/pf-settings.css @@ -65,3 +65,14 @@ font-weight: 700; } +.pf-welcome h1.title { + background-image: url(../images/icon.png); + background-position: top 10px left 0; + background-repeat: no-repeat; + background-size: 64px 64px; + font-size: 36px; + height: 64px; + line-height: 64px; + padding-left: 80px; +} + diff --git a/assets/images/icon.png b/assets/images/icon.png new file mode 100644 index 00000000..6d4669c2 Binary files /dev/null and b/assets/images/icon.png differ diff --git a/parts/welcome.tpl.php b/parts/welcome.tpl.php new file mode 100644 index 00000000..e4928330 --- /dev/null +++ b/parts/welcome.tpl.php @@ -0,0 +1,52 @@ + + +
+

+ +

+ +

+ +

+ +
+ +
+ + + +