Page Builder by SiteOrigin - Version 2.5.3

Version Description

  • 9 May 2017 =
  • Added legacy function wrapper for siteorigin_panels_generate_css
  • Added more cache render checks
  • Handle translation of Learn submodule strings
  • Added screenshot argument to preview URL
Download this release

Release Info

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

Code changes from version 2.5.2 to 2.5.3

inc/admin-layouts.php CHANGED
@@ -134,7 +134,8 @@ class SiteOrigin_Panels_Admin_Layouts {
134
  $item['type'] = $type;
135
 
136
  if( empty( $item['screenshot'] ) && ! empty( $item['preview'] ) ) {
137
- $item['screenshot'] = 'https://s.wordpress.com/mshots/v1/' . urlencode( $item[ 'preview' ] ) . '?w=700';
 
138
  }
139
 
140
  $return['items'][] = $item;
134
  $item['type'] = $type;
135
 
136
  if( empty( $item['screenshot'] ) && ! empty( $item['preview'] ) ) {
137
+ $preview_url = add_query_arg( 'screenshot', 'true', $item[ 'preview' ] );
138
+ $item['screenshot'] = 'https://s.wordpress.com/mshots/v1/' . urlencode( $preview_url ) . '?w=700';
139
  }
140
 
141
  $return['items'][] = $item;
inc/admin.php CHANGED
@@ -86,11 +86,12 @@ class SiteOrigin_Panels_Admin {
86
  }
87
  }
88
  }
89
-
90
  if( self::is_admin() ) {
91
- // Setup everything for Page Builder learning
92
  SiteOrigin_Learn_Dialog::single();
93
  add_filter( 'siteorigin_learn_lessons', array( $this, 'filter_learn_lessons' ) );
 
94
  }
95
  }
96
 
@@ -1018,5 +1019,26 @@ class SiteOrigin_Panels_Admin {
1018
 
1019
  return $lessons;
1020
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1021
 
1022
  }
86
  }
87
  }
88
  }
89
+
90
  if( self::is_admin() ) {
91
+ // Setup everything for Page Builder learning as long as we're viewing a Page Builder page
92
  SiteOrigin_Learn_Dialog::single();
93
  add_filter( 'siteorigin_learn_lessons', array( $this, 'filter_learn_lessons' ) );
94
+ add_filter( 'siteorigin_learn_strings', array( $this, 'filter_learn_strings' ), 99 );
95
  }
96
  }
97
 
1019
 
1020
  return $lessons;
1021
  }
1022
+
1023
+ /**
1024
+ * Filter the translation strings for SiteOrigin learning dialogs
1025
+ *
1026
+ * @param $strings
1027
+ *
1028
+ * @return array
1029
+ */
1030
+ public function filter_learn_strings( $strings ){
1031
+ $strings = array(
1032
+ 'watch_video' => __( 'Watch Intro Video', 'siteorigin-panels' ),
1033
+ 'loaded_from_vimeo' => __( 'Loaded from Vimeo Servers', 'siteorigin-panels' ),
1034
+ 'valid_email' => __( 'Please enter a valid email address.', 'siteorigin-panels' ),
1035
+
1036
+ 'your_name' => __( 'Your Name', 'siteorigin-panels' ),
1037
+ 'your_email' => __( 'Your Email', 'siteorigin-panels' ),
1038
+ 'sign_up' => __( 'Sign Up', 'siteorigin-panels' ),
1039
+ 'close' => __( 'Close', 'siteorigin-panels' ),
1040
+ );
1041
+ return $strings;
1042
+ }
1043
 
1044
  }
inc/functions.php CHANGED
@@ -41,6 +41,17 @@ function siteorigin_panels_render( $post_id = false, $enqueue_css = true, $panel
41
  return SiteOrigin_Panels::renderer()->render( $post_id, $enqueue_css, $panels_data );
42
  }
43
 
 
 
 
 
 
 
 
 
 
 
 
44
  /**
45
  * Legacy function to process raw widgets.
46
  *
41
  return SiteOrigin_Panels::renderer()->render( $post_id, $enqueue_css, $panels_data );
42
  }
43
 
44
+ /**
45
+ * Generate the CSS for the page layout.
46
+ *
47
+ * @param $post_id
48
+ * @param $panels_data
49
+ * @return string
50
+ */
51
+ function siteorigin_panels_generate_css($post_id, $panels_data = false){
52
+ return SiteOrigin_Panels::renderer()->generate_css( $post_id, $panels_data );
53
+ }
54
+
55
  /**
56
  * Legacy function to process raw widgets.
57
  *
inc/styles.php CHANGED
@@ -334,7 +334,10 @@ class SiteOrigin_Panels_Styles {
334
  */
335
  static function general_style_attributes( $attributes, $style ){
336
  if ( ! empty( $style['class'] ) ) {
337
- $attributes['class'] = array_merge( $attributes['class'], explode( ' ', $style['class'] ) );
 
 
 
338
  }
339
 
340
  if ( ! empty( $style['background_display'] ) && ! empty( $style['background_image_attachment'] ) ) {
334
  */
335
  static function general_style_attributes( $attributes, $style ){
336
  if ( ! empty( $style['class'] ) ) {
337
+ if( ! is_array( $style['class'] ) ) {
338
+ $style['class'] = explode( ' ', $style[ 'class' ] );
339
+ }
340
+ $attributes['class'] = array_merge( $attributes['class'], $style['class'] );
341
  }
342
 
343
  if ( ! empty( $style['background_display'] ) && ! empty( $style['background_image_attachment'] ) ) {
inc/widget-shortcode.php CHANGED
@@ -97,8 +97,10 @@ class SiteOrigin_Panels_Widget_Shortcode {
97
  */
98
  static function widget_html( $html, $widget, $args, $instance ){
99
  if(
 
100
  // Don't try create HTML if there already is some
101
  ! empty( $html ) ||
 
102
  // Skip for known text based widgets
103
  in_array( get_class( $widget ), self::$text_widgets )
104
  ) {
97
  */
98
  static function widget_html( $html, $widget, $args, $instance ){
99
  if(
100
+ empty( $GLOBALS[ 'SITEORIGIN_PANELS_CACHE_RENDER' ] ) ||
101
  // Don't try create HTML if there already is some
102
  ! empty( $html ) ||
103
+ ! is_object( $widget ) ||
104
  // Skip for known text based widgets
105
  in_array( get_class( $widget ), self::$text_widgets )
106
  ) {
lang/siteorigin-panels.pot CHANGED
@@ -25,11 +25,11 @@ msgstr ""
25
  msgid "Theme Defined Layouts"
26
  msgstr ""
27
 
28
- #: tmp/inc/admin-layouts.php:153
29
  msgid "Clone %s"
30
  msgstr ""
31
 
32
- #: tmp/inc/admin-layouts.php:191
33
  msgid " - Results For:"
34
  msgstr ""
35
 
@@ -73,314 +73,342 @@ msgstr ""
73
  msgid "Installing %s"
74
  msgstr ""
75
 
76
- #: tmp/inc/admin.php:118
77
  msgid "Support Forum"
78
  msgstr ""
79
 
80
- #: tmp/inc/admin.php:119
81
  msgid "Newsletter"
82
  msgstr ""
83
 
84
- #: tmp/inc/admin.php:131, tmp/inc/admin.php:452, tmp/inc/admin.php:937, tmp/inc/admin.php:942, tmp/inc/settings.php:186, tmp/tpl/js-templates.php:201
85
  msgid "Page Builder"
86
  msgstr ""
87
 
88
- #: tmp/inc/admin.php:258
89
  msgid "All Widgets"
90
  msgstr ""
91
 
92
- #: tmp/inc/admin.php:283
93
  msgid "Missing Widget"
94
  msgstr ""
95
 
96
- #: tmp/inc/admin.php:284
97
  msgid "Page Builder doesn't know about this widget."
98
  msgstr ""
99
 
100
- #: tmp/inc/admin.php:288
101
  msgid "%d seconds"
102
  msgstr ""
103
 
104
- #: tmp/inc/admin.php:290
105
  msgid "%d minutes"
106
  msgstr ""
107
 
108
- #: tmp/inc/admin.php:292
109
  msgid "%d hours"
110
  msgstr ""
111
 
112
- #: tmp/inc/admin.php:295
113
  msgid "%d second"
114
  msgstr ""
115
 
116
- #: tmp/inc/admin.php:297
117
  msgid "%d minute"
118
  msgstr ""
119
 
120
- #: tmp/inc/admin.php:299
121
  msgid "%d hour"
122
  msgstr ""
123
 
124
- #: tmp/inc/admin.php:302
125
  msgid "%s before"
126
  msgstr ""
127
 
128
- #: tmp/inc/admin.php:303
129
  msgid "Now"
130
  msgstr ""
131
 
132
- #: tmp/inc/admin.php:307
133
  msgid "Current"
134
  msgstr ""
135
 
136
- #: tmp/inc/admin.php:308
137
  msgid "Original"
138
  msgstr ""
139
 
140
- #: tmp/inc/admin.php:309
141
  msgid "Version restored"
142
  msgstr ""
143
 
144
- #: tmp/inc/admin.php:310
145
  msgid "Converted to editor"
146
  msgstr ""
147
 
148
- #: tmp/inc/admin.php:314
149
  msgid "Widget deleted"
150
  msgstr ""
151
 
152
- #: tmp/inc/admin.php:316
153
  msgid "Widget added"
154
  msgstr ""
155
 
156
- #: tmp/inc/admin.php:318
157
  msgid "Widget edited"
158
  msgstr ""
159
 
160
- #: tmp/inc/admin.php:320
161
  msgid "Widget duplicated"
162
  msgstr ""
163
 
164
- #: tmp/inc/admin.php:322
165
  msgid "Widget moved"
166
  msgstr ""
167
 
168
- #: tmp/inc/admin.php:326
169
  msgid "Row deleted"
170
  msgstr ""
171
 
172
- #: tmp/inc/admin.php:328
173
  msgid "Row added"
174
  msgstr ""
175
 
176
- #: tmp/inc/admin.php:330
177
  msgid "Row edited"
178
  msgstr ""
179
 
180
- #: tmp/inc/admin.php:332
181
  msgid "Row moved"
182
  msgstr ""
183
 
184
- #: tmp/inc/admin.php:334
185
  msgid "Row duplicated"
186
  msgstr ""
187
 
188
- #: tmp/inc/admin.php:336
189
  msgid "Row pasted"
190
  msgstr ""
191
 
192
- #: tmp/inc/admin.php:339
193
  msgid "Cell resized"
194
  msgstr ""
195
 
196
- #: tmp/inc/admin.php:342
197
  msgid "Prebuilt layout loaded"
198
  msgstr ""
199
 
200
- #: tmp/inc/admin.php:346
201
  msgid "Loading prebuilt layout"
202
  msgstr ""
203
 
204
- #: tmp/inc/admin.php:347
205
  msgid "Would you like to copy this editor's existing content to Page Builder?"
206
  msgstr ""
207
 
208
- #: tmp/inc/admin.php:348
209
  msgid "Would you like to clear your Page Builder content and revert to using the standard visual editor?"
210
  msgstr ""
211
 
212
- #: tmp/inc/admin.php:350
213
  msgid "Layout Builder Widget"
214
  msgstr ""
215
 
216
- #: tmp/inc/admin.php:352, tmp/tpl/js-templates.php:105, tmp/tpl/js-templates.php:424
217
  msgid "Are you sure?"
218
  msgstr ""
219
 
220
- #: tmp/inc/admin.php:354
221
  msgid "%s is ready to insert."
222
  msgstr ""
223
 
224
- #: tmp/inc/admin.php:358
225
  msgid "Add Widget Below"
226
  msgstr ""
227
 
228
- #: tmp/inc/admin.php:359
229
  msgid "Add Widget to Cell"
230
  msgstr ""
231
 
232
- #: tmp/inc/admin.php:360, tmp/tpl/js-templates.php:228
233
  msgid "Search Widgets"
234
  msgstr ""
235
 
236
- #: tmp/inc/admin.php:362, tmp/tpl/js-templates.php:17, tmp/tpl/js-templates.php:19
237
  msgid "Add Row"
238
  msgstr ""
239
 
240
- #: tmp/inc/admin.php:363
241
  msgid "Column"
242
  msgstr ""
243
 
244
- #: tmp/inc/admin.php:365
245
  msgid "Cell Actions"
246
  msgstr ""
247
 
248
- #: tmp/inc/admin.php:366
249
  msgid "Paste Widget"
250
  msgstr ""
251
 
252
- #: tmp/inc/admin.php:368
253
  msgid "Widget Actions"
254
  msgstr ""
255
 
256
- #: tmp/inc/admin.php:369
257
  msgid "Edit Widget"
258
  msgstr ""
259
 
260
- #: tmp/inc/admin.php:370
261
  msgid "Duplicate Widget"
262
  msgstr ""
263
 
264
- #: tmp/inc/admin.php:371
265
  msgid "Delete Widget"
266
  msgstr ""
267
 
268
- #: tmp/inc/admin.php:372
269
  msgid "Copy Widget"
270
  msgstr ""
271
 
272
- #: tmp/inc/admin.php:373
273
  msgid "Paste Widget Below"
274
  msgstr ""
275
 
276
- #: tmp/inc/admin.php:375
277
  msgid "Row Actions"
278
  msgstr ""
279
 
280
- #: tmp/inc/admin.php:376, tmp/tpl/js-templates.php:103
281
  msgid "Edit Row"
282
  msgstr ""
283
 
284
- #: tmp/inc/admin.php:377, tmp/tpl/js-templates.php:104
285
  msgid "Duplicate Row"
286
  msgstr ""
287
 
288
- #: tmp/inc/admin.php:378, tmp/tpl/js-templates.php:105
289
  msgid "Delete Row"
290
  msgstr ""
291
 
292
- #: tmp/inc/admin.php:379
293
  msgid "Copy Row"
294
  msgstr ""
295
 
296
- #: tmp/inc/admin.php:380
297
  msgid "Paste Row"
298
  msgstr ""
299
 
300
- #: tmp/inc/admin.php:382
301
  msgid "Draft"
302
  msgstr ""
303
 
304
- #: tmp/inc/admin.php:383
305
  msgid "Untitled"
306
  msgstr ""
307
 
308
- #: tmp/inc/admin.php:385
309
  msgid "New Row"
310
  msgstr ""
311
 
312
- #: tmp/inc/admin.php:386, tmp/inc/styles.php:173, tmp/tpl/js-templates.php:68
313
  msgid "Row"
314
  msgstr ""
315
 
316
- #: tmp/inc/admin.php:394
317
  msgid "Page Builder layouts"
318
  msgstr ""
319
 
320
- #: tmp/inc/admin.php:395
321
  msgid "Error uploading or importing file."
322
  msgstr ""
323
 
324
- #: tmp/inc/admin.php:533, tmp/inc/home.php:26
325
  msgid "Home Page"
326
  msgstr ""
327
 
328
- #: tmp/inc/admin.php:627
329
  msgid "Untitled Widget"
330
  msgstr ""
331
 
332
- #: tmp/inc/admin.php:792
333
  msgid "You need to install 1{%1$s} to use the widget 2{%2$s}."
334
  msgstr ""
335
 
336
- #: tmp/inc/admin.php:798
337
  msgid "Save and reload this page to start using the widget after you've installed it."
338
  msgstr ""
339
 
340
- #: tmp/inc/admin.php:814
341
  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."
342
  msgstr ""
343
 
344
- #: tmp/inc/admin.php:954
345
  msgid "%s Widgets"
346
  msgstr ""
347
 
348
- #: tmp/inc/admin.php:1000
349
  msgid "12 Page Builder Tips"
350
  msgstr ""
351
 
352
- #: tmp/inc/admin.php:1003
353
  msgid "Sign up to our newsletter and we'll send you this free Page Builder video course."
354
  msgstr ""
355
 
356
- #: tmp/inc/admin.php:1004
357
  msgid "12 tips that'll help you get the most out of Page Builder."
358
  msgstr ""
359
 
360
- #: tmp/inc/admin.php:1005
361
  msgid "Watch the video to find out more, then sign up below to get started."
362
  msgstr ""
363
 
364
- #: tmp/inc/admin.php:1006, tmp/inc/admin.php:1016
365
  msgid "We'll email you a confirmation. You can unsubscribe at any time."
366
  msgstr ""
367
 
368
- #: tmp/inc/admin.php:1010
369
  msgid "Free Page Builder Addons"
370
  msgstr ""
371
 
372
- #: tmp/inc/admin.php:1013
373
  msgid "The free animations addon allows you to add beautiful animations to Page Builder elements."
374
  msgstr ""
375
 
376
- #: tmp/inc/admin.php:1014
377
  msgid "Sign up to our newsletter and we'll send you the addon as a free gift."
378
  msgstr ""
379
 
380
- #: tmp/inc/admin.php:1015
381
  msgid "Plus, we'll send you even more powerful addons, for as long as you're subscribed."
382
  msgstr ""
383
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
384
  #: tmp/inc/data/widgets-bundle.php:7
385
  msgid "SiteOrigin Editor"
386
  msgstr ""
@@ -925,34 +953,6 @@ msgstr ""
925
  msgid "Color of links inside this widget."
926
  msgstr ""
927
 
928
- #: tmp/learn/tpl/dialog.php:17
929
- msgid "Watch Intro Video"
930
- msgstr ""
931
-
932
- #: tmp/learn/tpl/dialog.php:18
933
- msgid "Loaded from Vimeo Servers"
934
- msgstr ""
935
-
936
- #: tmp/learn/tpl/dialog.php:29
937
- msgid "Please enter a valid email"
938
- msgstr ""
939
-
940
- #: tmp/learn/tpl/dialog.php:32
941
- msgid "Your Name"
942
- msgstr ""
943
-
944
- #: tmp/learn/tpl/dialog.php:37
945
- msgid "Your Email"
946
- msgstr ""
947
-
948
- #: tmp/learn/tpl/dialog.php:41
949
- msgid "Sign Up"
950
- msgstr ""
951
-
952
- #: tmp/learn/tpl/dialog.php:47, tmp/tpl/js-templates.php:240
953
- msgid "Close"
954
- msgstr ""
955
-
956
  #: tmp/settings/tpl/help.php:6
957
  msgid "Please read the 1{settings guide} of the Page Builder documentation for help."
958
  msgstr ""
25
  msgid "Theme Defined Layouts"
26
  msgstr ""
27
 
28
+ #: tmp/inc/admin-layouts.php:154
29
  msgid "Clone %s"
30
  msgstr ""
31
 
32
+ #: tmp/inc/admin-layouts.php:192
33
  msgid " - Results For:"
34
  msgstr ""
35
 
73
  msgid "Installing %s"
74
  msgstr ""
75
 
76
+ #: tmp/inc/admin.php:119
77
  msgid "Support Forum"
78
  msgstr ""
79
 
80
+ #: tmp/inc/admin.php:120
81
  msgid "Newsletter"
82
  msgstr ""
83
 
84
+ #: tmp/inc/admin.php:132, tmp/inc/admin.php:453, tmp/inc/admin.php:938, tmp/inc/admin.php:943, tmp/inc/settings.php:186, tmp/tpl/js-templates.php:201
85
  msgid "Page Builder"
86
  msgstr ""
87
 
88
+ #: tmp/inc/admin.php:259
89
  msgid "All Widgets"
90
  msgstr ""
91
 
92
+ #: tmp/inc/admin.php:284
93
  msgid "Missing Widget"
94
  msgstr ""
95
 
96
+ #: tmp/inc/admin.php:285
97
  msgid "Page Builder doesn't know about this widget."
98
  msgstr ""
99
 
100
+ #: tmp/inc/admin.php:289
101
  msgid "%d seconds"
102
  msgstr ""
103
 
104
+ #: tmp/inc/admin.php:291
105
  msgid "%d minutes"
106
  msgstr ""
107
 
108
+ #: tmp/inc/admin.php:293
109
  msgid "%d hours"
110
  msgstr ""
111
 
112
+ #: tmp/inc/admin.php:296
113
  msgid "%d second"
114
  msgstr ""
115
 
116
+ #: tmp/inc/admin.php:298
117
  msgid "%d minute"
118
  msgstr ""
119
 
120
+ #: tmp/inc/admin.php:300
121
  msgid "%d hour"
122
  msgstr ""
123
 
124
+ #: tmp/inc/admin.php:303
125
  msgid "%s before"
126
  msgstr ""
127
 
128
+ #: tmp/inc/admin.php:304
129
  msgid "Now"
130
  msgstr ""
131
 
132
+ #: tmp/inc/admin.php:308
133
  msgid "Current"
134
  msgstr ""
135
 
136
+ #: tmp/inc/admin.php:309
137
  msgid "Original"
138
  msgstr ""
139
 
140
+ #: tmp/inc/admin.php:310
141
  msgid "Version restored"
142
  msgstr ""
143
 
144
+ #: tmp/inc/admin.php:311
145
  msgid "Converted to editor"
146
  msgstr ""
147
 
148
+ #: tmp/inc/admin.php:315
149
  msgid "Widget deleted"
150
  msgstr ""
151
 
152
+ #: tmp/inc/admin.php:317
153
  msgid "Widget added"
154
  msgstr ""
155
 
156
+ #: tmp/inc/admin.php:319
157
  msgid "Widget edited"
158
  msgstr ""
159
 
160
+ #: tmp/inc/admin.php:321
161
  msgid "Widget duplicated"
162
  msgstr ""
163
 
164
+ #: tmp/inc/admin.php:323
165
  msgid "Widget moved"
166
  msgstr ""
167
 
168
+ #: tmp/inc/admin.php:327
169
  msgid "Row deleted"
170
  msgstr ""
171
 
172
+ #: tmp/inc/admin.php:329
173
  msgid "Row added"
174
  msgstr ""
175
 
176
+ #: tmp/inc/admin.php:331
177
  msgid "Row edited"
178
  msgstr ""
179
 
180
+ #: tmp/inc/admin.php:333
181
  msgid "Row moved"
182
  msgstr ""
183
 
184
+ #: tmp/inc/admin.php:335
185
  msgid "Row duplicated"
186
  msgstr ""
187
 
188
+ #: tmp/inc/admin.php:337
189
  msgid "Row pasted"
190
  msgstr ""
191
 
192
+ #: tmp/inc/admin.php:340
193
  msgid "Cell resized"
194
  msgstr ""
195
 
196
+ #: tmp/inc/admin.php:343
197
  msgid "Prebuilt layout loaded"
198
  msgstr ""
199
 
200
+ #: tmp/inc/admin.php:347
201
  msgid "Loading prebuilt layout"
202
  msgstr ""
203
 
204
+ #: tmp/inc/admin.php:348
205
  msgid "Would you like to copy this editor's existing content to Page Builder?"
206
  msgstr ""
207
 
208
+ #: tmp/inc/admin.php:349
209
  msgid "Would you like to clear your Page Builder content and revert to using the standard visual editor?"
210
  msgstr ""
211
 
212
+ #: tmp/inc/admin.php:351
213
  msgid "Layout Builder Widget"
214
  msgstr ""
215
 
216
+ #: tmp/inc/admin.php:353, tmp/tpl/js-templates.php:105, tmp/tpl/js-templates.php:424
217
  msgid "Are you sure?"
218
  msgstr ""
219
 
220
+ #: tmp/inc/admin.php:355
221
  msgid "%s is ready to insert."
222
  msgstr ""
223
 
224
+ #: tmp/inc/admin.php:359
225
  msgid "Add Widget Below"
226
  msgstr ""
227
 
228
+ #: tmp/inc/admin.php:360
229
  msgid "Add Widget to Cell"
230
  msgstr ""
231
 
232
+ #: tmp/inc/admin.php:361, tmp/tpl/js-templates.php:228
233
  msgid "Search Widgets"
234
  msgstr ""
235
 
236
+ #: tmp/inc/admin.php:363, tmp/tpl/js-templates.php:17, tmp/tpl/js-templates.php:19
237
  msgid "Add Row"
238
  msgstr ""
239
 
240
+ #: tmp/inc/admin.php:364
241
  msgid "Column"
242
  msgstr ""
243
 
244
+ #: tmp/inc/admin.php:366
245
  msgid "Cell Actions"
246
  msgstr ""
247
 
248
+ #: tmp/inc/admin.php:367
249
  msgid "Paste Widget"
250
  msgstr ""
251
 
252
+ #: tmp/inc/admin.php:369
253
  msgid "Widget Actions"
254
  msgstr ""
255
 
256
+ #: tmp/inc/admin.php:370
257
  msgid "Edit Widget"
258
  msgstr ""
259
 
260
+ #: tmp/inc/admin.php:371
261
  msgid "Duplicate Widget"
262
  msgstr ""
263
 
264
+ #: tmp/inc/admin.php:372
265
  msgid "Delete Widget"
266
  msgstr ""
267
 
268
+ #: tmp/inc/admin.php:373
269
  msgid "Copy Widget"
270
  msgstr ""
271
 
272
+ #: tmp/inc/admin.php:374
273
  msgid "Paste Widget Below"
274
  msgstr ""
275
 
276
+ #: tmp/inc/admin.php:376
277
  msgid "Row Actions"
278
  msgstr ""
279
 
280
+ #: tmp/inc/admin.php:377, tmp/tpl/js-templates.php:103
281
  msgid "Edit Row"
282
  msgstr ""
283
 
284
+ #: tmp/inc/admin.php:378, tmp/tpl/js-templates.php:104
285
  msgid "Duplicate Row"
286
  msgstr ""
287
 
288
+ #: tmp/inc/admin.php:379, tmp/tpl/js-templates.php:105
289
  msgid "Delete Row"
290
  msgstr ""
291
 
292
+ #: tmp/inc/admin.php:380
293
  msgid "Copy Row"
294
  msgstr ""
295
 
296
+ #: tmp/inc/admin.php:381
297
  msgid "Paste Row"
298
  msgstr ""
299
 
300
+ #: tmp/inc/admin.php:383
301
  msgid "Draft"
302
  msgstr ""
303
 
304
+ #: tmp/inc/admin.php:384
305
  msgid "Untitled"
306
  msgstr ""
307
 
308
+ #: tmp/inc/admin.php:386
309
  msgid "New Row"
310
  msgstr ""
311
 
312
+ #: tmp/inc/admin.php:387, tmp/inc/styles.php:173, tmp/tpl/js-templates.php:68
313
  msgid "Row"
314
  msgstr ""
315
 
316
+ #: tmp/inc/admin.php:395
317
  msgid "Page Builder layouts"
318
  msgstr ""
319
 
320
+ #: tmp/inc/admin.php:396
321
  msgid "Error uploading or importing file."
322
  msgstr ""
323
 
324
+ #: tmp/inc/admin.php:534, tmp/inc/home.php:26
325
  msgid "Home Page"
326
  msgstr ""
327
 
328
+ #: tmp/inc/admin.php:628
329
  msgid "Untitled Widget"
330
  msgstr ""
331
 
332
+ #: tmp/inc/admin.php:793
333
  msgid "You need to install 1{%1$s} to use the widget 2{%2$s}."
334
  msgstr ""
335
 
336
+ #: tmp/inc/admin.php:799
337
  msgid "Save and reload this page to start using the widget after you've installed it."
338
  msgstr ""
339
 
340
+ #: tmp/inc/admin.php:815
341
  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."
342
  msgstr ""
343
 
344
+ #: tmp/inc/admin.php:955
345
  msgid "%s Widgets"
346
  msgstr ""
347
 
348
+ #: tmp/inc/admin.php:1001
349
  msgid "12 Page Builder Tips"
350
  msgstr ""
351
 
352
+ #: tmp/inc/admin.php:1004
353
  msgid "Sign up to our newsletter and we'll send you this free Page Builder video course."
354
  msgstr ""
355
 
356
+ #: tmp/inc/admin.php:1005
357
  msgid "12 tips that'll help you get the most out of Page Builder."
358
  msgstr ""
359
 
360
+ #: tmp/inc/admin.php:1006
361
  msgid "Watch the video to find out more, then sign up below to get started."
362
  msgstr ""
363
 
364
+ #: tmp/inc/admin.php:1007, tmp/inc/admin.php:1017
365
  msgid "We'll email you a confirmation. You can unsubscribe at any time."
366
  msgstr ""
367
 
368
+ #: tmp/inc/admin.php:1011
369
  msgid "Free Page Builder Addons"
370
  msgstr ""
371
 
372
+ #: tmp/inc/admin.php:1014
373
  msgid "The free animations addon allows you to add beautiful animations to Page Builder elements."
374
  msgstr ""
375
 
376
+ #: tmp/inc/admin.php:1015
377
  msgid "Sign up to our newsletter and we'll send you the addon as a free gift."
378
  msgstr ""
379
 
380
+ #: tmp/inc/admin.php:1016
381
  msgid "Plus, we'll send you even more powerful addons, for as long as you're subscribed."
382
  msgstr ""
383
 
384
+ #: tmp/inc/admin.php:1032
385
+ msgid "Watch Intro Video"
386
+ msgstr ""
387
+
388
+ #: tmp/inc/admin.php:1033
389
+ msgid "Loaded from Vimeo Servers"
390
+ msgstr ""
391
+
392
+ #: tmp/inc/admin.php:1034
393
+ msgid "Please enter a valid email address."
394
+ msgstr ""
395
+
396
+ #: tmp/inc/admin.php:1036
397
+ msgid "Your Name"
398
+ msgstr ""
399
+
400
+ #: tmp/inc/admin.php:1037
401
+ msgid "Your Email"
402
+ msgstr ""
403
+
404
+ #: tmp/inc/admin.php:1038
405
+ msgid "Sign Up"
406
+ msgstr ""
407
+
408
+ #: tmp/inc/admin.php:1039, tmp/tpl/js-templates.php:240
409
+ msgid "Close"
410
+ msgstr ""
411
+
412
  #: tmp/inc/data/widgets-bundle.php:7
413
  msgid "SiteOrigin Editor"
414
  msgstr ""
953
  msgid "Color of links inside this widget."
954
  msgstr ""
955
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
956
  #: tmp/settings/tpl/help.php:6
957
  msgid "Please read the 1{settings guide} of the Page Builder documentation for help."
958
  msgstr ""
learn/learn.php CHANGED
@@ -1,53 +1,70 @@
1
  <?php
2
 
3
- class SiteOrigin_Learn_Dialog {
4
-
5
- private $lessons;
6
- const SUBMIT_URL = 'https://siteorigin.com/wp-admin/admin-ajax.php?action=lesson_signup_submit';
7
-
8
- function __construct(){
9
- $this->lessons = array();
10
- add_action( 'admin_footer', array( $this, 'admin_footer' ) );
11
- add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ), 100 );
12
- }
13
-
14
- public static function single() {
15
- static $single;
16
- return empty( $single ) ? $single = new self() : $single;
17
- }
18
-
19
- /**
20
- * Add a course that we might display
21
- *
22
- * @param $id
23
- * @param $data
24
- */
25
- public function add_lessons( $id, $data ) {
26
- $this->lessons[ $id ] = $data;
27
- }
28
-
29
- /**
30
- * Get all the available courses
31
- *
32
- * @return mixed|void
33
- */
34
- public function get_lessons(){
35
- return apply_filters( 'siteorigin_learn_lessons', $this->lessons );
36
- }
37
-
38
- /**
39
- * Add the dialog to the footer when this is setup
40
- */
41
- public function admin_footer(){
42
- wp_localize_script( 'siteorigin-learn', 'soLearn', array(
43
- 'lessons' => $this->get_lessons(),
44
- ) );
45
-
46
- include plugin_dir_path( __FILE__ ) . 'tpl/dialog.php';
47
- }
48
-
49
- public function enqueue_scripts(){
50
- wp_enqueue_script( 'siteorigin-learn', plugin_dir_url( __FILE__ ) . 'js/learn' . ( WP_DEBUG ? '' : '.min' ) . '.js', array( 'jquery' ), false, true );
51
- wp_enqueue_style( 'siteorigin-learn', plugin_dir_url( __FILE__ ) . 'css/learn.css', array( ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  }
 
53
  }
1
  <?php
2
 
3
+ if( ! class_exists( 'SiteOrigin_Learn_Dialog' ) ) {
4
+
5
+ class SiteOrigin_Learn_Dialog {
6
+
7
+ private $lessons;
8
+ const SUBMIT_URL = 'https://siteorigin.com/wp-admin/admin-ajax.php?action=lesson_signup_submit';
9
+
10
+ function __construct() {
11
+ $this->lessons = array();
12
+ add_action( 'admin_footer', array( $this, 'admin_footer' ) );
13
+ add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ), 100 );
14
+ }
15
+
16
+ public static function single() {
17
+ static $single;
18
+
19
+ return empty( $single ) ? $single = new self() : $single;
20
+ }
21
+
22
+ /**
23
+ * Add a course that we might display
24
+ *
25
+ * @param $id
26
+ * @param $data
27
+ */
28
+ public function add_lessons( $id, $data ) {
29
+ $this->lessons[ $id ] = $data;
30
+ }
31
+
32
+ /**
33
+ * Get all the available courses
34
+ *
35
+ * @return mixed|void
36
+ */
37
+ public function get_lessons() {
38
+ return apply_filters( 'siteorigin_learn_lessons', $this->lessons );
39
+ }
40
+
41
+ /**
42
+ * Add the dialog to the footer when this is setup
43
+ */
44
+ public function admin_footer() {
45
+ wp_localize_script( 'siteorigin-learn', 'soLearn', array(
46
+ 'lessons' => $this->get_lessons(),
47
+ ) );
48
+
49
+ // These strings should be filtered and translated by the calling plugin.
50
+ $dialog_strings = apply_filters( 'siteorigin_learn_strings', array(
51
+ 'watch_video' => 'Watch Intro Video',
52
+ 'loaded_from_vimeo' => 'Loaded from Vimeo Servers',
53
+ 'valid_email' => 'Please enter a valid email address.',
54
+
55
+ 'your_name' => 'Your Name',
56
+ 'your_email' => 'Your Email',
57
+ 'sign_up' => 'Sign Up',
58
+ 'close' => 'Close',
59
+ ) );
60
+
61
+ include plugin_dir_path( __FILE__ ) . 'tpl/dialog.php';
62
+ }
63
+
64
+ public function enqueue_scripts() {
65
+ wp_enqueue_script( 'siteorigin-learn', plugin_dir_url( __FILE__ ) . 'js/learn' . ( WP_DEBUG ? '' : '.min' ) . '.js', array( 'jquery' ), false, true );
66
+ wp_enqueue_style( 'siteorigin-learn', plugin_dir_url( __FILE__ ) . 'css/learn.css', array() );
67
+ }
68
  }
69
+
70
  }
learn/tpl/dialog.php CHANGED
@@ -1,5 +1,6 @@
1
  <?php
2
  $user = wp_get_current_user();
 
3
  ?>
4
 
5
  <div id="siteorigin-learn" style="display: none;">
@@ -14,8 +15,8 @@ $user = wp_get_current_user();
14
 
15
  <div class="video-play-info">
16
  <div class="video-play-info-text">
17
- <?php _e( 'Watch Intro Video', 'siteorigin-panels' ) ?>
18
- <small><?php _e( 'Loaded from Vimeo Servers', 'siteorigin-panels' ) ?></small>
19
  </div>
20
  </div>
21
 
@@ -26,25 +27,25 @@ $user = wp_get_current_user();
26
 
27
  <p class="learn-description"></p>
28
 
29
- <form class="signup-form" method="post" action="<?php echo esc_url( SiteOrigin_Learn_Dialog::SUBMIT_URL ) ?>" target="_blank" data-email-error="<?php esc_attr_e( 'Please enter a valid email', 'siteorigin-panels' ) ?>" >
30
  <?php if( ! empty( $user->data->display_name ) && $user->data->display_name !== $user->data->user_login ) : ?>
31
  <div class="form-field">
32
- <label for="siteorigin-learn-name-input"><?php esc_attr_e( 'Your Name', 'siteorigin-panels' ) ?></label>
33
  <input type="text" name="name" value="<?php echo ! empty( $user->data->display_name ) ? esc_attr( $user->data->display_name ) : '' ?>" id="siteorigin-learn-name-input" />
34
  </div>
35
  <?php endif ?>
36
  <div class="form-field">
37
- <label for="siteorigin-learn-email-input"><?php esc_attr_e( 'Your Email', 'siteorigin-panels' ) ?></label>
38
  <input type="text" name="email" value="<?php echo ! empty( $user->data->user_email ) ? esc_attr( $user->data->user_email ) : '' ?>" id="siteorigin-learn-email-input" />
39
  </div>
40
  <div class="form-submit">
41
- <input type="submit" class="button-primary" value="<?php esc_attr_e( 'Sign Up', 'siteorigin-panels' ) ?>" />
42
  </div>
43
  <input type="hidden" name="lesson_id" value="" />
44
  </form>
45
  <div class="form-description"></div>
46
 
47
- <div class="learn-close"><?php _e( 'Close', 'siteorigin-panels' ) ?></div>
48
 
49
  </div>
50
 
1
  <?php
2
  $user = wp_get_current_user();
3
+ /* @var $dialog_strings */
4
  ?>
5
 
6
  <div id="siteorigin-learn" style="display: none;">
15
 
16
  <div class="video-play-info">
17
  <div class="video-play-info-text">
18
+ <?php esc_html( $dialog_strings[ 'watch_video' ] ) ?>
19
+ <small><?php esc_html( $dialog_strings[ 'loaded_from_vimeo' ] ) ?></small>
20
  </div>
21
  </div>
22
 
27
 
28
  <p class="learn-description"></p>
29
 
30
+ <form class="signup-form" method="post" action="<?php echo esc_url( SiteOrigin_Learn_Dialog::SUBMIT_URL ) ?>" target="_blank" data-email-error="<?php esc_attr( $dialog_strings['valid_email'] ) ?>" >
31
  <?php if( ! empty( $user->data->display_name ) && $user->data->display_name !== $user->data->user_login ) : ?>
32
  <div class="form-field">
33
+ <label for="siteorigin-learn-name-input"><?php esc_html( $dialog_strings[ 'your_name' ] ) ?></label>
34
  <input type="text" name="name" value="<?php echo ! empty( $user->data->display_name ) ? esc_attr( $user->data->display_name ) : '' ?>" id="siteorigin-learn-name-input" />
35
  </div>
36
  <?php endif ?>
37
  <div class="form-field">
38
+ <label for="siteorigin-learn-email-input"><?php esc_html( $dialog_strings[ 'your_email' ] ) ?></label>
39
  <input type="text" name="email" value="<?php echo ! empty( $user->data->user_email ) ? esc_attr( $user->data->user_email ) : '' ?>" id="siteorigin-learn-email-input" />
40
  </div>
41
  <div class="form-submit">
42
+ <input type="submit" class="button-primary" value="<?php echo esc_attr( $dialog_strings[ 'sign_up' ] ) ?>" />
43
  </div>
44
  <input type="hidden" name="lesson_id" value="" />
45
  </form>
46
  <div class="form-description"></div>
47
 
48
+ <div class="learn-close"><?php esc_html( $dialog_strings[ 'close' ] ) ?></div>
49
 
50
  </div>
51
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Tags: page builder, responsive, widget, widgets, builder, page, admin, gallery, content, cms, pages, post, css, layout, grid
3
  Requires at least: 4.4
4
  Tested up to: 4.7.3
5
- Stable tag: 2.4.25
6
- Build time: 2017-04-19T17:12:54+02:00
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
  Donate link: https://siteorigin.com/downloads/contribution/
@@ -96,6 +96,12 @@ We've tried to ensure that Page Builder is compatible with most plugin widgets.
96
 
97
  == Changelog ==
98
 
 
 
 
 
 
 
99
  = 2.5.2 - 19 April 2017 =
100
  * Fixed RTL layouts for new flexbox layout.
101
  * Renamed front.css to ensure cache busting.
2
  Tags: page builder, responsive, widget, widgets, builder, page, admin, gallery, content, cms, pages, post, css, layout, grid
3
  Requires at least: 4.4
4
  Tested up to: 4.7.3
5
+ Stable tag: 2.5.3
6
+ Build time: 2017-05-11T14:23:19+02:00
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
  Donate link: https://siteorigin.com/downloads/contribution/
96
 
97
  == Changelog ==
98
 
99
+ = 2.5.3 - 9 May 2017 =
100
+ * Added legacy function wrapper for siteorigin_panels_generate_css
101
+ * Added more cache render checks
102
+ * Handle translation of Learn submodule strings
103
+ * Added screenshot argument to preview URL
104
+
105
  = 2.5.2 - 19 April 2017 =
106
  * Fixed RTL layouts for new flexbox layout.
107
  * Renamed front.css to ensure cache busting.
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.5.2
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.5.2' );
15
  if ( ! defined( 'SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
16
  define( 'SITEORIGIN_PANELS_JS_SUFFIX', '.min' );
17
  }
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.5.3
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.5.3' );
15
  if ( ! defined( 'SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
16
  define( 'SITEORIGIN_PANELS_JS_SUFFIX', '.min' );
17
  }