Version Description
- February 28th 2018 =
- WordPress 5.1 is not compatible with older PHP versions anymore. If you have issues after updating WordPress or our plugin, please ask your hosting to upgrade PHP version or do it yourself via the control panel.
- Issue #979: Fix php notices related to presets functionality.
Download this release
Release Info
Developer | LiveComposer |
Plugin | Page Builder: Live Composer – drag and drop website builder (visual front end site editor) |
Version | 1.4.2 |
Comparing to | |
See all releases |
Code changes from version 1.4.1 to 1.4.2
- ds-live-composer.php +2 -2
- includes/class.module.php +4 -3
- includes/display-functions.php +4 -0
- includes/editing-screen.php +13 -1
- includes/header-footer.php +2 -2
- includes/other.php +4 -0
- includes/styling-presets.php +1 -1
- modules/image/module.php +4 -3
- modules/tp-gallery-slider/module.php +2 -2
- readme.txt +7 -3
ds-live-composer.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://www.livecomposerplugin.com
|
5 |
* Description: Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
|
6 |
* Author: Live Composer Team
|
7 |
-
* Version: 1.4.
|
8 |
* Author URI: https://livecomposerplugin.com
|
9 |
* License: GPL3
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -41,7 +41,7 @@ if ( ! defined( 'DS_LIVE_COMPOSER_VER' ) && version_compare( PHP_VERSION, '5.3.0
|
|
41 |
* Constants
|
42 |
*/
|
43 |
|
44 |
-
define( 'DS_LIVE_COMPOSER_VER', '1.4.
|
45 |
|
46 |
define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
|
47 |
define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
|
4 |
* Plugin URI: https://www.livecomposerplugin.com
|
5 |
* Description: Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
|
6 |
* Author: Live Composer Team
|
7 |
+
* Version: 1.4.2
|
8 |
* Author URI: https://livecomposerplugin.com
|
9 |
* License: GPL3
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
41 |
* Constants
|
42 |
*/
|
43 |
|
44 |
+
define( 'DS_LIVE_COMPOSER_VER', '1.4.2' );
|
45 |
|
46 |
define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
|
47 |
define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
|
includes/class.module.php
CHANGED
@@ -2523,8 +2523,9 @@ class DSLC_Module {
|
|
2523 |
*/
|
2524 |
|
2525 |
$class_show_on = '';
|
2526 |
-
|
2527 |
-
|
|
|
2528 |
|
2529 |
$show_on = explode( ' ', trim( $options['css_show_on'] ) );
|
2530 |
|
@@ -2854,7 +2855,7 @@ class DSLC_Module {
|
|
2854 |
);
|
2855 |
|
2856 |
// Get current presets.
|
2857 |
-
$presets = get_option( 'dslc_presets' );
|
2858 |
if ( false !== $presets ) {
|
2859 |
$presets = maybe_unserialize( $presets );
|
2860 |
foreach ( $presets as $preset ) {
|
2523 |
*/
|
2524 |
|
2525 |
$class_show_on = '';
|
2526 |
+
|
2527 |
+
// Add visibility classes but only is this setting set or it's not set to false (boolean).
|
2528 |
+
if ( isset( $options['css_show_on'] ) && $options['css_show_on'] !== false ) {
|
2529 |
|
2530 |
$show_on = explode( ' ', trim( $options['css_show_on'] ) );
|
2531 |
|
2855 |
);
|
2856 |
|
2857 |
// Get current presets.
|
2858 |
+
$presets = get_option( 'dslc_presets', false );
|
2859 |
if ( false !== $presets ) {
|
2860 |
$presets = maybe_unserialize( $presets );
|
2861 |
foreach ( $presets as $preset ) {
|
includes/display-functions.php
CHANGED
@@ -28,6 +28,10 @@ function dslc_display_composer() {
|
|
28 |
global $dslc_active;
|
29 |
|
30 |
$screen = get_current_screen();
|
|
|
|
|
|
|
|
|
31 |
|
32 |
if ( $screen->id != 'toplevel_page_livecomposer_editor' ) {
|
33 |
|
28 |
global $dslc_active;
|
29 |
|
30 |
$screen = get_current_screen();
|
31 |
+
|
32 |
+
if ( ! is_object( $screen ) ) {
|
33 |
+
return;
|
34 |
+
}
|
35 |
|
36 |
if ( $screen->id != 'toplevel_page_livecomposer_editor' ) {
|
37 |
|
includes/editing-screen.php
CHANGED
@@ -70,6 +70,10 @@ function dslc_editing_screen() {
|
|
70 |
function dslc_editing_screen_content() {
|
71 |
|
72 |
$screen = get_current_screen();
|
|
|
|
|
|
|
|
|
73 |
|
74 |
// Proceed only if current page is Live Composer editing page in WP Admin
|
75 |
// and has access role.
|
@@ -188,8 +192,12 @@ add_action( 'admin_head', 'dslc_editing_screen_head' );
|
|
188 |
*/
|
189 |
function dslc_editing_screen_footer() {
|
190 |
$screen = get_current_screen();
|
|
|
|
|
|
|
|
|
191 |
|
192 |
-
if ( 'toplevel_page_livecomposer_editor' !== $screen->id
|
193 |
return;
|
194 |
}
|
195 |
|
@@ -240,6 +248,10 @@ add_action( 'wp_head', 'dslc_preview_area_head' );
|
|
240 |
*/
|
241 |
function dslc_editing_screen_title( $title ) {
|
242 |
$screen = get_current_screen();
|
|
|
|
|
|
|
|
|
243 |
|
244 |
if ( 'toplevel_page_livecomposer_editor' !== $screen->id || ! isset( $_GET['page_id'] ) ) {
|
245 |
return $title;
|
70 |
function dslc_editing_screen_content() {
|
71 |
|
72 |
$screen = get_current_screen();
|
73 |
+
|
74 |
+
if ( ! is_object( $screen ) ) {
|
75 |
+
return;
|
76 |
+
}
|
77 |
|
78 |
// Proceed only if current page is Live Composer editing page in WP Admin
|
79 |
// and has access role.
|
192 |
*/
|
193 |
function dslc_editing_screen_footer() {
|
194 |
$screen = get_current_screen();
|
195 |
+
|
196 |
+
if ( ! is_object( $screen ) ) {
|
197 |
+
return;
|
198 |
+
}
|
199 |
|
200 |
+
if ( ! current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) || 'toplevel_page_livecomposer_editor' !== $screen->id ) {
|
201 |
return;
|
202 |
}
|
203 |
|
248 |
*/
|
249 |
function dslc_editing_screen_title( $title ) {
|
250 |
$screen = get_current_screen();
|
251 |
+
|
252 |
+
if ( ! is_object( $screen ) ) {
|
253 |
+
return;
|
254 |
+
}
|
255 |
|
256 |
if ( 'toplevel_page_livecomposer_editor' !== $screen->id || ! isset( $_GET['page_id'] ) ) {
|
257 |
return $title;
|
includes/header-footer.php
CHANGED
@@ -607,9 +607,9 @@ function dslc_hf_get_headerfooter( $post_id = false, $hf_type = 'header' ) {
|
|
607 |
|
608 |
// ============================================================
|
609 |
if ( 'fixed' === $position ) {
|
610 |
-
$editing_parametters .= ' data-editing-sublabel="' . __( 'To preview FIXED positioning click on
|
611 |
} elseif ( 'absolute' === $position ) {
|
612 |
-
$editing_parametters .= ' data-editing-sublabel="' . __( 'To preview ABSOLUTE positioning click on
|
613 |
}
|
614 |
}
|
615 |
|
607 |
|
608 |
// ============================================================
|
609 |
if ( 'fixed' === $position ) {
|
610 |
+
$editing_parametters .= ' data-editing-sublabel="' . __( 'To preview FIXED positioning click on [Hide Editor] button.','live-composer-page-builder' ) . '"';
|
611 |
} elseif ( 'absolute' === $position ) {
|
612 |
+
$editing_parametters .= ' data-editing-sublabel="' . __( 'To preview ABSOLUTE positioning click on [Hide Editor] button.','live-composer-page-builder' ) . '"';
|
613 |
}
|
614 |
}
|
615 |
|
includes/other.php
CHANGED
@@ -108,6 +108,10 @@ function dslc_icons_modal() {
|
|
108 |
'toplevel_page_livecomposer_editor',
|
109 |
'nav-menus',
|
110 |
);
|
|
|
|
|
|
|
|
|
111 |
|
112 |
if ( ! in_array( $screen->id, $screens_with_icon_modal, true ) ) {
|
113 |
return;
|
108 |
'toplevel_page_livecomposer_editor',
|
109 |
'nav-menus',
|
110 |
);
|
111 |
+
|
112 |
+
if ( ! is_object( $screen ) ) {
|
113 |
+
return;
|
114 |
+
}
|
115 |
|
116 |
if ( ! in_array( $screen->id, $screens_with_icon_modal, true ) ) {
|
117 |
return;
|
includes/styling-presets.php
CHANGED
@@ -116,7 +116,7 @@ function dslc_save_preset( $preset_name, $preset_code_raw, $module_id ) {
|
|
116 |
|
117 |
if ( isset( $preset_code_raw[ $module_option['id'] ] ) ) {
|
118 |
|
119 |
-
if ( ! $module_option['ignored_by_preset'] ) {
|
120 |
$preset_code[ $module_option['id'] ] = $preset_code_raw[ $module_option['id'] ];
|
121 |
}
|
122 |
}
|
116 |
|
117 |
if ( isset( $preset_code_raw[ $module_option['id'] ] ) ) {
|
118 |
|
119 |
+
if ( ! isset( $module_option['ignored_by_preset'] ) && ! $module_option['ignored_by_preset'] ) {
|
120 |
$preset_code[ $module_option['id'] ] = $preset_code_raw[ $module_option['id'] ];
|
121 |
}
|
122 |
}
|
modules/image/module.php
CHANGED
@@ -880,11 +880,12 @@ class DSLC_Image extends DSLC_Module {
|
|
880 |
|
881 |
<?php
|
882 |
|
|
|
883 |
$parsed = parse_url( $anchor_href );
|
884 |
-
if ( empty( $parsed['scheme'] ) ) {
|
885 |
-
$image_url = '//' . ltrim( $anchor_href, '/' );
|
886 |
-
} else {
|
887 |
$image_url = $anchor_href;
|
|
|
|
|
888 |
}
|
889 |
|
890 |
$srcset = '';
|
880 |
|
881 |
<?php
|
882 |
|
883 |
+
|
884 |
$parsed = parse_url( $anchor_href );
|
885 |
+
if ( '/' === $anchor_href || ! empty( $parsed['scheme'] ) ) {
|
|
|
|
|
886 |
$image_url = $anchor_href;
|
887 |
+
} else {
|
888 |
+
$image_url = '//' . ltrim( $anchor_href, '/' );
|
889 |
}
|
890 |
|
891 |
$srcset = '';
|
modules/tp-gallery-slider/module.php
CHANGED
@@ -1216,10 +1216,10 @@ class DSLC_TP_Gallery_Slider extends DSLC_Module {
|
|
1216 |
$thumb_alt = get_post_meta( $gallery_image, '_wp_attachment_image_alt', true );
|
1217 |
if ( ! $thumb_alt ) { $thumb_alt = ''; }
|
1218 |
|
1219 |
-
$thumb_title = get_the_title(
|
1220 |
if ( ! $thumb_title ) { $thumb_title = ''; }
|
1221 |
|
1222 |
-
$thumb_caption = wp_get_attachment_caption(
|
1223 |
if ( ! $thumb_caption ) { $thumb_caption = ''; }
|
1224 |
|
1225 |
?><div class="dslc-slider-item"><span class="dslc-caption"><?php if ( $caption_state ) { echo $thumb_caption; } ?></span><img class="<?php echo $img_class; ?>" src="<?php echo $gallery_image_src; ?>" alt="<?php echo $thumb_alt; ?>" title="<?php echo $thumb_title; ?>" <?php echo $srcset; ?> <?php echo $sizes; ?> /></div><?php
|
1216 |
$thumb_alt = get_post_meta( $gallery_image, '_wp_attachment_image_alt', true );
|
1217 |
if ( ! $thumb_alt ) { $thumb_alt = ''; }
|
1218 |
|
1219 |
+
$thumb_title = get_the_title( $gallery_image );
|
1220 |
if ( ! $thumb_title ) { $thumb_title = ''; }
|
1221 |
|
1222 |
+
$thumb_caption = wp_get_attachment_caption( $gallery_image );
|
1223 |
if ( ! $thumb_caption ) { $thumb_caption = ''; }
|
1224 |
|
1225 |
?><div class="dslc-slider-item"><span class="dslc-caption"><?php if ( $caption_state ) { echo $thumb_caption; } ?></span><img class="<?php echo $img_class; ?>" src="<?php echo $gallery_image_src; ?>" alt="<?php echo $thumb_alt; ?>" title="<?php echo $thumb_title; ?>" <?php echo $srcset; ?> <?php echo $sizes; ?> /></div><?php
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
=== Page Builder: Live Composer
|
2 |
Contributors: LiveComposer
|
3 |
Tags: page builder, visual composer, visual editor, visual builder, drag and drop builder, landing page builder, frontend editor, frontend builder, landing pages, landing page, website builder, theme builder, site-builder, layout builder, drag-and-drop, builder, editor, responsive, mobile, layout, front end, frontend, Page Layout, squeeze page, page builder plugin, drag-n-drop page builder
|
4 |
Requires at least: 4.7
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 1.4.
|
7 |
License: GPLv3
|
8 |
|
9 |
Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
|
@@ -83,6 +83,10 @@ In most of the cases, this is because the homepage is not a real WordPress page,
|
|
83 |
* 🦊 [Check out our WooCommerce Page Builder Extension](https://livecomposerplugin.com/downloads/woocommerce-page-builder/?utm_source=wp-admin&utm_medium=changelog&utm_campaign=woo-integration)
|
84 |
* 👀 [We keep updating and improving our extensions pack](https://livecomposerplugin.com/downloads/extensions/?utm_source=wp-admin&utm_medium=changelog&utm_campaign=add-ons) ACF + CPT + MegaMenu + 9 more add-ons.
|
85 |
|
|
|
|
|
|
|
|
|
86 |
= 1.4.1 - January 10th 2018 =
|
87 |
|
88 |
= Bug Fixes: =
|
1 |
+
=== Page Builder: Live Composer – drag and drop website builder (visual front end site editor) ===
|
2 |
Contributors: LiveComposer
|
3 |
Tags: page builder, visual composer, visual editor, visual builder, drag and drop builder, landing page builder, frontend editor, frontend builder, landing pages, landing page, website builder, theme builder, site-builder, layout builder, drag-and-drop, builder, editor, responsive, mobile, layout, front end, frontend, Page Layout, squeeze page, page builder plugin, drag-n-drop page builder
|
4 |
Requires at least: 4.7
|
5 |
+
Tested up to: 5.1
|
6 |
+
Stable tag: 1.4.2
|
7 |
License: GPLv3
|
8 |
|
9 |
Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
|
83 |
* 🦊 [Check out our WooCommerce Page Builder Extension](https://livecomposerplugin.com/downloads/woocommerce-page-builder/?utm_source=wp-admin&utm_medium=changelog&utm_campaign=woo-integration)
|
84 |
* 👀 [We keep updating and improving our extensions pack](https://livecomposerplugin.com/downloads/extensions/?utm_source=wp-admin&utm_medium=changelog&utm_campaign=add-ons) ACF + CPT + MegaMenu + 9 more add-ons.
|
85 |
|
86 |
+
= 1.4.2 - February 28th 2018 =
|
87 |
+
* WordPress 5.1 is not compatible with older PHP versions anymore. If you have issues after updating WordPress or our plugin, please ask your hosting to upgrade PHP version or do it yourself via the control panel.
|
88 |
+
* Issue [#979](https://github.com/live-composer/live-composer-page-builder/issues/979): Fix php notices related to presets functionality.
|
89 |
+
|
90 |
= 1.4.1 - January 10th 2018 =
|
91 |
|
92 |
= Bug Fixes: =
|