City.php 587 B

1234567891011121314151617181920212223242526272829
  1. <?php if ( ! defined( 'ABSPATH' ) ) exit;
  2. /**
  3. * Class NF_Fields_City
  4. */
  5. class NF_Fields_City extends NF_Fields_Textbox
  6. {
  7. protected $_name = 'city';
  8. protected $_type = 'city';
  9. protected $_nicename = 'City';
  10. protected $_section = 'userinfo';
  11. protected $_icon = 'map-marker';
  12. protected $_templates = 'city';
  13. protected $_test_value = 'Cleveland';
  14. public function __construct()
  15. {
  16. parent::__construct();
  17. $this->_nicename = __( 'City', 'ninja-forms' );
  18. $this->_settings[ 'custom_name_attribute' ][ 'value' ] = 'city';
  19. }
  20. }