woocommerce/templates/global/quantity-input.php

16 lines
715 B
PHP
Raw Normal View History

2011-12-11 01:08:33 +00:00
<?php
/**
* Product quantity inputs
2012-08-14 18:05:45 +00:00
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.1.0
2011-12-11 01:08:33 +00:00
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
2011-12-11 01:08:33 +00:00
?>
<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 echo esc_attr_x( 'Qty', 'Product quantity input tooltip', 'woocommerce' ) ?>" class="input-text qty text" size="4" /></div>