ldc-sbv/pole-sbv-content/plugins/ninja-forms/includes/Fields/Quantity.php
2017-09-06 14:18:47 +02:00

32 lines
688 B
PHP
Executable file

<?php if ( ! defined( 'ABSPATH' ) ) exit;
/**
* Class NF_Fields_ProductQuantity
*/
class NF_Fields_Quantity extends NF_Fields_Number
{
protected $_name = 'quantity';
protected $_section = 'pricing';
protected $_icon = 'hashtag';
protected $_aliases = array();
protected $_type = 'quantity';
protected $_templates = 'number';
protected $_test_value = 'Lorem ipsum';
protected $_settings = array( 'product_assignment', 'number' );
protected $_settings_exclude = array( 'required', 'input_limit_set' );
public function __construct()
{
parent::__construct();
$this->_nicename = __( 'Quantity', 'ninja-forms' );
}
}