| @@ -21,12 +21,14 @@ | ||
| 21 | 21 | * @return void |
| 22 | 22 | */ |
| 23 | 23 | public static function settings( $prefix ) { |
| 24 | 24 | |
| 25 | + $capability = sp_pc_dashboard_capability(); // TODO: filter is not working. | |
| 26 | + | |
| 25 | 27 | SP_PC::createOptions( |
| 26 | 28 | $prefix, |
| 27 | 29 | array( |
| 28 | - 'menu_title' => __( 'Settings', 'post-carousel' ), | |
| 30 | + 'menu_title' => __( 'Settings', 'smart-post-show' ), | |
| 29 | 31 | 'menu_parent' => 'edit.php?post_type=sp_post_carousel', |
| 30 | 32 | 'menu_type' => 'submenu', // menu, submenu, options, theme, etc. |
| 31 | 33 | 'menu_slug' => 'pcp_settings', |
| 32 | 34 | 'theme' => 'light', |
| @@ -32,12 +34,12 @@ | ||
| 32 | 34 | 'theme' => 'light', |
| 33 | 35 | 'show_all_options' => false, |
| 34 | 36 | 'show_search' => false, |
| 35 | 37 | 'show_footer' => false, |
| 36 | - 'show_bar_menu' => false, | |
| 37 | - 'show_reset_all' => false, | |
| 38 | + 'show_bar_menu' => false, | |
| 38 | 39 | 'class' => 'sp-pc-settings', |
| 39 | - 'framework_title' => __( 'Smart Post Show', 'post-carousel' ), | |
| 40 | + 'framework_title' => __( 'Smart Post Show', 'smart-post-show' ), | |
| 41 | + 'menu_capability' => $capability, | |
| 40 | 42 | ) |
| 41 | 43 | ); |
| 42 | 44 | |
| 43 | 45 | SPS_Advanced::section( $prefix ); |