Plugin Directory

Changeset 3413258


Ignore:
Timestamp:
12/06/2025 10:02:59 PM (7 days ago)
Author:
boldthemes
Message:

5.5.5

Location:
bold-page-builder/trunk
Files:
13 added
19 edited

Legend:

Unmodified
Added
Removed
  • bold-page-builder/trunk/add-section-template.php

    r3026956 r3413258  
    6868    echo '<script>';
    6969        echo 'window.bt_bb_fe_sections_search = ["';
    70         echo implode( '","', BT_BB_FE::$sections_arr_search );
     70        echo esc_html( implode( '","', BT_BB_FE::$sections_arr_search ) );
    7171        echo '"]';
    7272    echo '</script>';
  • bold-page-builder/trunk/admin-notice-rating.php

    r3099728 r3413258  
    11<?php
    22
    3 add_action( 'admin_notices', 'bt_bb_rating_notice' );
     3//add_action( 'admin_notices', 'bt_bb_rating_notice' );
    44function bt_bb_rating_notice() {
    55
     
    1010    if ( ! get_user_meta( $user_id, 'bt_bb_rating_notice_ignore' ) && get_user_meta( $user_id, 'bt_bb_rating_notice_enable' ) ) {
    1111       
    12         echo '<div class="notice notice-info is-dismissible bt_bb_rating_notice" style="background:#f2f8ff;"><p>'. esc_html__( 'Do you like Bold Builder?', 'bold-builder' ) . ' ' . esc_html__( 'You can contribute by leaving us a', 'bold-builder' ) . ' ' . ' <a href="https://wordpress.org/support/plugin/bold-page-builder/reviews/?filter=5" target="_blank">'. esc_html__( 'review', 'bold-builder' ) . '</a>' . '. ' . esc_html__( 'Thanks!', 'bold-builder' ) . ' 🙂</p></div>';
    13        
    14         // echo '<div class="notice notice-warning is-dismissible bt_bb_rating_notice"><p>'. __( '<b>IMPORTANT!</b> This version of Bold Builder may cause layout issues with older theme versions. Please ensure that your theme is updated to the latest version.', 'bold-builder' ) . '</div>';
     12        echo '<div class="notice notice-info is-dismissible bt_bb_rating_notice" style="background:#f2f8ff;"><p>'. esc_html__( 'Do you like Bold Builder?', 'bold-builder' ) . ' ' . esc_html__( 'You can contribute by leaving us a', 'bold-builder' ) . ' ' . ' <a href="https://wordpress.org/support/plugin/bold-page-builder/reviews/" target="_blank">'. esc_html__( 'review', 'bold-builder' ) . '</a>' . '. ' . esc_html__( 'Thanks!', 'bold-builder' ) . ' 🙂</p></div>';
    1513       
    1614    }
  • bold-page-builder/trunk/ai/ai.php

    r3034441 r3413258  
    177177        if ( is_array( $result ) ) {
    178178            if ( isset( $result['error'] ) ) {
    179                 echo $result['error']['message'];
     179                echo esc_html( $result['error']['message'] );
    180180            } else {
    181181                if ( is_array( $target ) ) {
    182182                    if ( $modify ) {
    183                         echo str_ireplace( '\\\\', '\\', $result['choices'][0]['message']['content'] );
     183                        echo esc_html( str_ireplace( '\\\\', '\\', $result['choices'][0]['message']['content'] ) );
    184184                    } else {
    185                         echo $result['choices'][0]['message']['tool_calls'][0]['function']['arguments'];
     185                        echo esc_html( $result['choices'][0]['message']['tool_calls'][0]['function']['arguments'] );
    186186                    }
    187187                } else { // _content
  • bold-page-builder/trunk/bold-builder-fe.php

    r3389866 r3413258  
    613613        ) );
    614614       
    615         add_action( 'wp_head', 'bt_bb_fe_head' );
     615        add_action( 'wp_enqueue_scripts', 'bt_bb_fe_head', 60 );
    616616        add_action( 'wp_head', 'bt_bb_translate' );
    617617        add_action( 'wp_footer', 'bt_bb_fe_footer' );
     
    627627
    628628function bt_bb_fe_head() {
    629     echo '<script>';
    630         echo 'window.bt_bb_fe_elements = ' . bt_bb_json_encode( BT_BB_FE::$elements ) . ';';
    631         echo 'window.bt_bb_fe_templates = ' . bt_bb_json_encode( BT_BB_FE::$templates ) . ';';
    632         echo 'window.bt_bb_fe_wpml_lang = "' . ( function_exists( 'wpml_get_current_language' ) ? apply_filters( 'wpml_current_language', null ) : null ) . '";';
    633         BT_BB_Root::$elements = apply_filters( 'bt_bb_elements', BT_BB_Root::$elements );
    634         $elements = BT_BB_Root::$elements;
    635         foreach ( $elements as $key => $value ) {
    636             $params = isset( $value[ 'params' ] ) ? $value[ 'params' ] : null;
    637             $params1 = array();
    638             if ( is_array( $params ) ) {
    639                 foreach ( $params as $param ) {
    640                     $params1[ $param['param_name'] ] = $param;
    641                 }
     629    $script = '';
     630    $script .= 'window.bt_bb_fe_elements = ' . bt_bb_json_encode( BT_BB_FE::$elements ) . ';';
     631    $script .= 'window.bt_bb_fe_templates = ' . bt_bb_json_encode( BT_BB_FE::$templates ) . ';';
     632    $script .= 'window.bt_bb_fe_wpml_lang = "' . esc_js( function_exists( 'wpml_get_current_language' ) ? apply_filters( 'wpml_current_language', null ) : null ) . '";';
     633   
     634    BT_BB_Root::$elements = apply_filters( 'bt_bb_elements', BT_BB_Root::$elements );
     635    $elements = BT_BB_Root::$elements;
     636    foreach ( $elements as $key => $value ) {
     637        $params = isset( $value[ 'params' ] ) ? $value[ 'params' ] : null;
     638        $params1 = array();
     639        if ( is_array( $params ) ) {
     640            foreach ( $params as $param ) {
     641                $params1[ $param['param_name'] ] = $param;
    642642            }
    643             $elements[ $key ][ 'params' ] = $params1;
    644643        }
    645         echo 'window.bt_bb_elements = ' . bt_bb_json_encode( $elements ) . ';';
    646         global $post;
    647         echo 'window.bt_bb_post_id = ' . $post->ID . ';';
    648         echo 'window.bt_bb_edit_url = "' . get_edit_post_link( get_the_ID(), '' ) . '";';
    649         echo 'window.bt_bb_settings = [];';
    650         $options = get_option( 'bt_bb_settings' );
    651         $slug_url = array_key_exists( 'slug_url', $options ) ? $options['slug_url'] : '';
    652         echo 'window.bt_bb_settings.slug_url = "' . esc_js( $slug_url ) . '";';
    653         echo 'window.bt_bb_ajax_url = "' . esc_js( admin_url( 'admin-ajax.php' ) ) . '";'; // back. compat.
    654         echo 'window.bt_bb_fa_url = "' . plugins_url( 'css/font-awesome.min.css', __FILE__ ) . '";';
    655         echo 'window.bt_bb_fe_dialog_content_css_url = "' . plugins_url( 'css/front_end/fe_dialog_content.crush.css', __FILE__ ) . '";';
    656        
    657         if ( file_exists( get_parent_theme_file_path( '/admin-style.css' ) ) ) {
    658             echo 'window.bt_bb_fe_dialog_admin_css = "' . get_parent_theme_file_uri( 'admin-style.css' ) . '";';
    659         }
    660        
    661         echo 'window.bt_bb_fe_dialog_bottom_css_url = "' . plugins_url( 'css/front_end/fe_dialog_bottom.crush.css', __FILE__ ) . '";';
    662         if ( is_rtl() ) {
    663             echo 'window.bt_bb_rtl = true;';
    664         } else {
    665             echo 'window.bt_bb_rtl = false;';
    666         }
    667         if ( function_exists( 'boldthemes_get_icon_fonts_bb_array' ) ) {
    668             $icon_arr = boldthemes_get_icon_fonts_bb_array();
    669         } else {
    670             require_once( dirname(__FILE__) . '/content_elements_misc/fa_icons.php' );
    671             require_once( dirname(__FILE__) . '/content_elements_misc/fa5_regular_icons.php' );
    672             require_once( dirname(__FILE__) . '/content_elements_misc/fa5_solid_icons.php' );
    673             require_once( dirname(__FILE__) . '/content_elements_misc/fa5_brands_icons.php' );
    674             require_once( dirname(__FILE__) . '/content_elements_misc/s7_icons.php' );
    675             $icon_arr = array( 'Font Awesome' => bt_bb_fa_icons(), 'Font Awesome 5 Regular' => bt_bb_fa5_regular_icons(), 'Font Awesome 5 Solid' => bt_bb_fa5_solid_icons(), 'Font Awesome 5 Brands' => bt_bb_fa5_brands_icons(), 'S7' => bt_bb_s7_icons() );
    676         }
    677        
    678         echo 'window.bt_bb_ajax_nonce = "' . wp_create_nonce( 'bt_bb_nonce' ) . '";'; // fix nonce issue on local sites with ai.js (not working with wp_localize_script window.bt_bb_ajax.nonce)
    679        
    680         echo 'window.bt_bb_icons = JSON.parse(\'' . bt_bb_json_encode( $icon_arr ) . '\');';
    681        
    682         echo 'window.bt_bb_version = "' . BT_BB_VERSION . '";';
    683 
    684     echo '</script>';
     644        $elements[ $key ][ 'params' ] = $params1;
     645    }
     646   
     647    $script .= 'window.bt_bb_elements = ' . bt_bb_json_encode( $elements ) . ';';
     648    global $post;
     649    $script .= 'window.bt_bb_post_id = ' . absint( $post->ID ) . ';';
     650    $script .= 'window.bt_bb_edit_url = "' . esc_js( get_edit_post_link( get_the_ID(), '' ) ) . '";';
     651    $script .= 'window.bt_bb_settings = [];';
     652    $options = get_option( 'bt_bb_settings' );
     653    $slug_url = array_key_exists( 'slug_url', $options ) ? $options['slug_url'] : '';
     654    $script .= 'window.bt_bb_settings.slug_url = "' . esc_js( $slug_url ) . '";';
     655    $script .= 'window.bt_bb_ajax_url = "' . esc_js( admin_url( 'admin-ajax.php' ) ) . '";'; // back. compat.
     656    $script .= 'window.bt_bb_fa_url = "' . esc_js( plugins_url( 'css/font-awesome.min.css', __FILE__ ) ) . '";';
     657    $script .= 'window.bt_bb_fe_dialog_content_css_url = "' . esc_js( plugins_url( 'css/front_end/fe_dialog_content.crush.css', __FILE__ ) ) . '";';
     658   
     659    if ( file_exists( get_parent_theme_file_path( '/admin-style.css' ) ) ) {
     660        $script .= 'window.bt_bb_fe_dialog_admin_css = "' . esc_js( get_parent_theme_file_uri( 'admin-style.css' ) ) . '";';
     661    }
     662   
     663    $script .= 'window.bt_bb_fe_dialog_bottom_css_url = "' . esc_js( plugins_url( 'css/front_end/fe_dialog_bottom.crush.css', __FILE__ ) ) . '";';
     664    if ( is_rtl() ) {
     665        $script .= 'window.bt_bb_rtl = true;';
     666    } else {
     667        $script .= 'window.bt_bb_rtl = false;';
     668    }
     669    if ( function_exists( 'boldthemes_get_icon_fonts_bb_array' ) ) {
     670        $icon_arr = boldthemes_get_icon_fonts_bb_array();
     671    } else {
     672        require_once( dirname(__FILE__) . '/content_elements_misc/fa_icons.php' );
     673        require_once( dirname(__FILE__) . '/content_elements_misc/fa5_regular_icons.php' );
     674        require_once( dirname(__FILE__) . '/content_elements_misc/fa5_solid_icons.php' );
     675        require_once( dirname(__FILE__) . '/content_elements_misc/fa5_brands_icons.php' );
     676        require_once( dirname(__FILE__) . '/content_elements_misc/s7_icons.php' );
     677        $icon_arr = array( 'Font Awesome' => bt_bb_fa_icons(), 'Font Awesome 5 Regular' => bt_bb_fa5_regular_icons(), 'Font Awesome 5 Solid' => bt_bb_fa5_solid_icons(), 'Font Awesome 5 Brands' => bt_bb_fa5_brands_icons(), 'S7' => bt_bb_s7_icons() );
     678    }
     679   
     680    $script .= 'window.bt_bb_ajax_nonce = "' . esc_js( wp_create_nonce( 'bt_bb_nonce' ) ) . '";'; // fix nonce issue on local sites with ai.js (not working with wp_localize_script window.bt_bb_ajax.nonce)
     681   
     682    $script .= 'window.bt_bb_icons = JSON.parse(\'' . bt_bb_json_encode( $icon_arr ) . '\');';
     683   
     684    $script .= 'window.bt_bb_version = "' . esc_js( BT_BB_VERSION ) . '";';
     685   
     686    wp_add_inline_script( 'bt_bb_fe', $script, 'after' );
    685687}
    686688
     
    706708                echo '<div id="bt_bb_fe_dialog_bottom"></div>';
    707709            echo '</div>';
    708             // echo '<div id="bt_bb_fe_dialog_close" title="Close dialog"><i class="fa fa-close"></i></div>';
    709            
    710710        echo '</div>';
    711711    echo '</div>';
    712712   
    713713    if ( BT_BB_Root::$has_footer && ! isset( $_GET[ 'bt_bb_edit_footer' ] ) ) {
    714         echo '<a href="' . add_query_arg( 'bt_bb_edit_footer', '', get_post_permalink( BT_BB_Root::$footer_page_id ) ) . '" target="_blank" class="bt_bb_fe_preview_toggler bt_bb_fe_preview_toggler_footer">' . esc_html__( 'Edit Footer', 'bold-builder' ) . '</a>';
     714        echo '<a href="' . esc_url( add_query_arg( 'bt_bb_edit_footer', '', get_post_permalink( BT_BB_Root::$footer_page_id ) ) ) . '" target="_blank" class="bt_bb_fe_preview_toggler bt_bb_fe_preview_toggler_footer">' . esc_html__( 'Edit Footer', 'bold-builder' ) . '</a>';
    715715    }
    716716   
     
    779779        $html = str_ireplace( array( '``', '`{`', '`}`' ), array( '&quot;', '&#91;', '&#93;' ), $html );
    780780        $html = str_ireplace( array( '*`*`*', '*`*{*`*', '*`*}*`*' ), array( '``', '`{`', '`}`' ), $html );
    781         echo $html;
     781        echo wp_kses_post( $html );
    782782    }
    783783    wp_die();
     
    795795    $layout = preg_replace( '/[^a-zA-Z0-9_\-\+]/', '', $layout );
    796796    $type = isset( $_POST['type'] ) ? sanitize_text_field( $_POST['type'] ) : '';
    797     $content = @file_get_contents( get_stylesheet_directory() . '/bold-page-builder/templates/' . $layout . '.txt' );
     797    $content = @file_get_contents( get_stylesheet_directory() . '/bold-page-builder/templates/' . str_replace( '+', '_', $layout ) . '.txt' );
    798798    if ( ! $content ) {
    799         $content = @file_get_contents( get_template_directory() . '/bold-page-builder/templates/' . $layout . '.txt' );
     799        $content = @file_get_contents( get_template_directory() . '/bold-page-builder/templates/' . str_replace( '+', '_', $layout ) . '.txt' );
    800800    }
    801801    if ( ! $content ) {
    802         $content = file_get_contents( plugin_dir_path( __FILE__ ) . '/templates/' . $layout . '.txt' );
     802        $content = file_get_contents( plugin_dir_path( __FILE__ ) . '/templates/' . str_replace( '+', '_', $layout ) . '.txt' );
    803803    }
    804804    $content = trim( $content );
     
    824824            </span>';
    825825            $fe_wrap_close = '</div>';
    826             echo $fe_wrap_open . $content . $fe_wrap_close;
     826            echo wp_kses_post( $fe_wrap_open . $content . $fe_wrap_close );
    827827        } else {
    828             echo $content;
     828            echo wp_kses_post( $content );
    829829        }
    830830    }
  • bold-page-builder/trunk/bold-builder.php

    r3409998 r3413258  
    44 * Plugin Name: Bold Builder
    55 * Description: WordPress page builder.
    6  * Version: 5.5.4
     6 * Version: 5.5.5
    77 * Author: BoldThemes
    8  * Author URI: https://www.bold-themes.com
     8 * Author URI: https://www.bold-themes.com
     9 * License: GPL v2 or later
     10 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
    911 * Text Domain: bold-builder
    1012 */
     
    1315
    1416// VERSION --------------------------------------------------------- \\
    15 define( 'BT_BB_VERSION', '5.5.4' );
     17define( 'BT_BB_VERSION', '5.5.5' );
    1618// VERSION --------------------------------------------------------- \\
    1719 
     
    438440        );
    439441        $colorpicker_l10n = array(
    440             'clear' => __( 'Clear' ),
    441             'defaultString' => __( 'Default' ),
    442             'pick' => __( 'Select Color' ),
    443             'current' => __( 'Current Color' ),
     442            'clear' => esc_html__( 'Clear', 'bold-builder' ),
     443            'defaultString' => esc_html__( 'Default', 'bold-builder' ),
     444            'pick' => esc_html__( 'Select Color', 'bold-builder' ),
     445            'current' => esc_html__( 'Current Color', 'bold-builder' ),
    444446        );
    445447        wp_localize_script( 'wp-color-picker', 'wpColorPickerL10n', $colorpicker_l10n );
     
    525527    <?php
    526528   
    527     $post_id = get_the_ID();
    528     $opt_arr = get_option( 'bt_bb_custom_css' );
    529     if ( isset( $opt_arr[ $post_id ] ) ) {
    530         echo '<style>' . stripslashes( wp_strip_all_tags( $opt_arr[ $post_id ] ) ) . '</style>';
    531     }
    532529    if ( isset( $_GET['preview'] ) && $_GET['preview'] == 'true' ) {
    533530        echo '<script>window.bt_bb_preview = true</script>';
     
    540537        echo '<script>window.bt_bb_fe_preview = false</script>';
    541538    }
    542     if ( function_exists( 'bt_bb_add_color_schemes' ) ) {
    543         bt_bb_add_color_schemes();
    544     }
    545539    if ( ! class_exists( 'BoldThemes_BB_Settings' ) || ! BoldThemes_BB_Settings::$custom_content_elements ) { // only with native BB elements
    546540        echo '<script>window.bt_bb_custom_elements = false;</script>';
     
    556550    }
    557551    wp_enqueue_style( 'bt_bb', plugins_url( 'css/front_end/style.crush.css', __FILE__ ), array(), BT_BB_VERSION );
     552    $post_id = get_the_ID();
     553    $opt_arr = get_option( 'bt_bb_custom_css' );
     554    if ( function_exists( 'bt_bb_add_color_schemes' ) ) {
     555        bt_bb_add_color_schemes();
     556    }   
     557    if ( isset( $opt_arr[ $post_id ] ) ) {
     558        wp_add_inline_style( 'bt_bb', stripslashes( wp_strip_all_tags( $opt_arr[ $post_id ] ) ) );
     559    }
    558560}
    559561
     
    647649        $opt_arr = get_option( 'bt_bb_custom_css' );
    648650        if ( isset( $opt_arr[ $post_id ] ) ) {
    649             echo stripslashes( wp_strip_all_tags( $opt_arr[ $post_id ] ) );
     651            echo esc_textarea( stripslashes( wp_strip_all_tags( $opt_arr[ $post_id ] ) ) );
    650652        }
    651653    }
     
    688690    foreach ( $posts as $post ) {
    689691        if ( 'post' === $post->post_type ) {
    690             $info = mysql2date( __( 'Y/m/d' ), $post->post_date );
     692            $info = mysql2date( esc_html__( 'Y/m/d', 'bold-builder' ), $post->post_date );
    691693        } else {
    692694            $info = $pts[ $post->post_type ]->labels->singular_name;
     
    727729        $html = str_ireplace( array( '*`*`*', '*`*{*`*', '*`*}*`*' ), array( '``', '`{`', '`}`' ), $html );
    728730       
    729         echo $html;
     731        echo wp_kses_post( $html );
    730732    }
    731733    wp_die();
     
    759761    ?>
    760762        <div class="wrap">
    761             <h2><?php _e( 'Bold Builder Settings', 'bold-builder' ); ?></h2>
    762             <p class="description bt_bb_wrap_documentation dashicons-editor-help dashicons-before"><?php printf(
    763                    _x( 'For additional help check out <a href="%1$s" title="%2$s" target="_blank">Online Documentation</a>.', 'bold-builder' ), 'https://documentation.bold-themes.com/bold-builder', _x( 'Bold Builder documentation', 'bold-builder' )
    764              ); ?>
     763            <h2><?php esc_html_e( 'Bold Builder Settings', 'bold-builder' ); ?></h2>
     764            <p class="description bt_bb_wrap_documentation dashicons-editor-help dashicons-before">
     765                <?php
     766                printf(
     767                    wp_kses(
     768                        /* translators: 1: Documentation URL, 2: Tooltip title text */
     769                        __( 'For additional help check out <a href="%1$s" title="%2$s" target="_blank">Online Documentation</a>.', 'bold-builder' ),
     770                        array( 'a' => array( 'href' => array(), 'title' => array(), 'target' => array() ) )
     771                    ),
     772                    'https://documentation.bold-themes.com/bold-builder',
     773                    esc_attr__( 'Bold Builder documentation', 'bold-builder' )
     774                );
     775                ?>
    765776            </p>
    766777            <form method="post" action="options.php">
     
    769780                    <tbody>
    770781                    <tr>
    771                         <th scope="row"><?php _e( 'Show shortcode tag instead of mapped name', 'bold-builder' ); ?></th>
    772                         <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Show shortcode tags instead of mapped names', 'bold-builder' ); ?></span></legend>
    773                         <p><label><input name="bt_bb_settings[tag_as_name]" type="radio" value="0" <?php echo $tag_as_name != '1' ? 'checked="checked"' : ''; ?>> <?php _e( 'No', 'bold-builder' ); ?></label><br>
    774                         <label><input name="bt_bb_settings[tag_as_name]" type="radio" value="1" <?php echo $tag_as_name == '1' ? 'checked="checked"' : ''; ?>> <?php _e( 'Yes', 'bold-builder' ); ?></label></p>
     782                        <th scope="row"><?php esc_html_e( 'Show shortcode tag instead of mapped name', 'bold-builder' ); ?></th>
     783                        <td><fieldset><legend class="screen-reader-text"><span><?php esc_html_e( 'Show shortcode tags instead of mapped names', 'bold-builder' ); ?></span></legend>
     784                        <p><label><input name="bt_bb_settings[tag_as_name]" type="radio" value="0" <?php echo $tag_as_name != '1' ? 'checked="checked"' : ''; ?>> <?php esc_html_e( 'No', 'bold-builder' ); ?></label><br>
     785                        <label><input name="bt_bb_settings[tag_as_name]" type="radio" value="1" <?php echo $tag_as_name == '1' ? 'checked="checked"' : ''; ?>> <?php esc_html_e( 'Yes', 'bold-builder' ); ?></label></p>
    775786                        </fieldset></td>
    776787                    </tr>
    777788                    <tr>
    778                         <th scope="row"><?php _e( 'Post types', 'bold-builder' ); ?></th>
    779                         <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Post Types', 'bold-builder' ); ?></span></legend>
     789                        <th scope="row"><?php esc_html_e( 'Post types', 'bold-builder' ); ?></th>
     790                        <td><fieldset><legend class="screen-reader-text"><span><?php esc_html_e( 'Post Types', 'bold-builder' ); ?></span></legend>
    780791                        <p>
    781792                        <?php
     
    787798                                $checked = ' ' . 'checked="checked"';
    788799                            }
    789                             echo '<input type="hidden" name="bt_bb_settings[' . $pt . ']" value="0">';
    790                             echo '<label><input name="bt_bb_settings[' . $pt . ']" type="checkbox" value="1"' . $checked . '> ' . $pt . '</label>';
     800                            echo '<input type="hidden" name="bt_bb_settings[' . esc_attr( $pt ) . ']" value="0">';
     801                            echo '<label><input name="bt_bb_settings[' . esc_attr( $pt ) . ']" type="checkbox" value="1"' . esc_html( $checked ) . '> ' . esc_html( $pt ) . '</label>';
    791802                            if ( $n < count( $post_types ) ) echo '<br>';
    792803                        } ?>
     
    795806                    </tr>
    796807                    <tr>
    797                         <th scope="row"><?php _e( 'Color schemes', 'bold-builder' ); ?></th>
    798                         <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Color Schemes', 'bold-builder' ); ?></span></legend>
     808                        <th scope="row"><?php esc_html_e( 'Color schemes', 'bold-builder' ); ?></th>
     809                        <td><fieldset><legend class="screen-reader-text"><span><?php esc_html_e( 'Color Schemes', 'bold-builder' ); ?></span></legend>
    799810                        <p>
    800                         <textarea name="bt_bb_settings[color_schemes]" rows="10" cols="50" placeholder="Black/White;#000;#fff"><?php echo sanitize_textarea_field( $color_schemes ); ?></textarea>
     811                        <textarea name="bt_bb_settings[color_schemes]" rows="10" cols="50" placeholder="Black/White;#000;#fff"><?php echo esc_textarea( $color_schemes ); ?></textarea>
    801812                        </p>
    802813                        <small>Add each Color Scheme separated by new line. E.g. Black/White;#000;#fff</small>
     
    804815                    </tr>
    805816                    <tr>
    806                         <th scope="row"><?php _e( 'Tips', 'bold-builder' ); ?></th>
     817                        <th scope="row"><?php esc_html_e( 'Tips', 'bold-builder' ); ?></th>
    807818                        <td>
    808819                        <p><?php
     
    812823                        }
    813824                        echo '<input type="hidden" name="bt_bb_settings[tips]" value="0">';
    814                         echo '<label><input name="bt_bb_settings[tips]" type="checkbox" value="1"' . $checked . '> ' . esc_html__( 'Show Tips', 'bold-builder' ) . '</label>';
     825                        echo '<label><input name="bt_bb_settings[tips]" type="checkbox" value="1"' . esc_html( $checked ) . '> ' . esc_html__( 'Show Tips', 'bold-builder' ) . '</label>';
    815826                        ?></p>
    816827                        </td>
    817828                    </tr>
    818829                    <tr>
    819                         <th scope="row"><?php _e( 'Slug in URL', 'bold-builder' ); ?></th>
     830                        <th scope="row"><?php esc_html_e( 'Slug in URL', 'bold-builder' ); ?></th>
    820831                        <td>
    821832                        <p><?php
     
    825836                        }
    826837                        echo '<input type="hidden" name="bt_bb_settings[slug_url]" value="0">';
    827                         echo '<label><input name="bt_bb_settings[slug_url]" type="checkbox" value="1"' . $checked . '> ' . esc_html__( 'Use post slug in URL input (when selecting existing content search result)', 'bold-builder' ) . '</label>';
     838                        echo '<label><input name="bt_bb_settings[slug_url]" type="checkbox" value="1"' . esc_html( $checked ) . '> ' . esc_html__( 'Use post slug in URL input (when selecting existing content search result)', 'bold-builder' ) . '</label>';
    828839                        ?></p>
    829840                        </td>
    830841                    </tr>
    831842                    <tr>
    832                         <th scope="row"><?php _e( 'OpenAI API key', 'bold-builder' ); ?></th>
    833                         <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'OpenAI API key', 'bold-builder' ); ?></span></legend>
     843                        <th scope="row"><?php esc_html_e( 'OpenAI API key', 'bold-builder' ); ?></th>
     844                        <td><fieldset><legend class="screen-reader-text"><span><?php esc_html_e( 'OpenAI API key', 'bold-builder' ); ?></span></legend>
    834845                        <p>
    835846                        <input type="text" name="bt_bb_settings[openai_api_key]" value="<?php echo esc_attr( $openai_api_key ); ?>">
     
    838849                    </tr>
    839850                    <tr>
    840                         <th scope="row"><?php _e( 'OpenAI Model', 'bold-builder' ); ?></th>
    841                         <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'OpenAI Model', 'bold-builder' ); ?></span></legend>
     851                        <th scope="row"><?php esc_html_e( 'OpenAI Model', 'bold-builder' ); ?></th>
     852                        <td><fieldset><legend class="screen-reader-text"><span><?php esc_html_e( 'OpenAI Model', 'bold-builder' ); ?></span></legend>
    842853                        <p>
    843854                        <input type="text" name="bt_bb_settings[openai_model]" value="<?php echo esc_attr( $openai_model ); ?>" placeholder="gpt-4">
     
    848859                </table>
    849860
    850                 <p class="submit"><input type="submit" name="submit" id="submit" class="button button-primary" value="<?php _e( 'Save', 'bold-builder' ); ?>"></p>
     861                <p class="submit"><input type="submit" name="submit" id="submit" class="button button-primary" value="<?php esc_html_e( 'Save', 'bold-builder' ); ?>"></p>
    851862            </form>
    852863        </div>
     
    867878            $icon_arr = array( 'Font Awesome' => bt_bb_fa_icons(), 'Font Awesome 5 Regular' => bt_bb_fa5_regular_icons(), 'Font Awesome 5 Solid' => bt_bb_fa5_solid_icons(), 'Font Awesome 5 Brands' => bt_bb_fa5_brands_icons(), 'S7' => bt_bb_s7_icons() );
    868879        }
    869         echo 'window.bt_bb_icons = JSON.parse(\'' . bt_bb_json_encode( $icon_arr ) . '\')';
     880        echo 'window.bt_bb_icons = JSON.parse(\'' . wp_json_encode( $icon_arr ) . '\')';
    870881    echo '</script>';
    871882}
     
    893904            $icon_arr = array( 'Font Awesome' => bt_bb_fa_icons(), 'Font Awesome 5 Regular' => bt_bb_fa5_regular_icons(), 'Font Awesome 5 Solid' => bt_bb_fa5_solid_icons(), 'Font Awesome 5 Brands' => bt_bb_fa5_brands_icons(), 'S7' => bt_bb_s7_icons() );
    894905        }
    895         echo 'window.bt_bb_icons = JSON.parse(\'' . bt_bb_json_encode( $icon_arr ) . '\')';
     906        echo 'window.bt_bb_icons = JSON.parse(\'' . wp_json_encode( $icon_arr ) . '\')';
    896907    echo '</script>';
    897908   
     
    914925   
    915926    echo '<script>';
    916         echo 'window.bt_bb_plugins_url = "' . plugins_url() . '";';
    917         echo 'window.bt_bb_loading_gif_url = "' . plugins_url( 'img/ajax-loader.gif', __FILE__ ) . '";';
     927        echo 'window.bt_bb_plugins_url = "' . esc_url( plugins_url() ) . '";';
     928        echo 'window.bt_bb_loading_gif_url = "' . esc_url( plugins_url( 'img/ajax-loader.gif', __FILE__ ) ) . '";';
    918929        echo 'window.bt_bb_settings = [];';
    919930        echo 'window.bt_bb_settings.tag_as_name = "' . esc_js( $tag_as_name ) . '";';
     
    922933        echo 'window.bt_bb_ajax_url = "' . esc_js( admin_url( 'admin-ajax.php' ) ) . '";'; // back. compat.
    923934       
    924         echo 'window.bt_bb_ajax_nonce = "' . wp_create_nonce( 'bt_bb_nonce' ) . '";'; // fix nonce issue on local sites with ai.js (not working with wp_localize_script window.bt_bb_ajax.nonce)
     935        echo 'window.bt_bb_ajax_nonce = "' . esc_js( wp_create_nonce( 'bt_bb_nonce' ) ) . '";'; // fix nonce issue on local sites with ai.js (not working with wp_localize_script window.bt_bb_ajax.nonce)
    925936       
    926937        global $shortcode_tags;
     
    928939        ksort( $all_sc );
    929940       
    930         echo 'window.bt_bb.all_sc = ' . bt_bb_json_encode( array_keys( $all_sc ) ) . ';';
     941        echo 'window.bt_bb.all_sc = ' . wp_json_encode( array_keys( $all_sc ) ) . ';';
    931942
    932943        global $bt_bb_is_bb_content;
    933944        if ( $bt_bb_is_bb_content === 'true' || $bt_bb_is_bb_content === 'false' ) {
    934             echo 'window.bt_bb.is_bb_content = ' . $bt_bb_is_bb_content . ';';
     945            echo 'window.bt_bb.is_bb_content = ' . esc_html( $bt_bb_is_bb_content ) . ';';
    935946        }
    936947        $ajax_nonce = wp_create_nonce( 'bt-bb-custom-css-nonce' );
     
    958969                    'post_id': jQuery( '#post_ID' ).val(),
    959970                    'css': css,
    960                     'bt-bb-custom-css-nonce': '<?php echo $ajax_nonce; ?>'
     971                    'bt-bb-custom-css-nonce': '<?php echo esc_html( $ajax_nonce ); ?>'
    961972                };             
    962973
     
    10651076    echo 'window.bt_bb_text.leave_empty = "' . esc_html__( '(leave empty to use length of current content)', 'bold-builder' ) . '";';
    10661077    echo 'window.bt_bb_text.ai_error = "' . sprintf(
     1078        /* translators: 1: Opening <a> tag for settings link, 2: Closing </a> tag */
    10671079        esc_html__( 'Error. Please check OpenAI settings %1$shere%2$s.', 'bold-builder' ),
    10681080        '<a href=\"' . esc_url_raw( get_admin_url( null, 'options-general.php?page=bt_bb_settings' ) ) . '\" target=\"_blank\">',
    1069         '</a>' 
     1081        '</a>'
    10701082    ) . '";';
    10711083    echo 'window.bt_bb_text.no_content = "' . esc_html__( 'No content!', 'bold-builder' ) . '";';
     
    11301142            foreach( $opt_arr as $k => $v ) {
    11311143                if ( shortcode_exists( $k ) ) {
    1132                     echo 'window.bt_bb_map["' . $k . '"] = ' . stripslashes( $v ) . ';';
     1144                    echo 'window.bt_bb_map["' . esc_html( $k ) . '"] = ' . esc_html( stripslashes( $v ) ) . ';';
    11331145                    $bt_bb_map[ $k ] = json_decode( stripslashes( $v ), true );
    1134                     echo 'window.bt_bb_map_secondary["' . $k . '"] = true;';
     1146                    echo 'window.bt_bb_map_secondary["' . esc_html( $k ) . '"] = true;';
    11351147                }
    11361148            }
     
    12411253                }
    12421254            }
    1243             echo 'window.bt_bb_map["' . $this->base . '"] = window.bt_bb_map_primary.' . $this->base . ' = ' . bt_bb_json_encode( $this->params ) . ';';
     1255            echo 'window.bt_bb_map["' . esc_html( $this->base ) . '"] = window.bt_bb_map_primary.' . esc_html( $this->base ) . ' = ' . wp_json_encode( $this->params ) . ';';
    12441256            $bt_bb_map[ $this->base ] = $this->params;
    12451257        }
     
    14891501
    14901502    public function js() {
     1503        $data = json_decode( $this->data, true );
    14911504        echo '<script>
    14921505            var bt_bb_data = { 
    14931506                title: "_root",
    14941507                base: "_root",
    1495                 key: "' . uniqid( 'bt_bb_' ) . '",
    1496                 children: ' . $this->data . '
     1508                key: "' . esc_html( uniqid( 'bt_bb_' ) ) . '",
     1509                children: ' . wp_json_encode( $data ) . '
    14971510            }
    14981511        </script>';
  • bold-page-builder/trunk/content_elements/bt_bb_countdown/bt_bb_countdown.php

    r3127131 r3413258  
    102102            'icon' => $this->prefix_backend . 'icon' . '_' . $this->shortcode,
    103103            'params' => array(
    104                 array( 'param_name' => 'datetime', 'type' => 'textfield', 'heading' => esc_html__( 'Target date and time', 'bold-builder' ), 'placeholder' => esc_html__( 'YY-mm-dd HH:mm:ss', 'bold-builder' ), 'description' => esc_html__( 'YY-mm-dd HH:mm:ss, e.g. 2025-02-22 22:45:00' ), 'preview' => true ),
     104                array( 'param_name' => 'datetime', 'type' => 'textfield', 'heading' => esc_html__( 'Target date and time', 'bold-builder' ), 'placeholder' => esc_html__( 'YY-mm-dd HH:mm:ss', 'bold-builder' ), 'description' => esc_html__( 'YY-mm-dd HH:mm:ss, e.g. 2025-02-22 22:45:00', 'bold-builder' ), 'preview' => true ),
    105105                array( 'param_name' => 'size', 'type' => 'dropdown', 'heading' => esc_html__( 'Size', 'bold-builder' ), 'preview' => true, 'responsive_override' => true,
    106106                    'value' => array(
  • bold-page-builder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php

    r3395193 r3413258  
    2525        $leaflet_framework_path = plugin_dir_url( __FILE__ ) . '/';
    2626        require_once( 'enqueue_lib.php' );
    27         // wp_enqueue_script( 'bt_bb_leaflet_map_js', plugin_dir_url( __FILE__ ) . '/bt_bb_leaflet_map.js' );
    2827
    2928        $class_master = 'bt_bb_map';
     
    122121        }       
    123122       
    124         bt_bb_map( $this->shortcode, array( 'name' => esc_html__( 'OpenStreetMap', 'boldthemes_framework_textdomain' ), 'description' => esc_html__( 'OpenStreetMap with custom content', 'boldthemes_framework_textdomain' ), 'toggle' => true, 'container' => 'vertical', 'accept' => array( 'bt_bb_leaflet_map_location' => true ), 'icon' => $this->prefix_backend . 'icon' . '_' . $this->shortcode,
     123        bt_bb_map( $this->shortcode, array( 'name' => esc_html__( 'OpenStreetMap', 'bold-builder' ), 'description' => esc_html__( 'OpenStreetMap with custom content', 'bold-builder' ), 'toggle' => true, 'container' => 'vertical', 'accept' => array( 'bt_bb_leaflet_map_location' => true ), 'icon' => $this->prefix_backend . 'icon' . '_' . $this->shortcode,
    125124            'params' => array(
    126                 array( 'param_name' => 'zoom', 'type' => 'textfield', 'heading' => esc_html__( 'Zoom', 'boldthemes_framework_textdomain' ), 'placeholder' => esc_html__( 'E.g. 9', 'bold-builder' ), 'default' => '9', 'preview' => true ),
    127                 array( 'param_name' => 'max_zoom', 'type' => 'textfield', 'heading' => esc_html__( 'Max zoom', 'boldthemes_framework_textdomain' ), 'placeholder' => esc_html__( 'E.g. 15', 'bold-builder' ), 'default' => '15', 'preview' => true ),
    128                 array( 'param_name' => 'height', 'type' => 'textfield', 'heading' => esc_html__( 'Height', 'boldthemes_framework_textdomain' ), 'placeholder' => esc_html__( 'E.g. 250px', 'bold-builder' ), 'description' => esc_html__( 'Used when there is no content', 'boldthemes_framework_textdomain' ) ),
    129                 array( 'param_name' => 'predefined_style', 'type' => 'dropdown', 'default' => '1', 'heading' => esc_html__( 'Predefined (base) map layer', 'boldthemes_framework_textdomain' ), 'preview' => true,
     125                array( 'param_name' => 'zoom', 'type' => 'textfield', 'heading' => esc_html__( 'Zoom', 'bold-builder' ), 'placeholder' => esc_html__( 'E.g. 9', 'bold-builder' ), 'default' => '9', 'preview' => true ),
     126                array( 'param_name' => 'max_zoom', 'type' => 'textfield', 'heading' => esc_html__( 'Max zoom', 'bold-builder' ), 'placeholder' => esc_html__( 'E.g. 15', 'bold-builder' ), 'default' => '15', 'preview' => true ),
     127                array( 'param_name' => 'height', 'type' => 'textfield', 'heading' => esc_html__( 'Height', 'bold-builder' ), 'placeholder' => esc_html__( 'E.g. 250px', 'bold-builder' ), 'description' => esc_html__( 'Used when there is no content', 'bold-builder' ) ),
     128                array( 'param_name' => 'predefined_style', 'type' => 'dropdown', 'default' => '1', 'heading' => esc_html__( 'Predefined (base) map layer', 'bold-builder' ), 'preview' => true,
    130129                    'value' => array(
    131                         esc_html__( 'No base layer (use only additional map layers)', 'boldthemes_framework_textdomain' )   => '0',
    132                         esc_html__( 'Mapnik OSM', 'boldthemes_framework_textdomain' )                                       => '1',
    133                         //__( 'Wikimedia', 'boldthemes_framework_textdomain' )                                      => '2',
    134                         esc_html__( 'OSM Hot', 'boldthemes_framework_textdomain' )                                          => '3',
    135                         esc_html__( 'Stamen Watercolor', 'boldthemes_framework_textdomain' )                                => '4',
    136                         esc_html__( 'Stamen Terrain', 'boldthemes_framework_textdomain' )                                   => '5',
    137                         esc_html__( 'Stamen Toner', 'boldthemes_framework_textdomain' )                                     => '6',
    138                         esc_html__( 'Carto Dark', 'boldthemes_framework_textdomain' )                                       => '7',
    139                         esc_html__( 'Carto Light', 'boldthemes_framework_textdomain' )                                      => '8'
     130                        esc_html__( 'No base layer (use only additional map layers)', 'bold-builder' )  => '0',
     131                        esc_html__( 'Mapnik OSM', 'bold-builder' )                                      => '1',
     132                        //__( 'Wikimedia', 'bold-builder' )                                         => '2',
     133                        esc_html__( 'OSM Hot', 'bold-builder' )                                             => '3',
     134                        esc_html__( 'Stamen Watercolor', 'bold-builder' )                               => '4',
     135                        esc_html__( 'Stamen Terrain', 'bold-builder' )                                  => '5',
     136                        esc_html__( 'Stamen Toner', 'bold-builder' )                                    => '6',
     137                        esc_html__( 'Carto Dark', 'bold-builder' )                                          => '7',
     138                        esc_html__( 'Carto Light', 'bold-builder' )                                     => '8'
    140139                    )
    141140                ),
    142                 array( 'param_name' => 'custom_style', 'type' => 'textarea_object', 'heading' => esc_html__( 'Additional map layers', 'boldthemes_framework_textdomain' ), 'description' => esc_html__( 'Add Map tiles URL. E.g. https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png, Attribution text separated by new line', 'boldthemes_framework_textdomain' ) ),
    143                 array( 'param_name' => 'center_map', 'type' => 'dropdown', 'heading' => esc_html__( 'Center map', 'boldthemes_framework_textdomain' ), 'description' => $center_map_desc,
     141                array( 'param_name' => 'custom_style', 'type' => 'textarea_object', 'heading' => esc_html__( 'Additional map layers', 'bold-builder' ), 'description' => esc_html__( 'Add Map tiles URL. E.g. https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png, Attribution text separated by new line', 'bold-builder' ) ),
     142                array( 'param_name' => 'center_map', 'type' => 'dropdown', 'heading' => esc_html__( 'Center map', 'bold-builder' ), 'description' => $center_map_desc,
    144143                    'value' => array(
    145                         esc_html__( 'No (use first location as center)', 'boldthemes_framework_textdomain' )    => 'no',
    146                         esc_html__( 'Yes', 'boldthemes_framework_textdomain' )                                  => 'yes',
    147                         esc_html__( 'Yes (without overlay initially)', 'boldthemes_framework_textdomain' )      => 'yes_no_overlay'
     144                        esc_html__( 'No (use first location as center)', 'bold-builder' )   => 'no',
     145                        esc_html__( 'Yes', 'bold-builder' )                                     => 'yes',
     146                        esc_html__( 'Yes (without overlay initially)', 'bold-builder' )         => 'yes_no_overlay'
    148147                    )
    149148                ),
    150                 array( 'param_name' => 'scroll_wheel',  'type' => 'checkbox', 'value' => array( esc_html__( 'Yes', 'boldthemes_framework_textdomain' ) => 'yes' ), 'default' => 'yes', 'heading' => esc_html__( 'Enable scroll wheel zoom on map', 'boldthemes_framework_textdomain' ), 'preview' => true
     149                array( 'param_name' => 'scroll_wheel',  'type' => 'checkbox', 'value' => array( esc_html__( 'Yes', 'bold-builder' ) => 'yes' ), 'default' => 'yes', 'heading' => esc_html__( 'Enable scroll wheel zoom on map', 'bold-builder' ), 'preview' => true
    151150                ),
    152                 array( 'param_name' => 'zoom_control',  'type' => 'checkbox', 'value' => array( esc_html__( 'Yes', 'boldthemes_framework_textdomain' ) => 'yes' ), 'default' => 'yes', 'heading' => esc_html__( 'Enable zoom control on map', 'boldthemes_framework_textdomain' ), 'preview' => true
     151                array( 'param_name' => 'zoom_control',  'type' => 'checkbox', 'value' => array( esc_html__( 'Yes', 'bold-builder' ) => 'yes' ), 'default' => 'yes', 'heading' => esc_html__( 'Enable zoom control on map', 'bold-builder' ), 'preview' => true
    153152                ),
    154153            )
  • bold-page-builder/trunk/content_elements/bt_bb_leaflet_map_location/bt_bb_leaflet_map_location.php

    r3094278 r3413258  
    8282
    8383    function map_shortcode() {
    84         bt_bb_map( $this->shortcode, array( 'name' => esc_html__( 'Leaflet Maps Location', 'boldthemes_framework_textdomain' ), 'description' => esc_html__( 'OpenSteet Map Location', 'boldthemes_framework_textdomain' ), 'container' => 'vertical', 'as_child' => array( 'only' => 'bt_bb_leaflet_map' ), 'accept' => array( 'bt_bb_headline' => true, 'bt_bb_text' => true, 'bt_bb_button' => true, 'bt_bb_icon' => true, 'bt_bb_service_icon' => true, 'bt_bb_service' => true, 'bt_bb_image' => true, 'bt_bb_separator' => true ), 'toggle' => true, 'icon' => $this->prefix_backend . 'icon' . '_' . $this->shortcode,
     84        bt_bb_map( $this->shortcode, array( 'name' => esc_html__( 'Leaflet Maps Location', 'bold-builder' ), 'description' => esc_html__( 'OpenSteet Map Location', 'bold-builder' ), 'container' => 'vertical', 'as_child' => array( 'only' => 'bt_bb_leaflet_map' ), 'accept' => array( 'bt_bb_headline' => true, 'bt_bb_text' => true, 'bt_bb_button' => true, 'bt_bb_icon' => true, 'bt_bb_service_icon' => true, 'bt_bb_service' => true, 'bt_bb_image' => true, 'bt_bb_separator' => true ), 'toggle' => true, 'icon' => $this->prefix_backend . 'icon' . '_' . $this->shortcode,
    8585            'params' => array(
    86                 array( 'param_name' => 'latitude', 'type' => 'textfield', 'heading' => esc_html__( 'Latitude', 'boldthemes_framework_textdomain' ), 'placeholder' => esc_html__( 'E.g. 40.000000', 'bold-builder' ), 'preview' => true ),
    87                 array( 'param_name' => 'longitude', 'type' => 'textfield', 'heading' => esc_html__( 'Longitude', 'boldthemes_framework_textdomain' ), 'placeholder' => esc_html__( 'E.g. 40.000000', 'bold-builder' ), 'preview' => true ),
    88                 array( 'param_name' => 'icon', 'type' => 'attach_image', 'heading' => esc_html__( 'Icon', 'boldthemes_framework_textdomain' ), 'preview' => true )
     86                array( 'param_name' => 'latitude', 'type' => 'textfield', 'heading' => esc_html__( 'Latitude', 'bold-builder' ), 'placeholder' => esc_html__( 'E.g. 40.000000', 'bold-builder' ), 'preview' => true ),
     87                array( 'param_name' => 'longitude', 'type' => 'textfield', 'heading' => esc_html__( 'Longitude', 'bold-builder' ), 'placeholder' => esc_html__( 'E.g. 40.000000', 'bold-builder' ), 'preview' => true ),
     88                array( 'param_name' => 'icon', 'type' => 'attach_image', 'heading' => esc_html__( 'Icon', 'bold-builder' ), 'preview' => true )
    8989            )
    9090        ) );
  • bold-page-builder/trunk/content_elements_misc/misc.php

    r3194559 r3413258  
    8787if ( ! function_exists( 'bt_bb_add_color_schemes' ) ) {
    8888    function bt_bb_add_color_schemes() {
    89        
    90         /*$content_post = get_post();
    91         $content = $content_post->post_content;
    92        
    93         $bt_bb_content = false;
    94         if ( strpos( $content, '[bt_bb_' ) === 0 ) {
    95             $bt_bb_content = true;
    96         }
    97 
    98         if ( ! $bt_bb_content ) {
    99             return;
    100         }
    101        
    102         $pattern = '/color_scheme="(.*?)"/';
    103         preg_match_all( $pattern, $content, $matches );
    104    
    105         $color_schemes_to_use = array_unique( $matches[1] );*/
    10689
    10790        $color_scheme_arr = bt_bb_get_color_scheme_array();
     
    120103                if ( count( $color_scheme ) == 4 ) {
    121104                    array_shift( $color_scheme );
    122                     //$scheme_id = $this_scheme;
    123                 }
    124 
    125                 //if ( in_array( $this_scheme, $color_schemes_to_use ) ) {
     105                }
    126106
    127107                require( 'color_scheme_template.php' );
     
    143123                    $custom_css = str_replace( array( "\r\n", "\r", "\n", "\t", '  ', '    ', '    '), '', $custom_css);
    144124                    $custom_css = preg_replace( '/\/\*.*?\*\//', ' ', $custom_css );
    145                     echo '<style data-id="bt_bb_color_schemes">' . $custom_css . '</style>';
    146                 }
    147                
    148                 //}
     125                    wp_add_inline_style( 'bt_bb', $custom_css );
     126                }
    149127               
    150128                $i++;
     
    198176        // Remove rows without ';'
    199177        $color_scheme_arr = array_filter( $color_scheme_arr, function ( $x ) { return strpos( $x, ';' ) !== false; });
    200                
     178
    201179        $color_scheme_arr = apply_filters( 'bt_bb_color_scheme_arr', $color_scheme_arr );
    202180
  • bold-page-builder/trunk/css/front_end/fe_dialog_content.crush.css

    r3312753 r3413258  
    542542    outline: 3px solid #eee;
    543543    outline-offset: -3px;
    544     background-image: url(../../img/ajax-loader.gif);
     544    background-image: url(../\../img/ajax-loader.gif);
    545545    background-position: center;
    546546    background-repeat: no-repeat;
     
    18071807    }
    18081808.bt_bb_dialog_content [data-param_name="row_width"][data-type="radio"] label[for="bt_bb_row_row_width1"]:before {
    1809     background-image: url(../../fonts/row_layout/boxed-1200.png);
     1809    background-image: url(../\../fonts/row_layout/boxed-1200.png);
    18101810    padding-bottom: 33%;
    18111811    }
    18121812.bt_bb_dialog_content [data-param_name="row_width"][data-type="radio"] label[for="bt_bb_row_row_width2"]:before {
    1813     background-image: url(../../fonts/row_layout/left-wide-1200.png);
     1813    background-image: url(../\../fonts/row_layout/left-wide-1200.png);
    18141814    padding-bottom: 33%;
    18151815    }
    18161816.bt_bb_dialog_content [data-param_name="row_width"][data-type="radio"] label[for="bt_bb_row_row_width3"]:before {
    1817     background-image: url(../../fonts/row_layout/left-wide-content-wide-1200.png);
     1817    background-image: url(../\../fonts/row_layout/left-wide-content-wide-1200.png);
    18181818    padding-bottom: 33%;
    18191819    }
    18201820.bt_bb_dialog_content [data-param_name="row_width"][data-type="radio"] label[for="bt_bb_row_row_width4"]:before {
    1821     background-image: url(../../fonts/row_layout/right-wide-1200.png);
     1821    background-image: url(../\../fonts/row_layout/right-wide-1200.png);
    18221822    padding-bottom: 33%;
    18231823    }
    18241824.bt_bb_dialog_content [data-param_name="row_width"][data-type="radio"] label[for="bt_bb_row_row_width5"]:before {
    1825     background-image: url(../../fonts/row_layout/right-wide-content-wide-1200.png);
     1825    background-image: url(../\../fonts/row_layout/right-wide-content-wide-1200.png);
    18261826    padding-bottom: 33%;
    18271827    }
    18281828.bt_bb_dialog_content [data-param_name="row_width"][data-type="radio"] label[for="bt_bb_row_row_width6"]:before {
    1829     background-image: url(../../fonts/row_layout/right-left-wide-1200.png);
     1829    background-image: url(../\../fonts/row_layout/right-left-wide-1200.png);
    18301830    padding-bottom: 33%;
    18311831    }
    18321832.bt_bb_dialog_content [data-param_name="row_width"][data-type="radio"] label[for="bt_bb_row_row_width7"]:before {
    1833     background-image: url(../../fonts/row_layout/right-left-wide-content-wide-1200.png);
     1833    background-image: url(../\../fonts/row_layout/right-left-wide-content-wide-1200.png);
    18341834    padding-bottom: 33%;
    18351835    }
    18361836.bt_bb_dialog_content [data-param_name="row_width"][data-type="radio"] label[for="bt_bb_row_row_width8"]:before {
    1837     background-image: url(../../fonts/row_layout/boxed-1400.png);
     1837    background-image: url(../\../fonts/row_layout/boxed-1400.png);
    18381838    padding-bottom: 33%;
    18391839    }
    18401840.bt_bb_dialog_content [data-param_name="row_width"][data-type="radio"] label[for="bt_bb_row_row_width9"]:before {
    1841     background-image: url(../../fonts/row_layout/left-wide-1400.png);
     1841    background-image: url(../\../fonts/row_layout/left-wide-1400.png);
    18421842    padding-bottom: 33%;
    18431843    }
    18441844.bt_bb_dialog_content [data-param_name="row_width"][data-type="radio"] label[for="bt_bb_row_row_width10"]:before {
    1845     background-image: url(../../fonts/row_layout/left-wide-content-wide-1400.png);
     1845    background-image: url(../\../fonts/row_layout/left-wide-content-wide-1400.png);
    18461846    padding-bottom: 33%;
    18471847    }
    18481848.bt_bb_dialog_content [data-param_name="row_width"][data-type="radio"] label[for="bt_bb_row_row_width11"]:before {
    1849     background-image: url(../../fonts/row_layout/right-wide-1400.png);
     1849    background-image: url(../\../fonts/row_layout/right-wide-1400.png);
    18501850    padding-bottom: 33%;
    18511851    }
    18521852.bt_bb_dialog_content [data-param_name="row_width"][data-type="radio"] label[for="bt_bb_row_row_width12"]:before {
    1853     background-image: url(../../fonts/row_layout/right-wide-content-wide-1200.png);
     1853    background-image: url(../\../fonts/row_layout/right-wide-content-wide-1200.png);
    18541854    padding-bottom: 33%;
    18551855    }
    18561856.bt_bb_dialog_content [data-param_name="row_width"][data-type="radio"] label[for="bt_bb_row_row_width13"]:before {
    1857     background-image: url(../../fonts/row_layout/right-left-wide-1400.png);
     1857    background-image: url(../\../fonts/row_layout/right-left-wide-1400.png);
    18581858    padding-bottom: 33%;
    18591859    }
    18601860.bt_bb_dialog_content [data-param_name="row_width"][data-type="radio"] label[for="bt_bb_row_row_width14"]:before {
    1861     background-image: url(../../fonts/row_layout/right-left-wide-content-wide-1400.png);
     1861    background-image: url(../\../fonts/row_layout/right-left-wide-content-wide-1400.png);
    18621862    padding-bottom: 33%;
    18631863    }
  • bold-page-builder/trunk/languages/bold-builder.pot

    r3409998 r3413258  
    99"Project-Id-Version: PACKAGE VERSION\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2025-12-03 20:13+0100\n"
     11"POT-Creation-Date: 2025-12-06 22:59+0100\n"
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    284284
    285285#: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:555
    286 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:124
     286#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:123
    287287msgid "OpenStreetMap"
    288288msgstr ""
    289289
    290290#: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:556
    291 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:124
     291#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:123
    292292msgid "OpenStreetMap with custom content"
    293293msgstr ""
     
    461461msgstr ""
    462462
    463 #: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:693
     463#: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:695
    464464msgid "Close dialog"
    465465msgstr ""
    466466
    467 #: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:694
     467#: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:696
    468468msgid "Switch side"
    469469msgstr ""
     
    474474
    475475#: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:817
    476 #: D:/WP/BoldBuilder/trunk/bold-builder.php:210
    477 #: D:/WP/BoldBuilder/trunk/bold-builder.php:221
    478 #: D:/WP/BoldBuilder/trunk/bold-builder.php:988
     476#: D:/WP/BoldBuilder/trunk/bold-builder.php:212
     477#: D:/WP/BoldBuilder/trunk/bold-builder.php:223
     478#: D:/WP/BoldBuilder/trunk/bold-builder.php:999
    479479msgid "Edit"
    480480msgstr ""
    481481
    482482#: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:818
    483 #: D:/WP/BoldBuilder/trunk/bold-builder.php:211
     483#: D:/WP/BoldBuilder/trunk/bold-builder.php:213
    484484msgid "Edit in back-end editor"
    485485msgstr ""
    486486
    487487#: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:818
    488 #: D:/WP/BoldBuilder/trunk/bold-builder.php:211
     488#: D:/WP/BoldBuilder/trunk/bold-builder.php:213
    489489msgid "(new tab)"
    490490msgstr ""
    491491
    492492#: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:819
    493 #: D:/WP/BoldBuilder/trunk/bold-builder.php:212
     493#: D:/WP/BoldBuilder/trunk/bold-builder.php:214
    494494msgid "Cut"
    495495msgstr ""
    496496
    497497#: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:820
    498 #: D:/WP/BoldBuilder/trunk/bold-builder.php:213
    499 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1006
    500 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1075
     498#: D:/WP/BoldBuilder/trunk/bold-builder.php:215
     499#: D:/WP/BoldBuilder/trunk/bold-builder.php:1017
     500#: D:/WP/BoldBuilder/trunk/bold-builder.php:1087
    501501msgid "Copy"
    502502msgstr ""
    503503
    504504#: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:821
    505 #: D:/WP/BoldBuilder/trunk/bold-builder.php:214
    506 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1008
    507 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1575
     505#: D:/WP/BoldBuilder/trunk/bold-builder.php:216
     506#: D:/WP/BoldBuilder/trunk/bold-builder.php:1019
     507#: D:/WP/BoldBuilder/trunk/bold-builder.php:1588
    508508msgid "Paste"
    509509msgstr ""
    510510
    511511#: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:821
    512 #: D:/WP/BoldBuilder/trunk/bold-builder.php:214
     512#: D:/WP/BoldBuilder/trunk/bold-builder.php:216
    513513msgid "(above)"
    514514msgstr ""
    515515
    516516#: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:822
    517 #: D:/WP/BoldBuilder/trunk/bold-builder.php:215
    518 #: D:/WP/BoldBuilder/trunk/bold-builder.php:993
     517#: D:/WP/BoldBuilder/trunk/bold-builder.php:217
     518#: D:/WP/BoldBuilder/trunk/bold-builder.php:1004
    519519msgid "Delete"
    520520msgstr ""
    521521
    522 #: D:/WP/BoldBuilder/trunk/bold-builder.php:84
     522#: D:/WP/BoldBuilder/trunk/bold-builder.php:86
    523523msgid "Add Section/Row/Column(s)"
    524524msgstr ""
    525525
    526 #: D:/WP/BoldBuilder/trunk/bold-builder.php:104
     526#: D:/WP/BoldBuilder/trunk/bold-builder.php:106
    527527msgid "Edit/Preview"
    528528msgstr ""
    529529
    530 #: D:/WP/BoldBuilder/trunk/bold-builder.php:109
     530#: D:/WP/BoldBuilder/trunk/bold-builder.php:111
    531531msgid "Add Elements"
    532532msgstr ""
    533533
    534 #: D:/WP/BoldBuilder/trunk/bold-builder.php:111
    535 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1572
     534#: D:/WP/BoldBuilder/trunk/bold-builder.php:113
     535#: D:/WP/BoldBuilder/trunk/bold-builder.php:1585
    536536msgid "Undo"
    537537msgstr ""
    538538
    539 #: D:/WP/BoldBuilder/trunk/bold-builder.php:112
    540 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1573
     539#: D:/WP/BoldBuilder/trunk/bold-builder.php:114
     540#: D:/WP/BoldBuilder/trunk/bold-builder.php:1586
    541541msgid "Redo"
    542542msgstr ""
    543543
    544 #: D:/WP/BoldBuilder/trunk/bold-builder.php:113
     544#: D:/WP/BoldBuilder/trunk/bold-builder.php:115
    545545msgid "Save changes"
    546546msgstr ""
    547547
    548 #: D:/WP/BoldBuilder/trunk/bold-builder.php:205
     548#: D:/WP/BoldBuilder/trunk/bold-builder.php:207
    549549msgid "Find Section"
    550550msgstr ""
    551551
    552 #: D:/WP/BoldBuilder/trunk/bold-builder.php:440
     552#: D:/WP/BoldBuilder/trunk/bold-builder.php:442
    553553msgid "Clear"
    554554msgstr ""
    555555
    556 #: D:/WP/BoldBuilder/trunk/bold-builder.php:441
     556#: D:/WP/BoldBuilder/trunk/bold-builder.php:443
    557557#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_button/bt_bb_button.php:251
    558558#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_custom_menu/bt_bb_custom_menu.php:84
     
    570570msgstr ""
    571571
    572 #: D:/WP/BoldBuilder/trunk/bold-builder.php:442
     572#: D:/WP/BoldBuilder/trunk/bold-builder.php:444
    573573msgid "Select Color"
    574574msgstr ""
    575575
    576 #: D:/WP/BoldBuilder/trunk/bold-builder.php:443
     576#: D:/WP/BoldBuilder/trunk/bold-builder.php:445
    577577msgid "Current Color"
    578578msgstr ""
    579579
    580 #: D:/WP/BoldBuilder/trunk/bold-builder.php:690
     580#: D:/WP/BoldBuilder/trunk/bold-builder.php:692
    581581msgid "Y/m/d"
    582582msgstr ""
    583583
    584 #: D:/WP/BoldBuilder/trunk/bold-builder.php:740
    585 #: D:/WP/BoldBuilder/trunk/bold-builder.php:761
     584#: D:/WP/BoldBuilder/trunk/bold-builder.php:742
     585#: D:/WP/BoldBuilder/trunk/bold-builder.php:763
    586586msgid "Bold Builder Settings"
    587587msgstr ""
    588588
    589 #: D:/WP/BoldBuilder/trunk/bold-builder.php:740
    590 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1436
     589#: D:/WP/BoldBuilder/trunk/bold-builder.php:742
     590#: D:/WP/BoldBuilder/trunk/bold-builder.php:1448
    591591msgid "Bold Builder"
    592592msgstr ""
    593593
    594 #: D:/WP/BoldBuilder/trunk/bold-builder.php:763
     594#: D:/WP/BoldBuilder/trunk/bold-builder.php:769
    595595#, php-format
    596 msgctxt "bold-builder"
    597596msgid ""
    598597"For additional help check out <a href=\"%1$s\" title=\"%2$s\" target=\"_blank"
     
    600599msgstr ""
    601600
    602 #: D:/WP/BoldBuilder/trunk/bold-builder.php:763
    603 msgctxt "bold-builder"
     601#: D:/WP/BoldBuilder/trunk/bold-builder.php:773
    604602msgid "Bold Builder documentation"
    605603msgstr ""
    606604
    607 #: D:/WP/BoldBuilder/trunk/bold-builder.php:771
     605#: D:/WP/BoldBuilder/trunk/bold-builder.php:782
    608606msgid "Show shortcode tag instead of mapped name"
    609607msgstr ""
    610608
    611 #: D:/WP/BoldBuilder/trunk/bold-builder.php:772
     609#: D:/WP/BoldBuilder/trunk/bold-builder.php:783
    612610msgid "Show shortcode tags instead of mapped names"
    613611msgstr ""
    614612
    615 #: D:/WP/BoldBuilder/trunk/bold-builder.php:773
     613#: D:/WP/BoldBuilder/trunk/bold-builder.php:784
    616614#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_column/bt_bb_column.php:352
    617615#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_column_inner/bt_bb_column_inner.php:354
     
    633631msgstr ""
    634632
    635 #: D:/WP/BoldBuilder/trunk/bold-builder.php:774
     633#: D:/WP/BoldBuilder/trunk/bold-builder.php:785
    636634#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_accordion/bt_bb_accordion.php:103
    637635#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_column/bt_bb_column.php:353
     
    654652#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_latest_posts/bt_bb_latest_posts.php:199
    655653#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_latest_posts/bt_bb_latest_posts.php:204
    656 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:146
    657 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:150
    658 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:152
     654#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:145
     655#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:149
     656#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:151
    659657#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_masonry_image_grid/bt_bb_masonry_image_grid.php:159
    660658#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_masonry_post_grid/bt_bb_masonry_post_grid.php:315
     
    677675msgstr ""
    678676
    679 #: D:/WP/BoldBuilder/trunk/bold-builder.php:778
     677#: D:/WP/BoldBuilder/trunk/bold-builder.php:789
    680678msgid "Post types"
    681679msgstr ""
    682680
    683 #: D:/WP/BoldBuilder/trunk/bold-builder.php:779
     681#: D:/WP/BoldBuilder/trunk/bold-builder.php:790
    684682msgid "Post Types"
    685683msgstr ""
    686684
    687 #: D:/WP/BoldBuilder/trunk/bold-builder.php:797
     685#: D:/WP/BoldBuilder/trunk/bold-builder.php:808
    688686msgid "Color schemes"
    689687msgstr ""
    690688
    691 #: D:/WP/BoldBuilder/trunk/bold-builder.php:798
     689#: D:/WP/BoldBuilder/trunk/bold-builder.php:809
    692690msgid "Color Schemes"
    693691msgstr ""
    694692
    695 #: D:/WP/BoldBuilder/trunk/bold-builder.php:806
     693#: D:/WP/BoldBuilder/trunk/bold-builder.php:817
    696694msgid "Tips"
    697695msgstr ""
    698696
    699 #: D:/WP/BoldBuilder/trunk/bold-builder.php:814
     697#: D:/WP/BoldBuilder/trunk/bold-builder.php:825
    700698msgid "Show Tips"
    701699msgstr ""
    702700
    703 #: D:/WP/BoldBuilder/trunk/bold-builder.php:819
     701#: D:/WP/BoldBuilder/trunk/bold-builder.php:830
    704702msgid "Slug in URL"
    705703msgstr ""
    706704
    707 #: D:/WP/BoldBuilder/trunk/bold-builder.php:827
     705#: D:/WP/BoldBuilder/trunk/bold-builder.php:838
    708706msgid ""
    709707"Use post slug in URL input (when selecting existing content search result)"
    710708msgstr ""
    711709
    712 #: D:/WP/BoldBuilder/trunk/bold-builder.php:832
    713 #: D:/WP/BoldBuilder/trunk/bold-builder.php:833
     710#: D:/WP/BoldBuilder/trunk/bold-builder.php:843
     711#: D:/WP/BoldBuilder/trunk/bold-builder.php:844
    714712msgid "OpenAI API key"
    715713msgstr ""
    716714
    717 #: D:/WP/BoldBuilder/trunk/bold-builder.php:840
    718 #: D:/WP/BoldBuilder/trunk/bold-builder.php:841
     715#: D:/WP/BoldBuilder/trunk/bold-builder.php:851
     716#: D:/WP/BoldBuilder/trunk/bold-builder.php:852
    719717msgid "OpenAI Model"
    720718msgstr ""
    721719
    722 #: D:/WP/BoldBuilder/trunk/bold-builder.php:850
    723 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1016
    724 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1580
     720#: D:/WP/BoldBuilder/trunk/bold-builder.php:861
     721#: D:/WP/BoldBuilder/trunk/bold-builder.php:1027
     722#: D:/WP/BoldBuilder/trunk/bold-builder.php:1593
    725723msgid "Save"
    726724msgstr ""
    727725
    728 #: D:/WP/BoldBuilder/trunk/bold-builder.php:986
     726#: D:/WP/BoldBuilder/trunk/bold-builder.php:997
    729727msgid "Toggle"
    730728msgstr ""
    731729
    732 #: D:/WP/BoldBuilder/trunk/bold-builder.php:987
     730#: D:/WP/BoldBuilder/trunk/bold-builder.php:998
    733731msgid "Add"
    734732msgstr ""
    735733
    736 #: D:/WP/BoldBuilder/trunk/bold-builder.php:989
     734#: D:/WP/BoldBuilder/trunk/bold-builder.php:1000
    737735msgid "Edit Content"
    738736msgstr ""
    739737
    740 #: D:/WP/BoldBuilder/trunk/bold-builder.php:990
     738#: D:/WP/BoldBuilder/trunk/bold-builder.php:1001
    741739#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_image/bt_bb_image.php:298
    742740#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_image/bt_bb_image.php:305
     
    746744msgstr ""
    747745
    748 #: D:/WP/BoldBuilder/trunk/bold-builder.php:991
     746#: D:/WP/BoldBuilder/trunk/bold-builder.php:1002
    749747msgid "Select parent"
    750748msgstr ""
    751749
    752 #: D:/WP/BoldBuilder/trunk/bold-builder.php:992
     750#: D:/WP/BoldBuilder/trunk/bold-builder.php:1003
    753751msgid "Clone"
    754752msgstr ""
    755753
    756 #: D:/WP/BoldBuilder/trunk/bold-builder.php:994
     754#: D:/WP/BoldBuilder/trunk/bold-builder.php:1005
    757755msgid "Do you really want to delete this Section?"
    758756msgstr ""
    759757
    760 #: D:/WP/BoldBuilder/trunk/bold-builder.php:995
     758#: D:/WP/BoldBuilder/trunk/bold-builder.php:1006
    761759msgid "Layout error!"
    762760msgstr ""
    763761
    764 #: D:/WP/BoldBuilder/trunk/bold-builder.php:996
     762#: D:/WP/BoldBuilder/trunk/bold-builder.php:1007
    765763msgid "Number of columns not equal for all breakpoints!"
    766764msgstr ""
    767765
    768 #: D:/WP/BoldBuilder/trunk/bold-builder.php:997
     766#: D:/WP/BoldBuilder/trunk/bold-builder.php:1008
    769767msgid "Add Element"
    770768msgstr ""
    771769
    772 #: D:/WP/BoldBuilder/trunk/bold-builder.php:998
     770#: D:/WP/BoldBuilder/trunk/bold-builder.php:1009
    773771msgid "Add elements (drag & drop)"
    774772msgstr ""
    775773
    776 #: D:/WP/BoldBuilder/trunk/bold-builder.php:999
     774#: D:/WP/BoldBuilder/trunk/bold-builder.php:1010
    777775msgid "Select Layout"
    778776msgstr ""
    779777
    780 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1000
     778#: D:/WP/BoldBuilder/trunk/bold-builder.php:1011
    781779msgid "Edit Layout"
    782780msgstr ""
    783781
    784 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1001
     782#: D:/WP/BoldBuilder/trunk/bold-builder.php:1012
    785783#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_cost_calculator_item/bt_bb_cost_calculator_item.php:100
    786 #: D:/WP/BoldBuilder/trunk/widgets/bb_text_image/init.php:197
     784#: D:/WP/BoldBuilder/trunk/widgets/bb_text_image/init.php:202
    787785msgid "Select"
    788786msgstr ""
    789787
    790 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1002
     788#: D:/WP/BoldBuilder/trunk/bold-builder.php:1013
    791789msgid "Select Images"
    792790msgstr ""
    793791
    794 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1003
    795 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1656
     792#: D:/WP/BoldBuilder/trunk/bold-builder.php:1014
     793#: D:/WP/BoldBuilder/trunk/bold-builder.php:1669
    796794msgid "Submit"
    797795msgstr ""
    798796
    799 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1004
     797#: D:/WP/BoldBuilder/trunk/bold-builder.php:1015
    800798msgid "Search"
    801799msgstr ""
    802800
    803 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1005
     801#: D:/WP/BoldBuilder/trunk/bold-builder.php:1016
    804802msgid "Search for existing content"
    805803msgstr ""
    806804
    807 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1007
     805#: D:/WP/BoldBuilder/trunk/bold-builder.php:1018
    808806msgid "Copy+"
    809807msgstr ""
    810808
    811 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1009
     809#: D:/WP/BoldBuilder/trunk/bold-builder.php:1020
    812810msgid "Export"
    813811msgstr ""
    814812
    815 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1010
     813#: D:/WP/BoldBuilder/trunk/bold-builder.php:1021
    816814msgid "Import"
    817815msgstr ""
    818816
    819 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1011
     817#: D:/WP/BoldBuilder/trunk/bold-builder.php:1022
    820818msgid "Not allowed!"
    821819msgstr ""
    822820
    823 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1012
     821#: D:/WP/BoldBuilder/trunk/bold-builder.php:1023
    824822msgid "Manage Clipboard"
    825823msgstr ""
    826824
    827 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1013
     825#: D:/WP/BoldBuilder/trunk/bold-builder.php:1024
    828826msgid "Filter..."
    829827msgstr ""
    830828
    831 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1014
     829#: D:/WP/BoldBuilder/trunk/bold-builder.php:1025
    832830msgid "Shortcode Mapper"
    833831msgstr ""
    834832
    835 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1015
     833#: D:/WP/BoldBuilder/trunk/bold-builder.php:1026
    836834msgid "Insert Mapping"
    837835msgstr ""
    838836
    839 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1017
     837#: D:/WP/BoldBuilder/trunk/bold-builder.php:1028
    840838msgid "Switch Editor"
    841839msgstr ""
    842840
    843 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1018
     841#: D:/WP/BoldBuilder/trunk/bold-builder.php:1029
    844842msgid "Custom CSS"
    845843msgstr ""
    846844
    847 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1019
     845#: D:/WP/BoldBuilder/trunk/bold-builder.php:1030
    848846msgid "Are you sure you want to switch editor?"
    849847msgstr ""
    850848
    851 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1020
     849#: D:/WP/BoldBuilder/trunk/bold-builder.php:1031
    852850#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_section/bt_bb_section.php:304
    853851msgid "General"
    854852msgstr ""
    855853
    856 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1021
    857 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1566
     854#: D:/WP/BoldBuilder/trunk/bold-builder.php:1032
    858855#: D:/WP/BoldBuilder/trunk/bold-builder.php:1579
     856#: D:/WP/BoldBuilder/trunk/bold-builder.php:1592
    859857msgid "Preview"
    860858msgstr ""
    861859
    862 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1022
     860#: D:/WP/BoldBuilder/trunk/bold-builder.php:1033
    863861msgid "No results found."
    864862msgstr ""
    865863
    866 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1023
     864#: D:/WP/BoldBuilder/trunk/bold-builder.php:1034
    867865msgid "Edit in BE editor"
    868866msgstr ""
    869867
    870 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1024
     868#: D:/WP/BoldBuilder/trunk/bold-builder.php:1035
    871869msgid "parent"
    872870msgstr ""
    873871
    874 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1025
     872#: D:/WP/BoldBuilder/trunk/bold-builder.php:1036
    875873msgid "Or enter image URL..."
    876874msgstr ""
    877875
    878 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1026
     876#: D:/WP/BoldBuilder/trunk/bold-builder.php:1037
    879877msgid "Content not saved!"
    880878msgstr ""
    881879
    882 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1028
     880#: D:/WP/BoldBuilder/trunk/bold-builder.php:1039
    883881msgid "Previous Tip"
    884882msgstr ""
    885883
    886 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1029
     884#: D:/WP/BoldBuilder/trunk/bold-builder.php:1040
    887885msgid "Next Tip"
    888886msgstr ""
    889887
    890 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1034
     888#: D:/WP/BoldBuilder/trunk/bold-builder.php:1045
    891889msgid ""
    892890"Bold Builder tip: Hold CTRL key while moving (dragging) element to quickly "
     
    894892msgstr ""
    895893
    896 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1035
     894#: D:/WP/BoldBuilder/trunk/bold-builder.php:1046
    897895msgid ""
    898896"Bold Builder tip: You can edit Bold Builder settings in Settings > Bold "
     
    900898msgstr ""
    901899
    902 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1036
     900#: D:/WP/BoldBuilder/trunk/bold-builder.php:1047
    903901msgid "Bold Builder tip: Did you know that you can move columns between rows?"
    904902msgstr ""
    905903
    906 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1037
     904#: D:/WP/BoldBuilder/trunk/bold-builder.php:1048
    907905msgid ""
    908906"Bold Builder tip: You can use CTRL key with Copy/Copy+ to cut the element."
    909907msgstr ""
    910908
    911 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1038
     909#: D:/WP/BoldBuilder/trunk/bold-builder.php:1049
    912910msgid "Bold Builder tip: Use Copy+ to copy multiple elements to clipboard."
    913911msgstr ""
    914912
    915 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1039
     913#: D:/WP/BoldBuilder/trunk/bold-builder.php:1050
    916914msgid ""
    917915"Bold Builder tip: Hold CTRL key and click Paste on content element toolbar "
     
    919917msgstr ""
    920918
    921 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1043
     919#: D:/WP/BoldBuilder/trunk/bold-builder.php:1054
    922920msgid "AI"
    923921msgstr ""
    924922
    925 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1044
     923#: D:/WP/BoldBuilder/trunk/bold-builder.php:1055
    926924msgid "AI Content Generator"
    927925msgstr ""
    928926
    929 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1045
     927#: D:/WP/BoldBuilder/trunk/bold-builder.php:1056
    930928msgid "Generate"
    931929msgstr ""
    932930
    933 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1046
     931#: D:/WP/BoldBuilder/trunk/bold-builder.php:1057
    934932msgid "Translate"
    935933msgstr ""
    936934
    937 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1047
     935#: D:/WP/BoldBuilder/trunk/bold-builder.php:1058
    938936msgid "Rephrase"
    939937msgstr ""
    940938
    941 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1048
     939#: D:/WP/BoldBuilder/trunk/bold-builder.php:1059
    942940msgid "Correct"
    943941msgstr ""
    944942
    945 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1049
     943#: D:/WP/BoldBuilder/trunk/bold-builder.php:1060
    946944msgid "Go"
    947945msgstr ""
    948946
    949 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1050
     947#: D:/WP/BoldBuilder/trunk/bold-builder.php:1061
    950948msgid "Keywords"
    951949msgstr ""
    952950
    953 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1051
     951#: D:/WP/BoldBuilder/trunk/bold-builder.php:1062
    954952msgid "System prompt"
    955953msgstr ""
    956954
    957 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1052
     955#: D:/WP/BoldBuilder/trunk/bold-builder.php:1063
    958956msgid "Randomness (temperature)"
    959957msgstr ""
    960958
    961 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1053
     959#: D:/WP/BoldBuilder/trunk/bold-builder.php:1064
    962960msgid "Desired length (in words)"
    963961msgstr ""
    964962
    965 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1054
     963#: D:/WP/BoldBuilder/trunk/bold-builder.php:1065
    966964msgid "Language"
    967965msgstr ""
    968966
    969 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1055
     967#: D:/WP/BoldBuilder/trunk/bold-builder.php:1066
    970968msgid "English"
    971969msgstr ""
    972970
    973 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1056
     971#: D:/WP/BoldBuilder/trunk/bold-builder.php:1067
    974972msgid "Tone"
    975973msgstr ""
    976974
    977 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1058
     975#: D:/WP/BoldBuilder/trunk/bold-builder.php:1069
    978976msgid "Default / Same"
    979977msgstr ""
    980978
    981 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1059
     979#: D:/WP/BoldBuilder/trunk/bold-builder.php:1070
    982980#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_button/bt_bb_button.php:253
    983981#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_custom_menu/bt_bb_custom_menu.php:86
     
    988986msgstr ""
    989987
    990 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1060
     988#: D:/WP/BoldBuilder/trunk/bold-builder.php:1071
    991989msgid "Conversational"
    992990msgstr ""
    993991
    994 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1061
     992#: D:/WP/BoldBuilder/trunk/bold-builder.php:1072
    995993msgid "Passionate"
    996994msgstr ""
    997995
    998 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1062
     996#: D:/WP/BoldBuilder/trunk/bold-builder.php:1073
    999997msgid "Professional"
    1000998msgstr ""
    1001999
    1002 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1063
     1000#: D:/WP/BoldBuilder/trunk/bold-builder.php:1074
    10031001msgid "Witty"
    10041002msgstr ""
    10051003
    1006 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1064
     1004#: D:/WP/BoldBuilder/trunk/bold-builder.php:1075
    10071005msgid "Help"
    10081006msgstr ""
    10091007
    1010 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1065
     1008#: D:/WP/BoldBuilder/trunk/bold-builder.php:1076
    10111009msgid "(leave empty to use length of current content)"
    10121010msgstr ""
    10131011
    1014 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1067
     1012#: D:/WP/BoldBuilder/trunk/bold-builder.php:1079
    10151013#, php-format
    10161014msgid "Error. Please check OpenAI settings %1$shere%2$s."
    10171015msgstr ""
    10181016
    1019 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1071
     1017#: D:/WP/BoldBuilder/trunk/bold-builder.php:1083
    10201018msgid "No content!"
    10211019msgstr ""
    10221020
    1023 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1074
     1021#: D:/WP/BoldBuilder/trunk/bold-builder.php:1086
    10241022msgid "Move"
    10251023msgstr ""
    10261024
    1027 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1076
     1025#: D:/WP/BoldBuilder/trunk/bold-builder.php:1088
    10281026msgid "before"
    10291027msgstr ""
    10301028
    1031 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1077
     1029#: D:/WP/BoldBuilder/trunk/bold-builder.php:1089
    10321030msgid "after"
    10331031msgstr ""
    10341032
    1035 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1078
     1033#: D:/WP/BoldBuilder/trunk/bold-builder.php:1090
    10361034msgid "to"
    10371035msgstr ""
    10381036
    1039 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1080
     1037#: D:/WP/BoldBuilder/trunk/bold-builder.php:1092
    10401038msgid "Need help?"
    10411039msgstr ""
    10421040
    1043 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1081
     1041#: D:/WP/BoldBuilder/trunk/bold-builder.php:1093
    10441042msgid "Read Documentation"
    10451043msgstr ""
    10461044
    1047 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1083
     1045#: D:/WP/BoldBuilder/trunk/bold-builder.php:1095
    10481046msgid "Responsive Override"
    10491047msgstr ""
    10501048
    1051 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1577
     1049#: D:/WP/BoldBuilder/trunk/bold-builder.php:1590
    10521050msgid "Clipboard Manager"
    10531051msgstr ""
    10541052
    1055 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1819
     1053#: D:/WP/BoldBuilder/trunk/bold-builder.php:1832
    10561054msgid "Hide element on screens"
    10571055msgstr ""
    10581056
    1059 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1819
     1057#: D:/WP/BoldBuilder/trunk/bold-builder.php:1832
    10601058msgid "Responsive"
    10611059msgstr ""
    10621060
    1063 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1821
     1061#: D:/WP/BoldBuilder/trunk/bold-builder.php:1834
    10641062msgid "≤480px"
    10651063msgstr ""
    10661064
    1067 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1822
     1065#: D:/WP/BoldBuilder/trunk/bold-builder.php:1835
    10681066msgid "481-768px"
    10691067msgstr ""
    10701068
    1071 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1823
     1069#: D:/WP/BoldBuilder/trunk/bold-builder.php:1836
    10721070msgid "769-992px"
    10731071msgstr ""
    10741072
    1075 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1824
     1073#: D:/WP/BoldBuilder/trunk/bold-builder.php:1837
    10761074msgid "993-1200px"
    10771075msgstr ""
    10781076
    1079 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1825
     1077#: D:/WP/BoldBuilder/trunk/bold-builder.php:1838
    10801078msgid "1201-1400px"
    10811079msgstr ""
    10821080
    1083 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1826
     1081#: D:/WP/BoldBuilder/trunk/bold-builder.php:1839
    10841082msgid ">1400px"
    10851083msgstr ""
    10861084
    1087 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1831
     1085#: D:/WP/BoldBuilder/trunk/bold-builder.php:1844
    10881086msgid "Publish date"
    10891087msgstr ""
    10901088
    1091 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1831
    1092 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1832
     1089#: D:/WP/BoldBuilder/trunk/bold-builder.php:1844
     1090#: D:/WP/BoldBuilder/trunk/bold-builder.php:1845
    10931091msgid "Fill both the date and time"
    10941092msgstr ""
    10951093
    1096 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1831
    1097 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1832
    1098 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1833
    1099 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1834
    1100 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1835
    1101 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1842
     1094#: D:/WP/BoldBuilder/trunk/bold-builder.php:1844
     1095#: D:/WP/BoldBuilder/trunk/bold-builder.php:1845
     1096#: D:/WP/BoldBuilder/trunk/bold-builder.php:1846
     1097#: D:/WP/BoldBuilder/trunk/bold-builder.php:1847
     1098#: D:/WP/BoldBuilder/trunk/bold-builder.php:1848
     1099#: D:/WP/BoldBuilder/trunk/bold-builder.php:1855
    11021100msgid "Custom"
    11031101msgstr ""
    11041102
    1105 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1832
     1103#: D:/WP/BoldBuilder/trunk/bold-builder.php:1845
    11061104msgid "Expiry date"
    11071105msgstr ""
    11081106
    1109 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1833
     1107#: D:/WP/BoldBuilder/trunk/bold-builder.php:1846
    11101108msgid "Element ID"
    11111109msgstr ""
    11121110
    1113 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1833
     1111#: D:/WP/BoldBuilder/trunk/bold-builder.php:1846
    11141112msgid "E.g. #myid"
    11151113msgstr ""
    11161114
    1117 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1834
     1115#: D:/WP/BoldBuilder/trunk/bold-builder.php:1847
    11181116msgid "Extra class name(s)"
    11191117msgstr ""
    11201118
    1121 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1834
     1119#: D:/WP/BoldBuilder/trunk/bold-builder.php:1847
    11221120msgid "E.g. .myclass"
    11231121msgstr ""
    11241122
    1125 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1835
     1123#: D:/WP/BoldBuilder/trunk/bold-builder.php:1848
    11261124msgid "Inline CSS style"
    11271125msgstr ""
    11281126
    1129 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1835
     1127#: D:/WP/BoldBuilder/trunk/bold-builder.php:1848
    11301128msgid "E.g. opacity: 0.5;"
    11311129msgstr ""
    11321130
    1133 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1842
     1131#: D:/WP/BoldBuilder/trunk/bold-builder.php:1855
    11341132#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_content_slider/bt_bb_content_slider.php:193
    11351133#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_slider/bt_bb_slider.php:212
     
    11371135msgstr ""
    11381136
    1139 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1844
     1137#: D:/WP/BoldBuilder/trunk/bold-builder.php:1857
    11401138msgid "No Animation"
    11411139msgstr ""
    11421140
    1143 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1845
     1141#: D:/WP/BoldBuilder/trunk/bold-builder.php:1858
    11441142msgid "Fade In"
    11451143msgstr ""
    11461144
    1147 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1846
     1145#: D:/WP/BoldBuilder/trunk/bold-builder.php:1859
    11481146msgid "Move Up"
    11491147msgstr ""
    11501148
    1151 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1847
     1149#: D:/WP/BoldBuilder/trunk/bold-builder.php:1860
    11521150msgid "Move Left"
    11531151msgstr ""
    11541152
    1155 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1848
     1153#: D:/WP/BoldBuilder/trunk/bold-builder.php:1861
    11561154msgid "Move Right"
    11571155msgstr ""
    11581156
    1159 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1849
     1157#: D:/WP/BoldBuilder/trunk/bold-builder.php:1862
    11601158msgid "Move Down"
    11611159msgstr ""
    11621160
    1163 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1850
     1161#: D:/WP/BoldBuilder/trunk/bold-builder.php:1863
    11641162msgid "Zoom In"
    11651163msgstr ""
    11661164
    1167 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1851
     1165#: D:/WP/BoldBuilder/trunk/bold-builder.php:1864
    11681166msgid "Zoom Out"
    11691167msgstr ""
    11701168
    1171 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1852
     1169#: D:/WP/BoldBuilder/trunk/bold-builder.php:1865
    11721170msgid "Fade In / Move Up"
    11731171msgstr ""
    11741172
    1175 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1853
     1173#: D:/WP/BoldBuilder/trunk/bold-builder.php:1866
    11761174msgid "Fade In / Move Left"
    11771175msgstr ""
    11781176
    1179 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1854
     1177#: D:/WP/BoldBuilder/trunk/bold-builder.php:1867
    11801178msgid "Fade In / Move Right"
    11811179msgstr ""
    11821180
    1183 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1855
     1181#: D:/WP/BoldBuilder/trunk/bold-builder.php:1868
    11841182msgid "Fade In / Move Down"
    11851183msgstr ""
    11861184
    1187 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1856
     1185#: D:/WP/BoldBuilder/trunk/bold-builder.php:1869
    11881186msgid "Fade In / Zoom In"
    11891187msgstr ""
    11901188
    1191 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1857
     1189#: D:/WP/BoldBuilder/trunk/bold-builder.php:1870
    11921190msgid "Fade In / Zoom Out"
    11931191msgstr ""
    11941192
    1195 #: D:/WP/BoldBuilder/trunk/bold-builder.php:2133
     1193#: D:/WP/BoldBuilder/trunk/bold-builder.php:2146
    11961194msgid "Sorry, you are not allowed to save Price List element."
    11971195msgstr ""
    11981196
    1199 #: D:/WP/BoldBuilder/trunk/bold-builder.php:2136
     1197#: D:/WP/BoldBuilder/trunk/bold-builder.php:2149
    12001198msgid "Sorry, you are not allowed to save Raw Content element."
    12011199msgstr ""
     
    30393037
    30403038#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_google_maps/bt_bb_google_maps.php:149
    3041 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:120
     3039#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:119
    30423040msgid "You can edit location(s) on back end."
    30433041msgstr ""
     
    30513049
    30523050#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_google_maps/bt_bb_google_maps.php:158
    3053 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:126
     3051#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:125
    30543052msgid "Zoom"
    30553053msgstr ""
     
    30603058
    30613059#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_google_maps/bt_bb_google_maps.php:159
    3062 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:128
     3060#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:127
    30633061#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_slider/bt_bb_slider.php:201
    30643062msgid "Height"
     
    30663064
    30673065#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_google_maps/bt_bb_google_maps.php:159
    3068 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:128
     3066#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:127
    30693067msgid "E.g. 250px"
    30703068msgstr ""
     
    31123110
    31133111#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_google_maps/bt_bb_google_maps.php:168
    3114 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:143
     3112#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:142
    31153113msgid "Center map"
    31163114msgstr ""
    31173115
    31183116#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_google_maps/bt_bb_google_maps.php:170
    3119 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:145
     3117#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:144
    31203118msgid "No (use first location as center)"
    31213119msgstr ""
    31223120
    31233121#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_google_maps/bt_bb_google_maps.php:172
    3124 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:147
     3122#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:146
    31253123msgid "Yes (without overlay initially)"
    31263124msgstr ""
     
    34133411#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_latest_posts/bt_bb_latest_posts.php:193
    34143412#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_masonry_post_grid/bt_bb_masonry_post_grid.php:344
    3415 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_posts/init.php:81
     3413#: D:/WP/BoldBuilder/trunk/widgets/bb_recent_posts/init.php:80
    34163414msgid "Show date"
    34173415msgstr ""
     
    34313429msgstr ""
    34323430
     3431#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:125
     3432msgid "E.g. 9"
     3433msgstr ""
     3434
    34333435#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:126
    3434 msgid "E.g. 9"
     3436msgid "Max zoom"
     3437msgstr ""
     3438
     3439#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:126
     3440msgid "E.g. 15"
    34353441msgstr ""
    34363442
    34373443#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:127
    3438 msgid "Max zoom"
    3439 msgstr ""
    3440 
    3441 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:127
    3442 msgid "E.g. 15"
     3444msgid "Used when there is no content"
    34433445msgstr ""
    34443446
    34453447#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:128
    3446 msgid "Used when there is no content"
    3447 msgstr ""
    3448 
    3449 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:129
    34503448msgid "Predefined (base) map layer"
    34513449msgstr ""
    34523450
     3451#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:130
     3452msgid "No base layer (use only additional map layers)"
     3453msgstr ""
     3454
    34533455#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:131
    3454 msgid "No base layer (use only additional map layers)"
    3455 msgstr ""
    3456 
    3457 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:132
    34583456msgid "Mapnik OSM"
    34593457msgstr ""
    34603458
     3459#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:133
     3460msgid "OSM Hot"
     3461msgstr ""
     3462
    34613463#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:134
    3462 msgid "OSM Hot"
     3464msgid "Stamen Watercolor"
    34633465msgstr ""
    34643466
    34653467#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:135
    3466 msgid "Stamen Watercolor"
     3468msgid "Stamen Terrain"
    34673469msgstr ""
    34683470
    34693471#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:136
    3470 msgid "Stamen Terrain"
     3472msgid "Stamen Toner"
    34713473msgstr ""
    34723474
    34733475#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:137
    3474 msgid "Stamen Toner"
     3476msgid "Carto Dark"
    34753477msgstr ""
    34763478
    34773479#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:138
    3478 msgid "Carto Dark"
    3479 msgstr ""
    3480 
    3481 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:139
    34823480msgid "Carto Light"
    34833481msgstr ""
    34843482
    3485 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:142
     3483#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:141
    34863484msgid "Additional map layers"
    34873485msgstr ""
    34883486
    3489 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:142
     3487#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:141
    34903488msgid ""
    34913489"Add Map tiles URL. E.g. https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png, "
     
    34933491msgstr ""
    34943492
    3495 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:150
     3493#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:149
    34963494msgid "Enable scroll wheel zoom on map"
    34973495msgstr ""
    34983496
    3499 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:152
     3497#: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:151
    35003498msgid "Enable zoom control on map"
    35013499msgstr ""
     
    41664164
    41674165#: D:/WP/BoldBuilder/trunk/widgets/bb_gallery/init.php:36
    4168 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:88
    4169 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_comments/init.php:52
    4170 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_posts/init.php:72
    4171 #: D:/WP/BoldBuilder/trunk/widgets/bb_text_image/init.php:180
     4166#: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:89
     4167#: D:/WP/BoldBuilder/trunk/widgets/bb_recent_comments/init.php:51
     4168#: D:/WP/BoldBuilder/trunk/widgets/bb_recent_posts/init.php:71
     4169#: D:/WP/BoldBuilder/trunk/widgets/bb_text_image/init.php:185
    41724170msgid "Title:"
    41734171msgstr ""
     
    41854183msgstr ""
    41864184
    4187 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:82
    4188 #: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:47
     4185#: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:83
     4186#: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:48
    41894187msgid "Icon:"
    41904188msgstr ""
    41914189
    4192 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:92
     4190#: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:93
    41934191msgid "URL title:"
    41944192msgstr ""
    41954193
    4196 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:96
    4197 #: D:/WP/BoldBuilder/trunk/widgets/bb_text_image/init.php:201
     4194#: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:97
     4195#: D:/WP/BoldBuilder/trunk/widgets/bb_text_image/init.php:206
    41984196msgid "Text:"
    41994197msgstr ""
    42004198
    4201 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:100
     4199#: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:101
    42024200msgid "URL or slug:"
    42034201msgstr ""
    42044202
    4205 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:107
     4203#: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:108
    42064204msgid "Show highlighted"
    42074205msgstr ""
    42084206
    4209 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:112
     4207#: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:113
    42104208msgid "Target:"
    42114209msgstr ""
    42124210
    4213 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:128
     4211#: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:129
    42144212msgid "CSS extra class:"
    42154213msgstr ""
    42164214
     4215#: D:/WP/BoldBuilder/trunk/widgets/bb_recent_comments/init.php:11
     4216msgid "BB Recent Comments"
     4217msgstr ""
     4218
    42174219#: D:/WP/BoldBuilder/trunk/widgets/bb_recent_comments/init.php:12
    4218 msgid "BB Recent Comments"
    4219 msgstr ""
    4220 
    4221 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_comments/init.php:13
    42224220msgid "Recent comments with avatars."
    42234221msgstr ""
    42244222
    4225 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_comments/init.php:48
     4223#: D:/WP/BoldBuilder/trunk/widgets/bb_recent_comments/init.php:47
    42264224msgid "Recent Comments"
    42274225msgstr ""
    42284226
    4229 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_comments/init.php:56
     4227#: D:/WP/BoldBuilder/trunk/widgets/bb_recent_comments/init.php:55
    42304228msgid "Number of comments:"
    42314229msgstr ""
    42324230
     4231#: D:/WP/BoldBuilder/trunk/widgets/bb_recent_posts/init.php:11
     4232msgid "BB Recent Posts"
     4233msgstr ""
     4234
    42334235#: D:/WP/BoldBuilder/trunk/widgets/bb_recent_posts/init.php:12
    4234 msgid "BB Recent Posts"
    4235 msgstr ""
    4236 
    4237 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_posts/init.php:13
    42384236msgid "Recent posts with thumbnails."
    42394237msgstr ""
    42404238
    4241 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_posts/init.php:67
     4239#: D:/WP/BoldBuilder/trunk/widgets/bb_recent_posts/init.php:66
    42424240msgid "Recent Posts"
    42434241msgstr ""
    42444242
    4245 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_posts/init.php:76
     4243#: D:/WP/BoldBuilder/trunk/widgets/bb_recent_posts/init.php:75
    42464244msgid "Number of posts:"
    42474245msgstr ""
     
    42554253msgstr ""
    42564254
    4257 #: D:/WP/BoldBuilder/trunk/widgets/bb_text_image/init.php:184
     4255#: D:/WP/BoldBuilder/trunk/widgets/bb_text_image/init.php:189
    42584256msgid "Image IDs:"
    42594257msgstr ""
     
    42674265msgstr ""
    42684266
    4269 #: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:53
     4267#: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:54
    42704268msgid "Time zone:"
    42714269msgstr ""
    42724270
    4273 #: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:72
     4271#: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:73
    42744272msgid "Place name:"
    42754273msgstr ""
    42764274
    4277 #: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:76
     4275#: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:77
    42784276msgid "Time notation:"
    42794277msgstr ""
    42804278
    4281 #: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:82
     4279#: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:83
    42824280msgid "24 hours"
    42834281msgstr ""
    42844282
    4285 #: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:82
     4283#: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:83
    42864284msgid "12 hours"
    42874285msgstr ""
     
    42954293msgstr ""
    42964294
    4297 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:173
    4298 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:257
     4295#: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:179
     4296#: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:263
    42994297msgid "Now"
    43004298msgstr ""
    43014299
    4302 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:184
     4300#: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:190
    43034301msgid "12 h"
    43044302msgstr ""
    43054303
    4306 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:186
     4304#: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:192
    43074305msgid "24 h"
    43084306msgstr ""
    43094307
    4310 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:231
     4308#: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:237
    43114309msgid "Latitude:"
    43124310msgstr ""
    43134311
    4314 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:235
     4312#: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:241
    43154313msgid "Longitude:"
    43164314msgstr ""
    43174315
    4318 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:239
     4316#: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:245
    43194317msgid "Temperature unit:"
    43204318msgstr ""
    43214319
    4322 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:242
     4320#: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:248
    43234321msgid "Celsius"
    43244322msgstr ""
    43254323
    4326 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:242
     4324#: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:248
    43274325msgid "Fahrenheit"
    43284326msgstr ""
    43294327
    4330 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:254
     4328#: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:260
    43314329msgid "Type:"
    43324330msgstr ""
    43334331
    4334 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:257
     4332#: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:263
    43354333msgid "Next 12 hours"
    43364334msgstr ""
    43374335
    4338 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:257
     4336#: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:263
    43394337msgid "Next 24 hours"
    43404338msgstr ""
    43414339
    4342 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:269
     4340#: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:275
    43434341msgid "Cache (minutes):"
    43444342msgstr ""
    43454343
    4346 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:273
     4344#: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:279
    43474345msgid "API key:"
    43484346msgstr ""
    43494347
    4350 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:276
     4348#: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:282
    43514349msgid "Get Openweather API key here: "
    43524350msgstr ""
  • bold-page-builder/trunk/readme.txt

    r3409998 r3413258  
    44Requires at least: 5.0
    55Tested up to: 6.9
    6 Stable tag: 5.5.4
     6Stable tag: 5.5.5
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    137137== Changelog ==
    138138
     139= 5.5.5 =
     140* Improved security.
     141
    139142= 5.5.4 =
    140143* Improved security.
  • bold-page-builder/trunk/widgets/bb_icon/init.php

    r2944313 r3413258  
    5151            }
    5252
    53             echo $wrap_start_tag;
     53            echo wp_kses_post( $wrap_start_tag );
    5454                if ( $icon != '' && $icon != 'no_icon' ) {
    5555                    echo '<div class="btIconWidgetIcon">';
    56                         echo bt_bb_icon::get_html( $icon );
     56                        // Already escaped in get_html, can not escape here without breaking custom icons and backward compatibility (custom data-ico-... attribute, custom css based on it)
     57                        echo bt_bb_icon::get_html( $icon ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    5758                    echo '</div>';
    5859                }
    5960                if ( $title != '' || $text != '' ) {
    6061                    echo '<div class="btIconWidgetContent">';
    61                         if ( $title != '' ) echo '<span class="btIconWidgetTitle">' . $title . '</span>';
    62                         if ( $text != '' ) echo '<span class="btIconWidgetText">' . $text . '</span>';
     62                        if ( $title != '' ) echo '<span class="btIconWidgetTitle">' . esc_html( $title ) . '</span>';
     63                        if ( $text != '' ) echo '<span class="btIconWidgetText">' . esc_html( $text ) . '</span>';
    6364                    echo '</div>';
    6465                }
    65             echo $wrap_end_tag;
     66            echo wp_kses_post( $wrap_end_tag );
    6667           
    6768            //echo $args['after_widget']; // TODO: fix CSS in themes
     
    8081            ?>     
    8182            <div class="bt_bb_iconpicker_widget_container">
    82                 <label for="<?php echo esc_attr( $this->get_field_id( 'icon' ) ); ?>"><?php _e( 'Icon:', 'bold-builder' ); ?></label>
     83                <label for="<?php echo esc_attr( $this->get_field_id( 'icon' ) ); ?>"><?php esc_html_e( 'Icon:', 'bold-builder' ); ?></label>
    8384                <input type="hidden" id="<?php echo esc_attr( $this->get_field_id( 'icon' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'icon' ) ); ?>" value="<?php echo esc_attr( $icon ); ?>">
    8485                <input type="hidden" name="<?php echo esc_attr( $this->get_field_name( 'bt_bb_iconpicker' ) ); ?>">
     
    8687            </div>
    8788            <p>
    88                 <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title:', 'bold-builder' ); ?></label>
     89                <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php esc_html_e( 'Title:', 'bold-builder' ); ?></label>
    8990                <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>">
    9091            </p>
    9192            <p>
    92                 <label for="<?php echo esc_attr( $this->get_field_id( 'url_title' ) ); ?>"><?php _e( 'URL title:', 'bold-builder' ); ?></label>
     93                <label for="<?php echo esc_attr( $this->get_field_id( 'url_title' ) ); ?>"><?php esc_html_e( 'URL title:', 'bold-builder' ); ?></label>
    9394                <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'url_title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'url_title' ) ); ?>" type="text" value="<?php echo esc_attr( $url_title ); ?>">
    9495            </p>
    9596            <p>
    96                 <label for="<?php echo esc_attr( $this->get_field_id( 'text' ) ); ?>"><?php _e( 'Text:', 'bold-builder' ); ?></label>
     97                <label for="<?php echo esc_attr( $this->get_field_id( 'text' ) ); ?>"><?php esc_html_e( 'Text:', 'bold-builder' ); ?></label>
    9798                <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'text' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'text' ) ); ?>" type="text" value="<?php echo esc_attr( $text ); ?>">
    9899            </p>
    99100            <p>
    100                 <label for="<?php echo esc_attr( $this->get_field_id( 'url' ) ); ?>"><?php _e( 'URL or slug:', 'bold-builder' ); ?></label>
     101                <label for="<?php echo esc_attr( $this->get_field_id( 'url' ) ); ?>"><?php esc_html_e( 'URL or slug:', 'bold-builder' ); ?></label>
    101102                <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'url' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'url' ) ); ?>" type="text" value="<?php echo esc_attr( $url ); ?>">
    102103            </p>
     
    104105                if ( class_exists( 'BoldThemes_Customize_Default' ) ) { ?>
    105106                    <p>
    106                         <input class="checkbox" type="checkbox" <?php checked( $show_button, 'on' ); ?> id="<?php echo $this->get_field_id('show_button'); ?>" name="<?php echo $this->get_field_name('show_button'); ?>" />
    107                         <label for="<?php echo $this->get_field_id('show_button'); ?>"><?php _e( 'Show highlighted', 'bold-builder' ); ?></label>
     107                        <input class="checkbox" type="checkbox" <?php checked( $show_button, 'on' ); ?> id="<?php echo esc_attr( $this->get_field_id('show_button') ); ?>" name="<?php echo esc_attr( $this->get_field_name('show_button') ); ?>" />
     108                        <label for="<?php echo esc_attr( $this->get_field_id('show_button') ); ?>"><?php esc_html_e( 'Show highlighted', 'bold-builder' ); ?></label>
    108109                    </p>
    109110                <?php }
    110111            ?>
    111112            <p>
    112                 <label for="<?php echo esc_attr( $this->get_field_id( 'target' ) ); ?>"><?php _e( 'Target:', 'bold-builder' ); ?></label>
     113                <label for="<?php echo esc_attr( $this->get_field_id( 'target' ) ); ?>"><?php esc_html_e( 'Target:', 'bold-builder' ); ?></label>
    113114                <select class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'target' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'target' ) ); ?>">
    114115                    <option value=""></option>;
     
    117118                    foreach( $target_arr as $key => $value ) {
    118119                        if ( $value == $target ) {
    119                             echo '<option value="' . esc_attr( $value ) . '" selected>' . $key . '</option>';
     120                            echo '<option value="' . esc_attr( $value ) . '" selected>' . esc_html( $key ) . '</option>';
    120121                        } else {
    121                             echo '<option value="' . esc_attr( $value ) . '">' . $key . '</option>';
     122                            echo '<option value="' . esc_attr( $value ) . '">' . esc_html( $key ) . '</option>';
    122123                        }
    123124                    }
     
    126127            </p>
    127128            <p>
    128                 <label for="<?php echo esc_attr( $this->get_field_id( 'extra_class' ) ); ?>"><?php _e( 'CSS extra class:', 'bold-builder' ); ?></label>
     129                <label for="<?php echo esc_attr( $this->get_field_id( 'extra_class' ) ); ?>"><?php esc_html_e( 'CSS extra class:', 'bold-builder' ); ?></label>
    129130                <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'extra_class' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'extra_class' ) ); ?>" type="text" value="<?php echo esc_attr( $extra_class ); ?>">
    130131            </p>           
  • bold-page-builder/trunk/widgets/bb_recent_comments/init.php

    r2052924 r3413258  
    11<?php
    2 
    32if ( ! class_exists( 'BB_Recent_Comments' ) ) {
    43   
     
    1413            );
    1514        }
    16 
    1715        public function widget( $args, $instance ) {
    1816       
    19             echo $args['before_widget'];
     17            // $args['before_widget'] and $args['after_widget'] are already escaped by WordPress core
     18            echo $args['before_widget']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    2019            if ( ! empty( $instance['title'] ) ) {
    21                 echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ). $args['after_title'];
     20                // $args['before_title'] and $args['after_title'] are already escaped by WordPress core
     21                // apply_filters output is escaped since the title goes through widget_title filter
     22                echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    2223            }           
    23 
    24             $number = intval( trim( $instance['number'] ) );
     24            $number = isset( $instance['number'] ) ? intval( trim( $instance['number'] ) ) : 5;
    2525            if ( $number < 1 ) {
    2626                $number = 5;
     
    3636                $date_format = get_option( 'date_format' );
    3737                foreach ( $recent_comments as $recent ) {
    38                     echo '<li><h5><a href="' . esc_url( get_permalink( $recent->comment_post_ID ) ) . '">' . strip_tags( get_the_title( $recent->comment_post_ID ) ) . '</a></h5><p class="posted">' . date_i18n( $date_format, strtotime( $recent->comment_date ) ) . ' &mdash; ' . esc_html__( 'by', 'bold-builder' ) . ' <a href="' . esc_url( $recent->comment_author_url ) . '">' . $recent->comment_author . '</a></p></li>';
     38                    echo '<li><h5><a href="' . esc_url( get_permalink( $recent->comment_post_ID ) ) . '">' . esc_html( get_the_title( $recent->comment_post_ID ) ) . '</a></h5><p class="posted">' . esc_html( date_i18n( $date_format, strtotime( $recent->comment_date ) ) ) . ' &mdash; ' . esc_html__( 'by', 'bold-builder' ) . ' <a href="' . esc_url( $recent->comment_author_url ) . '">' . esc_html( $recent->comment_author ) . '</a></p></li>';
    3939                }
    4040            }
    41 
    4241            echo '</div></ul>';
    4342               
    44             echo $args['after_widget'];
     43            echo $args['after_widget']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    4544        }
    4645       
     
    5049            ?>
    5150            <p>
    52                 <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title:', 'bold-builder' ); ?></label>
     51                <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php esc_html_e( 'Title:', 'bold-builder' ); ?></label>
    5352                <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>">
    5453            </p>
    5554            <p>
    56                 <label for="<?php echo esc_attr( $this->get_field_id( 'number' ) ); ?>"><?php _e( 'Number of comments:', 'bold-builder' ); ?></label>
     55                <label for="<?php echo esc_attr( $this->get_field_id( 'number' ) ); ?>"><?php esc_html_e( 'Number of comments:', 'bold-builder' ); ?></label>
    5756                <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'number' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'number' ) ); ?>" type="text" value="<?php echo esc_attr( $number ); ?>">         
    5857            </p>
    5958            <?php
    6059        }
    61 
    6260        public function update( $new_instance, $old_instance ) {
    6361            $instance = array();
    6462            $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
    6563            $instance['number'] = ( ! empty( $new_instance['number'] ) ) ? strip_tags( $new_instance['number'] ) : '';
    66 
    6764            return $instance;
    6865        }
  • bold-page-builder/trunk/widgets/bb_recent_posts/init.php

    r2889912 r3413258  
    11<?php
    2 
    32if ( ! class_exists( 'BB_Recent_Posts' ) ) {
    43   
     
    1413            );
    1514        }
    16 
    1715        public function widget( $args, $instance ) {
    1816       
    19             echo $args['before_widget'];
     17            // $args['before_widget'] is already escaped by WordPress core
     18            echo $args['before_widget']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    2019            if ( ! empty( $instance['title'] ) ) {
    21                 echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ). $args['after_title'];
     20                // $args['before_title'], $args['after_title'], and widget_title filter are handled by WordPress core
     21                echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    2222            }
    23 
    24             $number = intval( trim( $instance['number'] ) );
     23            $number = isset( $instance['number'] ) ? intval( trim( $instance['number'] ) ) : 5;
    2524            if ( $number < 1 ) {
    2625                $number = 5;
     
    2827                $number = 30;
    2928            }
    30 
    3129            $show_date = ! empty( $instance['show_date'] ) ? $instance['show_date'] : '';
    3230           
     
    4240               
    4341                $img = get_the_post_thumbnail( $recent['ID'], 'thumbnail' );               
    44 
    4542                echo '<li><div class="btImageTextWidget">';
    4643                if ( $img != '' ) {
    47                     echo '<div class="btImageTextWidgetImage"><a href="' . esc_url( $link ) . '">' . $img . '</a></div>';
     44                    // get_the_post_thumbnail() already returns escaped HTML
     45                    echo '<div class="btImageTextWidgetImage"><a href="' . esc_url( $link ) . '">' . $img . '</a></div>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    4846                }
    49 
    5047                $supertitle = '';
    5148                $title = '';
     
    5552                    $supertitle = date_i18n( $date_format, strtotime( get_the_time( 'Y-m-d', $recent['ID'] ) ) );
    5653                }   
    57                 echo '<div class="btImageTextWidgetText">' . do_shortcode( '[bt_bb_headline superheadline="' . htmlspecialchars( $supertitle ) . '" headline="' . htmlspecialchars($recent['post_title']) . '" url="' . $link . '" size="small" html_tag="h4"]' ) . '</div>';
     54                // do_shortcode() output is already escaped by the shortcode callback
     55                echo '<div class="btImageTextWidgetText">' . do_shortcode( '[bt_bb_headline superheadline="' . esc_attr( $supertitle ) . '" headline="' . esc_attr( $recent['post_title'] ) . '" url="' . esc_url( $link ) . '" size="small" html_tag="h4"]' ) . '</div>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    5856                echo '</div></li>';
    5957            }
     
    6159            echo '</ul></div>';
    6260               
    63             echo $args['after_widget'];
     61            // $args['after_widget'] is already escaped by WordPress core
     62            echo $args['after_widget']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    6463        }
    6564       
     
    7069            ?>
    7170            <p>
    72                 <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title:', 'bold-builder' ); ?></label>
     71                <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php esc_html_e( 'Title:', 'bold-builder' ); ?></label>
    7372                <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>">
    7473            </p>
    7574            <p>
    76                 <label for="<?php echo esc_attr( $this->get_field_id( 'number' ) ); ?>"><?php _e( 'Number of posts:', 'bold-builder' ); ?></label>
     75                <label for="<?php echo esc_attr( $this->get_field_id( 'number' ) ); ?>"><?php esc_html_e( 'Number of posts:', 'bold-builder' ); ?></label>
    7776                <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'number' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'number' ) ); ?>" type="text" value="<?php echo esc_attr( $number ); ?>">         
    7877            </p>
    7978            <p>
    80                 <input class="checkbox" type="checkbox" <?php checked( $show_date, 'on' ); ?> id="<?php echo $this->get_field_id('show_date'); ?>" name="<?php echo $this->get_field_name('show_date'); ?>" />
    81                 <label for="<?php echo $this->get_field_id('show_date'); ?>"><?php _e( 'Show date', 'bold-builder' ); ?></label>
     79                <input class="checkbox" type="checkbox" <?php checked( $show_date, 'on' ); ?> id="<?php echo esc_attr( $this->get_field_id('show_date') ); ?>" name="<?php echo esc_attr( $this->get_field_name('show_date') ); ?>" />
     80                <label for="<?php echo esc_attr( $this->get_field_id('show_date') ); ?>"><?php esc_html_e( 'Show date', 'bold-builder' ); ?></label>
    8281            </p>
    8382            <?php
    8483        }
    85 
    8684        public function update( $new_instance, $old_instance ) {
    8785            $instance = array();
     
    8987            $instance['number'] = ( ! empty( $new_instance['number'] ) ) ? strip_tags( $new_instance['number'] ) : '';
    9088            $instance['show_date'] = $new_instance['show_date'];
    91 
    9289            return $instance;
    9390        }
  • bold-page-builder/trunk/widgets/bb_text_image/init.php

    r2482078 r3413258  
    158158        public function widget( $args, $instance ) {
    159159
    160             echo $args['before_widget'];
     160            // $args['before_widget'] is already escaped by WordPress core
     161            echo $args['before_widget']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    161162            if ( ! empty( $instance['title'] ) ) {
    162                 echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ). $args['after_title'];
     163                // $args['before_title'], $args['after_title'], and widget_title filter are handled by WordPress core
     164                echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    163165            }
    164166               
    165167            if ( $instance['ids'] != '' ) {
    166                 echo do_shortcode( '[bt_bb_slider images="' . $instance['ids'] . '" show_dots="hide" height="auto" auto_play="3000"]' );
     168                // do_shortcode() output is escaped by the shortcode callback
     169                echo do_shortcode( '[bt_bb_slider images="' . esc_attr( $instance['ids'] ) . '" show_dots="hide" height="auto" auto_play="3000"]' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    167170            }
    168             echo '<div class="widget_sp_image-description">' . wpautop( $instance['text'] ) . '</div>';
     171            // wpautop() adds paragraph tags but doesn't escape - wrap with wp_kses_post()
     172            echo '<div class="widget_sp_image-description">' . wp_kses_post( wpautop( $instance['text'] ) ) . '</div>';
    169173           
    170             echo $args['after_widget'];
     174            // $args['after_widget'] is already escaped by WordPress core
     175            echo $args['after_widget']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    171176        }
    172177
     
    178183            <div class="bt_bb_text_image_form">
    179184                <p>
    180                     <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title:', 'bold-builder' ); ?></label>
     185                    <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php esc_html_e( 'Title:', 'bold-builder' ); ?></label>
    181186                    <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>">
    182187                </p>
    183188                <p>
    184                     <label for="<?php echo esc_attr( $this->get_field_id( 'ids' ) ); ?>"><?php _e( 'Image IDs:', 'bold-builder' ); ?></label>
     189                    <label for="<?php echo esc_attr( $this->get_field_id( 'ids' ) ); ?>"><?php esc_html_e( 'Image IDs:', 'bold-builder' ); ?></label>
    185190                    <input class="widefat bt_bb_text_image_ids" id="<?php echo esc_attr( $this->get_field_id( 'ids' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'ids' ) ); ?>" type="hidden" value="<?php echo esc_attr( $ids ); ?>">
    186191                    <div class="bt_bb_dialog_image_container">
     
    189194                            if ( $img_arr[0] != '' ) {
    190195                                for ( $j = 0; $j < count( $img_arr ); $j++ ) {
    191                                     echo '<div class="bt_bb_sortable_item" data-id="' . $img_arr[ $j ] . '"><i class="fa fa-times"></i></div>';
     196                                    echo '<div class="bt_bb_sortable_item" data-id="' . esc_attr( $img_arr[ $j ] ) . '"><i class="fa fa-times"></i></div>';
    192197                                }
    193198                            }
     
    195200                    </div>
    196201                    <div class="bt_bb_dialog_inline_buttons bt_bb_left">
    197                         <input type="button" class="bt_bb_dialog_select_images_button button button-small" value="<?php _e( 'Select', 'bold-builder' ); ?>">
     202                        <input type="button" class="bt_bb_dialog_select_images_button button button-small" value="<?php esc_attr_e( 'Select', 'bold-builder' ); ?>">
    198203                    </div>
    199204                </p>           
    200205                <p>
    201                     <label for="<?php echo esc_attr( $this->get_field_id( 'text' ) ); ?>"><?php _e( 'Text:', 'bold-builder' ); ?></label>
    202                     <textarea class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'text' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'text' ) ); ?>"><?php echo esc_attr( $text ); ?></textarea>
     206                    <label for="<?php echo esc_attr( $this->get_field_id( 'text' ) ); ?>"><?php esc_html_e( 'Text:', 'bold-builder' ); ?></label>
     207                    <textarea class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'text' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'text' ) ); ?>"><?php echo esc_textarea( $text ); ?></textarea>
    203208                </p>
    204209            </div>
  • bold-page-builder/trunk/widgets/bb_time/init.php

    r2889912 r3413258  
    1717        public function widget( $args, $instance ) {
    1818           
    19             wp_enqueue_script( 'bt_bb_moment', plugin_dir_url( __FILE__ ) . 'moment.js', array(), BT_BB_VERSION, true );
     19            wp_enqueue_script( 'moment' );
    2020            wp_enqueue_script( 'bt_bb_moment_timezone', plugin_dir_url( __FILE__ ) . 'moment-timezone-with-data.js', array(), BT_BB_VERSION, true );
    2121           
     
    3232            //echo $args['before_widget']; // TODO: fix CSS in themes
    3333           
    34             echo '<span id="' . esc_attr( $this->container_id ) . '" class="btIconWidget"><span class="btIconWidgetIcon">' . bt_bb_icon::get_html( $this->icon ) . '</span><span class="btIconWidgetContent"><span class="btIconWidgetTitle">' . $this->place_name . '</span><span class="btIconWidgetText"></span></span></span>';
     34            // $this->icon already escaped in get_html, can not escape here without breaking custom icons and backward compatibility (custom data-ico-... attribute, custom css based on it)
     35            echo '<span id="' . esc_attr( $this->container_id ) . '" class="btIconWidget"><span class="btIconWidgetIcon">' . bt_bb_icon::get_html( $this->icon ) . '</span><span class="btIconWidgetContent"><span class="btIconWidgetTitle">' . esc_html( $this->place_name ) . '</span><span class="btIconWidgetText"></span></span></span>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    3536           
    3637            //echo $args['after_widget']; // TODO: fix CSS in themes
     
    4546            ?>     
    4647            <div class="bt_bb_iconpicker_widget_container">
    47                 <label for="<?php echo esc_attr( $this->get_field_id( 'icon' ) ); ?>"><?php _e( 'Icon:', 'bold-builder' ); ?></label>
     48                <label for="<?php echo esc_attr( $this->get_field_id( 'icon' ) ); ?>"><?php esc_html_e( 'Icon:', 'bold-builder' ); ?></label>
    4849                <input type="hidden" id="<?php echo esc_attr( $this->get_field_id( 'icon' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'icon' ) ); ?>" value="<?php echo esc_attr( $icon ); ?>">
    4950                <input type="hidden" name="<?php echo esc_attr( $this->get_field_name( 'bt_bb_iconpicker' ) ); ?>">
     
    5152            </div>
    5253            <p>
    53                 <label for="<?php echo esc_attr( $this->get_field_id( 'time_zone' ) ); ?>"><?php _e( 'Time zone:', 'bold-builder' ); ?></label>
     54                <label for="<?php echo esc_attr( $this->get_field_id( 'time_zone' ) ); ?>"><?php esc_html_e( 'Time zone:', 'bold-builder' ); ?></label>
    5455                <select class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'time_zone' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'time_zone' ) ); ?>">
    5556                    <?php
     
    6162                    foreach ( $tz as $item ) {
    6263                        if ( $item == $time_zone ) {
    63                             echo '<option value="' . esc_attr( $item ) . '" selected>' . $item . '</option>';
     64                            echo '<option value="' . esc_attr( $item ) . '" selected>' . esc_html( $item ) . '</option>';
    6465                        } else {
    65                             echo '<option value="' . esc_attr( $item ) . '">' . $item . '</option>';
     66                            echo '<option value="' . esc_attr( $item ) . '">' . esc_html( $item ) . '</option>';
    6667                        }
    6768                    }
     
    7071            </p>
    7172            <p>
    72                 <label for="<?php echo esc_attr( $this->get_field_id( 'place_name' ) ); ?>"><?php _e( 'Place name:', 'bold-builder' ); ?></label>
     73                <label for="<?php echo esc_attr( $this->get_field_id( 'place_name' ) ); ?>"><?php esc_html_e( 'Place name:', 'bold-builder' ); ?></label>
    7374                <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'place_name' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'place_name' ) ); ?>" type="text" value="<?php echo esc_attr( $place_name ); ?>">
    7475            </p>
    7576            <p>
    76                 <label for="<?php echo esc_attr( $this->get_field_id( 'time_notation' ) ); ?>"><?php _e( 'Time notation:', 'bold-builder' ); ?></label>
     77                <label for="<?php echo esc_attr( $this->get_field_id( 'time_notation' ) ); ?>"><?php esc_html_e( 'Time notation:', 'bold-builder' ); ?></label>
    7778                <select class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'time_notation' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'time_notation' ) ); ?>">
    7879                    <?php
     
    8485                    foreach ( $tn as $k => $v ) {
    8586                        if ( $v == $time_notation ) {
    86                             echo '<option value="' . esc_attr( $v ) . '" selected>' . $k . '</option>';
     87                            echo '<option value="' . esc_attr( $v ) . '" selected>' . esc_html( $k ) . '</option>';
    8788                        } else {
    88                             echo '<option value="' . esc_attr( $v ) . '">' . $k . '</option>';
     89                            echo '<option value="' . esc_attr( $v ) . '">' . esc_html( $k ) . '</option>';
    8990                        }
    9091                    }
     
    122123                    $( document ).ready(function() {
    123124                       
    124                         var time_notation = '<?php echo $this->time_notation; ?>';
     125                        var time_notation = '<?php echo esc_js( $this->time_notation ); ?>';
    125126                       
    126127                        var time = function() {
    127128                           
    128129                            if ( time_notation == '12' ) {
    129                                 var time = moment().tz( '<?php echo $this->time_zone; ?>' ).format( 'h:mm A' );
     130                                var time = moment().tz( '<?php echo esc_js( $this->time_zone ); ?>' ).format( 'h:mm A' );
    130131                            } else {
    131                                 var time = moment().tz( '<?php echo $this->time_zone; ?>' ).format( 'H:mm' );
     132                                var time = moment().tz( '<?php echo esc_js( $this->time_zone ); ?>' ).format( 'H:mm' );
    132133                            }
    133134
    134                             $( '#<?php echo $this->container_id; ?> .btIconWidgetText' ).html( time );
     135                            $( '#<?php echo esc_js( $this->container_id ); ?> .btIconWidgetText' ).html( time );
    135136                        }
    136137                        setInterval( function() {
  • bold-page-builder/trunk/widgets/bb_weather/init.php

    r2467020 r3413258  
    164164            }
    165165
     166            // Define allowed HTML for icon output
     167            $allowed_icon_html = array(
     168                'span' => array( 'class' => true, 'data-ico-wi' => true ),
     169                'a' => array( 'href' => true, 'class' => true, 'data-ico-wi' => true ),
     170            );
     171
    166172            if ( $weather_data !== false && isset( $weather_data['temp'] ) ) {
    167173                if ( $this->type == 'now' ) {
    168174                    echo '<span class="btIconWidget btWidgetWithText">';
    169175                        echo '<span class="btIconWidgetIcon">';
    170                             echo bt_bb_icon::get_html( 'wi_' . $this->get_icon_code( $weather_data['icon'] ) );
     176                            echo wp_kses( bt_bb_icon::get_html( 'wi_' . $this->get_icon_code( $weather_data['icon'] ) ), $allowed_icon_html );
    171177                        echo '</span>';
    172178                        echo '<span class="btIconWidgetContent">';
    173179                            echo '<span class="btIconWidgetTitle">' . esc_html__( 'Now', 'bold-builder' ) . '</span>';
    174                             echo '<span class="btIconWidgetText">' . $weather_data['temp'] . '&deg;' . ( $this->temp_unit == 'imperial' ? 'F' : 'C' ) . '</span>';
     180                            echo '<span class="btIconWidgetText">' . esc_html( $weather_data['temp'] ) . '&deg;' . ( $this->temp_unit == 'imperial' ? 'F' : 'C' ) . '</span>';
    175181                        echo '</span>';
    176182                    echo '</span>';
     
    178184                    echo '<span class="btIconWidget">';
    179185                        echo '<span class="btIconWidgetIcon">';
    180                             echo bt_bb_icon::get_html( 'wi_' . $this->get_icon_code( $weather_data['icon'] ) );
     186                            echo wp_kses( bt_bb_icon::get_html( 'wi_' . $this->get_icon_code( $weather_data['icon'] ) ), $allowed_icon_html );
    181187                        echo '</span>';
    182188                        echo '<span class="btIconWidgetContent">';
     
    186192                                echo '<span class="btIconWidgetTitle">' . esc_html__( '24 h', 'bold-builder' ) . '</span>';
    187193                            }
    188                             echo '<span class="btIconWidgetText">' . $weather_data['temp_low'] . '/' . $weather_data['temp_high'] . '&deg;' . ( $this->temp_unit == 'imperial' ? 'F' : 'C' ) . '</span>';
     194                            echo '<span class="btIconWidgetText">' . esc_html( $weather_data['temp_low'] ) . '/' . esc_html( $weather_data['temp_high'] ) . '&deg;' . ( $this->temp_unit == 'imperial' ? 'F' : 'C' ) . '</span>';
    189195                        echo '</span>';
    190196                    echo '</span>';
     
    229235            ?>
    230236                <p>
    231                     <label for="<?php echo esc_attr( $this->get_field_id( 'latitude' ) ); ?>"><?php _e( 'Latitude:', 'bold-builder' ); ?></label>
     237                    <label for="<?php echo esc_attr( $this->get_field_id( 'latitude' ) ); ?>"><?php esc_html_e( 'Latitude:', 'bold-builder' ); ?></label>
    232238                    <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'latitude' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'latitude' ) ); ?>" type="text" value="<?php echo esc_attr( $latitude ); ?>">
    233239                </p>
    234240                <p>
    235                     <label for="<?php echo esc_attr( $this->get_field_id( 'longitude' ) ); ?>"><?php _e( 'Longitude:', 'bold-builder' ); ?></label>
     241                    <label for="<?php echo esc_attr( $this->get_field_id( 'longitude' ) ); ?>"><?php esc_html_e( 'Longitude:', 'bold-builder' ); ?></label>
    236242                    <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'longitude' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'longitude' ) ); ?>" type="text" value="<?php echo esc_attr( $longitude ); ?>">
    237243                </p>
    238244                <p>
    239                     <label for="<?php echo esc_attr( $this->get_field_id( 'temp_unit' ) ); ?>"><?php _e( 'Temperature unit:', 'bold-builder' ); ?></label>
     245                    <label for="<?php echo esc_attr( $this->get_field_id( 'temp_unit' ) ); ?>"><?php esc_html_e( 'Temperature unit:', 'bold-builder' ); ?></label>
    240246                    <select class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'temp_unit' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'temp_unit' ) ); ?>">
    241247                        <?php
     
    243249                        foreach( $target_arr as $key => $value ) {
    244250                            if ( $value == $temp_unit ) {
    245                                 echo '<option value="' . esc_attr( $value ) . '" selected>' . $key . '</option>';
     251                                echo '<option value="' . esc_attr( $value ) . '" selected>' . esc_html( $key ) . '</option>';
    246252                            } else {
    247                                 echo '<option value="' . esc_attr( $value ) . '">' . $key . '</option>';
     253                                echo '<option value="' . esc_attr( $value ) . '">' . esc_html( $key ) . '</option>';
    248254                            }
    249255                        }
     
    252258                </p>               
    253259                <p>
    254                     <label for="<?php echo esc_attr( $this->get_field_id( 'type' ) ); ?>"><?php _e( 'Type:', 'bold-builder' ); ?></label>
     260                    <label for="<?php echo esc_attr( $this->get_field_id( 'type' ) ); ?>"><?php esc_html_e( 'Type:', 'bold-builder' ); ?></label>
    255261                    <select class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'type' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'type' ) ); ?>">
    256262                        <?php
     
    258264                        foreach( $target_arr as $key => $value ) {
    259265                            if ( $value == $type ) {
    260                                 echo '<option value="' . esc_attr( $value ) . '" selected>' . $key . '</option>';
     266                                echo '<option value="' . esc_attr( $value ) . '" selected>' . esc_html( $key ) . '</option>';
    261267                            } else {
    262                                 echo '<option value="' . esc_attr( $value ) . '">' . $key . '</option>';
     268                                echo '<option value="' . esc_attr( $value ) . '">' . esc_html( $key ) . '</option>';
    263269                            }
    264270                        }
     
    267273                </p>
    268274                <p>
    269                     <label for="<?php echo esc_attr( $this->get_field_id( 'cache' ) ); ?>"><?php _e( 'Cache (minutes):', 'bold-builder' ); ?></label>
     275                    <label for="<?php echo esc_attr( $this->get_field_id( 'cache' ) ); ?>"><?php esc_html_e( 'Cache (minutes):', 'bold-builder' ); ?></label>
    270276                    <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'cache' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'cache' ) ); ?>" type="text" value="<?php echo esc_attr( $cache ); ?>">         
    271277                </p>
    272278                <p>
    273                     <label for="<?php echo esc_attr( $this->get_field_id( 'api_key' ) ); ?>"><?php _e( 'API key:', 'bold-builder' ); ?></label>
     279                    <label for="<?php echo esc_attr( $this->get_field_id( 'api_key' ) ); ?>"><?php esc_html_e( 'API key:', 'bold-builder' ); ?></label>
    274280                    <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'api_key' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'api_key' ) ); ?>" type="text" value="<?php echo esc_attr( $api_key ); ?>">
    275281                    <br>
    276                     <i><?php _e( 'Get Openweather API key here: ', 'bold-builder' ); ?></i><a href="https://openweathermap.org/appid" target="_blank">https://openweathermap.org/appid</a>
     282                    <i><?php esc_html_e( 'Get Openweather API key here: ', 'bold-builder' ); ?></i><a href="https://openweathermap.org/appid" target="_blank">https://openweathermap.org/appid</a>
    277283                </p>       
    278284               
  • bold-page-builder/trunk/widgets/init.php

    r2978138 r3413258  
    66    function register_bb_widgets() {
    77        $bb_dir = plugin_dir_path( __FILE__ );
    8         require_once( $bb_dir . 'bb_gallery/init.php' );
    98        require_once( $bb_dir . 'bb_text_image/init.php' );
    109        require_once( $bb_dir . 'bb_icon/init.php' );
     
    1312        require_once( $bb_dir . 'bb_recent_posts/init.php' );
    1413        require_once( $bb_dir . 'bb_recent_comments/init.php' );
    15         register_widget( 'BB_Gallery' );
    1614        register_widget( 'BB_Text_Image' );
    1715        register_widget( 'BB_Icon_Widget' );
Note: See TracChangeset for help on using the changeset viewer.