| 1 |
=== Boxzilla === |
| 2 |
Contributors: Ibericode, DvanKooten, hchouhan, lapzor |
| 3 |
Donate link: https://boxzillaplugin.com/#utm_source=wp-plugin-repo&utm_medium=boxzilla&utm_campaign=donate-link |
| 4 |
Tags: scroll triggered box, cta, social, pop-up, newsletter, call to action, mailchimp, contact form 7, social media, mc4wp, ibericode |
| 5 |
Requires at least: 4.1 |
| 6 |
Tested up to: 4.9.6 |
| 7 |
Stable tag: 3.2.4 |
| 8 |
License: GPLv2 or later |
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 10 |
Requires PHP: 5.3 |
| 11 |
|
| 12 |
Flexible call to action boxes, popping up or sliding in at just the right time. |
| 13 |
|
| 14 |
== Description == |
| 15 |
|
| 16 |
### Boxzilla for WordPress |
| 17 |
|
| 18 |
Boxzilla is a *lightweight* plugin for adding flexible call-to-actions to your WordPress site. Boxes can slide or fade in at any point and can contain whatever content you like. |
| 19 |
|
| 20 |
#### Some of Boxzilla's features |
| 21 |
|
| 22 |
- Boxes can contain _any_ content you like. |
| 23 |
- Various box triggers: |
| 24 |
- Scroll percentage |
| 25 |
- Reaching a certain page element |
| 26 |
- X amount of time on the page |
| 27 |
- Exit Intent (premium) |
| 28 |
- Time on Site (premium) |
| 29 |
- Manually by clicking a link or button |
| 30 |
- Customizable box position on the screen. |
| 31 |
- Various visibility animations. |
| 32 |
- Advanced page targeting. |
| 33 |
- Full control over how long (and whether) boxes should stay hidden. |
| 34 |
- Customizable box appearance using a simple & intuitive interface. |
| 35 |
- Mobile optimized. |
| 36 |
|
| 37 |
[Read more about Boxzilla](https://boxzillaplugin.com/#utm_source=wp-plugin-repo&utm_medium=boxzilla&utm_campaign=description). |
| 38 |
|
| 39 |
> This is the successor of the old [Scroll Triggered Boxes](https://wordpress.org/plugins/scroll-triggered-boxes/) plugin. |
| 40 |
|
| 41 |
#### Documentation |
| 42 |
|
| 43 |
Please have a look at the [Boxzilla KB](https://kb.boxzillaplugin.com/). |
| 44 |
|
| 45 |
#### Demo |
| 46 |
|
| 47 |
There's a [Boxzilla demo](https://demo.boxzillaplugin.com#utm_source=wp-plugin-repo&utm_medium=boxzilla&utm_campaign=description) with some examples. |
| 48 |
|
| 49 |
#### Add-on plugins |
| 50 |
|
| 51 |
The core Boxzilla plugin is and always will be free. Additional advanced functionality is available through several add-ons. Not only do they extend the core functionality of the plugin, they also help to fund further development of the core (free) plugin. |
| 52 |
|
| 53 |
[Browse available add-ons for Boxzilla](https://boxzillaplugin.com/add-ons/#utm_source=wp-plugin-repo&utm_medium=boxzilla&utm_campaign=description). |
| 54 |
|
| 55 |
#### Contributing and reporting bugs= |
| 56 |
|
| 57 |
You can contribute to [Boxzilla on GitHub](https://github.com/ibericode/boxzilla). |
| 58 |
|
| 59 |
#### Support |
| 60 |
|
| 61 |
Please use the [WordPress.org plugin support forums](https://wordpress.org/support/plugin/boxzilla) for community support where we try to help all users. |
| 62 |
|
| 63 |
If you think you've found a bug, please [report it on GitHub](https://github.com/ibericode/boxzilla/issues). |
| 64 |
|
| 65 |
If you're on [one of the available premium plans](https://boxzillaplugin.com/pricing#utm_source=wp-plugin-repo&utm_medium=boxzilla&utm_campaign=description), please use the support email for a faster reply. |
| 66 |
|
| 67 |
== Frequently Asked Questions == |
| 68 |
|
| 69 |
= What does this plugin do? = |
| 70 |
|
| 71 |
Have a look at the [Boxzilla demo site](https://demo.boxzillaplugin.com/#utm_source=wp-plugin-repo&utm_medium=boxzilla&utm_campaign=description). |
| 72 |
|
| 73 |
= How to display a form in the box? = |
| 74 |
|
| 75 |
Boxzilla will work with any plugin that offers shortcodes, like [MailChimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/). |
| 76 |
|
| 77 |
= Can I have a box open after clicking a certain link or button? = |
| 78 |
|
| 79 |
Sure, by linking to the box element. |
| 80 |
|
| 81 |
*Example (box ID is 94 in this example)* |
| 82 |
` |
| 83 |
<a href="#boxzilla-94">Open Box</a> |
| 84 |
` |
| 85 |
|
| 86 |
= Can I have a box to open right after opening a page? = |
| 87 |
|
| 88 |
Sure, just include `boxzilla-` followed by the box ID in the URL. |
| 89 |
|
| 90 |
*Example (box ID is 94 in this example)* |
| 91 |
` |
| 92 |
http://your-wordpress-site.com/some-page/#boxzilla-94 |
| 93 |
` |
| 94 |
|
| 95 |
= Can I customize the appearance of a box = |
| 96 |
|
| 97 |
Boxzilla comes with a simple interface for customizing most box colors & borders. You can apply your own CSS by utilizing any of the following element selectors. |
| 98 |
|
| 99 |
` |
| 100 |
.boxzilla { } /* all boxes */ |
| 101 |
.boxzilla-5 { } /* box with ID 5 */ |
| 102 |
` |
| 103 |
|
| 104 |
= I want to disable auto-paragraphs in the box content = |
| 105 |
|
| 106 |
All default WordPress filters are added to the `stb_content` filter hook. If you want to remove any of them, add the respectable line to your theme its `functions.php` file. |
| 107 |
|
| 108 |
` |
| 109 |
remove_filter( 'boxzilla_box_content', 'wptexturize') ; |
| 110 |
remove_filter( 'boxzilla_box_content', 'convert_smilies' ); |
| 111 |
remove_filter( 'boxzilla_box_content', 'convert_chars' ); |
| 112 |
remove_filter( 'boxzilla_box_content', 'wpautop' ); |
| 113 |
remove_filter( 'boxzilla_box_content', 'do_shortcode' ); |
| 114 |
remove_filter( 'boxzilla_box_content', 'shortcode_unautop' ); |
| 115 |
` |
| 116 |
|
| 117 |
= I want to make it impossible to close a box = |
| 118 |
` |
| 119 |
add_filter( 'boxzilla_box_options', function( $opts, $box ) { |
| 120 |
$opts['closable'] = false; |
| 121 |
return $opts; |
| 122 |
}, 10, 2 ); |
| 123 |
` |
| 124 |
|
| 125 |
== Installation == |
| 126 |
|
| 127 |
= Installing the plugin = |
| 128 |
|
| 129 |
1. In your WordPress admin panel, go to *Plugins > New Plugin*, search for *Boxzilla* and click "Install now" |
| 130 |
1. Alternatively, download the plugin and upload the contents of `boxzilla.zip` to your plugins directory, which usually is `/wp-content/plugins/`. |
| 131 |
1. Activate the plugin. |
| 132 |
|
| 133 |
= Creating a Boxzilla box = |
| 134 |
|
| 135 |
1. Go to *Boxzilla > Add New* |
| 136 |
1. Add some content to the box |
| 137 |
1. (Optional) customize the appearance of the box by changing the *Appearance Settings* |
| 138 |
|
| 139 |
= Additional Customization = |
| 140 |
|
| 141 |
Have a look at the [frequently asked questions](https://wordpress.org/plugins/boxzilla/faq/) section for some examples of additional customization. |
| 142 |
|
| 143 |
== Screenshots == |
| 144 |
|
| 145 |
1. A scroll triggered box with a newsletter sign-up form. |
| 146 |
2. Another scroll triggered box, this time with social media sharing options. |
| 147 |
3. A differently styled social triggered box. |
| 148 |
4. Configuring and customizing your boxes is easy. |
| 149 |
|
| 150 |
== Changelog == |
| 151 |
|
| 152 |
|
| 153 |
#### 3.2.4 - May 31, 2018 |
| 154 |
|
| 155 |
**Fixes** |
| 156 |
|
| 157 |
- Boxzilla content replicating parts of the page if other plugins "incorrectly" use `the_content` filter. |
| 158 |
|
| 159 |
|
| 160 |
#### 3.2.3 - May 29, 2018 |
| 161 |
|
| 162 |
**Improvements** |
| 163 |
|
| 164 |
- Allow "contains" qualifier in URL and referrer conditions. |
| 165 |
- Include query string in URL conditions. |
| 166 |
- Use SVG for the menu ico. Thanks [Kurt Zenisek](https://github.com/KZeni) |
| 167 |
- Added Czech translations. Thanks [Zdenek Petrbok](https://petrbok.cz/) |
| 168 |
- Run the_content filter on Boxzilla post content, to enable plugins like Photon. |
| 169 |
- Ensure content element exists when initialising Boxzilla. |
| 170 |
- Improvements to licensing related code for [Boxzilla Premium](https://boxzillaplugin.com/pricing/) users. |
| 171 |
|
| 172 |
|
| 173 |
#### 3.2.2 - March 12, 2018 |
| 174 |
|
| 175 |
**Improvements** |
| 176 |
|
| 177 |
- Print box contents at an earlier footer hook, so it works with "smart enqueue" methods in other plugins like MailChimp for WordPress or Maxbuttons. |
| 178 |
|
| 179 |
|
| 180 |
#### 3.2.1 - March 5, 2018 |
| 181 |
|
| 182 |
**Fixes** |
| 183 |
|
| 184 |
- Can't use return value in write context error, introduced in v3.2. |
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
#### 3.2 - March 5, 2018 |
| 189 |
|
| 190 |
**Fixes** |
| 191 |
|
| 192 |
- Compatibility with plugins that use JavaScript rendering. |
| 193 |
|
| 194 |
**Improvements** |
| 195 |
|
| 196 |
- Skip boxes with empty content. |
| 197 |
|
| 198 |
|
| 199 |
#### 3.1.23 - December 13, 2017 |
| 200 |
|
| 201 |
**Fixes** |
| 202 |
|
| 203 |
- Event listener for hyperlinks referencing `#boxzilla-123`. We recommend using `[boxzilla_link]to generate your links though[/boxzilla_link]`. [Here's how that works](https://kb.boxzillaplugin.com/shortcode-boxzilla-link/). |
| 204 |
|
| 205 |
|
| 206 |
#### 3.1.22 - November 20, 2017 |
| 207 |
|
| 208 |
**Fixes** |
| 209 |
|
| 210 |
- Showing box by location hash after page load wasn't working. |
| 211 |
|
| 212 |
**Improvements** |
| 213 |
|
| 214 |
- Load `<script>` in box content synchronously so libraries get a chance to load before they're used. |
| 215 |
|
| 216 |
|
| 217 |
#### 3.1.21 - October 10, 2017 |
| 218 |
|
| 219 |
**Fixes** |
| 220 |
|
| 221 |
- Ensure that administrators can always edit boxes. |
| 222 |
|
| 223 |
|
| 224 |
#### 3.1.20 - October 9, 2017 |
| 225 |
|
| 226 |
**Fixes** |
| 227 |
|
| 228 |
- Screen width condition not working when using WordPress in language other than English. |
| 229 |
|
| 230 |
**Improvements** |
| 231 |
|
| 232 |
- Use custom capability type so access to Boxzilla boxes can be modified using a role manager plugin. |
| 233 |
|
| 234 |
|
| 235 |
#### 3.1.19 - September 20, 2017 |
| 236 |
|
| 237 |
**Improvements** |
| 238 |
|
| 239 |
- Trigger points based on height (scroll %, element) will now be recalculated when the page height changes. |
| 240 |
|
| 241 |
|
| 242 |
#### 3.1.18 - September 7, 2017 |
| 243 |
|
| 244 |
**Additions** |
| 245 |
|
| 246 |
- Added [`[boxzilla_link]` shortcode to generate the correct HTML for a link to show/toggle/hide/dismiss a box](https://kb.boxzillaplugin.com/shortcode-boxzilla-link/). |
| 247 |
|
| 248 |
|
| 249 |
#### 3.1.17 - August 30, 2017 |
| 250 |
|
| 251 |
**Fixes** |
| 252 |
|
| 253 |
- IE11 issue with scroll triggered pop-ups never showing up. |
| 254 |
|
| 255 |
|
| 256 |
#### 3.1.16 - August 2, 2017 |
| 257 |
|
| 258 |
**Fixes** |
| 259 |
|
| 260 |
- JavaScript error when clicking `<a>` elements without `href` attributes. |
| 261 |
|
| 262 |
|
| 263 |
#### 3.1.15 - July 26, 2017 |
| 264 |
|
| 265 |
**Additions** |
| 266 |
|
| 267 |
- Added `[boxzilla-close]text here[/boxzilla-close]` shortcode to insert a link to close the box. |
| 268 |
- Added setting to hide the close icon. |
| 269 |
- Added setting to hide or show box for logged-in users. |
| 270 |
|
| 271 |
|
| 272 |
#### 3.1.14 - July 13, 2017 |
| 273 |
|
| 274 |
**Fixes** |
| 275 |
|
| 276 |
- IE Edge issue with sliding box animation. |
| 277 |
|
| 278 |
**Improvements** |
| 279 |
|
| 280 |
- Don't wait for document.ready event to initialise boxes. Fixes issues with plugins not delegaging AJAX event listeners. |
| 281 |
|
| 282 |
|
| 283 |
#### 3.1.13 - May 11, 2017 |
| 284 |
|
| 285 |
**Improvements** |
| 286 |
|
| 287 |
- Allow for script resources in Boxzilla box content (instead of just inline script elements). |
| 288 |
- Reset box content when box is dismissed, eg to stop YouTube video's from playing. |
| 289 |
|
| 290 |
|
| 291 |
#### 3.1.12 - April 24, 2017 |
| 292 |
|
| 293 |
**Improvements** |
| 294 |
|
| 295 |
- Update endpoint URL for license API requests. |
| 296 |
|
| 297 |
|
| 298 |
#### 3.1.11 - March 22, 2017 |
| 299 |
|
| 300 |
**Fixes** |
| 301 |
|
| 302 |
- `#boxzilla-321` link not working when link has a nested image element. |
| 303 |
|
| 304 |
**Improvements** |
| 305 |
|
| 306 |
- Added the option to show on screens smaller than a certain width. |
| 307 |
- Improved URL matching for "is url" rule. |
| 308 |
|
| 309 |
|
| 310 |
#### 3.1.10 - March 8, 2017 |
| 311 |
|
| 312 |
**Fixes** |
| 313 |
|
| 314 |
- Debugging statement that would log to console on every scroll event. |
| 315 |
|
| 316 |
**Improvements** |
| 317 |
|
| 318 |
- Reduced overlay click error margin to 40px (instead of % based). |
| 319 |
- Minor UX improvements for "edit box" screen. |
| 320 |
|
| 321 |
|
| 322 |
#### 3.1.9 - February 27, 2017 |
| 323 |
|
| 324 |
**Fixes** |
| 325 |
|
| 326 |
- Compatibility error with PHP 7.1 because of function name with double underscore prefix. |
| 327 |
|
| 328 |
**Improvements** |
| 329 |
|
| 330 |
- Removed autofocus when box shows because of mobile browser issues & popping up keyboard. |
| 331 |
|
| 332 |
**Additions** |
| 333 |
|
| 334 |
- Added Romanian language files. |
| 335 |
|
| 336 |
|
| 337 |
#### 3.1.8 - November 8, 2016 |
| 338 |
|
| 339 |
**Fixes** |
| 340 |
|
| 341 |
- JS error on sites running HTTPS, introduced by v3.1.7. |
| 342 |
|
| 343 |
|
| 344 |
#### 3.1.7 - November 8, 2016 |
| 345 |
|
| 346 |
**Fixes** |
| 347 |
|
| 348 |
- Cookie length value was reset on every plugin update. |
| 349 |
- Scroll to bottom when closing box in MobileSafari browsers. |
| 350 |
|
| 351 |
**Improvements** |
| 352 |
|
| 353 |
- Add CSS class to overlay when box is toggled. |
| 354 |
- Ask for [plugin review](https://wordpress.org/support/plugin/boxzilla/reviews/#new-post) after 2 weeks of usage. |
| 355 |
|
| 356 |
|
| 357 |
#### 3.1.6 - October 18, 2016 |
| 358 |
|
| 359 |
**Improvements** |
| 360 |
|
| 361 |
- Failsafe against including the Boxzilla script twice, to prevent duplicate elements. |
| 362 |
|
| 363 |
|
| 364 |
#### 3.1.5 - September 6, 2016 |
| 365 |
|
| 366 |
**Fixes** |
| 367 |
|
| 368 |
- Box cookies were being set for _all_ boxes when dismissing a box using the overlay or ESCAPE key. |
| 369 |
- Auto-close not working since version 3.1.3 |
| 370 |
|
| 371 |
**Improvements** |
| 372 |
|
| 373 |
- Prevent default click event action when clicking close icon. |
| 374 |
- Add helper classes for the [Boxzilla - Theme Pack add-on](https://boxzillaplugin.com/add-ons/theme-pack/). |
| 375 |
|
| 376 |
|
| 377 |
#### 3.1.4 - August 24, 2016 |
| 378 |
|
| 379 |
**Fixes** |
| 380 |
|
| 381 |
- `Boxzilla.show(123)` no longer working in previous update. |
| 382 |
|
| 383 |
|
| 384 |
#### 3.1.3 - August 24, 2016 |
| 385 |
|
| 386 |
**Improvements** |
| 387 |
|
| 388 |
- Don't trigger any new boxes when a box is currently open. |
| 389 |
- Fail gracefully when not running PHP 5.3 or higher. |
| 390 |
|
| 391 |
|
| 392 |
#### 3.1.2 - August 2, 2016 |
| 393 |
|
| 394 |
**Fixes** |
| 395 |
|
| 396 |
- Exit-Intent not working in Safari & Firefox. |
| 397 |
|
| 398 |
|
| 399 |
#### 3.1.1 - August 1, 2016 |
| 400 |
|
| 401 |
**Fixes** |
| 402 |
|
| 403 |
- Scroll triggers not working in IE11. |
| 404 |
|
| 405 |
**Improvements** |
| 406 |
|
| 407 |
- Allow `<img>` elements inside links that open boxes. |
| 408 |
- Better page height detection. |
| 409 |
|
| 410 |
|
| 411 |
#### 3.1 - July 19, 2016 |
| 412 |
|
| 413 |
**Improvements** |
| 414 |
|
| 415 |
- Completely removed jQuery dependency, resulting in better performance & smoother animations. |
| 416 |
- Completely removed CSS file dependency. |
| 417 |
- Box position is now visually hinted in box settings. |
| 418 |
- Event binding improvements for [Exit Intent detection](https://boxzillaplugin.com/add-ons/exit-intent/). |
| 419 |
|
| 420 |
**Additions** |
| 421 |
|
| 422 |
- You can now set a cookie after the box is triggered, to prevent consecutively showing the box if a visitor does not explicitly dismiss it. |
| 423 |
|
| 424 |
|
| 425 |
#### 3.0.3 - July 5, 2016 |
| 426 |
|
| 427 |
**Improvements** |
| 428 |
|
| 429 |
- Add `id` attribute to box element. |
| 430 |
- Automatically fix links in box content that use HTTP when HTTPS is needed. |
| 431 |
- Restore global jQuery object after running user scripts, to failsafe errors. |
| 432 |
|
| 433 |
**Additions** |
| 434 |
|
| 435 |
- When using [MailChimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/) without AJAX, the box will now automatically re-open after reloading the page. |
| 436 |
|
| 437 |
|
| 438 |
#### 3.0.2 - June 21, 2016 |
| 439 |
|
| 440 |
**Fixes** |
| 441 |
|
| 442 |
- Box condition "is post" was not working with an empty value. |
| 443 |
|
| 444 |
**Improvements** |
| 445 |
|
| 446 |
- Prevent PHP notice when saving box without changing box rules. |
| 447 |
|
| 448 |
**Additions** |
| 449 |
|
| 450 |
- Added French translation files, thanks to Benoit Mercusot. |
| 451 |
|
| 452 |
|
| 453 |
#### 3.0.1 - May 23, 2016 |
| 454 |
|
| 455 |
**Improvements** |
| 456 |
|
| 457 |
- You can now use `<script>` tags directly in box content (again). |
| 458 |
|
| 459 |
**Additions** |
| 460 |
|
| 461 |
- Add "post tag is / is not" loading condition. |
| 462 |
- Plugin will now show a notice to deactivate old Scroll Triggered Boxes plugin. |
| 463 |
- Internal changes to dependency container for use in add-on plugins. |
| 464 |
- Add-on: [Boxzilla Pageviews Trigger](https://boxzillaplugin.com/add-ons/pageviews/). |
| 465 |
- Add-on: [Boxzilla WooCommerce](https://boxzillaplugin.com/add-ons/woocommerce/) |
| 466 |
|
| 467 |
|
| 468 |
#### 3.0 - May 11, 2016 |
| 469 |
|
| 470 |
Initial release of [Boxzilla](https://boxzillaplugin.com/), formerly known as [Scroll Triggered Boxes](https://wordpress.org/plugins/scroll-triggered-boxes/). |
| 471 |
|
| 472 |
If you're upgrading from the old plugin, please check [updating to Boxzilla from Scroll Triggered Boxes](https://kb.boxzillaplugin.com/updating-from-scroll-triggered-boxes/) for a list of changes you should be aware of. |
| 473 |
|
| 474 |
== Upgrade Notice == |
| 475 |
|
| 476 |
= 2.1 = |
| 477 |
Added autocomplete to box filters & minor bux fixes for filter rules. |
| 478 |
|