PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.19
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.19
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/helpers/FrmAddonsHelper.php +0 -13 6.266.19 View file →
@@ -25,9 +25,8 @@
25 25 /**
26 26 * Show the CTA to upgrade or renew.
27 27 *
28 28 * @since 6.15
29 - *
30 29 * @return void
31 30 */
32 31 public static function show_upgrade_renew_cta() {
33 32 if ( FrmAddonsController::is_license_expired() ) {
@@ -48,9 +47,8 @@
48 47 /**
49 48 * Show 'Renew' banner for expired users.
50 49 *
51 50 * @since 6.15
52 - *
53 51 * @return void
54 52 */
55 53 private static function show_expired_cta() {
56 54 FrmTipsHelper::show_admin_cta(
@@ -69,9 +67,8 @@
69 67 /**
70 68 * Show 'Upgrade to Pro' banner for users not connected to Pro.
71 69 *
72 70 * @since 6.15
73 - *
74 71 * @return void
75 72 */
76 73 private static function show_lite_cta() {
77 74 FrmTipsHelper::show_admin_cta(
@@ -95,9 +92,8 @@
95 92 /**
96 93 * Show 'Upgrade' banner for non-elite users.
97 94 *
98 95 * @since 6.15
99 - *
100 96 * @return void
101 97 */
102 98 private static function show_elite_cta() {
103 99 FrmTipsHelper::show_admin_cta(
@@ -124,9 +120,8 @@
124 120 /**
125 121 * Displays a reconnect link for checking add-ons status.
126 122 *
127 123 * @since 6.15
128 - *
129 124 * @return void
130 125 */
131 126 public static function get_reconnect_link() {
132 127 if ( ! FrmAppHelper::pro_is_connected() ) {
@@ -145,11 +140,9 @@
145 140 /**
146 141 * Get the icon for a specific addon.
147 142 *
148 143 * @since 6.15
149 - *
150 144 * @param string $slug The slug of the addon.
151 - *
152 145 * @return void
153 146 */
154 147 public static function get_addon_icon( $slug ) {
155 148 $icons_map = array(
@@ -178,9 +171,8 @@
178 171 'convertkit' => 'convertkit',
179 172 );
180 173
181 174 $icon = array_key_exists( $slug, $icons_map ) ? 'frm_' . $icons_map[ $slug ] . '_icon' : 'frm_logo_icon';
182 -
183 175 if ( 'ai' === $slug ) {
184 176 $icon = str_replace( '_', '-', $icon );
185 177 }
186 178
@@ -192,9 +184,8 @@
192 184 *
193 185 * @since 6.15
194 186 *
195 187 * @param array $addon
196 - *
197 188 * @return void
198 189 */
199 190 public static function add_addon_attributes( $addon ) {
200 191 self::set_plan_required( $addon );
@@ -224,9 +215,8 @@
224 215 *
225 216 * @since 6.15
226 217 *
227 218 * @param array $addon
228 - *
229 219 * @return string
230 220 */
231 221 private static function prepare_single_addon_classes( $addon ) {
232 222 $class_names = array( 'frm-card-item frm-flex-col' );
@@ -258,9 +248,8 @@
258 248 *
259 249 * @since 6.15
260 250 *
261 251 * @param array $addon The addon array that will be modified by reference.
262 - *
263 252 * @return void
264 253 */
265 254 private static function set_plan_required( $addon ) {
266 255 self::$plan_required = FrmFormsHelper::get_plan_required( $addon );
@@ -282,9 +271,8 @@
282 271 *
283 272 * @since 6.17
284 273 *
285 274 * @param string $color Star color.
286 - *
287 275 * @return void
288 276 */
289 277 public static function show_five_star_rating( $color = 'black' ) {
290 278 $icon = file_get_contents( FrmAppHelper::plugin_path() . '/images/star.svg' );
@@ -318,9 +306,8 @@
318 306 * @since 6.17
319 307 *
320 308 * @param string $count Review count.
321 309 * @param string $site Site name.
322 - *
323 310 * @return string
324 311 */
325 312 public static function get_reviews_text( $count, $site ) {
326 313 return sprintf(