Skip to content

Commit

Permalink
Merge pull request #1150 from live-composer/release_1_5_49
Browse files Browse the repository at this point in the history
Release 1.5.49
  • Loading branch information
nitin-blueastral authored Oct 18, 2024
2 parents a6da2d8 + 1ffbe50 commit 5a659a2
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
4 changes: 2 additions & 2 deletions ds-live-composer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://www.livecomposerplugin.com
* Description: Page builder for WordPress with drag and drop header/footer editing.
* Author: Live Composer Team
* Version: 1.5.48
* Version: 1.5.49
* Author URI: https://livecomposerplugin.com
* License: GPL3
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -41,7 +41,7 @@
* Constants
*/

define( 'DS_LIVE_COMPOSER_VER', '1.5.48' );
define( 'DS_LIVE_COMPOSER_VER', '1.5.49' );

define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
Expand Down
6 changes: 3 additions & 3 deletions includes/css-generation.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ function dslc_module_gen_css( $atts, $settings_raw ) {

foreach ( $options_arr as $option_arr ) {

if ( 'image' === $option_arr['type'] ) {
if ( isset( $option_arr['type'] ) && 'image' === $option_arr['type'] ) {
if ( isset( $settings[ $option_arr['id'] ] ) && ! empty( $settings[ $option_arr['id'] ] ) && is_numeric( $settings[ $option_arr['id'] ] ) ) {
$dslc_var_image_option_bckp[ $option_arr['id'] ] = $settings[ $option_arr['id'] ];
$image_info = wp_get_attachment_image_src( $settings[ $option_arr['id'] ], 'full' );
Expand All @@ -409,7 +409,7 @@ function dslc_module_gen_css( $atts, $settings_raw ) {
}

// Fix css_custom value ( issue when default changed programmatically ).
if ( 'css_custom' === $option_arr['id'] && 'DSLC_Text_Simple' === $module_id && ! isset( $settings['css_custom'] ) ) {
if ( isset( $option_arr['id'] ) && 'css_custom' === $option_arr['id'] && 'DSLC_Text_Simple' === $module_id && ! isset( $settings['css_custom'] ) ) {
$settings['css_custom'] = $option_arr['std'];
}
}
Expand Down Expand Up @@ -576,7 +576,7 @@ function dslc_generate_module_css( $module_structure, $module_settings, $restart
// Transform module options into css rulles.
foreach ( $module_structure as $option_arr ) {

$option_id = $option_arr['id'];
$option_id = isset( $option_arr['id'] ) ? $option_arr['id'] : null;

// 🔖 RAW CODE CLEANUP
// if ( isset( $module_settings[ $option_id ] ) && ! empty( $module_settings[ $option_id ] ) ) {
Expand Down
4 changes: 2 additions & 2 deletions includes/display-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ function dslc_module_front( $atts, $settings_raw = null, $is_header_footer = fal
// 🔖 RAW CODE CLEANUP
foreach ( $module_struct as $option ) {
// Fix 'Undefined index' notices.
if ( ! isset( $settings[ $option['id'] ] ) ) {
if ( isset( $option['id'] ) && ! isset( $settings[ $option['id'] ] ) ) {
$settings[ $option['id'] ] = false;
}
}
Expand All @@ -1117,7 +1117,7 @@ function dslc_module_front( $atts, $settings_raw = null, $is_header_footer = fal
// Transform image ID to URL
foreach ( $module_struct as $option ) {

if ( 'image' === $option['type'] ) {
if ( isset( $option['type'] ) && 'image' === $option['type'] ) {
if ( isset( $settings[ $option['id'] ] ) && ! empty( $settings[ $option['id'] ] ) && is_numeric( $settings[ $option['id'] ] ) ) {

$dslc_var_image_option_bckp[ $option['id'] ] = $settings[ $option['id'] ];
Expand Down
8 changes: 7 additions & 1 deletion includes/module-controls.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,16 @@ public function output_control() {

<?php elseif ( 'radio' === $module_control['type'] ) : ?>

<?php

$curr_value = $this->get_starting_value();

?>

<div class="dslca-module-edit-option-radio-wrapper">
<?php foreach ( $module_control['choices'] as $checkbox_option ) : ?>
<div class="dslca-module-edit-option-radio-single">
<input type="radio" class="dslca-module-edit-field" data-id="<?php echo esc_attr( $module_control['id'] ); ?>" name="<?php echo esc_attr( $module_control['id'] ); ?>" value="<?php echo $checkbox_option['value']; ?>" /> <?php echo $checkbox_option['label']; ?><br>
<input type="radio" class="dslca-module-edit-field" data-id="<?php echo esc_attr( $module_control['id'] ); ?>" name="<?php echo esc_attr( $module_control['id'] ); ?>" value="<?php echo $checkbox_option['value']; ?>" <?php if ( $curr_value == $checkbox_option['value'] ) { echo 'checked="checked"';} ?> /> <?php echo $checkbox_option['label']; ?><br>
</div><!-- .dslca-module-edit-option-radio-single -->
<?php endforeach; ?>
</div><!-- .dslca-module-edit-option-radio-wrapper -->
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: LiveComposer
Tags: page builder, landing page builder, frontend page builder, drag and drop page builder, website builder
Requires at least: 4.7
Tested up to: 6.6
Stable tag: 1.5.48
Stable tag: 1.5.49
License: GPLv3

Page builder for WordPress with drag and drop header/footer editing, responsive settings, and animations. Compatible with Gutenberg block editor.
Expand Down Expand Up @@ -203,6 +203,9 @@ If you're migrating from another page builder, compatibility for content transfe
* 🦊 [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)
* 👀 [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.

= 1.5.49 - October 19 2024 =
* Fixed warnings and exception handling.

= 1.5.48 - October 4 2024 =
* Fixed Depandabot security issues.

Expand Down

0 comments on commit 5a659a2

Please sign in to comment.