__( 'Smart Post Show', 'post-carousel' ), 'post_type' => 'sp_post_carousel', 'show_restore' => false, 'context' => 'normal', ) ); SPS_Layout::section( $prefix ); } /** * Preview metabox. * * @param string $prefix The metabox main Key. * @return void */ public static function preview_metabox( $prefix ) { SP_PC::createMetabox( $prefix, array( 'title' => __( 'Live Preview', 'post-carousel' ), 'post_type' => 'sp_post_carousel', 'show_restore' => false, 'context' => 'normal', ) ); SP_PC::createSection( $prefix, array( 'fields' => array( array( 'type' => 'preview', ), ), ) ); } /** * Option Metabox function * * @param string $prefix The metabox key. * @return void */ public static function option_metabox( $prefix ) { SP_PC::createMetabox( $prefix, array( 'title' => __( 'View Options', 'post-carousel' ), 'post_type' => 'sp_post_carousel', 'show_restore' => false, 'theme' => 'light', ) ); SPS_FilterPost::section( $prefix ); SPS_Display::section( $prefix ); SPS_Carousel::section( $prefix ); SPS_DetailSettings::section( $prefix ); SPS_Typography::section( $prefix ); } /** * Shortcode Metabox function * * @param string $prefix The metabox key. * @return void */ public static function shortcode_metabox( $prefix ) { SP_PC::createMetabox( $prefix, array( 'title' => __( 'How To Use', 'post-carousel' ), 'post_type' => 'sp_post_carousel', 'context' => 'side', 'show_restore' => false, ) ); SPS_Shortcode::section( $prefix ); } }