PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 2.2.10
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v2.2.10
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
← All changes | admin/views/class-sps-settings.php +10 -7 4.0.8 → 2.2.10 View file →
@@ -6,10 +6,9 @@
6 6 * @subpackage Smart_Post_Show/admin/views
7 7 */
8 8
9 9 if ( ! defined( 'ABSPATH' ) ) {
10 - exit; // Exit if accessed directly.
11 -}
10 + die; } // Cannot access pages directly.
12 11
13 12 /**
14 13 * Settings.
15 14 */
@@ -21,12 +20,15 @@
21 20 * @param string $prefix The settings.
22 21 * @return void
23 22 */
24 23 public static function settings( $prefix ) {
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,17 +34,18 @@
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 - // SPS_Advanced::section( $prefix );
45 + SPS_Advanced::section( $prefix );
44 46 SPS_ScriptsAndStyles::section( $prefix );
45 47 SPS_Accessibility::section( $prefix );
46 48 SPS_CustomCSS::section( $prefix );
47 49 }
50 +
48 51 }