Plugin Directory

Changeset 962307


Ignore:
Timestamp:
08/08/2014 09:28:10 AM (12 years ago)
Author:
ulih
Message:

Version 1.9.5
Bugfixes

Location:
woocommerce-poor-guys-swiss-knife
Files:
135 added
3 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-poor-guys-swiss-knife/trunk/readme.txt

    r936643 r962307  
    55Requires at least: Wordpress 3.1 and WooCommerce 2.0
    66Tested up to: 3.9.1
    7 Stable tag: 1.9.4
     7Stable tag: 1.9.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    245245== Changelog ==
    246246
     247= 1.9.5 =
     248
     249* Bugfix: Calendar dropdown for year selection works now as expected.
     250* Bugfix: Invalid template function call in WC versions below 2.1 fixed
     251
    247252= 1.9.4 =
    248253
  • woocommerce-poor-guys-swiss-knife/trunk/wcpgsk-af.php

    r936643 r962307  
    107107        else :
    108108            extract( $args, EXTR_OVERWRITE );
     109            if ( function_exists( 'wc_get_template' ) ) :               
     110                ob_start();
     111                wc_get_template( 'global/quantity-input.php', $args );
     112                if ( $echo ) {
     113                    echo ob_get_clean();
     114                } else {
     115                    return ob_get_clean();
     116                }
     117            else :
     118                ?>
     119                    <div class="quantity"><input type="number" step="<?php echo esc_attr( $step ); ?>" <?php if ( is_numeric( $min_value ) ) : ?>min="<?php echo esc_attr( $min_value ); ?>"<?php endif; ?> <?php if ( is_numeric( $max_value ) ) : ?>max="<?php echo esc_attr( $max_value ); ?>"<?php endif; ?> name="<?php echo esc_attr( $input_name ); ?>" value="<?php echo esc_attr( $input_value ); ?>" title="<?php _ex( 'Qty', 'Product quantity input tooltip', 'woocommerce' ) ?>" class="input-text qty text" size="4" /></div>
     120                <?php
     121            endif;
     122        endif;
     123    else :
     124        extract( $args, EXTR_OVERWRITE );
     125        if ( function_exists( 'wc_get_template' ) ) :               
    109126            ob_start();
    110127            wc_get_template( 'global/quantity-input.php', $args );
     
    114131                return ob_get_clean();
    115132            }
    116            
    117         endif;
    118     else :
    119         extract( $args, EXTR_OVERWRITE );
    120         ob_start();
    121         wc_get_template( 'global/quantity-input.php', $args );
    122         if ( $echo ) {
    123             echo ob_get_clean();
    124         } else {
    125             return ob_get_clean();
    126         }
     133        else :
     134            ?>
     135                <div class="quantity"><input type="number" step="<?php echo esc_attr( $step ); ?>" <?php if ( is_numeric( $min_value ) ) : ?>min="<?php echo esc_attr( $min_value ); ?>"<?php endif; ?> <?php if ( is_numeric( $max_value ) ) : ?>max="<?php echo esc_attr( $max_value ); ?>"<?php endif; ?> name="<?php echo esc_attr( $input_name ); ?>" value="<?php echo esc_attr( $input_value ); ?>" title="<?php _ex( 'Qty', 'Product quantity input tooltip', 'woocommerce' ) ?>" class="input-text qty text" size="4" /></div>
     136            <?php
     137        endif;
    127138    endif;
    128139}
     
    810821                if (jQuery(this).attr("maxdays")) maxD = jQuery(this).attr("maxdays");
    811822               
    812                 var dateF = "yy/mm/dd";
     823                var dateF = "dd/mm/yy";
    813824                if (jQuery(this).attr("dateformat")) dateF = jQuery(this).attr("dateformat");
    814825                var exDays = "";
     
    825836                    changeMonth: true,
    826837                    changeYear: true,
     838                    yearRange: "-100:+100",
    827839                     beforeShow: function() {
    828840                       if ((selDate = jQuery(this).val()).length > 0)
  • woocommerce-poor-guys-swiss-knife/trunk/woocommerce-poor-guys-swiss-knife.php

    r936643 r962307  
    88 * Author: Uli Hake
    99 * Author URI: http://takebarcelona.com/authorship/uli-hake
    10  * Version: 1.9.4
     10 * Version: 1.9.5
    1111 * @package WordPress
    1212 * @subpackage WooCommerce Poor Guys Swiss Knife
     
    106106        //load into our global
    107107        $wcpgsk = new WCPGSK_Main( __FILE__ );
    108         $wcpgsk->version = '1.9.4';
     108        $wcpgsk->version = '1.9.5';
    109109        $wcpgsk->wcpgsk_hook_woocommerce_filters();
    110110       
Note: See TracChangeset for help on using the changeset viewer.