| 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 |
exit; // Exit if accessed directly. |
| 11 |
} |
| 12 |
|
| 13 |
/** |
| 14 |
* Settings. |
| 15 |
*/ |
| 16 |
class SPS_Settings { |
| 17 |
|
| 18 |
/** |
| 19 |
* Create a settings page. |
| 20 |
* |
| 21 |
* @param string $prefix The settings. |
| 22 |
* @return void |
| 23 |
*/ |
| 24 |
public static function settings( $prefix ) { |
| 25 |
SP_PC::createOptions( |
| 26 |
$prefix, |
| 27 |
array( |
| 28 |
'menu_title' => __( 'Settings', 'post-carousel' ), |
| 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 |
'show_reset_all' => false, |
| 38 |
'class' => 'sp-pc-settings', |
| 39 |
'framework_title' => __( 'Smart Post Show', 'post-carousel' ), |
| 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 |
|