Changeset 3110936
- Timestamp:
- 07/02/2024 07:54:50 AM (21 months ago)
- Location:
- twenty20
- Files:
-
- 5 edited
-
tags/1.7.0/inc/enqueue.php (modified) (1 diff)
-
tags/1.7.0/inc/for-flatsome-ux-builder.php (modified) (4 diffs)
-
tags/1.7.0/inc/twenty20-shortcode.php (modified) (2 diffs)
-
tags/1.7.0/readme.txt (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
twenty20/tags/1.7.0/inc/enqueue.php
r3110478 r3110936 15 15 add_action( 'wp_enqueue_scripts', 'twenty20_zb_enqueue_script'); 16 16 17 function include_media_button_js_file() {17 function twenty20_zb_include_media_button_js_file() { 18 18 wp_enqueue_script('media_button', ZB_T20_URL . '/assets/js/media_button.js', array('jquery'), ZB_T20_VER, true); 19 19 wp_enqueue_style( 'twenty20-admin-style', ZB_T20_URL . '/assets/css/admin.css', array(), ZB_T20_VER ); 20 20 } 21 add_action('wp_enqueue_media', ' include_media_button_js_file');21 add_action('wp_enqueue_media', 'twenty20_zb_include_media_button_js_file'); 22 22 23 23 function add_twenty20_shortcode_button() { -
twenty20/tags/1.7.0/inc/for-flatsome-ux-builder.php
r3110478 r3110936 4 4 function zb_twenty20_ux_builder_element(){ 5 5 add_ux_builder_shortcode( 'twenty20', array( 6 'name' => __( 'Twenty20' ),6 'name' => __( 'Twenty20', 'zb_twenty20' ), 7 7 'thumbnail' => twenty20_ux_builder_thumbnails( 'twenty20' ), 8 8 'template' => twenty20_ux_builder_template( 'twenty20.html' ), … … 14 14 'img1' => array( 15 15 'type' => 'image', 16 'heading' => __('Before Image' ),16 'heading' => __('Before Image', 'zb_twenty20'), 17 17 'default' => '' 18 18 ), … … 20 20 'img2' => array( 21 21 'type' => 'image', 22 'heading' => __('After Image' ),22 'heading' => __('After Image', 'zb_twenty20'), 23 23 'default' => '' 24 24 ), … … 38 38 'width' => array( 39 39 'type' => 'slider', 40 'heading' => __('Width' ),40 'heading' => __('Width', 'zb_twenty20'), 41 41 'responsive' => true, 42 42 'default' => '100', -
twenty20/tags/1.7.0/inc/twenty20-shortcode.php
r3110478 r3110936 1 1 <?php 2 2 3 function sanitize_xss_offset( $input ) {3 function twenty20_zb_sanitize_xss_offset( $input ) { 4 4 $output = str_replace( '})});alert(/XSS-offset/)//', '', $input ); 5 5 return $output; … … 86 86 87 87 if($atts['before']){ 88 $output .= '$(".' . sanitize_xss_offset( esc_js($t20ID) ) . ' .twentytwenty-before-label").html("'.sanitize_xss_offset(esc_js($atts['before'])) .'");';88 $output .= '$(".' . twenty20_zb_sanitize_xss_offset( esc_js($t20ID) ) . ' .twentytwenty-before-label").html("'. twenty20_zb_sanitize_xss_offset(esc_js($atts['before'])) .'");'; 89 89 }else{ 90 $output .= '$(".' . sanitize_xss_offset( esc_js($t20ID) ) . ' .twentytwenty-overlay").hide();';90 $output .= '$(".' . twenty20_zb_sanitize_xss_offset( esc_js($t20ID) ) . ' .twentytwenty-overlay").hide();'; 91 91 } 92 92 if($atts['after']){ 93 $output .= '$(".' . sanitize_xss_offset( esc_js($t20ID) ) . ' .twentytwenty-after-label").html("'.sanitize_xss_offset(esc_js($atts['after'])) .'");';93 $output .= '$(".' . twenty20_zb_sanitize_xss_offset( esc_js($t20ID) ) . ' .twentytwenty-after-label").html("'. twenty20_zb_sanitize_xss_offset(esc_js($atts['after'])) .'");'; 94 94 }else{ 95 $output .= '$(".' . sanitize_xss_offset( esc_js($t20ID) ) . ' .twentytwenty-overlay").hide();';95 $output .= '$(".' . twenty20_zb_sanitize_xss_offset( esc_js($t20ID) ) . ' .twentytwenty-overlay").hide();'; 96 96 } 97 97 $output .= '});</script></div>'; -
twenty20/tags/1.7.0/readme.txt
r3110478 r3110936 16 16 17 17 This sparked a few new ideas on how to do something similar for our own needs. It had to swipe between two images to show "before" and "after". Most of all, it had to be responsive. 18 19 [Live Demo](https://zayedbaloch.com/twenty20-image-before-after/ "Twenty20")20 18 21 19 **Features** -
twenty20/trunk/readme.txt
r3110474 r3110936 16 16 17 17 This sparked a few new ideas on how to do something similar for our own needs. It had to swipe between two images to show "before" and "after". Most of all, it had to be responsive. 18 19 [Live Demo](https://zayedbaloch.com/twenty20-image-before-after/ "Twenty20")20 18 21 19 **Features**
Note: See TracChangeset
for help on using the changeset viewer.