PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.0
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.0
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/FrmTipsHelper.php +5 -35 6.56.0 View file →
@@ -4,14 +4,8 @@
4 4 }
5 5
6 6 class FrmTipsHelper {
7 7
8 - /**
9 - * @param string $callback
10 - * @param string $html
11 - *
12 - * @return void
13 - */
14 8 public static function pro_tip( $callback, $html = '' ) {
15 9 if ( FrmAppHelper::pro_is_installed() ) {
16 10 return;
17 11 }
@@ -18,9 +12,9 @@
18 12
19 13 $tips = self::$callback();
20 14 $tip = self::get_random_tip( $tips );
21 15
22 - self::show_tip( $tip, $html );
16 + self::show_tip( $tip );
23 17 }
24 18
25 19 /**
26 20 * Shows tip.
@@ -35,25 +29,19 @@
35 29 * be used. Otherwise, `https://formidableforms.com/{$page}` will be used.
36 30 * @type string $tip Tip text.
37 31 * @type string $call Call to action text.
38 32 * }
39 - * @param string $html
40 - *
41 - * @return void
42 33 */
43 34 public static function show_tip( $tip, $html = '' ) {
44 - $defaults = array(
45 - 'page' => '',
46 - 'class' => 'frm-mt-0',
47 - );
48 - $tip = array_merge( $defaults, $tip );
49 -
35 + if ( ! isset( $tip['page'] ) ) {
36 + $tip['page'] = '';
37 + }
50 38 if ( isset( $tip['link'] ) && ! isset( $tip['link']['medium'] ) ) {
51 39 $tip['link']['medium'] = 'tip';
52 40 }
53 41
54 42 if ( 'p' === $html ) {
55 - echo '<p class="frmcenter ' . esc_attr( $tip['class'] ) . '">';
43 + echo '<p class="frmcenter frm-mt-0">';
56 44 }
57 45
58 46 $link = empty( $tip['link'] ) ? $tip['page'] : FrmAppHelper::admin_upgrade_link( $tip['link'], $tip['page'] );
59 47 ?>
@@ -79,11 +67,8 @@
79 67 echo '</p>';
80 68 }
81 69 }
82 70
83 - /**
84 - * @return array
85 - */
86 71 public static function get_builder_tip() {
87 72 $tips = array(
88 73 array(
89 74 'link' => array(
@@ -137,11 +122,8 @@
137 122
138 123 return $tips;
139 124 }
140 125
141 - /**
142 - * @return array
143 - */
144 126 public static function get_form_settings_tip() {
145 127 $tips = array(
146 128 array(
147 129 'link' => array(
@@ -171,11 +153,8 @@
171 153
172 154 return $tips;
173 155 }
174 156
175 - /**
176 - * @return array
177 - */
178 157 public static function get_form_action_tip() {
179 158 $tips = array(
180 159 array(
181 160 'link' => array(
@@ -303,11 +282,8 @@
303 282
304 283 return $tips;
305 284 }
306 285
307 - /**
308 - * @return array
309 - */
310 286 public static function get_entries_tip() {
311 287 $tips = array(
312 288 array(
313 289 'link' => array(
@@ -338,11 +314,8 @@
338 314
339 315 return $tips;
340 316 }
341 317
342 - /**
343 - * @return array
344 - */
345 318 public static function get_import_tip() {
346 319 $tips = array(
347 320 array(
348 321 'link' => array(
@@ -356,11 +329,8 @@
356 329
357 330 return $tips;
358 331 }
359 332
360 - /**
361 - * @return array
362 - */
363 333 public static function get_banner_tip() {
364 334 $tips = array(
365 335 array(
366 336 'link' => array(