Plugin Directory

Changeset 2764181


Ignore:
Timestamp:
07/31/2022 09:16:39 PM (4 years ago)
Author:
nucleusgenius
Message:

update 1.7

Location:
quasar-variable-attributes
Files:
81 added
4 edited

Legend:

Unmodified
Added
Removed
  • quasar-variable-attributes/trunk/admin.php

    r2758159 r2764181  
    1010        <div class='swap-logo-header-q'>
    1111            <div class='logo-header-q'>
    12                 <div class='version-q-form'><span class='name-plugin-q'>Quasar Variable Attributes</span> <?php esc_html_e('Version','quasar-attr-variable');?> <span>1.6</span></div>
     12                <div class='version-q-form'><span class='name-plugin-q'>Quasar Variable Attributes</span> <?php esc_html_e('Version','quasar-attr-variable');?> <span>1.7</span></div>
    1313            </div>
    1414        </div>
  • quasar-variable-attributes/trunk/assets/js/frontend.js

    r2758159 r2764181  
    379379                                    }
    380380                                    else {
    381                                         $(this).find('option:selected').each(function(){
    382                                             if ( $(this).attr('data-name') != val[1] ){addiction++;}
     381                                        $(this).find('option:selected').each(function(){;
     382                                            //1 level proverki
     383                                            if ( $(this).attr('data-name') != val[1] ){
     384                                                //2 level proverki;
     385                                                if ( $(this).attr('data-name').replace(/\s/g, '-') != val[1] ){  addiction++; }
     386                                            }
    383387                                        });
    384388                                    }
     
    582586        if ( data_defoult !='' ){
    583587            if ( $(this).next().find('select').length > 0 ){
    584                 $(this).next().find('option').each(function(){
     588                $(this).next().find('option').not('.defoult-op').each(function(){
    585589                    let number_condition = 0 ;
    586                     if ( $(this).html() == data_defoult ){
     590                    if ( $(this).attr('data-val-name') == data_defoult ){
    587591                        number_condition++;
    588592                    }
    589593                    else {
    590                         if ( $(this).html().replace(/\s/g,'-').toLowerCase() == data_defoult ){
     594                        if ( $(this).attr('data-val-name').replace(/\s/g,'-').toLowerCase() == data_defoult ){
    591595                            number_condition++;
    592596                        }
  • quasar-variable-attributes/trunk/quasar-variable-attributes-main.php

    r2758159 r2764181  
    44Plugin URI: https://quasar-variable-attributes.quasar-form.com
    55Description: Make the choice of options in your variable products beautiful and convenient
    6 Version: 1.6
     6Version: 1.7
    77Author: nucleus_genius
    88
     
    1010
    1111//v
    12 define( 'quasar_variable_free_attributes_version', '1.6' );
     12define( 'quasar_variable_free_attributes_version', '1.7' );
    1313define( 'quasar_variable_free_attributes_url', plugins_url( '/', __FILE__ ) );
    1414
     
    468468                               
    469469                                if ( $type == '' ){
    470                                     $string_val.= '<option class="el-value-list-attr-q" data-prise="'.esc_attr( $array_variable_param[$label_attribute][$val]['prise'] ).'" data-prise-regular="'.esc_attr( $array_variable_param[$label_attribute][$val]['prise-regular'] ).'" data-id="'.esc_attr( $array_variable_param[$label_attribute][$val]['data-id'] ).'" data-img="'.esc_attr( $array_variable_param[$label_attribute][$val]['data-img'] ).'" data-addiction="'.esc_attr( $array_variable_param[$label_attribute][$val]['zavisemost_variable'] ).'" data-name="'.esc_attr( $val ).'" data-val-name="'.esc_attr( $label_val ).'">'.esc_html( $label_val ).'</option>';
     470                                    $string_val.= '<option class="el-value-list-attr-q" data-prise="'.esc_attr( $array_variable_param[$label_attribute][$val]['prise'] ).'" data-prise-regular="'.esc_attr( $array_variable_param[$label_attribute][$val]['prise-regular'] ).'" data-id="'.esc_attr( $array_variable_param[$label_attribute][$val]['data-id'] ).'" data-img="'.esc_attr( $array_variable_param[$label_attribute][$val]['data-img'] ).'" data-addiction="'.esc_attr( $array_variable_param[$label_attribute][$val]['zavisemost_variable'] ).'" data-name="'.esc_attr( $val ).'" data-val-name="'.esc_attr( $val ).'">'.esc_html( $label_val ).'</option>';
    471471                                }
    472472                                if ( $type == 'checkbox' || $type == 'color' || $type == 'html' || $type == 'dropdown' || $type == 'checkboximg' ){
     
    482482                                    else { $label_val = $val; }
    483483                                   
    484                                     if ( $type == ''){ $string_val.= '<option class="el-value-list-attr-q" data-prise="" data-id="" data-name="" data-img="" data-addiction="" data-val-name="'.esc_attr( $label_val ).'" >'.esc_html( $label_val ).'</option>'; }
     484                                    if ( $type == ''){ $string_val.= '<option class="el-value-list-attr-q" data-prise="" data-id="" data-name="" data-img="" data-addiction="" data-val-name="'.esc_attr( urldecode($val) ).'" >'.esc_html( $label_val ).'</option>'; }
    485485                                    if ( $type == 'checkbox' || $type == 'color' || $type == 'html' || $type == 'dropdown' || $type == 'checkboximg' ){
    486486                                        $string_val.= quasar_variable_free_attr_create_value($type, $style_attr, $label_attribute ,$label_val,$array_img, $id_number,$id_number_2,'categoty',urldecode($val));
     
    497497                                else { $label_val = $val; }
    498498   
    499                                 if ( $type == ''){ $string_val.= '<option class="el-value-list-attr-q" data-prise="" data-id="" data-name="" data-img="" data-val-name="'.esc_attr( $label_val).'"  data-addiction="">'.esc_html( $label_val ).'</option>'; }
     499                                if ( $type == ''){ $string_val.= '<option class="el-value-list-attr-q" data-prise="" data-id="" data-name="" data-img="" data-val-name="'.esc_attr( urldecode($val) ).'"  data-addiction="">'.esc_html( $label_val ).'</option>'; }
    500500                                if ( $type == 'checkbox' || $type == 'color' || $type == 'html' || $type == 'dropdown' || $type == 'checkboximg' ){
    501501                                    $string_val.= quasar_variable_free_attr_create_value($type, $style_attr,$label_attribute ,$label_val,$array_img,$id_number,$id_number_2,'categoty',urldecode($val));
     
    778778                        //defoult style
    779779                        if ( $type == ''){
    780                             $string_val.= '<option class="el-value-list-attr-q">'.$label_val.'</option>';
     780                            $string_val.= '<option class="el-value-list-attr-q" data-val-name="'.esc_attr( urldecode($val) ).'">'.$label_val.'</option>';
    781781                        }
    782782                        if ( $type == 'checkbox' || $type == 'color' || $type == 'html' || $type == 'dropdown' || $type == 'checkboximg' ){
  • quasar-variable-attributes/trunk/readme.txt

    r2758159 r2764181  
    55Requires at least: 4.8
    66Tested up to: 6.0
    7 Stable tag: 1.6
     7Stable tag: 1.7
    88Requires PHP: 5.6
    99License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.