PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 2.4.17
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v2.4.17
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-premium.php

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

62 lines 1.1 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 Meta-box configurations.
4 *
5 * @package Smart_Post_Show
6 * @subpackage Smart_Post_Show/admin/assets/assets/views
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 die;
11 } // Cannot access pages directly.
12
13 /**
14 * Smart Post Show Help Page.
15 */
16 class SPS_Premium {
17
18 /**
19 * Smart Post Show single instance of the class
20 *
21 * @var null The instance of the class.
22 * @since 2.0
23 *
24 * @return void
25 */
26 protected static $instance = null;
27
28 /**
29 * Main Smart_Post_Show_Help Instance
30 *
31 * @since 2.0
32 * @static
33 *
34 * @return self help instance
35 */
36 public static function instance() {
37 if ( is_null( self::$instance ) ) {
38 self::$instance = new self();
39 }
40
41 return self::$instance;
42 }
43
44 /**
45 * Add admin sub-menu.
46 *
47 * @return void
48 */
49 public function premium_page_menu() {
50 $landing_page = 'https://smartpostshow.com/?ref=1';
51 add_submenu_page(
52 'edit.php?post_type=sp_post_carousel',
53 __( 'Smart Post Show Premium', 'post-carousel' ),
54 '<span class="sp-go-pro-icon"></span>' . __( 'Go Pro', 'post-carousel' ),
55 'manage_options',
56 $landing_page
57 );
58
59 }
60
61 }
62