diff --git a/views/admin-page-settings.php b/views/admin-page-settings.php index ab565e7bd..a52458ca0 100644 --- a/views/admin-page-settings.php +++ b/views/admin-page-settings.php @@ -28,12 +28,7 @@
get_admin__page_settings()->get_tabs_settings() as $prpl_tab_key => $prpl_tab ) : ?> -
- the_view( "setting/{$prpl_setting['type']}.php", [ 'prpl_setting' => $prpl_setting ] ); ?> -
+ the_view( "setting/{$prpl_setting['type']}.php", [ 'prpl_setting' => $prpl_setting ] ); ?> diff --git a/views/setting/page-select.php b/views/setting/page-select.php index ad69fec0c..e7e2e6008 100644 --- a/views/setting/page-select.php +++ b/views/setting/page-select.php @@ -25,61 +25,66 @@ } ?> - -
-

-

-
-
-
-
- $prpl_r_label ) : ?> - - +
+ +
+

+

+
+
+
+
+ $prpl_r_label ) : ?> + + +
+
+
+
+
+
+ 'pages[' . esc_attr( $prpl_setting['id'] ) . '][id]', + 'show_option_none' => '— ' . esc_html__( 'Select page', 'progress-planner' ) . ' —', + 'selected' => $prpl_setting['value'], // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + ] + ); + ?> +
+
+ + + +
-
-
-
-
-
+ +
'pages[' . esc_attr( $prpl_setting['id'] ) . '][id]', - 'show_option_none' => '— ' . esc_html__( 'Select page', 'progress-planner' ) . ' —', - 'selected' => $prpl_setting['value'], // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - ] - ); + /** + * TODO: Find a way to assign the post-meta for the new page. + */ ?> -
-
- -
- - - - -
-
- + +