| @@ -24,8 +24,15 @@ | ||
| 24 | 24 | * @var string |
| 25 | 25 | */ |
| 26 | 26 | public $slug; |
| 27 | 27 | /** |
| 28 | + * @author Leo Fajardo (@leorw) | |
| 29 | + * @since 2.2.1 | |
| 30 | + * | |
| 31 | + * @var string | |
| 32 | + */ | |
| 33 | + public $premium_slug; | |
| 34 | + /** | |
| 28 | 35 | * @since 1.2.2 |
| 29 | 36 | * |
| 30 | 37 | * @var string 'plugin' or 'theme' |
| 31 | 38 | */ |
| @@ -41,8 +48,15 @@ | ||
| 41 | 48 | /** |
| 42 | 49 | * @var bool Set to true if the free version of the module is hosted on WordPress.org. Defaults to true. |
| 43 | 50 | */ |
| 44 | 51 | public $is_wp_org_compliant = true; |
| 52 | + /** | |
| 53 | + * @author Leo Fajardo (@leorw) | |
| 54 | + * @since 2.2.5 | |
| 55 | + * | |
| 56 | + * @var int | |
| 57 | + */ | |
| 58 | + public $premium_releases_count; | |
| 45 | 59 | |
| 46 | 60 | #region Install Specific Properties |
| 47 | 61 | |
| 48 | 62 | /** |
| @@ -67,13 +81,35 @@ | ||
| 67 | 81 | * @var bool |
| 68 | 82 | */ |
| 69 | 83 | public $is_premium; |
| 70 | 84 | /** |
| 85 | + * @author Leo Fajardo (@leorw) | |
| 86 | + * @since 2.2.1 | |
| 87 | + * | |
| 88 | + * @var string | |
| 89 | + */ | |
| 90 | + public $premium_suffix; | |
| 91 | + /** | |
| 71 | 92 | * @since 1.0.9 |
| 72 | 93 | * |
| 73 | 94 | * @var bool |
| 74 | 95 | */ |
| 75 | 96 | public $is_live; |
| 97 | + /** | |
| 98 | + * @since 2.2.3 | |
| 99 | + * @var null|number | |
| 100 | + */ | |
| 101 | + public $bundle_id; | |
| 102 | + /** | |
| 103 | + * @since 2.3.1 | |
| 104 | + * @var null|string | |
| 105 | + */ | |
| 106 | + public $bundle_public_key; | |
| 107 | + /** | |
| 108 | + * @since 2.5.4 | |
| 109 | + * @var null|array | |
| 110 | + */ | |
| 111 | + public $opt_in_moderation; | |
| 76 | 112 | |
| 77 | 113 | const AFFILIATE_MODERATION_CUSTOMERS = 'customers'; |
| 78 | 114 | |
| 79 | 115 | #endregion Install Specific Properties |
| @@ -85,8 +121,16 @@ | ||
| 85 | 121 | parent::__construct( $plugin ); |
| 86 | 122 | |
| 87 | 123 | $this->is_premium = false; |
| 88 | 124 | $this->is_live = true; |
| 125 | + | |
| 126 | + if ( empty( $this->premium_slug ) && ! empty( $plugin->slug ) ) { | |
| 127 | + $this->premium_slug = "{$this->slug}-premium"; | |
| 128 | + } | |
| 129 | + | |
| 130 | + if ( empty( $this->premium_suffix ) ) { | |
| 131 | + $this->premium_suffix = '(Premium)'; | |
| 132 | + } | |
| 89 | 133 | |
| 90 | 134 | if ( isset( $plugin->info ) && is_object( $plugin->info ) ) { |
| 91 | 135 | $this->info = new FS_Plugin_Info( $plugin->info ); |
| 92 | 136 | } |