Plugin Directory

Changeset 3110936


Ignore:
Timestamp:
07/02/2024 07:54:50 AM (21 months ago)
Author:
zayedbaloch
Message:

Fixed the recommendations from WordPress plugin team
Remove the Live Demo link for now

Location:
twenty20
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • twenty20/tags/1.7.0/inc/enqueue.php

    r3110478 r3110936  
    1515add_action( 'wp_enqueue_scripts', 'twenty20_zb_enqueue_script');
    1616
    17 function include_media_button_js_file() {
     17function twenty20_zb_include_media_button_js_file() {
    1818  wp_enqueue_script('media_button', ZB_T20_URL . '/assets/js/media_button.js', array('jquery'), ZB_T20_VER, true);
    1919  wp_enqueue_style( 'twenty20-admin-style', ZB_T20_URL . '/assets/css/admin.css', array(), ZB_T20_VER );
    2020}
    21 add_action('wp_enqueue_media', 'include_media_button_js_file');
     21add_action('wp_enqueue_media', 'twenty20_zb_include_media_button_js_file');
    2222
    2323function add_twenty20_shortcode_button() {
  • twenty20/tags/1.7.0/inc/for-flatsome-ux-builder.php

    r3110478 r3110936  
    44function zb_twenty20_ux_builder_element(){
    55  add_ux_builder_shortcode( 'twenty20', array(
    6     'name' => __( 'Twenty20' ),
     6    'name' => __( 'Twenty20', 'zb_twenty20' ),
    77    'thumbnail' =>  twenty20_ux_builder_thumbnails( 'twenty20' ),
    88    'template' => twenty20_ux_builder_template( 'twenty20.html' ),
     
    1414      'img1' => array(
    1515        'type' => 'image',
    16         'heading' => __('Before Image'),
     16        'heading' => __('Before Image', 'zb_twenty20'),
    1717        'default' => ''
    1818      ),
     
    2020      'img2' => array(
    2121        'type' => 'image',
    22         'heading' => __('After Image'),
     22        'heading' => __('After Image', 'zb_twenty20'),
    2323        'default' => ''
    2424      ),
     
    3838      'width' => array(
    3939        'type' => 'slider',
    40         'heading' => __('Width'),
     40        'heading' => __('Width', 'zb_twenty20'),
    4141        'responsive' => true,
    4242        'default' => '100',
  • twenty20/tags/1.7.0/inc/twenty20-shortcode.php

    r3110478 r3110936  
    11<?php
    22
    3 function sanitize_xss_offset( $input ) {
     3function twenty20_zb_sanitize_xss_offset( $input ) {
    44  $output = str_replace( '})});alert(/XSS-offset/)//', '', $input );
    55  return $output;
     
    8686 
    8787  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'])) .'");';
    8989  }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();';
    9191  }
    9292  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'])) .'");';
    9494  }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();';
    9696  }
    9797  $output .= '});</script></div>';
  • twenty20/tags/1.7.0/readme.txt

    r3110478 r3110936  
    1616
    1717This 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")
    2018
    2119**Features**
  • twenty20/trunk/readme.txt

    r3110474 r3110936  
    1616
    1717This 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")
    2018
    2119**Features**
Note: See TracChangeset for help on using the changeset viewer.