PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.8
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.8
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/controllers/FrmOverlayController.php +7 -7 6.256.8 View file →
@@ -14,16 +14,16 @@
14 14
15 15 /**
16 16 * Check if the overlay will run again periodically.
17 17 *
18 - * @var bool If the condition is true, the overlay will execute only following a specified time interval.
18 + * @var boolean If the condition is true, the overlay will execute only following a specified time interval.
19 19 */
20 20 private $recurring_execution = false;
21 21
22 22 /**
23 - * The controller configs passed through construct. If empty the overlay will run normally, it will open every time when open_overlay is called.
23 + * The controller configs passed through construct. If empty the overlay will run normaly, it will open every time when open_overlay is called.
24 24 *
25 - * @var array Config {
25 + * @var array $config {
26 26 *
27 27 * @type string $execution-frequency Example values: '1 day', '10 days', '1 week', etc.
28 28 * @type string $config-option-name A handle name that will be used to store the controller options_data.
29 29 *
@@ -40,9 +40,9 @@
40 40
41 41 /**
42 42 * The controller data. It will handle the options from multiple instances of the controller
43 43 *
44 - * @var array Option data {
44 + * @var array $options_data {
45 45 * @type array $options_data[ '[instance1-option_name_provided_via-->config-option-name]' ] {
46 46 * @type string $execution-frequency Values example: '1 day' | '10 days' | '1 week' | '10 weeks' | '1 month' | '10 months' | '1 year' | '10 years'
47 47 * }
48 48 *
@@ -100,9 +100,9 @@
100 100
101 101 /**
102 102 * Ascertain whether the overlay needs to be executed or not.
103 103 *
104 - * @return bool
104 + * @return boolean
105 105 */
106 106 private function is_time_to_execute() {
107 107 if ( ! isset( $this->options_data[ $this->config['config-option-name'] ] ) ) {
108 108 return true;
@@ -144,9 +144,9 @@
144 144 * @type string $buttons[]['url'] URL for the button.
145 145 * @type string $buttons[]['target'] Target attribute for the button link.
146 146 * @type string $buttons[]['label'] Label/text of the button.
147 147 * }
148 - * @return bool
148 + * @return boolean
149 149 */
150 150 public function open_overlay( $data = array() ) {
151 151 if ( true === $this->recurring_execution ) {
152 152 if ( false === $this->is_time_to_execute() ) {
@@ -177,9 +177,9 @@
177 177 *
178 178 * @return void
179 179 */
180 180 private function enqueue_assets() {
181 - wp_enqueue_style( 'formidable-animations' );
182 181 wp_enqueue_style( self::$assets_handle_name );
183 182 wp_enqueue_script( self::$assets_handle_name );
184 183 }
184 +
185 185 }