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 -14 6.276.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(
@@ -175,13 +168,11 @@
175 168 'twilio' => 'twilio',
176 169 'woocommerce' => 'woocommerce',
177 170 'zapier' => 'zapier',
178 171 'convertkit' => 'convertkit',
179 - 'n8n' => 'n8n',
180 172 );
181 173
182 174 $icon = array_key_exists( $slug, $icons_map ) ? 'frm_' . $icons_map[ $slug ] . '_icon' : 'frm_logo_icon';
183 -
184 175 if ( 'ai' === $slug ) {
185 176 $icon = str_replace( '_', '-', $icon );
186 177 }
187 178
@@ -193,9 +184,8 @@
193 184 *
194 185 * @since 6.15
195 186 *
196 187 * @param array $addon
197 - *
198 188 * @return void
199 189 */
200 190 public static function add_addon_attributes( $addon ) {
201 191 self::set_plan_required( $addon );
@@ -225,9 +215,8 @@
225 215 *
226 216 * @since 6.15
227 217 *
228 218 * @param array $addon
229 - *
230 219 * @return string
231 220 */
232 221 private static function prepare_single_addon_classes( $addon ) {
233 222 $class_names = array( 'frm-card-item frm-flex-col' );
@@ -259,9 +248,8 @@
259 248 *
260 249 * @since 6.15
261 250 *
262 251 * @param array $addon The addon array that will be modified by reference.
263 - *
264 252 * @return void
265 253 */
266 254 private static function set_plan_required( $addon ) {
267 255 self::$plan_required = FrmFormsHelper::get_plan_required( $addon );
@@ -283,9 +271,8 @@
283 271 *
284 272 * @since 6.17
285 273 *
286 274 * @param string $color Star color.
287 - *
288 275 * @return void
289 276 */
290 277 public static function show_five_star_rating( $color = 'black' ) {
291 278 $icon = file_get_contents( FrmAppHelper::plugin_path() . '/images/star.svg' );
@@ -319,9 +306,8 @@
319 306 * @since 6.17
320 307 *
321 308 * @param string $count Review count.
322 309 * @param string $site Site name.
323 - *
324 310 * @return string
325 311 */
326 312 public static function get_reviews_text( $count, $site ) {
327 313 return sprintf(