Page Builder by SiteOrigin - Version 2.12.2

Version Description

  • 21 May 2021 =
  • ACF: Added a check to ensure 5.7.10+ is active before loading Page Builder compatibility.
  • Lazy Load: Added support for WP Rocket Lazy Load.
  • Gravity Forms: Added compatibility to ensure conditional forms function normally when added via the Form widget.
  • Developer: Stopped checking for repeated rendering if $panels_data was supplied.
Download this release

Release Info

Developer SiteOrigin
Plugin Icon 128x128 Page Builder by SiteOrigin
Version 2.12.2
Comparing to
See all releases

Code changes from version 2.12.1 to 2.12.2

compat/gravity-forms.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Override Gravity Forms "Disable Print Scripts" setting to prevent missing jQuery error.
4
+ *
5
+ * @param $instance
6
+ * @param $the_widget
7
+ * @param $widget_class
8
+ *
9
+ * @return $instance
10
+ */
11
+ function siteorigin_gravity_forms_override_disable_print_scripts( $instance, $the_widget, $widget_class ) {
12
+ if ( $the_widget->id_base == 'gform_widget' ) {
13
+ $instance['disable_scripts'] = true;
14
+
15
+ // Disable print scripts for older versions of Gravity Forms.
16
+ add_filter( 'gform_disable_print_form_scripts', '__return_true' );
17
+ }
18
+
19
+ return $instance;
20
+ }
21
+ add_filter( 'siteorigin_panels_widget_instance', 'siteorigin_gravity_forms_override_disable_print_scripts', 10, 3 );
compat/lazy-load-backgrounds.php CHANGED
@@ -22,7 +22,7 @@ function siteorigin_apply_lazy_load_attributes( $attributes, $style ) {
22
  $attributes['data-bg'] = $url[0];
23
 
24
  // WP Rocket uses a different lazy load class.
25
- if ( defined( 'ROCKET_LL_VERSION' ) ) {
26
  $attributes['class'][] = 'rocket-lazyload';
27
  }
28
 
22
  $attributes['data-bg'] = $url[0];
23
 
24
  // WP Rocket uses a different lazy load class.
25
+ if ( defined( 'ROCKET_LL_VERSION' ) || function_exists( 'get_rocket_option' ) ) {
26
  $attributes['class'][] = 'rocket-lazyload';
27
  }
28
 
inc/admin.php CHANGED
@@ -73,7 +73,10 @@ class SiteOrigin_Panels_Admin {
73
  add_action( 'admin_print_scripts-post-new.php', array( $this, 'enqueue_seo_compat' ), 100 );
74
  add_action( 'admin_print_scripts-post.php', array( $this, 'enqueue_seo_compat' ), 100 );
75
 
76
- if ( class_exists( 'ACF' ) ) {
 
 
 
77
  SiteOrigin_Panels_Compat_ACF_Widgets::single();
78
  }
79
 
73
  add_action( 'admin_print_scripts-post-new.php', array( $this, 'enqueue_seo_compat' ), 100 );
74
  add_action( 'admin_print_scripts-post.php', array( $this, 'enqueue_seo_compat' ), 100 );
75
 
76
+ if (
77
+ class_exists( 'ACF' ) &&
78
+ version_compare( get_option( 'acf_version' ), '5.7.10', '>=' )
79
+ ) {
80
  SiteOrigin_Panels_Compat_ACF_Widgets::single();
81
  }
82
 
inc/renderer.php CHANGED
@@ -305,8 +305,9 @@ class SiteOrigin_Panels_Renderer {
305
  }
306
 
307
  global $siteorigin_panels_current_post;
308
- // If the post being processed is the same as the last one, don't process it.
309
  if (
 
310
  ! empty( $siteorigin_panels_current_post ) &&
311
  apply_filters( 'siteorigin_panels_renderer_current_post_check', true ) &&
312
  $siteorigin_panels_current_post == $post_id
@@ -495,6 +496,9 @@ class SiteOrigin_Panels_Renderer {
495
  $the_widget = SiteOrigin_Panels::get_widget_instance( $widget_class );
496
  $the_widget = apply_filters( 'siteorigin_panels_widget_object', $the_widget, $widget_class, $instance );
497
 
 
 
 
498
  if ( empty( $post_id ) ) {
499
  $post_id = get_the_ID();
500
 
305
  }
306
 
307
  global $siteorigin_panels_current_post;
308
+ // If $panels_data is empty, and the current post being processed is the same as the last one, don't process it.
309
  if (
310
+ empty( $panels_data ) &&
311
  ! empty( $siteorigin_panels_current_post ) &&
312
  apply_filters( 'siteorigin_panels_renderer_current_post_check', true ) &&
313
  $siteorigin_panels_current_post == $post_id
496
  $the_widget = SiteOrigin_Panels::get_widget_instance( $widget_class );
497
  $the_widget = apply_filters( 'siteorigin_panels_widget_object', $the_widget, $widget_class, $instance );
498
 
499
+ // Allow other themes/plugins to override the instance.
500
+ $instance = apply_filters( 'siteorigin_panels_widget_instance', $instance, $the_widget, $widget_class );
501
+
502
  if ( empty( $post_id ) ) {
503
  $post_id = get_the_ID();
504
 
lang/siteorigin-panels.pot CHANGED
@@ -36,15 +36,15 @@ msgstr ""
36
  msgid "https://siteorigin.com"
37
  msgstr ""
38
 
39
- #: siteorigin-panels.php:360
40
  msgid "Read More"
41
  msgstr ""
42
 
43
- #: siteorigin-panels.php:530
44
  msgid "Edit Home Page"
45
  msgstr ""
46
 
47
- #: siteorigin-panels.php:550, tpl/js-templates.php:34, tpl/js-templates.php:36
48
  msgid "Live Editor"
49
  msgstr ""
50
 
@@ -76,7 +76,7 @@ msgstr ""
76
  msgid "(email SiteOrigin support)"
77
  msgstr ""
78
 
79
- #: inc/admin-dashboard.php:95, inc/admin.php:166
80
  msgid "Support Forum"
81
  msgstr ""
82
 
@@ -153,371 +153,371 @@ msgstr ""
153
  msgid "Installing %s"
154
  msgstr ""
155
 
156
- #: inc/admin.php:169, tpl/js-templates.php:44
157
  msgid "Addons"
158
  msgstr ""
159
 
160
- #: inc/admin.php:183, inc/admin.php:601, inc/admin.php:1264, inc/admin.php:1269, inc/settings.php:210, tpl/js-templates.php:197
161
  msgid "Page Builder"
162
  msgstr ""
163
 
164
- #: inc/admin.php:341
165
  msgid "All Widgets"
166
  msgstr ""
167
 
168
- #: inc/admin.php:368
169
  msgid "Missing Widget"
170
  msgstr ""
171
 
172
- #: inc/admin.php:369
173
  msgid "Page Builder doesn't know about this widget."
174
  msgstr ""
175
 
176
  #. translators: Number of seconds since
177
- #: inc/admin.php:373
178
  msgid "%d seconds"
179
  msgstr ""
180
 
181
  #. translators: Number of minutes since
182
- #: inc/admin.php:375
183
  msgid "%d minutes"
184
  msgstr ""
185
 
186
  #. translators: Number of hours since
187
- #: inc/admin.php:377
188
  msgid "%d hours"
189
  msgstr ""
190
 
191
  #. translators: A single second since
192
- #: inc/admin.php:380
193
  msgid "%d second"
194
  msgstr ""
195
 
196
  #. translators: A single minute since
197
- #: inc/admin.php:382
198
  msgid "%d minute"
199
  msgstr ""
200
 
201
  #. translators: A single hour since
202
- #: inc/admin.php:384
203
  msgid "%d hour"
204
  msgstr ""
205
 
206
  #. translators: Time ago - eg. "1 minute before".
207
- #: inc/admin.php:387
208
  msgid "%s before"
209
  msgstr ""
210
 
211
- #: inc/admin.php:388
212
  msgid "Now"
213
  msgstr ""
214
 
215
- #: inc/admin.php:392
216
  msgid "Current"
217
  msgstr ""
218
 
219
- #: inc/admin.php:393
220
  msgid "Original"
221
  msgstr ""
222
 
223
- #: inc/admin.php:394
224
  msgid "Version restored"
225
  msgstr ""
226
 
227
- #: inc/admin.php:395
228
  msgid "Converted to editor"
229
  msgstr ""
230
 
231
  #. translators: Message displayed in the history when a widget is deleted
232
- #: inc/admin.php:399
233
  msgid "Widget deleted"
234
  msgstr ""
235
 
236
  #. translators: Message displayed in the history when a widget is added
237
- #: inc/admin.php:401
238
  msgid "Widget added"
239
  msgstr ""
240
 
241
  #. translators: Message displayed in the history when a widget is edited
242
- #: inc/admin.php:403
243
  msgid "Widget edited"
244
  msgstr ""
245
 
246
  #. translators: Message displayed in the history when a widget is duplicated
247
- #: inc/admin.php:405
248
  msgid "Widget duplicated"
249
  msgstr ""
250
 
251
  #. translators: Message displayed in the history when a widget position is changed
252
- #: inc/admin.php:407
253
  msgid "Widget moved"
254
  msgstr ""
255
 
256
  #. translators: Message displayed in the history when a row is deleted
257
- #: inc/admin.php:411
258
  msgid "Row deleted"
259
  msgstr ""
260
 
261
  #. translators: Message displayed in the history when a row is added
262
- #: inc/admin.php:413
263
  msgid "Row added"
264
  msgstr ""
265
 
266
  #. translators: Message displayed in the history when a row is edited
267
- #: inc/admin.php:415
268
  msgid "Row edited"
269
  msgstr ""
270
 
271
  #. translators: Message displayed in the history when a row position is changed
272
- #: inc/admin.php:417
273
  msgid "Row moved"
274
  msgstr ""
275
 
276
  #. translators: Message displayed in the history when a row is duplicated
277
- #: inc/admin.php:419
278
  msgid "Row duplicated"
279
  msgstr ""
280
 
281
  #. translators: Message displayed in the history when a row is pasted
282
- #: inc/admin.php:421
283
  msgid "Row pasted"
284
  msgstr ""
285
 
286
- #: inc/admin.php:424
287
  msgid "Cell resized"
288
  msgstr ""
289
 
290
- #: inc/admin.php:427
291
  msgid "Prebuilt layout loaded"
292
  msgstr ""
293
 
294
- #: inc/admin.php:431
295
  msgid "Loading prebuilt layout"
296
  msgstr ""
297
 
298
- #: inc/admin.php:432
299
  msgid "Would you like to copy this editor's existing content to Page Builder?"
300
  msgstr ""
301
 
302
- #: inc/admin.php:433
303
  msgid "Would you like to clear your Page Builder content and revert to using the standard visual editor?"
304
  msgstr ""
305
 
306
  #. translators: This is the title for a widget called "Layout Builder"
307
- #: inc/admin.php:435
308
  msgid "Layout Builder Widget"
309
  msgstr ""
310
 
311
  #. translators: A standard confirmation message
312
- #: inc/admin.php:437, tpl/js-templates.php:97, tpl/js-templates.php:422
313
  msgid "Are you sure?"
314
  msgstr ""
315
 
316
  #. translators: When a layout file is ready to be inserted. %s is the filename.
317
- #: inc/admin.php:439
318
  msgid "%s is ready to insert."
319
  msgstr ""
320
 
321
- #: inc/admin.php:443
322
  msgid "Add Widget Below"
323
  msgstr ""
324
 
325
- #: inc/admin.php:444
326
  msgid "Add Widget to Cell"
327
  msgstr ""
328
 
329
- #: inc/admin.php:445, tpl/js-templates.php:224
330
  msgid "Search Widgets"
331
  msgstr ""
332
 
333
- #: inc/admin.php:447, tpl/js-templates.php:17, tpl/js-templates.php:19
334
  msgid "Add Row"
335
  msgstr ""
336
 
337
- #: inc/admin.php:448
338
  msgid "Column"
339
  msgstr ""
340
 
341
- #: inc/admin.php:450
342
  msgid "Cell Actions"
343
  msgstr ""
344
 
345
- #: inc/admin.php:451
346
  msgid "Paste Widget"
347
  msgstr ""
348
 
349
- #: inc/admin.php:453
350
  msgid "Widget Actions"
351
  msgstr ""
352
 
353
- #: inc/admin.php:454
354
  msgid "Edit Widget"
355
  msgstr ""
356
 
357
- #: inc/admin.php:455
358
  msgid "Duplicate Widget"
359
  msgstr ""
360
 
361
- #: inc/admin.php:456
362
  msgid "Delete Widget"
363
  msgstr ""
364
 
365
- #: inc/admin.php:457
366
  msgid "Copy Widget"
367
  msgstr ""
368
 
369
- #: inc/admin.php:458
370
  msgid "Paste Widget Below"
371
  msgstr ""
372
 
373
- #: inc/admin.php:460
374
  msgid "Row Actions"
375
  msgstr ""
376
 
377
- #: inc/admin.php:461, tpl/js-templates.php:95
378
  msgid "Edit Row"
379
  msgstr ""
380
 
381
- #: inc/admin.php:462, tpl/js-templates.php:96
382
  msgid "Duplicate Row"
383
  msgstr ""
384
 
385
- #: inc/admin.php:463, tpl/js-templates.php:97
386
  msgid "Delete Row"
387
  msgstr ""
388
 
389
- #: inc/admin.php:464
390
  msgid "Copy Row"
391
  msgstr ""
392
 
393
- #: inc/admin.php:465
394
  msgid "Paste Row"
395
  msgstr ""
396
 
397
- #: inc/admin.php:467
398
  msgid "Draft"
399
  msgstr ""
400
 
401
- #: inc/admin.php:468
402
  msgid "Untitled"
403
  msgstr ""
404
 
405
- #: inc/admin.php:470
406
  msgid "New Row"
407
  msgstr ""
408
 
409
- #: inc/admin.php:471, inc/admin.php:479, inc/styles.php:216, tpl/js-templates.php:62
410
  msgid "Row"
411
  msgstr ""
412
 
413
- #: inc/admin.php:474
414
  msgid "Hmmm... Adding layout elements is not enabled. Please check if Page Builder has been configured to allow adding elements."
415
  msgstr ""
416
 
417
- #: inc/admin.php:475
418
  msgid "Add a {{%= items[0] %}} to get started."
419
  msgstr ""
420
 
421
- #: inc/admin.php:476
422
  msgid "Add a {{%= items[0] %}} or {{%= items[1] %}} to get started."
423
  msgstr ""
424
 
425
- #: inc/admin.php:477
426
  msgid "Add a {{%= items[0] %}}, {{%= items[1] %}} or {{%= items[2] %}} to get started."
427
  msgstr ""
428
 
429
- #: inc/admin.php:478, inc/styles.php:368, tpl/js-templates.php:61
430
  msgid "Widget"
431
  msgstr ""
432
 
433
- #: inc/admin.php:480, tpl/js-templates.php:63
434
  msgid "Prebuilt Layout"
435
  msgstr ""
436
 
437
- #: inc/admin.php:482
438
  msgid "Read our %s if you need help."
439
  msgstr ""
440
 
441
- #: inc/admin.php:483, tpl/js-templates.php:64
442
  msgid "documentation"
443
  msgstr ""
444
 
445
- #: inc/admin.php:492
446
  msgid "Page Builder layouts"
447
  msgstr ""
448
 
449
- #: inc/admin.php:493
450
  msgid "Error uploading or importing file."
451
  msgstr ""
452
 
453
- #: inc/admin.php:500
454
  msgid "Unknown error. Failed to load the form. Please check your internet connection, contact your web site administrator, or try again later."
455
  msgstr ""
456
 
457
  #. translators: This is the default name given to a user's home page
458
- #: inc/admin.php:684, inc/home.php:26
459
  msgid "Home Page"
460
  msgstr ""
461
 
462
- #: inc/admin.php:785
463
  msgid "Untitled Widget"
464
  msgstr ""
465
 
466
- #: inc/admin.php:965
467
  msgid "You need to install 1{%1$s} to use the widget 2{%2$s}."
468
  msgstr ""
469
 
470
- #: inc/admin.php:971
471
  msgid "Save and reload this page to start using the widget after you've installed it."
472
  msgstr ""
473
 
474
- #: inc/admin.php:987
475
  msgid "The widget 1{%1$s} is not available. Please try locate and install the missing plugin. Post on the 2{support forums} if you need help."
476
  msgstr ""
477
 
478
- #: inc/admin.php:1167, inc/styles-admin.php:25
479
  msgid "The supplied nonce is invalid."
480
  msgstr ""
481
 
482
- #: inc/admin.php:1168, inc/styles-admin.php:26
483
  msgid "Invalid nonce."
484
  msgstr ""
485
 
486
- #: inc/admin.php:1174
487
  msgid "Please specify the type of widget form to be rendered."
488
  msgstr ""
489
 
490
- #: inc/admin.php:1175
491
  msgid "Missing widget type."
492
  msgstr ""
493
 
494
- #: inc/admin.php:1282
495
  msgid "%s Widget"
496
  msgid_plural "%s Widgets"
497
  msgstr[0] ""
498
  msgstr[1] ""
499
 
500
- #: inc/admin.php:1325
501
  msgid "Get a lightbox addon for SiteOrigin widgets"
502
  msgstr ""
503
 
504
- #: inc/admin.php:1329
505
  msgid "Get the row, cell and widget animations addon"
506
  msgstr ""
507
 
508
- #: inc/admin.php:1333
509
  msgid "Get premium email support for SiteOrigin Page Builder"
510
  msgstr ""
511
 
512
- #: inc/admin.php:1518
513
  msgid "Toggle editor selection menu"
514
  msgstr ""
515
 
516
- #: inc/admin.php:1519, inc/admin.php:1566, inc/settings.php:210, settings/tpl/settings.php:9
517
  msgid "SiteOrigin Page Builder"
518
  msgstr ""
519
 
520
- #: inc/admin.php:1520
521
  msgid "Block Editor"
522
  msgstr ""
523
 
@@ -525,7 +525,7 @@ msgstr ""
525
  msgid "Custom Home Page Builder"
526
  msgstr ""
527
 
528
- #: inc/renderer.php:314
529
  msgid "Prevented SiteOrigin layout from repeated rendering."
530
  msgstr ""
531
 
36
  msgid "https://siteorigin.com"
37
  msgstr ""
38
 
39
+ #: siteorigin-panels.php:373
40
  msgid "Read More"
41
  msgstr ""
42
 
43
+ #: siteorigin-panels.php:543
44
  msgid "Edit Home Page"
45
  msgstr ""
46
 
47
+ #: siteorigin-panels.php:563, tpl/js-templates.php:34, tpl/js-templates.php:36
48
  msgid "Live Editor"
49
  msgstr ""
50
 
76
  msgid "(email SiteOrigin support)"
77
  msgstr ""
78
 
79
+ #: inc/admin-dashboard.php:95, inc/admin.php:169
80
  msgid "Support Forum"
81
  msgstr ""
82
 
153
  msgid "Installing %s"
154
  msgstr ""
155
 
156
+ #: inc/admin.php:172, tpl/js-templates.php:44
157
  msgid "Addons"
158
  msgstr ""
159
 
160
+ #: inc/admin.php:186, inc/admin.php:604, inc/admin.php:1267, inc/admin.php:1272, inc/settings.php:210, tpl/js-templates.php:197
161
  msgid "Page Builder"
162
  msgstr ""
163
 
164
+ #: inc/admin.php:344
165
  msgid "All Widgets"
166
  msgstr ""
167
 
168
+ #: inc/admin.php:371
169
  msgid "Missing Widget"
170
  msgstr ""
171
 
172
+ #: inc/admin.php:372
173
  msgid "Page Builder doesn't know about this widget."
174
  msgstr ""
175
 
176
  #. translators: Number of seconds since
177
+ #: inc/admin.php:376
178
  msgid "%d seconds"
179
  msgstr ""
180
 
181
  #. translators: Number of minutes since
182
+ #: inc/admin.php:378
183
  msgid "%d minutes"
184
  msgstr ""
185
 
186
  #. translators: Number of hours since
187
+ #: inc/admin.php:380
188
  msgid "%d hours"
189
  msgstr ""
190
 
191
  #. translators: A single second since
192
+ #: inc/admin.php:383
193
  msgid "%d second"
194
  msgstr ""
195
 
196
  #. translators: A single minute since
197
+ #: inc/admin.php:385
198
  msgid "%d minute"
199
  msgstr ""
200
 
201
  #. translators: A single hour since
202
+ #: inc/admin.php:387
203
  msgid "%d hour"
204
  msgstr ""
205
 
206
  #. translators: Time ago - eg. "1 minute before".
207
+ #: inc/admin.php:390
208
  msgid "%s before"
209
  msgstr ""
210
 
211
+ #: inc/admin.php:391
212
  msgid "Now"
213
  msgstr ""
214
 
215
+ #: inc/admin.php:395
216
  msgid "Current"
217
  msgstr ""
218
 
219
+ #: inc/admin.php:396
220
  msgid "Original"
221
  msgstr ""
222
 
223
+ #: inc/admin.php:397
224
  msgid "Version restored"
225
  msgstr ""
226
 
227
+ #: inc/admin.php:398
228
  msgid "Converted to editor"
229
  msgstr ""
230
 
231
  #. translators: Message displayed in the history when a widget is deleted
232
+ #: inc/admin.php:402
233
  msgid "Widget deleted"
234
  msgstr ""
235
 
236
  #. translators: Message displayed in the history when a widget is added
237
+ #: inc/admin.php:404
238
  msgid "Widget added"
239
  msgstr ""
240
 
241
  #. translators: Message displayed in the history when a widget is edited
242
+ #: inc/admin.php:406
243
  msgid "Widget edited"
244
  msgstr ""
245
 
246
  #. translators: Message displayed in the history when a widget is duplicated
247
+ #: inc/admin.php:408
248
  msgid "Widget duplicated"
249
  msgstr ""
250
 
251
  #. translators: Message displayed in the history when a widget position is changed
252
+ #: inc/admin.php:410
253
  msgid "Widget moved"
254
  msgstr ""
255
 
256
  #. translators: Message displayed in the history when a row is deleted
257
+ #: inc/admin.php:414
258
  msgid "Row deleted"
259
  msgstr ""
260
 
261
  #. translators: Message displayed in the history when a row is added
262
+ #: inc/admin.php:416
263
  msgid "Row added"
264
  msgstr ""
265
 
266
  #. translators: Message displayed in the history when a row is edited
267
+ #: inc/admin.php:418
268
  msgid "Row edited"
269
  msgstr ""
270
 
271
  #. translators: Message displayed in the history when a row position is changed
272
+ #: inc/admin.php:420
273
  msgid "Row moved"
274
  msgstr ""
275
 
276
  #. translators: Message displayed in the history when a row is duplicated
277
+ #: inc/admin.php:422
278
  msgid "Row duplicated"
279
  msgstr ""
280
 
281
  #. translators: Message displayed in the history when a row is pasted
282
+ #: inc/admin.php:424
283
  msgid "Row pasted"
284
  msgstr ""
285
 
286
+ #: inc/admin.php:427
287
  msgid "Cell resized"
288
  msgstr ""
289
 
290
+ #: inc/admin.php:430
291
  msgid "Prebuilt layout loaded"
292
  msgstr ""
293
 
294
+ #: inc/admin.php:434
295
  msgid "Loading prebuilt layout"
296
  msgstr ""
297
 
298
+ #: inc/admin.php:435
299
  msgid "Would you like to copy this editor's existing content to Page Builder?"
300
  msgstr ""
301
 
302
+ #: inc/admin.php:436
303
  msgid "Would you like to clear your Page Builder content and revert to using the standard visual editor?"
304
  msgstr ""
305
 
306
  #. translators: This is the title for a widget called "Layout Builder"
307
+ #: inc/admin.php:438
308
  msgid "Layout Builder Widget"
309
  msgstr ""
310
 
311
  #. translators: A standard confirmation message
312
+ #: inc/admin.php:440, tpl/js-templates.php:97, tpl/js-templates.php:422
313
  msgid "Are you sure?"
314
  msgstr ""
315
 
316
  #. translators: When a layout file is ready to be inserted. %s is the filename.
317
+ #: inc/admin.php:442
318
  msgid "%s is ready to insert."
319
  msgstr ""
320
 
321
+ #: inc/admin.php:446
322
  msgid "Add Widget Below"
323
  msgstr ""
324
 
325
+ #: inc/admin.php:447
326
  msgid "Add Widget to Cell"
327
  msgstr ""
328
 
329
+ #: inc/admin.php:448, tpl/js-templates.php:224
330
  msgid "Search Widgets"
331
  msgstr ""
332
 
333
+ #: inc/admin.php:450, tpl/js-templates.php:17, tpl/js-templates.php:19
334
  msgid "Add Row"
335
  msgstr ""
336
 
337
+ #: inc/admin.php:451
338
  msgid "Column"
339
  msgstr ""
340
 
341
+ #: inc/admin.php:453
342
  msgid "Cell Actions"
343
  msgstr ""
344
 
345
+ #: inc/admin.php:454
346
  msgid "Paste Widget"
347
  msgstr ""
348
 
349
+ #: inc/admin.php:456
350
  msgid "Widget Actions"
351
  msgstr ""
352
 
353
+ #: inc/admin.php:457
354
  msgid "Edit Widget"
355
  msgstr ""
356
 
357
+ #: inc/admin.php:458
358
  msgid "Duplicate Widget"
359
  msgstr ""
360
 
361
+ #: inc/admin.php:459
362
  msgid "Delete Widget"
363
  msgstr ""
364
 
365
+ #: inc/admin.php:460
366
  msgid "Copy Widget"
367
  msgstr ""
368
 
369
+ #: inc/admin.php:461
370
  msgid "Paste Widget Below"
371
  msgstr ""
372
 
373
+ #: inc/admin.php:463
374
  msgid "Row Actions"
375
  msgstr ""
376
 
377
+ #: inc/admin.php:464, tpl/js-templates.php:95
378
  msgid "Edit Row"
379
  msgstr ""
380
 
381
+ #: inc/admin.php:465, tpl/js-templates.php:96
382
  msgid "Duplicate Row"
383
  msgstr ""
384
 
385
+ #: inc/admin.php:466, tpl/js-templates.php:97
386
  msgid "Delete Row"
387
  msgstr ""
388
 
389
+ #: inc/admin.php:467
390
  msgid "Copy Row"
391
  msgstr ""
392
 
393
+ #: inc/admin.php:468
394
  msgid "Paste Row"
395
  msgstr ""
396
 
397
+ #: inc/admin.php:470
398
  msgid "Draft"
399
  msgstr ""
400
 
401
+ #: inc/admin.php:471
402
  msgid "Untitled"
403
  msgstr ""
404
 
405
+ #: inc/admin.php:473
406
  msgid "New Row"
407
  msgstr ""
408
 
409
+ #: inc/admin.php:474, inc/admin.php:482, inc/styles.php:216, tpl/js-templates.php:62
410
  msgid "Row"
411
  msgstr ""
412
 
413
+ #: inc/admin.php:477
414
  msgid "Hmmm... Adding layout elements is not enabled. Please check if Page Builder has been configured to allow adding elements."
415
  msgstr ""
416
 
417
+ #: inc/admin.php:478
418
  msgid "Add a {{%= items[0] %}} to get started."
419
  msgstr ""
420
 
421
+ #: inc/admin.php:479
422
  msgid "Add a {{%= items[0] %}} or {{%= items[1] %}} to get started."
423
  msgstr ""
424
 
425
+ #: inc/admin.php:480
426
  msgid "Add a {{%= items[0] %}}, {{%= items[1] %}} or {{%= items[2] %}} to get started."
427
  msgstr ""
428
 
429
+ #: inc/admin.php:481, inc/styles.php:368, tpl/js-templates.php:61
430
  msgid "Widget"
431
  msgstr ""
432
 
433
+ #: inc/admin.php:483, tpl/js-templates.php:63
434
  msgid "Prebuilt Layout"
435
  msgstr ""
436
 
437
+ #: inc/admin.php:485
438
  msgid "Read our %s if you need help."
439
  msgstr ""
440
 
441
+ #: inc/admin.php:486, tpl/js-templates.php:64
442
  msgid "documentation"
443
  msgstr ""
444
 
445
+ #: inc/admin.php:495
446
  msgid "Page Builder layouts"
447
  msgstr ""
448
 
449
+ #: inc/admin.php:496
450
  msgid "Error uploading or importing file."
451
  msgstr ""
452
 
453
+ #: inc/admin.php:503
454
  msgid "Unknown error. Failed to load the form. Please check your internet connection, contact your web site administrator, or try again later."
455
  msgstr ""
456
 
457
  #. translators: This is the default name given to a user's home page
458
+ #: inc/admin.php:687, inc/home.php:26
459
  msgid "Home Page"
460
  msgstr ""
461
 
462
+ #: inc/admin.php:788
463
  msgid "Untitled Widget"
464
  msgstr ""
465
 
466
+ #: inc/admin.php:968
467
  msgid "You need to install 1{%1$s} to use the widget 2{%2$s}."
468
  msgstr ""
469
 
470
+ #: inc/admin.php:974
471
  msgid "Save and reload this page to start using the widget after you've installed it."
472
  msgstr ""
473
 
474
+ #: inc/admin.php:990
475
  msgid "The widget 1{%1$s} is not available. Please try locate and install the missing plugin. Post on the 2{support forums} if you need help."
476
  msgstr ""
477
 
478
+ #: inc/admin.php:1170, inc/styles-admin.php:25
479
  msgid "The supplied nonce is invalid."
480
  msgstr ""
481
 
482
+ #: inc/admin.php:1171, inc/styles-admin.php:26
483
  msgid "Invalid nonce."
484
  msgstr ""
485
 
486
+ #: inc/admin.php:1177
487
  msgid "Please specify the type of widget form to be rendered."
488
  msgstr ""
489
 
490
+ #: inc/admin.php:1178
491
  msgid "Missing widget type."
492
  msgstr ""
493
 
494
+ #: inc/admin.php:1285
495
  msgid "%s Widget"
496
  msgid_plural "%s Widgets"
497
  msgstr[0] ""
498
  msgstr[1] ""
499
 
500
+ #: inc/admin.php:1328
501
  msgid "Get a lightbox addon for SiteOrigin widgets"
502
  msgstr ""
503
 
504
+ #: inc/admin.php:1332
505
  msgid "Get the row, cell and widget animations addon"
506
  msgstr ""
507
 
508
+ #: inc/admin.php:1336
509
  msgid "Get premium email support for SiteOrigin Page Builder"
510
  msgstr ""
511
 
512
+ #: inc/admin.php:1521
513
  msgid "Toggle editor selection menu"
514
  msgstr ""
515
 
516
+ #: inc/admin.php:1522, inc/admin.php:1569, inc/settings.php:210, settings/tpl/settings.php:9
517
  msgid "SiteOrigin Page Builder"
518
  msgstr ""
519
 
520
+ #: inc/admin.php:1523
521
  msgid "Block Editor"
522
  msgstr ""
523
 
525
  msgid "Custom Home Page Builder"
526
  msgstr ""
527
 
528
+ #: inc/renderer.php:315
529
  msgid "Prevented SiteOrigin layout from repeated rendering."
530
  msgstr ""
531
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Tags: page builder, responsive, parallax, widgets, blocks, gallery, layout, grid
3
  Requires at least: 4.7
4
  Tested up to: 5.7
5
  Requires PHP: 5.6.20
6
- Stable tag: 2.12.1
7
- Build time: 2021-05-11T17:12:29+02:00
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
  Donate link: https://siteorigin.com/downloads/premium/
@@ -103,6 +103,12 @@ SiteOrigin Premium also includes access to our next-level email support service,
103
 
104
  == Changelog ==
105
 
 
 
 
 
 
 
106
  = 2.12.1 - 11 May 2021 =
107
  * Prevented potential repeated rendering of layouts.
108
  * Moved the Page Builder metabox PHP outside of the metabox template.
3
  Requires at least: 4.7
4
  Tested up to: 5.7
5
  Requires PHP: 5.6.20
6
+ Stable tag: 2.12.2
7
+ Build time: 2021-05-21T13:44:59+02:00
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
  Donate link: https://siteorigin.com/downloads/premium/
103
 
104
  == Changelog ==
105
 
106
+ = 2.12.2 - 21 May 2021 =
107
+ * ACF: Added a check to ensure 5.7.10+ is active before loading Page Builder compatibility.
108
+ * Lazy Load: Added support for WP Rocket Lazy Load.
109
+ * Gravity Forms: Added compatibility to ensure conditional forms function normally when added via the Form widget.
110
+ * Developer: Stopped checking for repeated rendering if `$panels_data` was supplied.
111
+
112
  = 2.12.1 - 11 May 2021 =
113
  * Prevented potential repeated rendering of layouts.
114
  * Moved the Page Builder metabox PHP outside of the metabox template.
siteorigin-panels.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Page Builder by SiteOrigin
4
  Plugin URI: https://siteorigin.com/page-builder/
5
  Description: A drag and drop, responsive page builder that simplifies building your website.
6
- Version: 2.12.1
7
  Author: SiteOrigin
8
  Author URI: https://siteorigin.com
9
  License: GPL3
@@ -11,7 +11,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
11
  Donate link: http://siteorigin.com/page-builder/#donate
12
  */
13
 
14
- define( 'SITEORIGIN_PANELS_VERSION', '2.12.1' );
15
  if ( ! defined( 'SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
16
  define( 'SITEORIGIN_PANELS_JS_SUFFIX', '.min' );
17
  }
@@ -212,10 +212,23 @@ class SiteOrigin_Panels {
212
  require_once plugin_dir_path( __FILE__ ) . 'compat/amp.php';
213
  }
214
 
215
- $lazy_load_settings = get_option( 'rocket_lazyload_options' );
216
- $load_lazy_load_compat = defined( 'ROCKET_LL_VERSION' ) && ! empty( $lazy_load_settings ) && ! empty( $lazy_load_settings['images'] );
 
 
 
 
 
 
 
 
 
 
 
 
 
217
 
218
- if ( $load_lazy_load_compat || apply_filters( 'siteorigin_lazyload_compat', false ) ) {
219
  require_once plugin_dir_path( __FILE__ ) . 'compat/lazy-load-backgrounds.php';
220
  }
221
  }
3
  Plugin Name: Page Builder by SiteOrigin
4
  Plugin URI: https://siteorigin.com/page-builder/
5
  Description: A drag and drop, responsive page builder that simplifies building your website.
6
+ Version: 2.12.2
7
  Author: SiteOrigin
8
  Author URI: https://siteorigin.com
9
  License: GPL3
11
  Donate link: http://siteorigin.com/page-builder/#donate
12
  */
13
 
14
+ define( 'SITEORIGIN_PANELS_VERSION', '2.12.2' );
15
  if ( ! defined( 'SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
16
  define( 'SITEORIGIN_PANELS_JS_SUFFIX', '.min' );
17
  }
212
  require_once plugin_dir_path( __FILE__ ) . 'compat/amp.php';
213
  }
214
 
215
+
216
+ // Compatibility with Gravity Forms.
217
+ if ( class_exists( 'GFCommon' ) ) {
218
+ require_once plugin_dir_path( __FILE__ ) . 'compat/gravity-forms.php';
219
+ }
220
+
221
+ $load_lazy_load_compat = false;
222
+ // LazyLoad by WP Rocket.
223
+ if ( defined( 'ROCKET_LL_VERSION' ) ) {
224
+ $lazy_load_settings = get_option( 'rocket_lazyload_options' );
225
+ $load_lazy_load_compat = ! empty( $lazy_load_settings ) && ! empty( $lazy_load_settings['images'] );
226
+ // WP Rocket
227
+ } elseif ( function_exists( 'get_rocket_option' ) && ! defined( 'DONOTROCKETOPTIMIZE' ) ) {
228
+ $load_lazy_load_compat = get_rocket_option( 'lazyload' ) && apply_filters( 'do_rocket_lazyload', true );
229
+ }
230
 
231
+ if ( apply_filters( 'siteorigin_lazyload_compat', $load_lazy_load_compat ) ) {
232
  require_once plugin_dir_path( __FILE__ ) . 'compat/lazy-load-backgrounds.php';
233
  }
234
  }