Button.php 551 B

12345678910111213141516171819202122232425262728
  1. <?php if ( ! defined( 'ABSPATH' ) ) exit;
  2. /**
  3. * Class NF_Field_Button
  4. */
  5. class NF_Fields_Button extends NF_Abstracts_Field
  6. {
  7. protected $_name = 'button';
  8. protected $_nicename = 'Button';
  9. protected $_section = '';
  10. protected $_type = 'button';
  11. protected $_templates = 'button';
  12. protected $_settings_only = array( 'label' );
  13. public function __construct()
  14. {
  15. parent::__construct();
  16. $this->_settings[ 'label' ][ 'width' ] = 'full';
  17. $this->_nicename = __( 'Button', 'ninja-forms' );
  18. }
  19. }