PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 2.4.0
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v2.4.0
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
post-carousel / admin / views / class-sps-settings.php

class-sps-settings.php in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 2.4.0, at admin/views/class-sps-settings.php

50 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The main class for Settings configurations.
4 *
5 * @package Smart_Post_Show
6 * @subpackage Smart_Post_Show/admin/views
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 die; } // Cannot access pages directly.
11
12 /**
13 * Settings.
14 */
15 class SPS_Settings {
16
17 /**
18 * Create a settings page.
19 *
20 * @param string $prefix The settings.
21 * @return void
22 */
23 public static function settings( $prefix ) {
24
25 SP_PC::createOptions(
26 $prefix,
27 array(
28 'menu_title' => __( 'Settings', 'smart-post-show' ),
29 'menu_parent' => 'edit.php?post_type=sp_post_carousel',
30 'menu_type' => 'submenu', // menu, submenu, options, theme, etc.
31 'menu_slug' => 'pcp_settings',
32 'theme' => 'light',
33 'show_all_options' => false,
34 'show_search' => false,
35 'show_footer' => false,
36 'show_bar_menu' => false,
37 'class' => 'sp-pc-settings',
38 'framework_title' => __( 'Smart Post Show', 'smart-post-show' ),
39 // 'menu_capability' => $capability,
40 )
41 );
42
43 SPS_Advanced::section( $prefix );
44 SPS_ScriptsAndStyles::section( $prefix );
45 SPS_Accessibility::section( $prefix );
46 SPS_CustomCSS::section( $prefix );
47 }
48
49 }
50