Page Builder by SiteOrigin - Version 2.4.14

Version Description

  • 18 August 2016 =
  • Fixes to sidebar emulator to prevent early rewrite rule building.
  • Added option to completely disable sidebar emulator.
Download this release

Release Info

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

Code changes from version 2.4.13 to 2.4.14

Files changed (3) hide show
  1. readme.txt +6 -2
  2. settings/settings.php +7 -0
  3. siteorigin-panels.php +16 -7
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.0
4
  Tested up to: 4.6
5
- Stable tag: 2.4.13
6
- Build time: 2016-08-18T17:09:52+02:00
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
  Donate link: http://siteorigin.com/page-builder/#donate
@@ -96,6 +96,10 @@ We've tried to ensure that Page Builder is compatible with most plugin widgets.
96
 
97
  == Changelog ==
98
 
 
 
 
 
99
  = 2.4.13 - 18 August 2016 =
100
  * Fixed: layout directory imports in WordPress 4.6
101
 
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.14
6
+ Build time: 2016-09-01T08:00:29+02:00
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
  Donate link: http://siteorigin.com/page-builder/#donate
96
 
97
  == Changelog ==
98
 
99
+ = 2.4.14 - 18 August 2016 =
100
+ * Fixes to sidebar emulator to prevent early rewrite rule building.
101
+ * Added option to completely disable sidebar emulator.
102
+
103
  = 2.4.13 - 18 August 2016 =
104
  * Fixed: layout directory imports in WordPress 4.6
105
 
settings/settings.php CHANGED
@@ -112,6 +112,7 @@ class SiteOrigin_Panels_Settings {
112
  $defaults['post-types'] = array('page', 'post');
113
  $defaults['live-editor-quick-link'] = true;
114
  $defaults['parallax-motion'] = '';
 
115
 
116
  // Widgets fields
117
  $defaults['title-html'] = '<h3 class="widget-title">{{title}}</h3>';
@@ -232,6 +233,12 @@ class SiteOrigin_Panels_Settings {
232
  'description' => __('How many pixels of scrolling result in a single pixel of parallax motion. 0 means automatic. Lower values give more noticeable effect.', 'siteorigin-panels'),
233
  );
234
 
 
 
 
 
 
 
235
  // The widgets fields
236
 
237
  $fields['widgets'] = array(
112
  $defaults['post-types'] = array('page', 'post');
113
  $defaults['live-editor-quick-link'] = true;
114
  $defaults['parallax-motion'] = '';
115
+ $defaults['sidebars-emulator'] = true;
116
 
117
  // Widgets fields
118
  $defaults['title-html'] = '<h3 class="widget-title">{{title}}</h3>';
233
  'description' => __('How many pixels of scrolling result in a single pixel of parallax motion. 0 means automatic. Lower values give more noticeable effect.', 'siteorigin-panels'),
234
  );
235
 
236
+ $fields['general']['fields']['sidebars-emulator'] = array(
237
+ 'type' => 'checkbox',
238
+ 'label' => __('Sidebars Emulator', 'siteorigin-panels'),
239
+ 'description' => __('Page Builder will create an emulated sidebar, that contains all widgets in the page.', 'siteorigin-panels'),
240
+ );
241
+
242
  // The widgets fields
243
 
244
  $fields['widgets'] = 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.13
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.13');
15
  if ( ! defined('SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
16
  define('SITEORIGIN_PANELS_JS_SUFFIX', '.min');
17
  }
@@ -32,7 +32,6 @@ require_once plugin_dir_path(__FILE__) . 'inc/default-styles.php';
32
  require_once plugin_dir_path(__FILE__) . 'inc/widgets.php';
33
  require_once plugin_dir_path(__FILE__) . 'inc/plugin-activation.php';
34
  require_once plugin_dir_path(__FILE__) . 'inc/admin-actions.php';
35
- require_once plugin_dir_path(__FILE__) . 'inc/sidebars-emulator.php';
36
 
37
  if( defined('SITEORIGIN_PANELS_DEV') && SITEORIGIN_PANELS_DEV ) include plugin_dir_path(__FILE__).'inc/debug.php';
38
 
@@ -48,13 +47,23 @@ register_activation_hook(__FILE__, 'siteorigin_panels_activate');
48
  * Initialize the Page Builder.
49
  */
50
  function siteorigin_panels_init(){
51
- $bundled = siteorigin_panels_setting('bundled-widgets');
52
- if( !$bundled ) return;
53
-
54
- if( !defined('SITEORIGIN_PANELS_LEGACY_WIDGETS_ACTIVE') && ( !is_admin() || basename($_SERVER["SCRIPT_FILENAME"]) != 'plugins.php') ) {
 
55
  // Include the bundled widgets if the Legacy Widgets plugin isn't active.
56
  include plugin_dir_path(__FILE__).'widgets/widgets.php';
57
  }
 
 
 
 
 
 
 
 
 
58
  }
59
  add_action('plugins_loaded', 'siteorigin_panels_init');
60
 
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.14
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.14');
15
  if ( ! defined('SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
16
  define('SITEORIGIN_PANELS_JS_SUFFIX', '.min');
17
  }
32
  require_once plugin_dir_path(__FILE__) . 'inc/widgets.php';
33
  require_once plugin_dir_path(__FILE__) . 'inc/plugin-activation.php';
34
  require_once plugin_dir_path(__FILE__) . 'inc/admin-actions.php';
 
35
 
36
  if( defined('SITEORIGIN_PANELS_DEV') && SITEORIGIN_PANELS_DEV ) include plugin_dir_path(__FILE__).'inc/debug.php';
37
 
47
  * Initialize the Page Builder.
48
  */
49
  function siteorigin_panels_init(){
50
+ if(
51
+ !siteorigin_panels_setting('bundled-widgets') &&
52
+ !defined('SITEORIGIN_PANELS_LEGACY_WIDGETS_ACTIVE') &&
53
+ ( !is_admin() || basename($_SERVER["SCRIPT_FILENAME"]) != 'plugins.php')
54
+ ) {
55
  // Include the bundled widgets if the Legacy Widgets plugin isn't active.
56
  include plugin_dir_path(__FILE__).'widgets/widgets.php';
57
  }
58
+
59
+ if(
60
+ ! is_admin() &&
61
+ siteorigin_panels_setting( 'sidebars-emulator' ) &&
62
+ ( ! get_option('permalink_structure') || get_option('rewrite_rules') )
63
+ ) {
64
+ // Include the sidebars emulator
65
+ require_once plugin_dir_path(__FILE__) . 'inc/sidebars-emulator.php';
66
+ }
67
  }
68
  add_action('plugins_loaded', 'siteorigin_panels_init');
69