WordPress Page Builder – Beaver Builder - Version 1.6.4.7

Version Description

Download this release

Release Info

Developer justinbusa
Plugin Icon 128x128 WordPress Page Builder – Beaver Builder
Version 1.6.4.7
Comparing to
See all releases

Code changes from version 1.6.4.4 to 1.6.4.7

.gitattributes ADDED
@@ -0,0 +1 @@
 
1
+ data/templates.dat binary
changelog.txt CHANGED
@@ -1,3 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <h4>1.6.4.4 - 12/08/2015</h4>
2
  <p><strong>Enhancements</strong></p>
3
  <ul>
1
+ <h4>1.6.4.7 - 1/10/2016</h4>
2
+ <p><strong>Enhancements</strong></p>
3
+ <ul>
4
+ <li>Minor enhancements to the Number Counter module. Added new number position setting (above, inside, below) for number bars. Thanks Kathy Darling for the contribution!</li>
5
+ <li>Row background color settings are now always available for adding a fallback for other background types such as videos and slideshows. Thanks Justin Proffitt for the contribution!</li>
6
+ <li>Added limit property to suggest fields for limiting the number of selections that can be made.</li>
7
+ <li>Added the fl_builder_register_settings_form filter to the register_module method.</li>
8
+ <li>Added core WordPress image classes to the Photo module. This allows WordPress to handle srcsets instead of us, fixing a number of issues and adding support for the WP Retina plugin.</li>
9
+ <li>Added Czech translation.</li>
10
+ <li>Added Farsi translation.</li>
11
+ <li>Added Thai translation.</li>
12
+ </ul>
13
+ <p><strong>Bug Fixes</strong></p>
14
+ <ul>
15
+ <li>Fixed a bug with scripts in shortcodes and widgets being rendered more than once when a CDN is used. Primarily fixes issues with the Gravity Forms widget, but should help others as well.</li>
16
+ <li>Fixed a bug with users that can only submit for review being able to publish posts from within the builder.</li>
17
+ <li>Fixed a bug breaking responsive display settings for equal height columns.</li>
18
+ <li>Fixed a bug caused by the WP 4.4.1 update that makes it so all templates show in the template selector, saved rows, and saved modules sections.</li>
19
+ <li>Fixed a bug with values selected in auto suggest fields not retaining their order.</li>
20
+ <li>Fixed a bug with multiple email addresses in the Contact Form module.</li>
21
+ <li>Fixed a bug with videos in the Content Slider module continuing to play when the slider advances to the next slide.</li>
22
+ <li>Fixed a bug with edge cases where git configurations convert line endings and break the serialized data in the templates.dat file.</li>
23
+ </ul>
24
+
25
+ <h4>1.6.4.6 - 12/22/2015</h4>
26
+ <p><strong>Enhancements</strong></p>
27
+ <ul>
28
+ <li>Added Hungarian translation.</li>
29
+ <li>The Contact Form module now supports a comma separated list of email addresses.</li>
30
+ </ul>
31
+ <p><strong>Bug Fixes</strong></p>
32
+ <ul>
33
+ <li>Fixed a bug causing the row and column link color setting to not work.</li>
34
+ <li>Fixed a bug with srcsets in the Photo module and custom image sizes.</li>
35
+ <li>Fixed a bug making it impossible to edit modules that don't have a height.</li>
36
+ <li>Fixed a bug with IE11 and row alignment.</li>
37
+ </ul>
38
+
39
+ <h4>1.6.4.5 - 12/15/2015</h4>
40
+ <p><strong>Enhancements</strong></p>
41
+ <ul>
42
+ <li>WordPress 4.4's responsive image code is now applied to all images that contain an attachment ID.</li>
43
+ <li>Added support for the Autoptimize caching plugin.</li>
44
+ </ul>
45
+ <p><strong>Bug Fixes</strong></p>
46
+ <ul>
47
+ <li>Fixed a bug in the Photo module with srcsets and custom image sizes.</li>
48
+ <li>Fixed a bug with using shortcodes in link fields.</li>
49
+ <li>Fixed a bug with smooth scrolling and the Tabs module.</li>
50
+ <li>Fixed a bug with equal heights in the Posts module.</li>
51
+ <li>Fixed a bug with icon positioning in the Callout module.</li>
52
+ <li>Fixed a bug with Menu module text being searched in searches.</li>
53
+ <li>Fixed a bug with full height rows and content alignment in IE11.</li>
54
+ <li>Fixed a bug causing the text in textareas to be white.</li>
55
+ </ul>
56
+
57
  <h4>1.6.4.4 - 12/08/2015</h4>
58
  <p><strong>Enhancements</strong></p>
59
  <ul>
classes/class-fl-builder-auto-suggest.php CHANGED
@@ -146,7 +146,7 @@ final class FLBuilderAutoSuggest {
146
 
147
  if(!empty($ids)) {
148
 
149
- $posts = $wpdb->get_results("SELECT ID, post_title FROM {$wpdb->posts} WHERE ID IN ({$ids})");
150
 
151
  foreach($posts as $post) {
152
  $data[] = array('name' => esc_attr( $post->post_title ), 'value' => $post->ID);
146
 
147
  if(!empty($ids)) {
148
 
149
+ $posts = $wpdb->get_results("SELECT ID, post_title FROM {$wpdb->posts} WHERE ID IN ({$ids}) ORDER BY FIELD(ID, {$ids})");
150
 
151
  foreach($posts as $post) {
152
  $data[] = array('name' => esc_attr( $post->post_title ), 'value' => $post->ID);
classes/class-fl-builder-model.php CHANGED
@@ -1914,7 +1914,7 @@ final class FLBuilderModel {
1914
  self::$modules[$instance->slug] = $instance;
1915
 
1916
  // Add the form to the instance.
1917
- self::$modules[$instance->slug]->form = $form;
1918
  self::$modules[$instance->slug]->form['advanced'] = self::$settings_forms['module_advanced'];
1919
  }
1920
  }
@@ -3029,7 +3029,12 @@ final class FLBuilderModel {
3029
 
3030
  // Publish the post?
3031
  if ( $publish ) {
3032
- $post_status = strstr($post_status, 'draft') ? 'publish' : $post_status;
 
 
 
 
 
3033
  }
3034
 
3035
  // Update the post with stripped down content.
@@ -3215,7 +3220,13 @@ final class FLBuilderModel {
3215
  'orderby' => 'menu_order title',
3216
  'order' => 'ASC',
3217
  'posts_per_page' => '-1',
3218
- 'fl-builder-template-type' => $type
 
 
 
 
 
 
3219
  ) );
3220
 
3221
  $templates = array();
@@ -3490,7 +3501,13 @@ final class FLBuilderModel {
3490
  'orderby' => 'title',
3491
  'order' => 'ASC',
3492
  'posts_per_page' => '-1',
3493
- 'fl-builder-template-type' => $type
 
 
 
 
 
 
3494
  ) );
3495
 
3496
  $templates = array();
1914
  self::$modules[$instance->slug] = $instance;
1915
 
1916
  // Add the form to the instance.
1917
+ self::$modules[$instance->slug]->form = apply_filters( 'fl_builder_register_settings_form', $form, $instance->slug );
1918
  self::$modules[$instance->slug]->form['advanced'] = self::$settings_forms['module_advanced'];
1919
  }
1920
  }
3029
 
3030
  // Publish the post?
3031
  if ( $publish ) {
3032
+ if ( current_user_can( 'publish_posts' ) ) {
3033
+ $post_status = strstr($post_status, 'draft') ? 'publish' : $post_status;
3034
+ }
3035
+ else {
3036
+ $post_status = 'pending';
3037
+ }
3038
  }
3039
 
3040
  // Update the post with stripped down content.
3220
  'orderby' => 'menu_order title',
3221
  'order' => 'ASC',
3222
  'posts_per_page' => '-1',
3223
+ 'tax_query' => array(
3224
+ array(
3225
+ 'taxonomy' => 'fl-builder-template-type',
3226
+ 'field' => 'slug',
3227
+ 'terms' => $type
3228
+ )
3229
+ )
3230
  ) );
3231
 
3232
  $templates = array();
3501
  'orderby' => 'title',
3502
  'order' => 'ASC',
3503
  'posts_per_page' => '-1',
3504
+ 'tax_query' => array(
3505
+ array(
3506
+ 'taxonomy' => 'fl-builder-template-type',
3507
+ 'field' => 'slug',
3508
+ 'terms' => $type
3509
+ )
3510
+ )
3511
  ) );
3512
 
3513
  $templates = array();
classes/class-fl-builder.php CHANGED
@@ -96,6 +96,9 @@ final class FLBuilder {
96
 
97
  // Tell W3TC not to minify while the builder is active.
98
  define( 'DONOTMINIFY', true );
 
 
 
99
 
100
  // Remove 3rd party editor buttons.
101
  remove_all_actions('media_buttons', 999999);
@@ -859,6 +862,11 @@ final class FLBuilder {
859
  $content = preg_replace_callback( "/$pattern/s", 'FLBuilder::double_escape_shortcodes', $content );
860
  $content = do_shortcode( $content );
861
 
 
 
 
 
 
862
  // Clear the post rendering ID.
863
  self::$post_rendering = null;
864
  }
96
 
97
  // Tell W3TC not to minify while the builder is active.
98
  define( 'DONOTMINIFY', true );
99
+
100
+ // Tell Autoptimize not to minify while the builder is active.
101
+ add_filter( 'autoptimize_filter_noptimize', '__return_true' );
102
 
103
  // Remove 3rd party editor buttons.
104
  remove_all_actions('media_buttons', 999999);
862
  $content = preg_replace_callback( "/$pattern/s", 'FLBuilder::double_escape_shortcodes', $content );
863
  $content = do_shortcode( $content );
864
 
865
+ // Add srcset attrs to images with the class wp-image-<ID>.
866
+ if ( function_exists( 'wp_make_content_images_responsive' ) ) {
867
+ $content = wp_make_content_images_responsive( $content );
868
+ }
869
+
870
  // Clear the post rendering ID.
871
  self::$post_rendering = null;
872
  }
css/fl-builder-layout-medium.css CHANGED
@@ -2,11 +2,16 @@
2
  ------------------------------------------------------ */
3
 
4
  .fl-visible-desktop,
5
- .fl-visible-mobile {
 
 
6
  display: none;
7
  }
8
  .fl-visible-desktop-medium,
 
9
  .fl-visible-medium,
10
- .fl-visible-medium-mobile {
 
 
11
  display: block;
12
  }
2
  ------------------------------------------------------ */
3
 
4
  .fl-visible-desktop,
5
+ .fl-visible-desktop.fl-col,
6
+ .fl-visible-mobile,
7
+ .fl-visible-mobile.fl-col {
8
  display: none;
9
  }
10
  .fl-visible-desktop-medium,
11
+ .fl-visible-desktop-medium.fl-col,
12
  .fl-visible-medium,
13
+ .fl-visible-medium.fl-col,
14
+ .fl-visible-medium-mobile,
15
+ .fl-visible-medium-mobile.fl-col {
16
  display: block;
17
  }
css/fl-builder-layout-responsive.css CHANGED
@@ -2,12 +2,17 @@
2
  ------------------------------------------------------ */
3
 
4
  .fl-visible-desktop,
 
5
  .fl-visible-desktop-medium,
6
- .fl-visible-medium {
 
 
7
  display: none;
8
  }
9
  .fl-visible-medium-mobile,
10
- .fl-visible-mobile {
 
 
11
  display: block;
12
  }
13
 
2
  ------------------------------------------------------ */
3
 
4
  .fl-visible-desktop,
5
+ .fl-visible-desktop.fl-col,
6
  .fl-visible-desktop-medium,
7
+ .fl-visible-desktop-medium.fl-col,
8
+ .fl-visible-medium,
9
+ .fl-visible-medium.fl-col {
10
  display: none;
11
  }
12
  .fl-visible-medium-mobile,
13
+ .fl-visible-medium-mobile.fl-col,
14
+ .fl-visible-mobile,
15
+ .fl-visible-mobile.fl-col {
16
  display: block;
17
  }
18
 
css/fl-builder-layout.css CHANGED
@@ -62,8 +62,11 @@
62
  ------------------------------------------------------ */
63
 
64
  .fl-visible-medium,
 
65
  .fl-visible-medium-mobile,
66
- .fl-visible-mobile {
 
 
67
  display: none;
68
  }
69
 
@@ -171,10 +174,6 @@
171
  min-height: 100vh;
172
 
173
  }
174
- .fl-builder-ie-11 .fl-row-full-height .fl-row-content-wrap {
175
- /*Damn you, IE11!*/
176
- height: 1px;
177
- }
178
  .fl-row-full-height .fl-row-content{
179
  -webkit-box-flex: 1 1 auto;
180
  -moz-box-flex: 1 1 auto;
@@ -187,6 +186,14 @@
187
  width: 100%;
188
  }
189
 
 
 
 
 
 
 
 
 
190
  /**
191
  * iPad with portrait orientation.
192
  */
62
  ------------------------------------------------------ */
63
 
64
  .fl-visible-medium,
65
+ .fl-visible-medium.fl-col,
66
  .fl-visible-medium-mobile,
67
+ .fl-visible-medium-mobile.fl-col,
68
+ .fl-visible-mobile,
69
+ .fl-visible-mobile.fl-col {
70
  display: none;
71
  }
72
 
174
  min-height: 100vh;
175
 
176
  }
 
 
 
 
177
  .fl-row-full-height .fl-row-content{
178
  -webkit-box-flex: 1 1 auto;
179
  -moz-box-flex: 1 1 auto;
186
  width: 100%;
187
  }
188
 
189
+ /* Stupid IE Full Height Row Fixes */
190
+ .fl-builder-ie-11 .fl-row-full-height .fl-row-content-wrap {
191
+ height: 1px;
192
+ }
193
+ .fl-builder-ie-11 .fl-row-full-height .fl-row-content {
194
+ margin: 0;
195
+ }
196
+
197
  /**
198
  * iPad with portrait orientation.
199
  */
css/fl-builder.css CHANGED
@@ -172,7 +172,7 @@ ul.fl-builder-submenu {
172
  display: block;
173
  }
174
  ul.fl-builder-submenu li a {
175
- color: #fff;
176
  display: block;
177
  line-height: 13px;
178
  font-size: 13px;
172
  display: block;
173
  }
174
  ul.fl-builder-submenu li a {
175
+ color: #fff !important;
176
  display: block;
177
  line-height: 13px;
178
  font-size: 13px;
fl-builder.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Beaver Builder Plugin (Lite Version)
4
  * Plugin URI: https://www.wpbeaverbuilder.com/?utm_source=external&utm_medium=builder&utm_campaign=plugins-page
5
  * Description: A drag and drop frontend WordPress page builder plugin that works with almost any theme!
6
- * Version: 1.6.4.4
7
  * Author: The Beaver Builder Team
8
  * Author URI: https://www.wpbeaverbuilder.com/?utm_source=external&utm_medium=builder&utm_campaign=plugins-page
9
  * Copyright: (c) 2014 Beaver Builder
@@ -11,7 +11,7 @@
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  * Text Domain: fl-builder
13
  */
14
- define('FL_BUILDER_VERSION', '1.6.4.4');
15
  define('FL_BUILDER_FILE', __FILE__);
16
  define('FL_BUILDER_DIR', plugin_dir_path(FL_BUILDER_FILE));
17
  define('FL_BUILDER_URL', plugins_url('/', FL_BUILDER_FILE));
3
  * Plugin Name: Beaver Builder Plugin (Lite Version)
4
  * Plugin URI: https://www.wpbeaverbuilder.com/?utm_source=external&utm_medium=builder&utm_campaign=plugins-page
5
  * Description: A drag and drop frontend WordPress page builder plugin that works with almost any theme!
6
+ * Version: 1.6.4.7
7
  * Author: The Beaver Builder Team
8
  * Author URI: https://www.wpbeaverbuilder.com/?utm_source=external&utm_medium=builder&utm_campaign=plugins-page
9
  * Copyright: (c) 2014 Beaver Builder
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  * Text Domain: fl-builder
13
  */
14
+ define('FL_BUILDER_VERSION', '1.6.4.7');
15
  define('FL_BUILDER_FILE', __FILE__);
16
  define('FL_BUILDER_DIR', plugin_dir_path(FL_BUILDER_FILE));
17
  define('FL_BUILDER_URL', plugins_url('/', FL_BUILDER_FILE));
includes/column-css.php CHANGED
@@ -6,7 +6,7 @@
6
  .fl-node-<?php echo $col->node; ?> {
7
  color: #<?php echo $col->settings->text_color; ?>;
8
  }
9
- .fl-builder-content .fl-node-<?php echo $col->node; ?> *:not(input) {
10
  color: inherit;
11
  }
12
  <?php endif; ?>
6
  .fl-node-<?php echo $col->node; ?> {
7
  color: #<?php echo $col->settings->text_color; ?>;
8
  }
9
+ .fl-builder-content .fl-node-<?php echo $col->node; ?> *:not(input):not(textarea):not(a):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
10
  color: inherit;
11
  }
12
  <?php endif; ?>
includes/field-link.php CHANGED
@@ -1,5 +1,5 @@
1
  <div class="fl-link-field">
2
- <input type="text" name="<?php echo $name; ?>" value="<?php echo esc_url($value); ?>" class="text fl-link-field-input" placeholder="http://www.example.com" />
3
  <span class="fl-link-field-select fl-builder-button fl-builder-button-small" href="javascript:void(0);" onclick="return false;"><?php _e('Select', 'fl-builder'); ?></span>
4
  <div class="fl-link-field-search">
5
  <span class="fl-link-field-search-title"><?php _e('Enter a post title to search.', 'fl-builder'); ?></span>
1
  <div class="fl-link-field">
2
+ <input type="text" name="<?php echo $name; ?>" value="<?php echo $value; ?>" class="text fl-link-field-input" placeholder="http://www.example.com" />
3
  <span class="fl-link-field-select fl-builder-button fl-builder-button-small" href="javascript:void(0);" onclick="return false;"><?php _e('Select', 'fl-builder'); ?></span>
4
  <div class="fl-link-field-search">
5
  <span class="fl-link-field-search-title"><?php _e('Enter a post title to search.', 'fl-builder'); ?></span>
includes/field-suggest.php CHANGED
@@ -1,7 +1,11 @@
1
  <?php
2
 
3
- $action = isset($field['action']) ? $field['action'] : '';
4
- $data = isset($field['data']) ? $field['data'] : '';
 
 
 
 
5
 
6
  ?>
7
- <input type="text" name="<?php echo $name; ?>" data-value='<?php echo FLBuilderAutoSuggest::get_value($action, $value, $data); ?>' data-action="<?php echo $action; ?>" data-action-data="<?php echo $data; ?>" class="text text-full fl-suggest-field<?php if(isset($field['class'])) echo ' '. $field['class']; ?>" placeholder="<?php if ( isset( $field['placeholder'] ) ) echo esc_attr( $field['placeholder'] ); else esc_attr_e( 'Start typing...', 'fl-builder' ); ?>" />
1
  <?php
2
 
3
+ $class = isset( $field['class'] ) ? ' ' . $field['class'] : '';
4
+ $action = isset( $field['action'] ) ? $field['action'] : '';
5
+ $data = isset( $field['data'] ) ? $field['data'] : '';
6
+ $placeholder = isset( $field['placeholder'] ) ? esc_attr( $field['placeholder'] ) : esc_attr( 'Start typing...', 'fl-builder' );
7
+ $limit = isset( $field['limit'] ) ? $field['limit'] : 'false';
8
+ $value = FLBuilderAutoSuggest::get_value( $action, $value, $data );
9
 
10
  ?>
11
+ <input type="text" class="text text-full fl-suggest-field<?php echo $class; ?>" name="<?php echo $name; ?>" data-value='<?php echo $value; ?>' data-action="<?php echo $action; ?>" data-action-data="<?php echo $data; ?>" data-limit="<?php echo $limit; ?>" placeholder="<?php echo $placeholder; ?>" />
includes/row-css.php CHANGED
@@ -2,7 +2,7 @@
2
  .fl-node-<?php echo $row->node; ?> {
3
  color: #<?php echo $row->settings->text_color; ?>;
4
  }
5
- .fl-builder-content .fl-node-<?php echo $row->node; ?> *:not(input) {
6
  color: inherit;
7
  }
8
  <?php endif; ?>
@@ -59,7 +59,7 @@
59
  }
60
  <?php endif; ?>
61
 
62
- <?php if($row->settings->bg_type == 'color' && !empty($row->settings->bg_color)) : // Background Color ?>
63
  .fl-node-<?php echo $row->node; ?> .fl-row-content-wrap {
64
  background-color: #<?php echo $row->settings->bg_color; ?>;
65
  background-color: rgba(<?php echo implode(',', FLBuilderColor::hex_to_rgb($row->settings->bg_color)) ?>, <?php echo $row->settings->bg_opacity/100; ?>);
2
  .fl-node-<?php echo $row->node; ?> {
3
  color: #<?php echo $row->settings->text_color; ?>;
4
  }
5
+ .fl-builder-content .fl-node-<?php echo $row->node; ?> *:not(input):not(textarea):not(a):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
6
  color: inherit;
7
  }
8
  <?php endif; ?>
59
  }
60
  <?php endif; ?>
61
 
62
+ <?php if(in_array( $row->settings->bg_type, array('color', 'photo', 'parallax', 'slideshow', 'video') ) && !empty($row->settings->bg_color)) : // Background Color ?>
63
  .fl-node-<?php echo $row->node; ?> .fl-row-content-wrap {
64
  background-color: #<?php echo $row->settings->bg_color; ?>;
65
  background-color: rgba(<?php echo implode(',', FLBuilderColor::hex_to_rgb($row->settings->bg_color)) ?>, <?php echo $row->settings->bg_opacity/100; ?>);
includes/row-settings.php CHANGED
@@ -120,16 +120,16 @@ FLBuilder::register_settings_form('row', array(
120
  'sections' => array('bg_color')
121
  ),
122
  'photo' => array(
123
- 'sections' => array('bg_photo', 'bg_overlay')
124
  ),
125
  'video' => array(
126
- 'sections' => array('bg_video', 'bg_overlay')
127
  ),
128
  'slideshow' => array(
129
- 'sections' => array('bg_slideshow', 'bg_overlay')
130
  ),
131
  'parallax' => array(
132
- 'sections' => array('bg_parallax', 'bg_overlay')
133
  )
134
  ),
135
  'preview' => array(
@@ -138,30 +138,6 @@ FLBuilder::register_settings_form('row', array(
138
  )
139
  )
140
  ),
141
- 'bg_color' => array(
142
- 'title' => __('Background Color', 'fl-builder'),
143
- 'fields' => array(
144
- 'bg_color' => array(
145
- 'type' => 'color',
146
- 'label' => __('Color', 'fl-builder'),
147
- 'show_reset' => true,
148
- 'preview' => array(
149
- 'type' => 'none'
150
- )
151
- ),
152
- 'bg_opacity' => array(
153
- 'type' => 'text',
154
- 'label' => __('Opacity', 'fl-builder'),
155
- 'default' => '100',
156
- 'description' => '%',
157
- 'maxlength' => '3',
158
- 'size' => '5',
159
- 'preview' => array(
160
- 'type' => 'none'
161
- )
162
- )
163
- )
164
- ),
165
  'bg_photo' => array(
166
  'title' => __('Background Photo', 'fl-builder'),
167
  'fields' => array(
@@ -383,6 +359,30 @@ FLBuilder::register_settings_form('row', array(
383
  )
384
  )
385
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
386
  'bg_overlay' => array(
387
  'title' => __('Background Overlay', 'fl-builder'),
388
  'fields' => array(
@@ -668,4 +668,4 @@ FLBuilder::register_settings_form('row', array(
668
  )
669
  )
670
  )
671
- ));
120
  'sections' => array('bg_color')
121
  ),
122
  'photo' => array(
123
+ 'sections' => array('bg_color', 'bg_photo', 'bg_overlay')
124
  ),
125
  'video' => array(
126
+ 'sections' => array('bg_color', 'bg_video', 'bg_overlay')
127
  ),
128
  'slideshow' => array(
129
+ 'sections' => array('bg_color', 'bg_slideshow', 'bg_overlay')
130
  ),
131
  'parallax' => array(
132
+ 'sections' => array('bg_color','bg_parallax', 'bg_overlay')
133
  )
134
  ),
135
  'preview' => array(
138
  )
139
  )
140
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  'bg_photo' => array(
142
  'title' => __('Background Photo', 'fl-builder'),
143
  'fields' => array(
359
  )
360
  )
361
  ),
362
+ 'bg_color' => array(
363
+ 'title' => __('Background Color', 'fl-builder'),
364
+ 'fields' => array(
365
+ 'bg_color' => array(
366
+ 'type' => 'color',
367
+ 'label' => __('Color', 'fl-builder'),
368
+ 'show_reset' => true,
369
+ 'preview' => array(
370
+ 'type' => 'none'
371
+ )
372
+ ),
373
+ 'bg_opacity' => array(
374
+ 'type' => 'text',
375
+ 'label' => __('Opacity', 'fl-builder'),
376
+ 'default' => '100',
377
+ 'description' => '%',
378
+ 'maxlength' => '3',
379
+ 'size' => '5',
380
+ 'preview' => array(
381
+ 'type' => 'none'
382
+ )
383
+ )
384
+ )
385
+ ),
386
  'bg_overlay' => array(
387
  'title' => __('Background Overlay', 'fl-builder'),
388
  'fields' => array(
668
  )
669
  )
670
  )
671
+ ));
includes/updater-config.php CHANGED
@@ -3,7 +3,7 @@
3
  if(class_exists('FLUpdater')) {
4
  FLUpdater::add_product(array(
5
  'name' => 'Beaver Builder Plugin (Lite Version)',
6
- 'version' => '1.6.4.4',
7
  'slug' => 'bb-plugin',
8
  'type' => 'plugin'
9
  ));
3
  if(class_exists('FLUpdater')) {
4
  FLUpdater::add_product(array(
5
  'name' => 'Beaver Builder Plugin (Lite Version)',
6
+ 'version' => '1.6.4.7',
7
  'slug' => 'bb-plugin',
8
  'type' => 'plugin'
9
  ));
js/fl-builder-layout.js CHANGED
@@ -463,6 +463,7 @@
463
  responsiveLabel.trigger( 'click' );
464
  }
465
  else {
 
466
  label.trigger( 'click' );
467
  }
468
 
@@ -528,11 +529,29 @@
528
  * @access private
529
  * @method _scrollToElementOnLinkClick
530
  * @param {Object} e An event object.
 
531
  */
532
  _scrollToElementOnLinkClick: function( e, callback )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
533
  {
534
  var config = FLBuilderLayoutConfig.anchorLinkAnimations,
535
- element = $( '#' + $( this ).attr( 'href' ).split( '#' ).pop() ),
536
  dest = 0,
537
  win = $( window ),
538
  doc = $( document );
@@ -547,8 +566,6 @@
547
  }
548
 
549
  $( 'html, body' ).animate( { scrollTop: dest }, config.duration, config.easing, callback );
550
-
551
- e.preventDefault();
552
  }
553
  },
554
 
@@ -611,6 +628,7 @@
611
  FLBuilderLayout._scrollToElementOnLinkClick.call( this, e, callback );
612
  }
613
  else {
 
614
  label.trigger( 'click' );
615
  }
616
 
463
  responsiveLabel.trigger( 'click' );
464
  }
465
  else {
466
+ FLBuilderLayout._scrollToElement( label );
467
  label.trigger( 'click' );
468
  }
469
 
529
  * @access private
530
  * @method _scrollToElementOnLinkClick
531
  * @param {Object} e An event object.
532
+ * @param {Function} callback A function to call when the scroll is complete.
533
  */
534
  _scrollToElementOnLinkClick: function( e, callback )
535
+ {
536
+ var element = $( '#' + $( this ).attr( 'href' ).split( '#' ).pop() );
537
+
538
+ FLBuilderLayout._scrollToElement( element, callback );
539
+
540
+ e.preventDefault();
541
+ },
542
+
543
+ /**
544
+ * Scrolls to an element.
545
+ *
546
+ * @since 1.6.4.5
547
+ * @access private
548
+ * @method _scrollToElement
549
+ * @param {Object} element The element to scroll to.
550
+ * @param {Function} callback A function to call when the scroll is complete.
551
+ */
552
+ _scrollToElement: function( element, callback )
553
  {
554
  var config = FLBuilderLayoutConfig.anchorLinkAnimations,
 
555
  dest = 0,
556
  win = $( window ),
557
  doc = $( document );
566
  }
567
 
568
  $( 'html, body' ).animate( { scrollTop: dest }, config.duration, config.easing, callback );
 
 
569
  }
570
  },
571
 
628
  FLBuilderLayout._scrollToElementOnLinkClick.call( this, e, callback );
629
  }
630
  else {
631
+ FLBuilderLayout._scrollToElement( label );
632
  label.trigger( 'click' );
633
  }
634
 
js/fl-builder-preview.js CHANGED
@@ -639,21 +639,27 @@
639
 
640
  // Photo
641
  else if(val == 'photo') {
 
642
  this.elements.bgImageSrc.trigger('change');
643
  }
644
 
645
  // Video
646
- else if(val == 'video' && this.elements.bgVideo.val() != '') {
647
- this.preview();
 
 
 
648
  }
649
 
650
  // Slideshow
651
  else if(val == 'slideshow') {
 
652
  this._bgSlideshowChange();
653
  }
654
 
655
  // Parallax
656
  else if(val == 'parallax') {
 
657
  this.elements.bgParallaxImageSrc.trigger('change');
658
  }
659
  },
639
 
640
  // Photo
641
  else if(val == 'photo') {
642
+ this.elements.bgColor.trigger('change');
643
  this.elements.bgImageSrc.trigger('change');
644
  }
645
 
646
  // Video
647
+ else if(val == 'video') {
648
+ this.elements.bgColor.trigger('change');
649
+ if (this.elements.bgVideo.val() != '') {
650
+ this.preview();
651
+ }
652
  }
653
 
654
  // Slideshow
655
  else if(val == 'slideshow') {
656
+ this.elements.bgColor.trigger('change');
657
  this._bgSlideshowChange();
658
  }
659
 
660
  // Parallax
661
  else if(val == 'parallax') {
662
+ this.elements.bgColor.trigger('change');
663
  this.elements.bgParallaxImageSrc.trigger('change');
664
  }
665
  },
js/fl-builder.js CHANGED
@@ -2026,15 +2026,22 @@
2026
  {
2027
  var cleaned = $( '<div id="fl-cleaned-content">' + html + '</div>' ),
2028
  src = '',
2029
- script = null;
2030
-
 
 
2031
  cleaned.find( 'script' ).each( function() {
2032
 
2033
- src = $( this ).attr( 'src' );
2034
- script = $( 'script[src="' + src + '"]' );
 
2035
 
2036
- if ( script.length > 0 ) {
2037
- $( this ).remove();
 
 
 
 
2038
  }
2039
  });
2040
 
@@ -2440,6 +2447,7 @@
2440
  {
2441
  $('.fl-row').removeClass('fl-block-overlay-active');
2442
  $('.fl-row-overlay').remove();
 
2443
  },
2444
 
2445
  /**
@@ -2491,10 +2499,19 @@
2491
  template = wp.template( 'fl-row-overlay' );
2492
 
2493
  if ( ! row.hasClass( 'fl-block-overlay-active' ) ) {
 
 
2494
  FLBuilder._appendOverlay( row, template( {
2495
  global : row.hasClass( 'fl-node-global' ),
2496
  node : row.attr('data-node')
2497
  } ) );
 
 
 
 
 
 
 
2498
  }
2499
  },
2500
 
@@ -3383,11 +3400,6 @@
3383
  }
3384
  // Show the overlay.
3385
  else if ( ! module.hasClass( 'fl-block-overlay-active' ) ) {
3386
-
3387
- // Adjust the height if needed.
3388
- if ( module.outerHeight( true ) < 20 ) {
3389
- module.addClass( 'fl-module-adjust-height' );
3390
- }
3391
 
3392
  // Append the template.
3393
  FLBuilder._appendOverlay( module, template( {
@@ -3438,7 +3450,6 @@
3438
  {
3439
  var modules = $('.fl-module');
3440
 
3441
- modules.removeClass('fl-module-adjust-height');
3442
  modules.removeClass('fl-block-overlay-active');
3443
  modules.find('.fl-module-overlay').remove();
3444
  $('body').removeClass('fl-block-overlay-muted');
@@ -4522,7 +4533,8 @@
4522
  preFill : field.data('value'),
4523
  queryParam : 'fl_as_query',
4524
  afterSelectionAdd : FLBuilder._updateAutoSuggestField,
4525
- afterSelectionRemove : FLBuilder._updateAutoSuggestField
 
4526
  });
4527
  },
4528
 
2026
  {
2027
  var cleaned = $( '<div id="fl-cleaned-content">' + html + '</div>' ),
2028
  src = '',
2029
+ script = null,
2030
+ loc = window.location,
2031
+ origin = loc.protocol + '//' + loc.hostname + ( loc.port ? ':' + loc.port: '' );
2032
+
2033
  cleaned.find( 'script' ).each( function() {
2034
 
2035
+ src = $( this ).attr( 'src' );
2036
+
2037
+ if ( 'undefined' != typeof src ) {
2038
 
2039
+ src = src.replace( origin, '' );
2040
+ script = $( 'script[src*="' + src + '"]' );
2041
+
2042
+ if ( script.length > 0 ) {
2043
+ $( this ).remove();
2044
+ }
2045
  }
2046
  });
2047
 
2447
  {
2448
  $('.fl-row').removeClass('fl-block-overlay-active');
2449
  $('.fl-row-overlay').remove();
2450
+ $('.fl-module').removeClass('fl-module-adjust-height');
2451
  },
2452
 
2453
  /**
2499
  template = wp.template( 'fl-row-overlay' );
2500
 
2501
  if ( ! row.hasClass( 'fl-block-overlay-active' ) ) {
2502
+
2503
+ // Append the overlay.
2504
  FLBuilder._appendOverlay( row, template( {
2505
  global : row.hasClass( 'fl-node-global' ),
2506
  node : row.attr('data-node')
2507
  } ) );
2508
+
2509
+ // Adjust the height of modules if needed.
2510
+ row.find( '.fl-module' ).each( function(){
2511
+ if ( $( this ).outerHeight( true ) < 20 ) {
2512
+ $( this ).addClass( 'fl-module-adjust-height' );
2513
+ }
2514
+ } );
2515
  }
2516
  },
2517
 
3400
  }
3401
  // Show the overlay.
3402
  else if ( ! module.hasClass( 'fl-block-overlay-active' ) ) {
 
 
 
 
 
3403
 
3404
  // Append the template.
3405
  FLBuilder._appendOverlay( module, template( {
3450
  {
3451
  var modules = $('.fl-module');
3452
 
 
3453
  modules.removeClass('fl-block-overlay-active');
3454
  modules.find('.fl-module-overlay').remove();
3455
  $('body').removeClass('fl-block-overlay-muted');
4533
  preFill : field.data('value'),
4534
  queryParam : 'fl_as_query',
4535
  afterSelectionAdd : FLBuilder._updateAutoSuggestField,
4536
+ afterSelectionRemove : FLBuilder._updateAutoSuggestField,
4537
+ selectionLimit : field.data('limit')
4538
  });
4539
  },
4540
 
languages/cs_CZ.mo ADDED
Binary file
languages/cs_CZ.po ADDED
@@ -0,0 +1,5359 @@