Changeset 3413258
- Timestamp:
- 12/06/2025 10:02:59 PM (7 days ago)
- Location:
- bold-page-builder/trunk
- Files:
-
- 13 added
- 19 edited
-
add-section-template.php (modified) (1 diff)
-
admin-notice-rating.php (modified) (2 diffs)
-
ai/ai.php (modified) (1 diff)
-
bold-builder-fe.php (modified) (6 diffs)
-
bold-builder.php (modified) (28 diffs)
-
content_elements/bt_bb_countdown/bt_bb_countdown.php (modified) (1 diff)
-
content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php (modified) (2 diffs)
-
content_elements/bt_bb_leaflet_map_location/bt_bb_leaflet_map_location.php (modified) (1 diff)
-
content_elements_misc/misc.php (modified) (4 diffs)
-
css/front_end/fe_dialog_content.crush.css (modified) (2 diffs)
-
languages/bold-builder.pot (modified) (28 diffs)
-
readme.txt (modified) (2 diffs)
-
templates/12_12.txt (added)
-
templates/13_13_13.txt (added)
-
templates/13_23.txt (added)
-
templates/14_14_14_14.txt (added)
-
templates/14_24_14.txt (added)
-
templates/14_34.txt (added)
-
templates/15_15_15_15_15.txt (added)
-
templates/23_13.txt (added)
-
templates/34_14.txt (added)
-
templates/inner_row_12_12.txt (added)
-
templates/inner_row_13_13_13.txt (added)
-
templates/inner_row_13_23.txt (added)
-
templates/inner_row_23_13.txt (added)
-
widgets/bb_icon/init.php (modified) (6 diffs)
-
widgets/bb_recent_comments/init.php (modified) (4 diffs)
-
widgets/bb_recent_posts/init.php (modified) (8 diffs)
-
widgets/bb_text_image/init.php (modified) (4 diffs)
-
widgets/bb_time/init.php (modified) (8 diffs)
-
widgets/bb_weather/init.php (modified) (8 diffs)
-
widgets/init.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bold-page-builder/trunk/add-section-template.php
r3026956 r3413258 68 68 echo '<script>'; 69 69 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 ) ); 71 71 echo '"]'; 72 72 echo '</script>'; -
bold-page-builder/trunk/admin-notice-rating.php
r3099728 r3413258 1 1 <?php 2 2 3 add_action( 'admin_notices', 'bt_bb_rating_notice' );3 //add_action( 'admin_notices', 'bt_bb_rating_notice' ); 4 4 function bt_bb_rating_notice() { 5 5 … … 10 10 if ( ! get_user_meta( $user_id, 'bt_bb_rating_notice_ignore' ) && get_user_meta( $user_id, 'bt_bb_rating_notice_enable' ) ) { 11 11 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>'; 15 13 16 14 } -
bold-page-builder/trunk/ai/ai.php
r3034441 r3413258 177 177 if ( is_array( $result ) ) { 178 178 if ( isset( $result['error'] ) ) { 179 echo $result['error']['message'];179 echo esc_html( $result['error']['message'] ); 180 180 } else { 181 181 if ( is_array( $target ) ) { 182 182 if ( $modify ) { 183 echo str_ireplace( '\\\\', '\\', $result['choices'][0]['message']['content']);183 echo esc_html( str_ireplace( '\\\\', '\\', $result['choices'][0]['message']['content'] ) ); 184 184 } 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'] ); 186 186 } 187 187 } else { // _content -
bold-page-builder/trunk/bold-builder-fe.php
r3389866 r3413258 613 613 ) ); 614 614 615 add_action( 'wp_ head', 'bt_bb_fe_head');615 add_action( 'wp_enqueue_scripts', 'bt_bb_fe_head', 60 ); 616 616 add_action( 'wp_head', 'bt_bb_translate' ); 617 617 add_action( 'wp_footer', 'bt_bb_fe_footer' ); … … 627 627 628 628 function 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; 642 642 } 643 $elements[ $key ][ 'params' ] = $params1;644 643 } 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' ); 685 687 } 686 688 … … 706 708 echo '<div id="bt_bb_fe_dialog_bottom"></div>'; 707 709 echo '</div>'; 708 // echo '<div id="bt_bb_fe_dialog_close" title="Close dialog"><i class="fa fa-close"></i></div>';709 710 710 echo '</div>'; 711 711 echo '</div>'; 712 712 713 713 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>'; 715 715 } 716 716 … … 779 779 $html = str_ireplace( array( '``', '`{`', '`}`' ), array( '"', '[', ']' ), $html ); 780 780 $html = str_ireplace( array( '*`*`*', '*`*{*`*', '*`*}*`*' ), array( '``', '`{`', '`}`' ), $html ); 781 echo $html;781 echo wp_kses_post( $html ); 782 782 } 783 783 wp_die(); … … 795 795 $layout = preg_replace( '/[^a-zA-Z0-9_\-\+]/', '', $layout ); 796 796 $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' ); 798 798 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' ); 800 800 } 801 801 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' ); 803 803 } 804 804 $content = trim( $content ); … … 824 824 </span>'; 825 825 $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 ); 827 827 } else { 828 echo $content;828 echo wp_kses_post( $content ); 829 829 } 830 830 } -
bold-page-builder/trunk/bold-builder.php
r3409998 r3413258 4 4 * Plugin Name: Bold Builder 5 5 * Description: WordPress page builder. 6 * Version: 5.5. 46 * Version: 5.5.5 7 7 * 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 9 11 * Text Domain: bold-builder 10 12 */ … … 13 15 14 16 // VERSION --------------------------------------------------------- \\ 15 define( 'BT_BB_VERSION', '5.5. 4' );17 define( 'BT_BB_VERSION', '5.5.5' ); 16 18 // VERSION --------------------------------------------------------- \\ 17 19 … … 438 440 ); 439 441 $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' ), 444 446 ); 445 447 wp_localize_script( 'wp-color-picker', 'wpColorPickerL10n', $colorpicker_l10n ); … … 525 527 <?php 526 528 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 }532 529 if ( isset( $_GET['preview'] ) && $_GET['preview'] == 'true' ) { 533 530 echo '<script>window.bt_bb_preview = true</script>'; … … 540 537 echo '<script>window.bt_bb_fe_preview = false</script>'; 541 538 } 542 if ( function_exists( 'bt_bb_add_color_schemes' ) ) {543 bt_bb_add_color_schemes();544 }545 539 if ( ! class_exists( 'BoldThemes_BB_Settings' ) || ! BoldThemes_BB_Settings::$custom_content_elements ) { // only with native BB elements 546 540 echo '<script>window.bt_bb_custom_elements = false;</script>'; … … 556 550 } 557 551 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 } 558 560 } 559 561 … … 647 649 $opt_arr = get_option( 'bt_bb_custom_css' ); 648 650 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 ] ) ) ); 650 652 } 651 653 } … … 688 690 foreach ( $posts as $post ) { 689 691 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 ); 691 693 } else { 692 694 $info = $pts[ $post->post_type ]->labels->singular_name; … … 727 729 $html = str_ireplace( array( '*`*`*', '*`*{*`*', '*`*}*`*' ), array( '``', '`{`', '`}`' ), $html ); 728 730 729 echo $html;731 echo wp_kses_post( $html ); 730 732 } 731 733 wp_die(); … … 759 761 ?> 760 762 <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 ?> 765 776 </p> 766 777 <form method="post" action="options.php"> … … 769 780 <tbody> 770 781 <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> 775 786 </fieldset></td> 776 787 </tr> 777 788 <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> 780 791 <p> 781 792 <?php … … 787 798 $checked = ' ' . 'checked="checked"'; 788 799 } 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>'; 791 802 if ( $n < count( $post_types ) ) echo '<br>'; 792 803 } ?> … … 795 806 </tr> 796 807 <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> 799 810 <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> 801 812 </p> 802 813 <small>Add each Color Scheme separated by new line. E.g. Black/White;#000;#fff</small> … … 804 815 </tr> 805 816 <tr> 806 <th scope="row"><?php _e( 'Tips', 'bold-builder' ); ?></th>817 <th scope="row"><?php esc_html_e( 'Tips', 'bold-builder' ); ?></th> 807 818 <td> 808 819 <p><?php … … 812 823 } 813 824 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>'; 815 826 ?></p> 816 827 </td> 817 828 </tr> 818 829 <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> 820 831 <td> 821 832 <p><?php … … 825 836 } 826 837 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>'; 828 839 ?></p> 829 840 </td> 830 841 </tr> 831 842 <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> 834 845 <p> 835 846 <input type="text" name="bt_bb_settings[openai_api_key]" value="<?php echo esc_attr( $openai_api_key ); ?>"> … … 838 849 </tr> 839 850 <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> 842 853 <p> 843 854 <input type="text" name="bt_bb_settings[openai_model]" value="<?php echo esc_attr( $openai_model ); ?>" placeholder="gpt-4"> … … 848 859 </table> 849 860 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> 851 862 </form> 852 863 </div> … … 867 878 $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() ); 868 879 } 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 ) . '\')'; 870 881 echo '</script>'; 871 882 } … … 893 904 $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() ); 894 905 } 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 ) . '\')'; 896 907 echo '</script>'; 897 908 … … 914 925 915 926 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__ ) ) . '";'; 918 929 echo 'window.bt_bb_settings = [];'; 919 930 echo 'window.bt_bb_settings.tag_as_name = "' . esc_js( $tag_as_name ) . '";'; … … 922 933 echo 'window.bt_bb_ajax_url = "' . esc_js( admin_url( 'admin-ajax.php' ) ) . '";'; // back. compat. 923 934 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) 925 936 926 937 global $shortcode_tags; … … 928 939 ksort( $all_sc ); 929 940 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 ) ) . ';'; 931 942 932 943 global $bt_bb_is_bb_content; 933 944 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 ) . ';'; 935 946 } 936 947 $ajax_nonce = wp_create_nonce( 'bt-bb-custom-css-nonce' ); … … 958 969 'post_id': jQuery( '#post_ID' ).val(), 959 970 'css': css, 960 'bt-bb-custom-css-nonce': '<?php echo $ajax_nonce; ?>'971 'bt-bb-custom-css-nonce': '<?php echo esc_html( $ajax_nonce ); ?>' 961 972 }; 962 973 … … 1065 1076 echo 'window.bt_bb_text.leave_empty = "' . esc_html__( '(leave empty to use length of current content)', 'bold-builder' ) . '";'; 1066 1077 echo 'window.bt_bb_text.ai_error = "' . sprintf( 1078 /* translators: 1: Opening <a> tag for settings link, 2: Closing </a> tag */ 1067 1079 esc_html__( 'Error. Please check OpenAI settings %1$shere%2$s.', 'bold-builder' ), 1068 1080 '<a href=\"' . esc_url_raw( get_admin_url( null, 'options-general.php?page=bt_bb_settings' ) ) . '\" target=\"_blank\">', 1069 '</a>' 1081 '</a>' 1070 1082 ) . '";'; 1071 1083 echo 'window.bt_bb_text.no_content = "' . esc_html__( 'No content!', 'bold-builder' ) . '";'; … … 1130 1142 foreach( $opt_arr as $k => $v ) { 1131 1143 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 ) ) . ';'; 1133 1145 $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;'; 1135 1147 } 1136 1148 } … … 1241 1253 } 1242 1254 } 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 ) . ';'; 1244 1256 $bt_bb_map[ $this->base ] = $this->params; 1245 1257 } … … 1489 1501 1490 1502 public function js() { 1503 $data = json_decode( $this->data, true ); 1491 1504 echo '<script> 1492 1505 var bt_bb_data = { 1493 1506 title: "_root", 1494 1507 base: "_root", 1495 key: "' . uniqid( 'bt_bb_') . '",1496 children: ' . $this->data. '1508 key: "' . esc_html( uniqid( 'bt_bb_' ) ) . '", 1509 children: ' . wp_json_encode( $data ) . ' 1497 1510 } 1498 1511 </script>'; -
bold-page-builder/trunk/content_elements/bt_bb_countdown/bt_bb_countdown.php
r3127131 r3413258 102 102 'icon' => $this->prefix_backend . 'icon' . '_' . $this->shortcode, 103 103 '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 ), 105 105 array( 'param_name' => 'size', 'type' => 'dropdown', 'heading' => esc_html__( 'Size', 'bold-builder' ), 'preview' => true, 'responsive_override' => true, 106 106 'value' => array( -
bold-page-builder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php
r3395193 r3413258 25 25 $leaflet_framework_path = plugin_dir_url( __FILE__ ) . '/'; 26 26 require_once( 'enqueue_lib.php' ); 27 // wp_enqueue_script( 'bt_bb_leaflet_map_js', plugin_dir_url( __FILE__ ) . '/bt_bb_leaflet_map.js' );28 27 29 28 $class_master = 'bt_bb_map'; … … 122 121 } 123 122 124 bt_bb_map( $this->shortcode, array( 'name' => esc_html__( 'OpenStreetMap', 'bold themes_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, 125 124 'params' => array( 126 array( 'param_name' => 'zoom', 'type' => 'textfield', 'heading' => esc_html__( 'Zoom', 'bold themes_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', 'bold themes_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', 'bold themes_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', 'bold themes_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, 130 129 'value' => array( 131 esc_html__( 'No base layer (use only additional map layers)', 'bold themes_framework_textdomain' ) => '0',132 esc_html__( 'Mapnik OSM', 'bold themes_framework_textdomain' ) => '1',133 //__( 'Wikimedia', 'bold themes_framework_textdomain' ) => '2',134 esc_html__( 'OSM Hot', 'bold themes_framework_textdomain' ) => '3',135 esc_html__( 'Stamen Watercolor', 'bold themes_framework_textdomain' ) => '4',136 esc_html__( 'Stamen Terrain', 'bold themes_framework_textdomain' ) => '5',137 esc_html__( 'Stamen Toner', 'bold themes_framework_textdomain' ) => '6',138 esc_html__( 'Carto Dark', 'bold themes_framework_textdomain' ) => '7',139 esc_html__( 'Carto Light', 'bold themes_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' 140 139 ) 141 140 ), 142 array( 'param_name' => 'custom_style', 'type' => 'textarea_object', 'heading' => esc_html__( 'Additional map layers', 'bold themes_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', 'bold themes_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, 144 143 'value' => array( 145 esc_html__( 'No (use first location as center)', 'bold themes_framework_textdomain' ) => 'no',146 esc_html__( 'Yes', 'bold themes_framework_textdomain' ) => 'yes',147 esc_html__( 'Yes (without overlay initially)', 'bold themes_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' 148 147 ) 149 148 ), 150 array( 'param_name' => 'scroll_wheel', 'type' => 'checkbox', 'value' => array( esc_html__( 'Yes', 'bold themes_framework_textdomain' ) => 'yes' ), 'default' => 'yes', 'heading' => esc_html__( 'Enable scroll wheel zoom on map', 'boldthemes_framework_textdomain' ), 'preview' => true149 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 151 150 ), 152 array( 'param_name' => 'zoom_control', 'type' => 'checkbox', 'value' => array( esc_html__( 'Yes', 'bold themes_framework_textdomain' ) => 'yes' ), 'default' => 'yes', 'heading' => esc_html__( 'Enable zoom control on map', 'boldthemes_framework_textdomain' ), 'preview' => true151 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 153 152 ), 154 153 ) -
bold-page-builder/trunk/content_elements/bt_bb_leaflet_map_location/bt_bb_leaflet_map_location.php
r3094278 r3413258 82 82 83 83 function map_shortcode() { 84 bt_bb_map( $this->shortcode, array( 'name' => esc_html__( 'Leaflet Maps Location', 'bold themes_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, 85 85 'params' => array( 86 array( 'param_name' => 'latitude', 'type' => 'textfield', 'heading' => esc_html__( 'Latitude', 'bold themes_framework_textdomain' ), 'placeholder' => esc_html__( 'E.g. 40.000000', 'bold-builder' ), 'preview' => true ),87 array( 'param_name' => 'longitude', 'type' => 'textfield', 'heading' => esc_html__( 'Longitude', 'bold themes_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', 'bold themes_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 ) 89 89 ) 90 90 ) ); -
bold-page-builder/trunk/content_elements_misc/misc.php
r3194559 r3413258 87 87 if ( ! function_exists( 'bt_bb_add_color_schemes' ) ) { 88 88 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] );*/106 89 107 90 $color_scheme_arr = bt_bb_get_color_scheme_array(); … … 120 103 if ( count( $color_scheme ) == 4 ) { 121 104 array_shift( $color_scheme ); 122 //$scheme_id = $this_scheme; 123 } 124 125 //if ( in_array( $this_scheme, $color_schemes_to_use ) ) { 105 } 126 106 127 107 require( 'color_scheme_template.php' ); … … 143 123 $custom_css = str_replace( array( "\r\n", "\r", "\n", "\t", ' ', ' ', ' '), '', $custom_css); 144 124 $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 } 149 127 150 128 $i++; … … 198 176 // Remove rows without ';' 199 177 $color_scheme_arr = array_filter( $color_scheme_arr, function ( $x ) { return strpos( $x, ';' ) !== false; }); 200 178 201 179 $color_scheme_arr = apply_filters( 'bt_bb_color_scheme_arr', $color_scheme_arr ); 202 180 -
bold-page-builder/trunk/css/front_end/fe_dialog_content.crush.css
r3312753 r3413258 542 542 outline: 3px solid #eee; 543 543 outline-offset: -3px; 544 background-image: url(../ ../img/ajax-loader.gif);544 background-image: url(../\../img/ajax-loader.gif); 545 545 background-position: center; 546 546 background-repeat: no-repeat; … … 1807 1807 } 1808 1808 .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); 1810 1810 padding-bottom: 33%; 1811 1811 } 1812 1812 .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); 1814 1814 padding-bottom: 33%; 1815 1815 } 1816 1816 .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); 1818 1818 padding-bottom: 33%; 1819 1819 } 1820 1820 .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); 1822 1822 padding-bottom: 33%; 1823 1823 } 1824 1824 .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); 1826 1826 padding-bottom: 33%; 1827 1827 } 1828 1828 .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); 1830 1830 padding-bottom: 33%; 1831 1831 } 1832 1832 .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); 1834 1834 padding-bottom: 33%; 1835 1835 } 1836 1836 .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); 1838 1838 padding-bottom: 33%; 1839 1839 } 1840 1840 .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); 1842 1842 padding-bottom: 33%; 1843 1843 } 1844 1844 .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); 1846 1846 padding-bottom: 33%; 1847 1847 } 1848 1848 .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); 1850 1850 padding-bottom: 33%; 1851 1851 } 1852 1852 .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); 1854 1854 padding-bottom: 33%; 1855 1855 } 1856 1856 .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); 1858 1858 padding-bottom: 33%; 1859 1859 } 1860 1860 .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); 1862 1862 padding-bottom: 33%; 1863 1863 } -
bold-page-builder/trunk/languages/bold-builder.pot
r3409998 r3413258 9 9 "Project-Id-Version: PACKAGE VERSION\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2025-12-0 3 20:13+0100\n"11 "POT-Creation-Date: 2025-12-06 22:59+0100\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 284 284 285 285 #: 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:12 4286 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:123 287 287 msgid "OpenStreetMap" 288 288 msgstr "" 289 289 290 290 #: 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:12 4291 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:123 292 292 msgid "OpenStreetMap with custom content" 293 293 msgstr "" … … 461 461 msgstr "" 462 462 463 #: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:69 3463 #: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:695 464 464 msgid "Close dialog" 465 465 msgstr "" 466 466 467 #: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:69 4467 #: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:696 468 468 msgid "Switch side" 469 469 msgstr "" … … 474 474 475 475 #: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:817 476 #: D:/WP/BoldBuilder/trunk/bold-builder.php:21 0477 #: D:/WP/BoldBuilder/trunk/bold-builder.php:22 1478 #: D:/WP/BoldBuilder/trunk/bold-builder.php:9 88476 #: 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 479 479 msgid "Edit" 480 480 msgstr "" 481 481 482 482 #: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:818 483 #: D:/WP/BoldBuilder/trunk/bold-builder.php:21 1483 #: D:/WP/BoldBuilder/trunk/bold-builder.php:213 484 484 msgid "Edit in back-end editor" 485 485 msgstr "" 486 486 487 487 #: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:818 488 #: D:/WP/BoldBuilder/trunk/bold-builder.php:21 1488 #: D:/WP/BoldBuilder/trunk/bold-builder.php:213 489 489 msgid "(new tab)" 490 490 msgstr "" 491 491 492 492 #: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:819 493 #: D:/WP/BoldBuilder/trunk/bold-builder.php:21 2493 #: D:/WP/BoldBuilder/trunk/bold-builder.php:214 494 494 msgid "Cut" 495 495 msgstr "" 496 496 497 497 #: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:820 498 #: D:/WP/BoldBuilder/trunk/bold-builder.php:21 3499 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 06500 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 75498 #: 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 501 501 msgid "Copy" 502 502 msgstr "" 503 503 504 504 #: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:821 505 #: D:/WP/BoldBuilder/trunk/bold-builder.php:21 4506 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 08507 #: D:/WP/BoldBuilder/trunk/bold-builder.php:15 75505 #: 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 508 508 msgid "Paste" 509 509 msgstr "" 510 510 511 511 #: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:821 512 #: D:/WP/BoldBuilder/trunk/bold-builder.php:21 4512 #: D:/WP/BoldBuilder/trunk/bold-builder.php:216 513 513 msgid "(above)" 514 514 msgstr "" 515 515 516 516 #: D:/WP/BoldBuilder/trunk/bold-builder-fe.php:822 517 #: D:/WP/BoldBuilder/trunk/bold-builder.php:21 5518 #: D:/WP/BoldBuilder/trunk/bold-builder.php: 993517 #: D:/WP/BoldBuilder/trunk/bold-builder.php:217 518 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1004 519 519 msgid "Delete" 520 520 msgstr "" 521 521 522 #: D:/WP/BoldBuilder/trunk/bold-builder.php:8 4522 #: D:/WP/BoldBuilder/trunk/bold-builder.php:86 523 523 msgid "Add Section/Row/Column(s)" 524 524 msgstr "" 525 525 526 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 4526 #: D:/WP/BoldBuilder/trunk/bold-builder.php:106 527 527 msgid "Edit/Preview" 528 528 msgstr "" 529 529 530 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1 09530 #: D:/WP/BoldBuilder/trunk/bold-builder.php:111 531 531 msgid "Add Elements" 532 532 msgstr "" 533 533 534 #: D:/WP/BoldBuilder/trunk/bold-builder.php:11 1535 #: D:/WP/BoldBuilder/trunk/bold-builder.php:15 72534 #: D:/WP/BoldBuilder/trunk/bold-builder.php:113 535 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1585 536 536 msgid "Undo" 537 537 msgstr "" 538 538 539 #: D:/WP/BoldBuilder/trunk/bold-builder.php:11 2540 #: D:/WP/BoldBuilder/trunk/bold-builder.php:15 73539 #: D:/WP/BoldBuilder/trunk/bold-builder.php:114 540 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1586 541 541 msgid "Redo" 542 542 msgstr "" 543 543 544 #: D:/WP/BoldBuilder/trunk/bold-builder.php:11 3544 #: D:/WP/BoldBuilder/trunk/bold-builder.php:115 545 545 msgid "Save changes" 546 546 msgstr "" 547 547 548 #: D:/WP/BoldBuilder/trunk/bold-builder.php:20 5548 #: D:/WP/BoldBuilder/trunk/bold-builder.php:207 549 549 msgid "Find Section" 550 550 msgstr "" 551 551 552 #: D:/WP/BoldBuilder/trunk/bold-builder.php:44 0552 #: D:/WP/BoldBuilder/trunk/bold-builder.php:442 553 553 msgid "Clear" 554 554 msgstr "" 555 555 556 #: D:/WP/BoldBuilder/trunk/bold-builder.php:44 1556 #: D:/WP/BoldBuilder/trunk/bold-builder.php:443 557 557 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_button/bt_bb_button.php:251 558 558 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_custom_menu/bt_bb_custom_menu.php:84 … … 570 570 msgstr "" 571 571 572 #: D:/WP/BoldBuilder/trunk/bold-builder.php:44 2572 #: D:/WP/BoldBuilder/trunk/bold-builder.php:444 573 573 msgid "Select Color" 574 574 msgstr "" 575 575 576 #: D:/WP/BoldBuilder/trunk/bold-builder.php:44 3576 #: D:/WP/BoldBuilder/trunk/bold-builder.php:445 577 577 msgid "Current Color" 578 578 msgstr "" 579 579 580 #: D:/WP/BoldBuilder/trunk/bold-builder.php:69 0580 #: D:/WP/BoldBuilder/trunk/bold-builder.php:692 581 581 msgid "Y/m/d" 582 582 msgstr "" 583 583 584 #: D:/WP/BoldBuilder/trunk/bold-builder.php:74 0585 #: D:/WP/BoldBuilder/trunk/bold-builder.php:76 1584 #: D:/WP/BoldBuilder/trunk/bold-builder.php:742 585 #: D:/WP/BoldBuilder/trunk/bold-builder.php:763 586 586 msgid "Bold Builder Settings" 587 587 msgstr "" 588 588 589 #: D:/WP/BoldBuilder/trunk/bold-builder.php:74 0590 #: D:/WP/BoldBuilder/trunk/bold-builder.php:14 36589 #: D:/WP/BoldBuilder/trunk/bold-builder.php:742 590 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1448 591 591 msgid "Bold Builder" 592 592 msgstr "" 593 593 594 #: D:/WP/BoldBuilder/trunk/bold-builder.php:76 3594 #: D:/WP/BoldBuilder/trunk/bold-builder.php:769 595 595 #, php-format 596 msgctxt "bold-builder"597 596 msgid "" 598 597 "For additional help check out <a href=\"%1$s\" title=\"%2$s\" target=\"_blank" … … 600 599 msgstr "" 601 600 602 #: D:/WP/BoldBuilder/trunk/bold-builder.php:763 603 msgctxt "bold-builder" 601 #: D:/WP/BoldBuilder/trunk/bold-builder.php:773 604 602 msgid "Bold Builder documentation" 605 603 msgstr "" 606 604 607 #: D:/WP/BoldBuilder/trunk/bold-builder.php:7 71605 #: D:/WP/BoldBuilder/trunk/bold-builder.php:782 608 606 msgid "Show shortcode tag instead of mapped name" 609 607 msgstr "" 610 608 611 #: D:/WP/BoldBuilder/trunk/bold-builder.php:7 72609 #: D:/WP/BoldBuilder/trunk/bold-builder.php:783 612 610 msgid "Show shortcode tags instead of mapped names" 613 611 msgstr "" 614 612 615 #: D:/WP/BoldBuilder/trunk/bold-builder.php:7 73613 #: D:/WP/BoldBuilder/trunk/bold-builder.php:784 616 614 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_column/bt_bb_column.php:352 617 615 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_column_inner/bt_bb_column_inner.php:354 … … 633 631 msgstr "" 634 632 635 #: D:/WP/BoldBuilder/trunk/bold-builder.php:7 74633 #: D:/WP/BoldBuilder/trunk/bold-builder.php:785 636 634 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_accordion/bt_bb_accordion.php:103 637 635 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_column/bt_bb_column.php:353 … … 654 652 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_latest_posts/bt_bb_latest_posts.php:199 655 653 #: 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:14 6657 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:1 50658 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:15 2654 #: 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 659 657 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_masonry_image_grid/bt_bb_masonry_image_grid.php:159 660 658 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_masonry_post_grid/bt_bb_masonry_post_grid.php:315 … … 677 675 msgstr "" 678 676 679 #: D:/WP/BoldBuilder/trunk/bold-builder.php:7 78677 #: D:/WP/BoldBuilder/trunk/bold-builder.php:789 680 678 msgid "Post types" 681 679 msgstr "" 682 680 683 #: D:/WP/BoldBuilder/trunk/bold-builder.php:7 79681 #: D:/WP/BoldBuilder/trunk/bold-builder.php:790 684 682 msgid "Post Types" 685 683 msgstr "" 686 684 687 #: D:/WP/BoldBuilder/trunk/bold-builder.php: 797685 #: D:/WP/BoldBuilder/trunk/bold-builder.php:808 688 686 msgid "Color schemes" 689 687 msgstr "" 690 688 691 #: D:/WP/BoldBuilder/trunk/bold-builder.php: 798689 #: D:/WP/BoldBuilder/trunk/bold-builder.php:809 692 690 msgid "Color Schemes" 693 691 msgstr "" 694 692 695 #: D:/WP/BoldBuilder/trunk/bold-builder.php:8 06693 #: D:/WP/BoldBuilder/trunk/bold-builder.php:817 696 694 msgid "Tips" 697 695 msgstr "" 698 696 699 #: D:/WP/BoldBuilder/trunk/bold-builder.php:8 14697 #: D:/WP/BoldBuilder/trunk/bold-builder.php:825 700 698 msgid "Show Tips" 701 699 msgstr "" 702 700 703 #: D:/WP/BoldBuilder/trunk/bold-builder.php:8 19701 #: D:/WP/BoldBuilder/trunk/bold-builder.php:830 704 702 msgid "Slug in URL" 705 703 msgstr "" 706 704 707 #: D:/WP/BoldBuilder/trunk/bold-builder.php:8 27705 #: D:/WP/BoldBuilder/trunk/bold-builder.php:838 708 706 msgid "" 709 707 "Use post slug in URL input (when selecting existing content search result)" 710 708 msgstr "" 711 709 712 #: D:/WP/BoldBuilder/trunk/bold-builder.php:8 32713 #: D:/WP/BoldBuilder/trunk/bold-builder.php:8 33710 #: D:/WP/BoldBuilder/trunk/bold-builder.php:843 711 #: D:/WP/BoldBuilder/trunk/bold-builder.php:844 714 712 msgid "OpenAI API key" 715 713 msgstr "" 716 714 717 #: D:/WP/BoldBuilder/trunk/bold-builder.php:8 40718 #: D:/WP/BoldBuilder/trunk/bold-builder.php:8 41715 #: D:/WP/BoldBuilder/trunk/bold-builder.php:851 716 #: D:/WP/BoldBuilder/trunk/bold-builder.php:852 719 717 msgid "OpenAI Model" 720 718 msgstr "" 721 719 722 #: D:/WP/BoldBuilder/trunk/bold-builder.php:8 50723 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 16724 #: D:/WP/BoldBuilder/trunk/bold-builder.php:15 80720 #: 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 725 723 msgid "Save" 726 724 msgstr "" 727 725 728 #: D:/WP/BoldBuilder/trunk/bold-builder.php:9 86726 #: D:/WP/BoldBuilder/trunk/bold-builder.php:997 729 727 msgid "Toggle" 730 728 msgstr "" 731 729 732 #: D:/WP/BoldBuilder/trunk/bold-builder.php:9 87730 #: D:/WP/BoldBuilder/trunk/bold-builder.php:998 733 731 msgid "Add" 734 732 msgstr "" 735 733 736 #: D:/WP/BoldBuilder/trunk/bold-builder.php: 989734 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1000 737 735 msgid "Edit Content" 738 736 msgstr "" 739 737 740 #: D:/WP/BoldBuilder/trunk/bold-builder.php: 990738 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1001 741 739 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_image/bt_bb_image.php:298 742 740 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_image/bt_bb_image.php:305 … … 746 744 msgstr "" 747 745 748 #: D:/WP/BoldBuilder/trunk/bold-builder.php: 991746 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1002 749 747 msgid "Select parent" 750 748 msgstr "" 751 749 752 #: D:/WP/BoldBuilder/trunk/bold-builder.php: 992750 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1003 753 751 msgid "Clone" 754 752 msgstr "" 755 753 756 #: D:/WP/BoldBuilder/trunk/bold-builder.php: 994754 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1005 757 755 msgid "Do you really want to delete this Section?" 758 756 msgstr "" 759 757 760 #: D:/WP/BoldBuilder/trunk/bold-builder.php: 995758 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1006 761 759 msgid "Layout error!" 762 760 msgstr "" 763 761 764 #: D:/WP/BoldBuilder/trunk/bold-builder.php: 996762 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1007 765 763 msgid "Number of columns not equal for all breakpoints!" 766 764 msgstr "" 767 765 768 #: D:/WP/BoldBuilder/trunk/bold-builder.php: 997766 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1008 769 767 msgid "Add Element" 770 768 msgstr "" 771 769 772 #: D:/WP/BoldBuilder/trunk/bold-builder.php: 998770 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1009 773 771 msgid "Add elements (drag & drop)" 774 772 msgstr "" 775 773 776 #: D:/WP/BoldBuilder/trunk/bold-builder.php: 999774 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1010 777 775 msgid "Select Layout" 778 776 msgstr "" 779 777 780 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 00778 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1011 781 779 msgid "Edit Layout" 782 780 msgstr "" 783 781 784 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 01782 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1012 785 783 #: 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: 197784 #: D:/WP/BoldBuilder/trunk/widgets/bb_text_image/init.php:202 787 785 msgid "Select" 788 786 msgstr "" 789 787 790 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 02788 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1013 791 789 msgid "Select Images" 792 790 msgstr "" 793 791 794 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 03795 #: D:/WP/BoldBuilder/trunk/bold-builder.php:16 56792 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1014 793 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1669 796 794 msgid "Submit" 797 795 msgstr "" 798 796 799 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 04797 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1015 800 798 msgid "Search" 801 799 msgstr "" 802 800 803 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 05801 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1016 804 802 msgid "Search for existing content" 805 803 msgstr "" 806 804 807 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 07805 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1018 808 806 msgid "Copy+" 809 807 msgstr "" 810 808 811 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 09809 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1020 812 810 msgid "Export" 813 811 msgstr "" 814 812 815 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 10813 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1021 816 814 msgid "Import" 817 815 msgstr "" 818 816 819 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 11817 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1022 820 818 msgid "Not allowed!" 821 819 msgstr "" 822 820 823 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 12821 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1023 824 822 msgid "Manage Clipboard" 825 823 msgstr "" 826 824 827 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 13825 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1024 828 826 msgid "Filter..." 829 827 msgstr "" 830 828 831 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 14829 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1025 832 830 msgid "Shortcode Mapper" 833 831 msgstr "" 834 832 835 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 15833 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1026 836 834 msgid "Insert Mapping" 837 835 msgstr "" 838 836 839 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 17837 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1028 840 838 msgid "Switch Editor" 841 839 msgstr "" 842 840 843 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 18841 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1029 844 842 msgid "Custom CSS" 845 843 msgstr "" 846 844 847 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 19845 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1030 848 846 msgid "Are you sure you want to switch editor?" 849 847 msgstr "" 850 848 851 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 20849 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1031 852 850 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_section/bt_bb_section.php:304 853 851 msgid "General" 854 852 msgstr "" 855 853 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 858 855 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1579 856 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1592 859 857 msgid "Preview" 860 858 msgstr "" 861 859 862 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 22860 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1033 863 861 msgid "No results found." 864 862 msgstr "" 865 863 866 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 23864 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1034 867 865 msgid "Edit in BE editor" 868 866 msgstr "" 869 867 870 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 24868 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1035 871 869 msgid "parent" 872 870 msgstr "" 873 871 874 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 25872 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1036 875 873 msgid "Or enter image URL..." 876 874 msgstr "" 877 875 878 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 26876 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1037 879 877 msgid "Content not saved!" 880 878 msgstr "" 881 879 882 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 28880 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1039 883 881 msgid "Previous Tip" 884 882 msgstr "" 885 883 886 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 29884 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1040 887 885 msgid "Next Tip" 888 886 msgstr "" 889 887 890 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 34888 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1045 891 889 msgid "" 892 890 "Bold Builder tip: Hold CTRL key while moving (dragging) element to quickly " … … 894 892 msgstr "" 895 893 896 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 35894 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1046 897 895 msgid "" 898 896 "Bold Builder tip: You can edit Bold Builder settings in Settings > Bold " … … 900 898 msgstr "" 901 899 902 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 36900 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1047 903 901 msgid "Bold Builder tip: Did you know that you can move columns between rows?" 904 902 msgstr "" 905 903 906 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 37904 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1048 907 905 msgid "" 908 906 "Bold Builder tip: You can use CTRL key with Copy/Copy+ to cut the element." 909 907 msgstr "" 910 908 911 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 38909 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1049 912 910 msgid "Bold Builder tip: Use Copy+ to copy multiple elements to clipboard." 913 911 msgstr "" 914 912 915 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 39913 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1050 916 914 msgid "" 917 915 "Bold Builder tip: Hold CTRL key and click Paste on content element toolbar " … … 919 917 msgstr "" 920 918 921 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 43919 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1054 922 920 msgid "AI" 923 921 msgstr "" 924 922 925 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 44923 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1055 926 924 msgid "AI Content Generator" 927 925 msgstr "" 928 926 929 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 45927 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1056 930 928 msgid "Generate" 931 929 msgstr "" 932 930 933 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 46931 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1057 934 932 msgid "Translate" 935 933 msgstr "" 936 934 937 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 47935 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1058 938 936 msgid "Rephrase" 939 937 msgstr "" 940 938 941 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 48939 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1059 942 940 msgid "Correct" 943 941 msgstr "" 944 942 945 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 49943 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1060 946 944 msgid "Go" 947 945 msgstr "" 948 946 949 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 50947 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1061 950 948 msgid "Keywords" 951 949 msgstr "" 952 950 953 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 51951 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1062 954 952 msgid "System prompt" 955 953 msgstr "" 956 954 957 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 52955 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1063 958 956 msgid "Randomness (temperature)" 959 957 msgstr "" 960 958 961 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 53959 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1064 962 960 msgid "Desired length (in words)" 963 961 msgstr "" 964 962 965 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 54963 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1065 966 964 msgid "Language" 967 965 msgstr "" 968 966 969 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 55967 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1066 970 968 msgid "English" 971 969 msgstr "" 972 970 973 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 56971 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1067 974 972 msgid "Tone" 975 973 msgstr "" 976 974 977 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 58975 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1069 978 976 msgid "Default / Same" 979 977 msgstr "" 980 978 981 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 59979 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1070 982 980 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_button/bt_bb_button.php:253 983 981 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_custom_menu/bt_bb_custom_menu.php:86 … … 988 986 msgstr "" 989 987 990 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 60988 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1071 991 989 msgid "Conversational" 992 990 msgstr "" 993 991 994 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 61992 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1072 995 993 msgid "Passionate" 996 994 msgstr "" 997 995 998 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 62996 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1073 999 997 msgid "Professional" 1000 998 msgstr "" 1001 999 1002 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 631000 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1074 1003 1001 msgid "Witty" 1004 1002 msgstr "" 1005 1003 1006 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 641004 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1075 1007 1005 msgid "Help" 1008 1006 msgstr "" 1009 1007 1010 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 651008 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1076 1011 1009 msgid "(leave empty to use length of current content)" 1012 1010 msgstr "" 1013 1011 1014 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 671012 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1079 1015 1013 #, php-format 1016 1014 msgid "Error. Please check OpenAI settings %1$shere%2$s." 1017 1015 msgstr "" 1018 1016 1019 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 711017 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1083 1020 1018 msgid "No content!" 1021 1019 msgstr "" 1022 1020 1023 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 741021 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1086 1024 1022 msgid "Move" 1025 1023 msgstr "" 1026 1024 1027 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 761025 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1088 1028 1026 msgid "before" 1029 1027 msgstr "" 1030 1028 1031 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 771029 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1089 1032 1030 msgid "after" 1033 1031 msgstr "" 1034 1032 1035 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 781033 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1090 1036 1034 msgid "to" 1037 1035 msgstr "" 1038 1036 1039 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 801037 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1092 1040 1038 msgid "Need help?" 1041 1039 msgstr "" 1042 1040 1043 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 811041 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1093 1044 1042 msgid "Read Documentation" 1045 1043 msgstr "" 1046 1044 1047 #: D:/WP/BoldBuilder/trunk/bold-builder.php:10 831045 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1095 1048 1046 msgid "Responsive Override" 1049 1047 msgstr "" 1050 1048 1051 #: D:/WP/BoldBuilder/trunk/bold-builder.php:15 771049 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1590 1052 1050 msgid "Clipboard Manager" 1053 1051 msgstr "" 1054 1052 1055 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 191053 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1832 1056 1054 msgid "Hide element on screens" 1057 1055 msgstr "" 1058 1056 1059 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 191057 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1832 1060 1058 msgid "Responsive" 1061 1059 msgstr "" 1062 1060 1063 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 211061 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1834 1064 1062 msgid "≤480px" 1065 1063 msgstr "" 1066 1064 1067 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 221065 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1835 1068 1066 msgid "481-768px" 1069 1067 msgstr "" 1070 1068 1071 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 231069 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1836 1072 1070 msgid "769-992px" 1073 1071 msgstr "" 1074 1072 1075 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 241073 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1837 1076 1074 msgid "993-1200px" 1077 1075 msgstr "" 1078 1076 1079 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 251077 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1838 1080 1078 msgid "1201-1400px" 1081 1079 msgstr "" 1082 1080 1083 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 261081 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1839 1084 1082 msgid ">1400px" 1085 1083 msgstr "" 1086 1084 1087 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 311085 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1844 1088 1086 msgid "Publish date" 1089 1087 msgstr "" 1090 1088 1091 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 311092 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 321089 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1844 1090 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1845 1093 1091 msgid "Fill both the date and time" 1094 1092 msgstr "" 1095 1093 1096 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 311097 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 321098 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 331099 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 341100 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 351101 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 421094 #: 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 1102 1100 msgid "Custom" 1103 1101 msgstr "" 1104 1102 1105 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 321103 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1845 1106 1104 msgid "Expiry date" 1107 1105 msgstr "" 1108 1106 1109 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 331107 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1846 1110 1108 msgid "Element ID" 1111 1109 msgstr "" 1112 1110 1113 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 331111 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1846 1114 1112 msgid "E.g. #myid" 1115 1113 msgstr "" 1116 1114 1117 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 341115 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1847 1118 1116 msgid "Extra class name(s)" 1119 1117 msgstr "" 1120 1118 1121 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 341119 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1847 1122 1120 msgid "E.g. .myclass" 1123 1121 msgstr "" 1124 1122 1125 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 351123 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1848 1126 1124 msgid "Inline CSS style" 1127 1125 msgstr "" 1128 1126 1129 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 351127 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1848 1130 1128 msgid "E.g. opacity: 0.5;" 1131 1129 msgstr "" 1132 1130 1133 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 421131 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1855 1134 1132 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_content_slider/bt_bb_content_slider.php:193 1135 1133 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_slider/bt_bb_slider.php:212 … … 1137 1135 msgstr "" 1138 1136 1139 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 441137 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1857 1140 1138 msgid "No Animation" 1141 1139 msgstr "" 1142 1140 1143 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 451141 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1858 1144 1142 msgid "Fade In" 1145 1143 msgstr "" 1146 1144 1147 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 461145 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1859 1148 1146 msgid "Move Up" 1149 1147 msgstr "" 1150 1148 1151 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 471149 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1860 1152 1150 msgid "Move Left" 1153 1151 msgstr "" 1154 1152 1155 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 481153 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1861 1156 1154 msgid "Move Right" 1157 1155 msgstr "" 1158 1156 1159 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 491157 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1862 1160 1158 msgid "Move Down" 1161 1159 msgstr "" 1162 1160 1163 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 501161 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1863 1164 1162 msgid "Zoom In" 1165 1163 msgstr "" 1166 1164 1167 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 511165 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1864 1168 1166 msgid "Zoom Out" 1169 1167 msgstr "" 1170 1168 1171 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 521169 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1865 1172 1170 msgid "Fade In / Move Up" 1173 1171 msgstr "" 1174 1172 1175 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 531173 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1866 1176 1174 msgid "Fade In / Move Left" 1177 1175 msgstr "" 1178 1176 1179 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 541177 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1867 1180 1178 msgid "Fade In / Move Right" 1181 1179 msgstr "" 1182 1180 1183 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 551181 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1868 1184 1182 msgid "Fade In / Move Down" 1185 1183 msgstr "" 1186 1184 1187 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 561185 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1869 1188 1186 msgid "Fade In / Zoom In" 1189 1187 msgstr "" 1190 1188 1191 #: D:/WP/BoldBuilder/trunk/bold-builder.php:18 571189 #: D:/WP/BoldBuilder/trunk/bold-builder.php:1870 1192 1190 msgid "Fade In / Zoom Out" 1193 1191 msgstr "" 1194 1192 1195 #: D:/WP/BoldBuilder/trunk/bold-builder.php:21 331193 #: D:/WP/BoldBuilder/trunk/bold-builder.php:2146 1196 1194 msgid "Sorry, you are not allowed to save Price List element." 1197 1195 msgstr "" 1198 1196 1199 #: D:/WP/BoldBuilder/trunk/bold-builder.php:21 361197 #: D:/WP/BoldBuilder/trunk/bold-builder.php:2149 1200 1198 msgid "Sorry, you are not allowed to save Raw Content element." 1201 1199 msgstr "" … … 3039 3037 3040 3038 #: 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:1 203039 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:119 3042 3040 msgid "You can edit location(s) on back end." 3043 3041 msgstr "" … … 3051 3049 3052 3050 #: 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:12 63051 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:125 3054 3052 msgid "Zoom" 3055 3053 msgstr "" … … 3060 3058 3061 3059 #: 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:12 83060 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:127 3063 3061 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_slider/bt_bb_slider.php:201 3064 3062 msgid "Height" … … 3066 3064 3067 3065 #: 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:12 83066 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:127 3069 3067 msgid "E.g. 250px" 3070 3068 msgstr "" … … 3112 3110 3113 3111 #: 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:14 33112 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:142 3115 3113 msgid "Center map" 3116 3114 msgstr "" 3117 3115 3118 3116 #: 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:14 53117 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:144 3120 3118 msgid "No (use first location as center)" 3121 3119 msgstr "" 3122 3120 3123 3121 #: 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:14 73122 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:146 3125 3123 msgid "Yes (without overlay initially)" 3126 3124 msgstr "" … … 3413 3411 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_latest_posts/bt_bb_latest_posts.php:193 3414 3412 #: 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:8 13413 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_posts/init.php:80 3416 3414 msgid "Show date" 3417 3415 msgstr "" … … 3431 3429 msgstr "" 3432 3430 3431 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:125 3432 msgid "E.g. 9" 3433 msgstr "" 3434 3433 3435 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:126 3434 msgid "E.g. 9" 3436 msgid "Max zoom" 3437 msgstr "" 3438 3439 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:126 3440 msgid "E.g. 15" 3435 3441 msgstr "" 3436 3442 3437 3443 #: 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" 3444 msgid "Used when there is no content" 3443 3445 msgstr "" 3444 3446 3445 3447 #: 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:1293450 3448 msgid "Predefined (base) map layer" 3451 3449 msgstr "" 3452 3450 3451 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:130 3452 msgid "No base layer (use only additional map layers)" 3453 msgstr "" 3454 3453 3455 #: 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:1323458 3456 msgid "Mapnik OSM" 3459 3457 msgstr "" 3460 3458 3459 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:133 3460 msgid "OSM Hot" 3461 msgstr "" 3462 3461 3463 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:134 3462 msgid " OSM Hot"3464 msgid "Stamen Watercolor" 3463 3465 msgstr "" 3464 3466 3465 3467 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:135 3466 msgid "Stamen Watercolor"3468 msgid "Stamen Terrain" 3467 3469 msgstr "" 3468 3470 3469 3471 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:136 3470 msgid "Stamen T errain"3472 msgid "Stamen Toner" 3471 3473 msgstr "" 3472 3474 3473 3475 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:137 3474 msgid " Stamen Toner"3476 msgid "Carto Dark" 3475 3477 msgstr "" 3476 3478 3477 3479 #: 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:1393482 3480 msgid "Carto Light" 3483 3481 msgstr "" 3484 3482 3485 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:14 23483 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:141 3486 3484 msgid "Additional map layers" 3487 3485 msgstr "" 3488 3486 3489 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:14 23487 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:141 3490 3488 msgid "" 3491 3489 "Add Map tiles URL. E.g. https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png, " … … 3493 3491 msgstr "" 3494 3492 3495 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:1 503493 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:149 3496 3494 msgid "Enable scroll wheel zoom on map" 3497 3495 msgstr "" 3498 3496 3499 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:15 23497 #: D:/WP/BoldBuilder/trunk/content_elements/bt_bb_leaflet_map/bt_bb_leaflet_map.php:151 3500 3498 msgid "Enable zoom control on map" 3501 3499 msgstr "" … … 4166 4164 4167 4165 #: D:/WP/BoldBuilder/trunk/widgets/bb_gallery/init.php:36 4168 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:8 84169 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_comments/init.php:5 24170 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_posts/init.php:7 24171 #: D:/WP/BoldBuilder/trunk/widgets/bb_text_image/init.php:18 04166 #: 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 4172 4170 msgid "Title:" 4173 4171 msgstr "" … … 4185 4183 msgstr "" 4186 4184 4187 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:8 24188 #: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:4 74185 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:83 4186 #: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:48 4189 4187 msgid "Icon:" 4190 4188 msgstr "" 4191 4189 4192 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:9 24190 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:93 4193 4191 msgid "URL title:" 4194 4192 msgstr "" 4195 4193 4196 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:9 64197 #: D:/WP/BoldBuilder/trunk/widgets/bb_text_image/init.php:20 14194 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:97 4195 #: D:/WP/BoldBuilder/trunk/widgets/bb_text_image/init.php:206 4198 4196 msgid "Text:" 4199 4197 msgstr "" 4200 4198 4201 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:10 04199 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:101 4202 4200 msgid "URL or slug:" 4203 4201 msgstr "" 4204 4202 4205 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:10 74203 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:108 4206 4204 msgid "Show highlighted" 4207 4205 msgstr "" 4208 4206 4209 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:11 24207 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:113 4210 4208 msgid "Target:" 4211 4209 msgstr "" 4212 4210 4213 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:12 84211 #: D:/WP/BoldBuilder/trunk/widgets/bb_icon/init.php:129 4214 4212 msgid "CSS extra class:" 4215 4213 msgstr "" 4216 4214 4215 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_comments/init.php:11 4216 msgid "BB Recent Comments" 4217 msgstr "" 4218 4217 4219 #: 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:134222 4220 msgid "Recent comments with avatars." 4223 4221 msgstr "" 4224 4222 4225 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_comments/init.php:4 84223 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_comments/init.php:47 4226 4224 msgid "Recent Comments" 4227 4225 msgstr "" 4228 4226 4229 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_comments/init.php:5 64227 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_comments/init.php:55 4230 4228 msgid "Number of comments:" 4231 4229 msgstr "" 4232 4230 4231 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_posts/init.php:11 4232 msgid "BB Recent Posts" 4233 msgstr "" 4234 4233 4235 #: 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:134238 4236 msgid "Recent posts with thumbnails." 4239 4237 msgstr "" 4240 4238 4241 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_posts/init.php:6 74239 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_posts/init.php:66 4242 4240 msgid "Recent Posts" 4243 4241 msgstr "" 4244 4242 4245 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_posts/init.php:7 64243 #: D:/WP/BoldBuilder/trunk/widgets/bb_recent_posts/init.php:75 4246 4244 msgid "Number of posts:" 4247 4245 msgstr "" … … 4255 4253 msgstr "" 4256 4254 4257 #: D:/WP/BoldBuilder/trunk/widgets/bb_text_image/init.php:18 44255 #: D:/WP/BoldBuilder/trunk/widgets/bb_text_image/init.php:189 4258 4256 msgid "Image IDs:" 4259 4257 msgstr "" … … 4267 4265 msgstr "" 4268 4266 4269 #: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:5 34267 #: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:54 4270 4268 msgid "Time zone:" 4271 4269 msgstr "" 4272 4270 4273 #: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:7 24271 #: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:73 4274 4272 msgid "Place name:" 4275 4273 msgstr "" 4276 4274 4277 #: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:7 64275 #: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:77 4278 4276 msgid "Time notation:" 4279 4277 msgstr "" 4280 4278 4281 #: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:8 24279 #: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:83 4282 4280 msgid "24 hours" 4283 4281 msgstr "" 4284 4282 4285 #: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:8 24283 #: D:/WP/BoldBuilder/trunk/widgets/bb_time/init.php:83 4286 4284 msgid "12 hours" 4287 4285 msgstr "" … … 4295 4293 msgstr "" 4296 4294 4297 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:17 34298 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:2 574295 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:179 4296 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:263 4299 4297 msgid "Now" 4300 4298 msgstr "" 4301 4299 4302 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:1 844300 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:190 4303 4301 msgid "12 h" 4304 4302 msgstr "" 4305 4303 4306 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:1 864304 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:192 4307 4305 msgid "24 h" 4308 4306 msgstr "" 4309 4307 4310 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:23 14308 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:237 4311 4309 msgid "Latitude:" 4312 4310 msgstr "" 4313 4311 4314 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:2 354312 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:241 4315 4313 msgid "Longitude:" 4316 4314 msgstr "" 4317 4315 4318 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:2 394316 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:245 4319 4317 msgid "Temperature unit:" 4320 4318 msgstr "" 4321 4319 4322 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:24 24320 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:248 4323 4321 msgid "Celsius" 4324 4322 msgstr "" 4325 4323 4326 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:24 24324 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:248 4327 4325 msgid "Fahrenheit" 4328 4326 msgstr "" 4329 4327 4330 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:2 544328 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:260 4331 4329 msgid "Type:" 4332 4330 msgstr "" 4333 4331 4334 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:2 574332 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:263 4335 4333 msgid "Next 12 hours" 4336 4334 msgstr "" 4337 4335 4338 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:2 574336 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:263 4339 4337 msgid "Next 24 hours" 4340 4338 msgstr "" 4341 4339 4342 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:2 694340 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:275 4343 4341 msgid "Cache (minutes):" 4344 4342 msgstr "" 4345 4343 4346 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:27 34344 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:279 4347 4345 msgid "API key:" 4348 4346 msgstr "" 4349 4347 4350 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:2 764348 #: D:/WP/BoldBuilder/trunk/widgets/bb_weather/init.php:282 4351 4349 msgid "Get Openweather API key here: " 4352 4350 msgstr "" -
bold-page-builder/trunk/readme.txt
r3409998 r3413258 4 4 Requires at least: 5.0 5 5 Tested up to: 6.9 6 Stable tag: 5.5. 46 Stable tag: 5.5.5 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 137 137 == Changelog == 138 138 139 = 5.5.5 = 140 * Improved security. 141 139 142 = 5.5.4 = 140 143 * Improved security. -
bold-page-builder/trunk/widgets/bb_icon/init.php
r2944313 r3413258 51 51 } 52 52 53 echo $wrap_start_tag;53 echo wp_kses_post( $wrap_start_tag ); 54 54 if ( $icon != '' && $icon != 'no_icon' ) { 55 55 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 57 58 echo '</div>'; 58 59 } 59 60 if ( $title != '' || $text != '' ) { 60 61 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>'; 63 64 echo '</div>'; 64 65 } 65 echo $wrap_end_tag;66 echo wp_kses_post( $wrap_end_tag ); 66 67 67 68 //echo $args['after_widget']; // TODO: fix CSS in themes … … 80 81 ?> 81 82 <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> 83 84 <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 ); ?>"> 84 85 <input type="hidden" name="<?php echo esc_attr( $this->get_field_name( 'bt_bb_iconpicker' ) ); ?>"> … … 86 87 </div> 87 88 <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> 89 90 <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 ); ?>"> 90 91 </p> 91 92 <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> 93 94 <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 ); ?>"> 94 95 </p> 95 96 <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> 97 98 <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 ); ?>"> 98 99 </p> 99 100 <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> 101 102 <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 ); ?>"> 102 103 </p> … … 104 105 if ( class_exists( 'BoldThemes_Customize_Default' ) ) { ?> 105 106 <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> 108 109 </p> 109 110 <?php } 110 111 ?> 111 112 <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> 113 114 <select class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'target' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'target' ) ); ?>"> 114 115 <option value=""></option>; … … 117 118 foreach( $target_arr as $key => $value ) { 118 119 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>'; 120 121 } else { 121 echo '<option value="' . esc_attr( $value ) . '">' . $key. '</option>';122 echo '<option value="' . esc_attr( $value ) . '">' . esc_html( $key ) . '</option>'; 122 123 } 123 124 } … … 126 127 </p> 127 128 <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> 129 130 <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 ); ?>"> 130 131 </p> -
bold-page-builder/trunk/widgets/bb_recent_comments/init.php
r2052924 r3413258 1 1 <?php 2 3 2 if ( ! class_exists( 'BB_Recent_Comments' ) ) { 4 3 … … 14 13 ); 15 14 } 16 17 15 public function widget( $args, $instance ) { 18 16 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 20 19 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 22 23 } 23 24 $number = intval( trim( $instance['number'] ) ); 24 $number = isset( $instance['number'] ) ? intval( trim( $instance['number'] ) ) : 5; 25 25 if ( $number < 1 ) { 26 26 $number = 5; … … 36 36 $date_format = get_option( 'date_format' ); 37 37 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 ) ) . ' — ' . 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 ) ) ) . ' — ' . esc_html__( 'by', 'bold-builder' ) . ' <a href="' . esc_url( $recent->comment_author_url ) . '">' . esc_html( $recent->comment_author ) . '</a></p></li>'; 39 39 } 40 40 } 41 42 41 echo '</div></ul>'; 43 42 44 echo $args['after_widget']; 43 echo $args['after_widget']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 45 44 } 46 45 … … 50 49 ?> 51 50 <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> 53 52 <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 ); ?>"> 54 53 </p> 55 54 <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> 57 56 <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 ); ?>"> 58 57 </p> 59 58 <?php 60 59 } 61 62 60 public function update( $new_instance, $old_instance ) { 63 61 $instance = array(); 64 62 $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : ''; 65 63 $instance['number'] = ( ! empty( $new_instance['number'] ) ) ? strip_tags( $new_instance['number'] ) : ''; 66 67 64 return $instance; 68 65 } -
bold-page-builder/trunk/widgets/bb_recent_posts/init.php
r2889912 r3413258 1 1 <?php 2 3 2 if ( ! class_exists( 'BB_Recent_Posts' ) ) { 4 3 … … 14 13 ); 15 14 } 16 17 15 public function widget( $args, $instance ) { 18 16 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 20 19 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 22 22 } 23 24 $number = intval( trim( $instance['number'] ) ); 23 $number = isset( $instance['number'] ) ? intval( trim( $instance['number'] ) ) : 5; 25 24 if ( $number < 1 ) { 26 25 $number = 5; … … 28 27 $number = 30; 29 28 } 30 31 29 $show_date = ! empty( $instance['show_date'] ) ? $instance['show_date'] : ''; 32 30 … … 42 40 43 41 $img = get_the_post_thumbnail( $recent['ID'], 'thumbnail' ); 44 45 42 echo '<li><div class="btImageTextWidget">'; 46 43 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 48 46 } 49 50 47 $supertitle = ''; 51 48 $title = ''; … … 55 52 $supertitle = date_i18n( $date_format, strtotime( get_the_time( 'Y-m-d', $recent['ID'] ) ) ); 56 53 } 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 58 56 echo '</div></li>'; 59 57 } … … 61 59 echo '</ul></div>'; 62 60 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 64 63 } 65 64 … … 70 69 ?> 71 70 <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> 73 72 <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 ); ?>"> 74 73 </p> 75 74 <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> 77 76 <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 ); ?>"> 78 77 </p> 79 78 <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> 82 81 </p> 83 82 <?php 84 83 } 85 86 84 public function update( $new_instance, $old_instance ) { 87 85 $instance = array(); … … 89 87 $instance['number'] = ( ! empty( $new_instance['number'] ) ) ? strip_tags( $new_instance['number'] ) : ''; 90 88 $instance['show_date'] = $new_instance['show_date']; 91 92 89 return $instance; 93 90 } -
bold-page-builder/trunk/widgets/bb_text_image/init.php
r2482078 r3413258 158 158 public function widget( $args, $instance ) { 159 159 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 161 162 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 163 165 } 164 166 165 167 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 167 170 } 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>'; 169 173 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 171 176 } 172 177 … … 178 183 <div class="bt_bb_text_image_form"> 179 184 <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> 181 186 <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 ); ?>"> 182 187 </p> 183 188 <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> 185 190 <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 ); ?>"> 186 191 <div class="bt_bb_dialog_image_container"> … … 189 194 if ( $img_arr[0] != '' ) { 190 195 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>'; 192 197 } 193 198 } … … 195 200 </div> 196 201 <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' ); ?>"> 198 203 </div> 199 204 </p> 200 205 <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> 203 208 </p> 204 209 </div> -
bold-page-builder/trunk/widgets/bb_time/init.php
r2889912 r3413258 17 17 public function widget( $args, $instance ) { 18 18 19 wp_enqueue_script( ' bt_bb_moment', plugin_dir_url( __FILE__ ) . 'moment.js', array(), BT_BB_VERSION, true);19 wp_enqueue_script( 'moment' ); 20 20 wp_enqueue_script( 'bt_bb_moment_timezone', plugin_dir_url( __FILE__ ) . 'moment-timezone-with-data.js', array(), BT_BB_VERSION, true ); 21 21 … … 32 32 //echo $args['before_widget']; // TODO: fix CSS in themes 33 33 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 35 36 36 37 //echo $args['after_widget']; // TODO: fix CSS in themes … … 45 46 ?> 46 47 <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> 48 49 <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 ); ?>"> 49 50 <input type="hidden" name="<?php echo esc_attr( $this->get_field_name( 'bt_bb_iconpicker' ) ); ?>"> … … 51 52 </div> 52 53 <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> 54 55 <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' ) ); ?>"> 55 56 <?php … … 61 62 foreach ( $tz as $item ) { 62 63 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>'; 64 65 } else { 65 echo '<option value="' . esc_attr( $item ) . '">' . $item. '</option>';66 echo '<option value="' . esc_attr( $item ) . '">' . esc_html( $item ) . '</option>'; 66 67 } 67 68 } … … 70 71 </p> 71 72 <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> 73 74 <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 ); ?>"> 74 75 </p> 75 76 <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> 77 78 <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' ) ); ?>"> 78 79 <?php … … 84 85 foreach ( $tn as $k => $v ) { 85 86 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>'; 87 88 } else { 88 echo '<option value="' . esc_attr( $v ) . '">' . $k. '</option>';89 echo '<option value="' . esc_attr( $v ) . '">' . esc_html( $k ) . '</option>'; 89 90 } 90 91 } … … 122 123 $( document ).ready(function() { 123 124 124 var time_notation = '<?php echo $this->time_notation; ?>';125 var time_notation = '<?php echo esc_js( $this->time_notation ); ?>'; 125 126 126 127 var time = function() { 127 128 128 129 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' ); 130 131 } 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' ); 132 133 } 133 134 134 $( '#<?php echo $this->container_id; ?> .btIconWidgetText' ).html( time );135 $( '#<?php echo esc_js( $this->container_id ); ?> .btIconWidgetText' ).html( time ); 135 136 } 136 137 setInterval( function() { -
bold-page-builder/trunk/widgets/bb_weather/init.php
r2467020 r3413258 164 164 } 165 165 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 166 172 if ( $weather_data !== false && isset( $weather_data['temp'] ) ) { 167 173 if ( $this->type == 'now' ) { 168 174 echo '<span class="btIconWidget btWidgetWithText">'; 169 175 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 ); 171 177 echo '</span>'; 172 178 echo '<span class="btIconWidgetContent">'; 173 179 echo '<span class="btIconWidgetTitle">' . esc_html__( 'Now', 'bold-builder' ) . '</span>'; 174 echo '<span class="btIconWidgetText">' . $weather_data['temp']. '°' . ( $this->temp_unit == 'imperial' ? 'F' : 'C' ) . '</span>';180 echo '<span class="btIconWidgetText">' . esc_html( $weather_data['temp'] ) . '°' . ( $this->temp_unit == 'imperial' ? 'F' : 'C' ) . '</span>'; 175 181 echo '</span>'; 176 182 echo '</span>'; … … 178 184 echo '<span class="btIconWidget">'; 179 185 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 ); 181 187 echo '</span>'; 182 188 echo '<span class="btIconWidgetContent">'; … … 186 192 echo '<span class="btIconWidgetTitle">' . esc_html__( '24 h', 'bold-builder' ) . '</span>'; 187 193 } 188 echo '<span class="btIconWidgetText">' . $weather_data['temp_low'] . '/' . $weather_data['temp_high']. '°' . ( $this->temp_unit == 'imperial' ? 'F' : 'C' ) . '</span>';194 echo '<span class="btIconWidgetText">' . esc_html( $weather_data['temp_low'] ) . '/' . esc_html( $weather_data['temp_high'] ) . '°' . ( $this->temp_unit == 'imperial' ? 'F' : 'C' ) . '</span>'; 189 195 echo '</span>'; 190 196 echo '</span>'; … … 229 235 ?> 230 236 <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> 232 238 <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 ); ?>"> 233 239 </p> 234 240 <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> 236 242 <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 ); ?>"> 237 243 </p> 238 244 <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> 240 246 <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' ) ); ?>"> 241 247 <?php … … 243 249 foreach( $target_arr as $key => $value ) { 244 250 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>'; 246 252 } else { 247 echo '<option value="' . esc_attr( $value ) . '">' . $key. '</option>';253 echo '<option value="' . esc_attr( $value ) . '">' . esc_html( $key ) . '</option>'; 248 254 } 249 255 } … … 252 258 </p> 253 259 <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> 255 261 <select class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'type' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'type' ) ); ?>"> 256 262 <?php … … 258 264 foreach( $target_arr as $key => $value ) { 259 265 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>'; 261 267 } else { 262 echo '<option value="' . esc_attr( $value ) . '">' . $key. '</option>';268 echo '<option value="' . esc_attr( $value ) . '">' . esc_html( $key ) . '</option>'; 263 269 } 264 270 } … … 267 273 </p> 268 274 <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> 270 276 <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 ); ?>"> 271 277 </p> 272 278 <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> 274 280 <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 ); ?>"> 275 281 <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> 277 283 </p> 278 284 -
bold-page-builder/trunk/widgets/init.php
r2978138 r3413258 6 6 function register_bb_widgets() { 7 7 $bb_dir = plugin_dir_path( __FILE__ ); 8 require_once( $bb_dir . 'bb_gallery/init.php' );9 8 require_once( $bb_dir . 'bb_text_image/init.php' ); 10 9 require_once( $bb_dir . 'bb_icon/init.php' ); … … 13 12 require_once( $bb_dir . 'bb_recent_posts/init.php' ); 14 13 require_once( $bb_dir . 'bb_recent_comments/init.php' ); 15 register_widget( 'BB_Gallery' );16 14 register_widget( 'BB_Text_Image' ); 17 15 register_widget( 'BB_Icon_Widget' );
Note: See TracChangeset
for help on using the changeset viewer.