| @@ -74,12 +74,18 @@ | ||
| 74 | 74 | 'border_style' => '', |
| 75 | 75 | 'position' => 'bottom-right', |
| 76 | 76 | ), |
| 77 | 77 | 'rules' => array( |
| 78 | - 0 => array('condition' => '', 'value' => '') | |
| 78 | + 0 => array( | |
| 79 | + 'condition' => '', | |
| 80 | + 'value' => '', | |
| 81 | + ), | |
| 79 | 82 | ), |
| 80 | 83 | 'rules_comparision' => 'any', |
| 81 | - 'cookie' => 0, | |
| 84 | + 'cookie' => array( | |
| 85 | + 'triggered' => 0, | |
| 86 | + 'dismissed' => 0, | |
| 87 | + ), | |
| 82 | 88 | 'trigger' => 'percentage', |
| 83 | 89 | 'trigger_percentage' => 65, |
| 84 | 90 | 'trigger_element' => '', |
| 85 | 91 | 'trigger_time_on_site' => 0, |
| @@ -200,9 +206,12 @@ | ||
| 200 | 206 | 'content' => $box->get_content(), |
| 201 | 207 | 'css' => array_filter( $box->options['css'] ), |
| 202 | 208 | 'trigger' => $trigger, |
| 203 | 209 | 'animation' => $box->options['animation'], |
| 204 | - 'cookieTime' => absint( $box->options['cookie'] ), | |
| 210 | + 'cookie' => array( | |
| 211 | + 'triggered' => absint( $box->options['cookie']['triggered'] ), | |
| 212 | + 'dismissed' => absint( $box->options['cookie']['dismissed'] ), | |
| 213 | + ), | |
| 205 | 214 | 'rehide' => (bool) $box->options['auto_hide'], |
| 206 | 215 | 'position' => $box->options['css']['position'], |
| 207 | 216 | 'minimumScreenWidth' => $box->get_minimum_screen_size(), |
| 208 | 217 | 'closable' => $box->options['closable'], |