Page Builder by SiteOrigin - Version 2.4.19

Version Description

  • 22 November 2016 =
  • Added fixed background support.
  • Cycle addon and contribution link.
  • Small type and translation fixes.
Download this release

Release Info

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

Code changes from version 2.4.18 to 2.4.19

inc/default-styles.php CHANGED
@@ -149,6 +149,7 @@ class SiteOrigin_Panels_Default_Styling {
149
  'tile' => __('Tiled Image', 'siteorigin-panels'),
150
  'cover' => __('Cover', 'siteorigin-panels'),
151
  'center' => __('Centered, with original size', 'siteorigin-panels'),
 
152
  'parallax' => __('Parallax', 'siteorigin-panels'),
153
  'parallax-original' => __('Parallax (Original Size)', 'siteorigin-panels'),
154
  ),
@@ -219,6 +220,7 @@ class SiteOrigin_Panels_Default_Styling {
219
  'tile' => __('Tiled Image', 'siteorigin-panels'),
220
  'cover' => __('Cover', 'siteorigin-panels'),
221
  'center' => __('Centered, with original size', 'siteorigin-panels'),
 
222
  'parallax' => __('Parallax', 'siteorigin-panels'),
223
  'parallax-original' => __('Parallax (Original Size)', 'siteorigin-panels'),
224
  ),
@@ -315,6 +317,9 @@ class SiteOrigin_Panels_Default_Styling {
315
  case 'center':
316
  $attributes['style'] .= 'background-position: center center; background-repeat: no-repeat;';
317
  break;
 
 
 
318
  }
319
  }
320
  }
@@ -392,6 +397,9 @@ class SiteOrigin_Panels_Default_Styling {
392
  case 'center':
393
  $attributes['style'] .= 'background-position: center center; background-repeat: no-repeat;';
394
  break;
 
 
 
395
  }
396
  }
397
 
149
  'tile' => __('Tiled Image', 'siteorigin-panels'),
150
  'cover' => __('Cover', 'siteorigin-panels'),
151
  'center' => __('Centered, with original size', 'siteorigin-panels'),
152
+ 'fixed' => __( 'Fixed', 'siteorigin-panels' ),
153
  'parallax' => __('Parallax', 'siteorigin-panels'),
154
  'parallax-original' => __('Parallax (Original Size)', 'siteorigin-panels'),
155
  ),
220
  'tile' => __('Tiled Image', 'siteorigin-panels'),
221
  'cover' => __('Cover', 'siteorigin-panels'),
222
  'center' => __('Centered, with original size', 'siteorigin-panels'),
223
+ 'fixed' => __( 'Fixed', 'siteorigin-panels' ),
224
  'parallax' => __('Parallax', 'siteorigin-panels'),
225
  'parallax-original' => __('Parallax (Original Size)', 'siteorigin-panels'),
226
  ),
317
  case 'center':
318
  $attributes['style'] .= 'background-position: center center; background-repeat: no-repeat;';
319
  break;
320
+ case 'fixed':
321
+ $attributes['style'] .= 'background-attachment: fixed; background-size: cover;';
322
+ break;
323
  }
324
  }
325
  }
397
  case 'center':
398
  $attributes['style'] .= 'background-position: center center; background-repeat: no-repeat;';
399
  break;
400
+ case 'fixed':
401
+ $attributes['style'] .= 'background-attachment: fixed; background-size: cover;';
402
+ break;
403
  }
404
  }
405
 
lang/siteorigin-panels-de_DE.mo CHANGED
Binary file
lang/siteorigin-panels-de_DE.po CHANGED
@@ -11,6 +11,10 @@ msgstr ""
11
  "Last-Translator: \n"
12
  "Language-Team: \n"
13
 
 
 
 
 
14
  #: inc/admin-actions.php:80
15
  msgid "No description"
16
  msgstr "Keine Beschreibung"
11
  "Last-Translator: \n"
12
  "Language-Team: \n"
13
 
14
+ #: siteorigin-panels.php:919
15
+ msgid "Read More"
16
+ msgstr "weiterlesen"
17
+
18
  #: inc/admin-actions.php:80
19
  msgid "No description"
20
  msgstr "Keine Beschreibung"
readme.txt CHANGED
@@ -1,12 +1,12 @@
1
  === Page Builder by SiteOrigin ===
2
  Tags: page builder, responsive, widget, widgets, builder, page, admin, gallery, content, cms, pages, post, css, layout, grid
3
  Requires at least: 4.0
4
- Tested up to: 4.6
5
- Stable tag: 2.4.18
6
- Build time: 2016-11-07T14:30:51+02:00
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
- Donate link: http://siteorigin.com/page-builder/#donate
10
  Contributors: gpriday, braam-genis
11
 
12
  Build responsive page layouts using the widgets you know and love using this simple drag and drop page builder.
@@ -96,6 +96,11 @@ We've tried to ensure that Page Builder is compatible with most plugin widgets.
96
 
97
  == Changelog ==
98
 
 
 
 
 
 
99
  = 2.4.18 - 7 November 2016 =
100
  * Fixes for PHP 7 checker.
101
  * Properly provide post ID on custom home page.
1
  === Page Builder by SiteOrigin ===
2
  Tags: page builder, responsive, widget, widgets, builder, page, admin, gallery, content, cms, pages, post, css, layout, grid
3
  Requires at least: 4.0
4
+ Tested up to: 4.7
5
+ Stable tag: 2.4.19
6
+ Build time: 2016-11-22T18:24:20+02:00
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
+ Donate link: https://siteorigin.com/downloads/contribution/
10
  Contributors: gpriday, braam-genis
11
 
12
  Build responsive page layouts using the widgets you know and love using this simple drag and drop page builder.
96
 
97
  == Changelog ==
98
 
99
+ = 2.4.19 - 22 November 2016 =
100
+ * Added fixed background support.
101
+ * Cycle addon and contribution link.
102
+ * Small type and translation fixes.
103
+
104
  = 2.4.18 - 7 November 2016 =
105
  * Fixes for PHP 7 checker.
106
  * Properly provide post ID on custom home page.
settings/settings.php CHANGED
@@ -306,14 +306,14 @@ class SiteOrigin_Panels_Settings {
306
  'type' => 'number',
307
  'unit' => 'px',
308
  'label' => __('Tablet Width', 'siteorigin-panels'),
309
- 'description' => __('Device width, in pixels, to collapse into a tablet view .', 'siteorigin-panels'),
310
  );
311
 
312
  $fields['layout']['fields']['mobile-width'] = array(
313
  'type' => 'number',
314
  'unit' => 'px',
315
  'label' => __('Mobile Width', 'siteorigin-panels'),
316
- 'description' => __('Device width, in pixels, to collapse into a mobile view .', 'siteorigin-panels'),
317
  );
318
 
319
  $fields['layout']['fields']['margin-bottom'] = array(
306
  'type' => 'number',
307
  'unit' => 'px',
308
  'label' => __('Tablet Width', 'siteorigin-panels'),
309
+ 'description' => __('Device width, in pixels, to collapse into a tablet view.', 'siteorigin-panels'),
310
  );
311
 
312
  $fields['layout']['fields']['mobile-width'] = array(
313
  'type' => 'number',
314
  'unit' => 'px',
315
  'label' => __('Mobile Width', 'siteorigin-panels'),
316
+ 'description' => __('Device width, in pixels, to collapse into a mobile view.', 'siteorigin-panels'),
317
  );
318
 
319
  $fields['layout']['fields']['margin-bottom'] = array(
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.4.18
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.4.18');
15
  if ( ! defined('SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
16
  define('SITEORIGIN_PANELS_JS_SUFFIX', '.min');
17
  }
@@ -1610,11 +1610,31 @@ function siteorigin_panels_process_panels_data( $panels_data ){
1610
  }
1611
  add_filter( 'siteorigin_panels_data', 'siteorigin_panels_process_panels_data', 5 );
1612
 
 
 
 
1613
  function siteorigin_panels_display_premium_teaser(){
1614
- return
1615
  siteorigin_panels_setting( 'display-teaser' ) &&
1616
  apply_filters( 'siteorigin_premium_upgrade_teaser', true ) &&
1617
- ! defined( 'SITEORIGIN_PREMIUM_VERSION' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1618
  }
1619
 
1620
  function siteorigin_panels_premium_url() {
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.4.19
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.4.19');
15
  if ( ! defined('SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
16
  define('SITEORIGIN_PANELS_JS_SUFFIX', '.min');
17
  }
1610
  }
1611
  add_filter( 'siteorigin_panels_data', 'siteorigin_panels_process_panels_data', 5 );
1612
 
1613
+ /**
1614
+ * Display one of the premium or contribution teasers
1615
+ */
1616
  function siteorigin_panels_display_premium_teaser(){
1617
+ if (
1618
  siteorigin_panels_setting( 'display-teaser' ) &&
1619
  apply_filters( 'siteorigin_premium_upgrade_teaser', true ) &&
1620
+ ! defined( 'SITEORIGIN_PREMIUM_VERSION' )
1621
+ ) {
1622
+
1623
+ $links = array(
1624
+ array( __( 'Page Builder Addons', 'siteorigin-panels' ), __( 'Addons', 'siteorigin-panels' ), siteorigin_panels_premium_url() ),
1625
+ array( __( 'Contribute to Page Builder', 'siteorigin-panels' ), __( 'Contribute', 'siteorigin-panels' ), 'http://siteorigin.com/downloads/contribution/' ),
1626
+ );
1627
+ $i = floor( time() / (30*60) ) % count( $links );
1628
+
1629
+ if( !empty( $links[ $i ] ) ) {
1630
+ ?>
1631
+ <a class="so-tool-button so-siteorigin-premium" title="<?php echo esc_attr( $links[$i][0] ) ?>" href="<?php echo esc_url( $links[$i][2] ) ?>" target="_blank">
1632
+ <span class="so-panels-icon so-panels-icon-plus"></span>
1633
+ <span class="so-button-text"><?php echo esc_html( $links[$i][1] ) ?></span>
1634
+ </a>
1635
+ <?php
1636
+ }
1637
+ }
1638
  }
1639
 
1640
  function siteorigin_panels_premium_url() {
tpl/js-templates.php CHANGED
@@ -38,12 +38,7 @@ $layouts = apply_filters( 'siteorigin_panels_prebuilt_layouts', array() );
38
 
39
  <?php endif; ?>
40
 
41
- <?php if( siteorigin_panels_display_premium_teaser() ) : ?>
42
- <a class="so-tool-button so-siteorigin-premium" title="<?php esc_attr_e( 'SiteOrigin Premium', 'siteorigin-panels' ) ?>" href="<?php echo esc_url( siteorigin_panels_premium_url() ) ?>" target="_blank">
43
- <span class="so-panels-icon so-panels-icon-plus"></span>
44
- <span class="so-button-text"><?php esc_html_e('Addons', 'siteorigin-panels') ?></span>
45
- </a>
46
- <?php endif; ?>
47
 
48
  <a class="so-switch-to-standard"><?php _e('Revert to Editor', 'siteorigin-panels') ?></a>
49
 
38
 
39
  <?php endif; ?>
40
 
41
+ <?php siteorigin_panels_display_premium_teaser(); ?>
 
 
 
 
 
42
 
43
  <a class="so-switch-to-standard"><?php _e('Revert to Editor', 'siteorigin-panels') ?></a>
44
 
widgets/basic.php CHANGED
@@ -402,7 +402,7 @@ class SiteOrigin_Panels_Widgets_PostLoop extends WP_Widget{
402
  </p>
403
 
404
  <p>
405
- <label for="<?php echo $this->get_field_id('more') ?>"><?php _e('More Link ', 'siteorigin-panels') ?></label>
406
  <input type="checkbox" class="widefat" id="<?php echo $this->get_field_id( 'more' ) ?>" name="<?php echo $this->get_field_name( 'more' ) ?>" <?php checked( $instance['more'] ) ?> /><br/>
407
  <small><?php _e('If the template supports it, cut posts and display the more link.', 'siteorigin-panels') ?></small>
408
  </p>
402
  </p>
403
 
404
  <p>
405
+ <label for="<?php echo $this->get_field_id('more') ?>"><?php _e('More Link', 'siteorigin-panels') ?></label>
406
  <input type="checkbox" class="widefat" id="<?php echo $this->get_field_id( 'more' ) ?>" name="<?php echo $this->get_field_name( 'more' ) ?>" <?php checked( $instance['more'] ) ?> /><br/>
407
  <small><?php _e('If the template supports it, cut posts and display the more link.', 'siteorigin-panels') ?></small>
408
  </p>