PluginProbe ʕ •ᴥ•ʔ
Royal Addons for Elementor – Addons and Templates Kit for Elementor / 1.7.1064
Royal Addons for Elementor – Addons and Templates Kit for Elementor v1.7.1064
1.7.1064 1.7.1063 1.7.1062 1.7.1061 1.7.1060 1.7.1059 1.7.1058 trunk 1.0.0 1.1.0 1.2 1.3 1.3.1 1.3.2 1.3.21 1.3.22 1.3.23 1.3.24 1.3.25 1.3.26 1.3.27 1.3.28 1.3.29 1.3.30 1.3.31 1.3.32 1.3.33 1.3.34 1.3.35 1.3.36 1.3.37 1.3.38 1.3.39 1.3.40 1.3.41 1.3.42 1.3.43 1.3.44 1.3.45 1.3.46 1.3.47 1.3.48 1.3.49 1.3.50 1.3.51 1.3.52 1.3.53 1.3.54 1.3.55 1.3.56 1.3.57 1.3.58 1.3.59 1.3.60 1.3.61 1.3.62 1.3.63 1.3.64 1.3.65 1.3.66 1.3.67 1.3.68 1.3.69 1.3.70 1.3.71 1.3.72 1.3.73 1.3.74 1.3.75 1.3.76 1.3.77 1.3.78 1.3.79 1.3.80 1.3.81 1.3.82 1.3.83 1.3.84 1.3.85 1.3.86 1.3.87 1.3.88 1.3.89 1.3.90 1.3.91 1.3.92 1.3.93 1.3.94 1.3.95 1.3.96 1.3.97 1.3.971 1.3.972 1.3.973 1.3.974 1.3.975 1.3.976 1.3.977 1.3.978 1.3.979 1.3.980 1.3.981 1.3.982 1.3.983 1.3.984 1.3.985 1.3.986 1.3.987 1.7.1 1.7.1001 1.7.1002 1.7.1003 1.7.1004 1.7.1005 1.7.1006 1.7.1007 1.7.1008 1.7.1009 1.7.1010 1.7.1011 1.7.1012 1.7.1013 1.7.1014 1.7.1015 1.7.1016 1.7.1017 1.7.1018 1.7.1019 1.7.1020 1.7.1021 1.7.1022 1.7.1023 1.7.1024 1.7.1025 1.7.1026 1.7.1027 1.7.1028 1.7.1029 1.7.1030 1.7.1031 1.7.1032 1.7.1033 1.7.1034 1.7.1035 1.7.1036 1.7.1037 1.7.1038 1.7.1039 1.7.1040 1.7.1041 1.7.1042 1.7.1043 1.7.1044 1.7.1045 1.7.1046 1.7.1047 1.7.1048 1.7.1049 1.7.1050 1.7.1051 1.7.1052 1.7.1053 1.7.1054 1.7.1055 1.7.1056 1.7.1057
royal-elementor-addons / freemius / includes / entities / class-fs-plugin-plan.php
royal-elementor-addons / freemius / includes / entities Last commit date
class-fs-affiliate-terms.php 5 days ago class-fs-affiliate.php 5 days ago class-fs-billing.php 5 days ago class-fs-entity.php 5 days ago class-fs-payment.php 5 days ago class-fs-plugin-info.php 5 days ago class-fs-plugin-license.php 5 days ago class-fs-plugin-plan.php 5 days ago class-fs-plugin-tag.php 5 days ago class-fs-plugin.php 5 days ago class-fs-pricing.php 5 days ago class-fs-scope-entity.php 5 days ago class-fs-site.php 5 days ago class-fs-subscription.php 5 days ago class-fs-user.php 5 days ago index.php 5 days ago
class-fs-plugin-plan.php
156 lines
1 <?php
2 /**
3 * @package Freemius
4 * @copyright Copyright (c) 2015, Freemius, Inc.
5 * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6 * @since 1.0.5
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12
13 /**
14 * Class FS_Plugin_Plan
15 *
16 */
17 class FS_Plugin_Plan extends FS_Entity {
18
19 #region Properties
20
21 /**
22 * @var number
23 */
24 public $plugin_id;
25 /**
26 * @var string
27 */
28 public $name;
29 /**
30 * @var string
31 */
32 public $title;
33 /**
34 * @var string
35 */
36 public $description;
37 /**
38 * @var bool Defaults to true. If true, allow unlimited localhost installs with the same license.
39 */
40 public $is_free_localhost;
41 /**
42 * @var bool Defaults to true. If false, don't block features after license expiry - only block updates and
43 * support.
44 */
45 public $is_block_features;
46 /**
47 * @var int
48 */
49 public $license_type;
50 /**
51 * @var bool
52 */
53 public $is_https_support;
54 /**
55 * @var int Trial days.
56 */
57 public $trial_period;
58 /**
59 * @var string If true, require payment for trial.
60 */
61 public $is_require_subscription;
62 /**
63 * @var string Knowledge Base URL.
64 */
65 public $support_kb;
66 /**
67 * @var string Support Forum URL.
68 */
69 public $support_forum;
70 /**
71 * @var string Support email address.
72 */
73 public $support_email;
74 /**
75 * @var string Support phone.
76 */
77 public $support_phone;
78 /**
79 * @var string Support skype username.
80 */
81 public $support_skype;
82 /**
83 * @var bool Is personal success manager supported with the plan.
84 */
85 public $is_success_manager;
86 /**
87 * @var bool Is featured plan.
88 */
89 public $is_featured;
90 /**
91 * @var bool Is hidden plan.
92 */
93 public $is_hidden;
94 /**
95 * @var FS_Pricing[]
96 */
97 public $pricing;
98 /**
99 * @var object[]
100 */
101 public $features;
102
103 #endregion Properties
104
105 /**
106 * @param object|bool $plan
107 */
108 function __construct( $plan = false ) {
109 parent::__construct( $plan );
110
111 if ( is_object( $plan ) ) {
112 $this->name = strtolower( $plan->name );
113 }
114 }
115
116 static function get_type() {
117 return 'plan';
118 }
119
120 /**
121 * @author Vova Feldman (@svovaf)
122 * @since 1.0.9
123 *
124 * @return bool
125 */
126 function is_free() {
127 return ( 'free' === $this->name );
128 }
129
130 /**
131 * Checks if this plan supports "Technical Support".
132 *
133 * @author Leo Fajardo (leorw)
134 * @since 1.2.0
135 *
136 * @return bool
137 */
138 function has_technical_support() {
139 return ( ! empty( $this->support_email ) ||
140 ! empty( $this->support_skype ) ||
141 ! empty( $this->support_phone ) ||
142 ! empty( $this->is_success_manager )
143 );
144 }
145
146 /**
147 * @author Vova Feldman (@svovaf)
148 * @since 1.0.9
149 *
150 * @return bool
151 */
152 function has_trial() {
153 return ! $this->is_free() &&
154 is_numeric( $this->trial_period ) && ( $this->trial_period > 0 );
155 }
156 }