| 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 |
|