Version Description
- Fixed lightbox.
Download this release
Release Info
Developer | boldthemes |
Plugin | Bold Page Builder |
Version | 4.4.0 |
Comparing to | |
See all releases |
Code changes from version 4.3.9 to 4.4.0
bold-builder.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* Plugin Name: Bold Builder
|
5 |
* Description: WordPress page builder.
|
6 |
-
* Version: 4.
|
7 |
* Author: BoldThemes
|
8 |
* Author URI: https://www.bold-themes.com
|
9 |
* Text Domain: bold-builder
|
@@ -12,7 +12,7 @@
|
|
12 |
defined( 'ABSPATH' ) || exit;
|
13 |
|
14 |
// VERSION --------------------------------------------------------- \\
|
15 |
-
define( 'BT_BB_VERSION', '4.
|
16 |
// VERSION --------------------------------------------------------- \\
|
17 |
|
18 |
/**
|
3 |
/**
|
4 |
* Plugin Name: Bold Builder
|
5 |
* Description: WordPress page builder.
|
6 |
+
* Version: 4.4.0
|
7 |
* Author: BoldThemes
|
8 |
* Author URI: https://www.bold-themes.com
|
9 |
* Text Domain: bold-builder
|
12 |
defined( 'ABSPATH' ) || exit;
|
13 |
|
14 |
// VERSION --------------------------------------------------------- \\
|
15 |
+
define( 'BT_BB_VERSION', '4.4.0' );
|
16 |
// VERSION --------------------------------------------------------- \\
|
17 |
|
18 |
/**
|
content_elements/bt_bb_image/bt_bb_image.php
CHANGED
@@ -68,6 +68,9 @@ class bt_bb_image extends BT_BB_Element {
|
|
68 |
if ( $target == '_lightbox' ) {
|
69 |
$class[] = 'bt_bb_use_lightbox';
|
70 |
$target = '_blank';
|
|
|
|
|
|
|
71 |
}
|
72 |
|
73 |
$this->responsive_data_override_class(
|
@@ -246,8 +249,8 @@ class bt_bb_image extends BT_BB_Element {
|
|
246 |
)
|
247 |
),
|
248 |
array( 'param_name' => 'caption', 'type' => 'textfield', 'heading' => esc_html__( 'Caption', 'bold-builder' ) ),
|
249 |
-
array( 'param_name' => 'url', 'type' => 'link', 'heading' => esc_html__( 'URL', 'bold-builder' ), 'description' => esc_html__( 'Enter full or local URL (e.g. https://www.bold-themes.com or /pages/about-us), post slug (e.g. about-us)
|
250 |
-
array( 'param_name' => 'target', 'type' => 'dropdown', 'heading' => esc_html__( 'Target', 'bold-builder' ), 'description' => esc_html__( '
|
251 |
'value' => array(
|
252 |
esc_html__( 'Self (open in same tab)', 'bold-builder' ) => '_self',
|
253 |
esc_html__( 'Blank (open in new tab)', 'bold-builder' ) => '_blank',
|
68 |
if ( $target == '_lightbox' ) {
|
69 |
$class[] = 'bt_bb_use_lightbox';
|
70 |
$target = '_blank';
|
71 |
+
if ( $url == '' ) {
|
72 |
+
$link = '#lightbox';
|
73 |
+
}
|
74 |
}
|
75 |
|
76 |
$this->responsive_data_override_class(
|
249 |
)
|
250 |
),
|
251 |
array( 'param_name' => 'caption', 'type' => 'textfield', 'heading' => esc_html__( 'Caption', 'bold-builder' ) ),
|
252 |
+
array( 'param_name' => 'url', 'type' => 'link', 'heading' => esc_html__( 'URL', 'bold-builder' ), 'description' => esc_html__( 'Enter full or local URL (e.g. https://www.bold-themes.com or /pages/about-us), post slug (e.g. about-us)', 'bold-builder' ), 'group' => esc_html__( 'URL', 'bold-builder' ) ),
|
253 |
+
array( 'param_name' => 'target', 'type' => 'dropdown', 'heading' => esc_html__( 'Target', 'bold-builder' ), 'description' => esc_html__( 'To open current image in full size select lightbox and leave url empty.', 'bold-builder' ), 'group' => esc_html__( 'URL', 'bold-builder' ),
|
254 |
'value' => array(
|
255 |
esc_html__( 'Self (open in same tab)', 'bold-builder' ) => '_self',
|
256 |
esc_html__( 'Blank (open in new tab)', 'bold-builder' ) => '_blank',
|
content_elements_misc/js/content_elements.js
CHANGED
@@ -440,15 +440,13 @@
|
|
440 |
|
441 |
var url = $( this ).attr( 'href' ).trim();
|
442 |
|
443 |
-
/*alert( url );
|
444 |
-
return false;*/
|
445 |
-
|
446 |
if ( url != "" && url != "#" && url != "#lightbox" ) {
|
447 |
var contentType = url.toLowerCase().includes( '.jpg' ) || url.toLowerCase().includes( '.jpeg' ) || url.toLowerCase().includes( '.png' ) ? 'image' : 'iframe';
|
448 |
$.magnificPopup.open({
|
449 |
type: contentType,
|
450 |
items: {
|
451 |
src: url,
|
|
|
452 |
},
|
453 |
closeBtnInside: false
|
454 |
});
|
@@ -459,6 +457,7 @@
|
|
459 |
type: 'image',
|
460 |
items: {
|
461 |
src: url,
|
|
|
462 |
},
|
463 |
closeBtnInside: false,
|
464 |
fixedContentPos: false
|
@@ -479,6 +478,7 @@
|
|
479 |
type: contentType,
|
480 |
items: {
|
481 |
src: url,
|
|
|
482 |
},
|
483 |
closeBtnInside: false
|
484 |
});
|
440 |
|
441 |
var url = $( this ).attr( 'href' ).trim();
|
442 |
|
|
|
|
|
|
|
443 |
if ( url != "" && url != "#" && url != "#lightbox" ) {
|
444 |
var contentType = url.toLowerCase().includes( '.jpg' ) || url.toLowerCase().includes( '.jpeg' ) || url.toLowerCase().includes( '.png' ) ? 'image' : 'iframe';
|
445 |
$.magnificPopup.open({
|
446 |
type: contentType,
|
447 |
items: {
|
448 |
src: url,
|
449 |
+
title: $( this ).attr( 'title' ),
|
450 |
},
|
451 |
closeBtnInside: false
|
452 |
});
|
457 |
type: 'image',
|
458 |
items: {
|
459 |
src: url,
|
460 |
+
title: $( this ).attr( 'title' ),
|
461 |
},
|
462 |
closeBtnInside: false,
|
463 |
fixedContentPos: false
|
478 |
type: contentType,
|
479 |
items: {
|
480 |
src: url,
|
481 |
+
title: $( this ).attr( 'title' ),
|
482 |
},
|
483 |
closeBtnInside: false
|
484 |
});
|
content_elements_misc/misc.php
CHANGED
@@ -187,10 +187,11 @@ if ( ! function_exists( 'bt_bb_get_color_scheme_array' ) ) {
|
|
187 |
|
188 |
$options = get_option( 'bt_bb_settings' );
|
189 |
if ( ! $options ) {
|
190 |
-
|
|
|
|
|
|
|
191 |
}
|
192 |
-
$color_schemes = $options['color_schemes'];
|
193 |
-
$color_scheme_arr = explode( PHP_EOL, $color_schemes );
|
194 |
|
195 |
$color_scheme_arr = apply_filters( 'bt_bb_color_scheme_arr', $color_scheme_arr );
|
196 |
|
187 |
|
188 |
$options = get_option( 'bt_bb_settings' );
|
189 |
if ( ! $options ) {
|
190 |
+
$color_scheme_arr = array();
|
191 |
+
} else {
|
192 |
+
$color_schemes = $options['color_schemes'];
|
193 |
+
$color_scheme_arr = explode( PHP_EOL, $color_schemes );
|
194 |
}
|
|
|
|
|
195 |
|
196 |
$color_scheme_arr = apply_filters( 'bt_bb_color_scheme_arr', $color_scheme_arr );
|
197 |
|
readme.txt
CHANGED
@@ -136,6 +136,9 @@ It is not possible to test Bold Builder with all themes - it should work fine wi
|
|
136 |
|
137 |
== Changelog ==
|
138 |
|
|
|
|
|
|
|
139 |
= 4.3.9 =
|
140 |
* Minor bug fixes.
|
141 |
|
136 |
|
137 |
== Changelog ==
|
138 |
|
139 |
+
= 4.4.0 =
|
140 |
+
* Fixed lightbox.
|
141 |
+
|
142 |
= 4.3.9 =
|
143 |
* Minor bug fixes.
|
144 |
|