50ce2c44c20fc9bdfcfcd16c44ef">a4345e5759 first commit лет назад: 5 3394 a4345e5759 first commit лет назад: 5 3394_fsm a4345e5759 first commit лет назад: 5 3394_vm a4345e5759 first commit лет назад: 5 3395 a4345e5759 first commit лет назад: 5 3429 a4345e5759 first commit лет назад: 5 3430 a4345e5759 first commit лет назад: 5 3431 a4345e5759 first commit лет назад: 5 3433 a4345e5759 first commit лет назад: 5 3439 a4345e5759 first commit лет назад: 5 3440 a4345e5759 first commit лет назад: 5 3455 a4345e5759 first commit лет назад: 5 3456 a4345e5759 first commit лет назад: 5 3456_fsm a4345e5759 first commit лет назад: 5 3456_vm a4345e5759 first commit лет назад: 5 3466 a4345e5759 first commit лет назад: 5 3467 a4345e5759 first commit лет назад: 5 3468 a4345e5759 first commit лет назад: 5 3501 a4345e5759 first commit лет назад: 5 3502 a4345e5759 first commit лет назад: 5 3503 a4345e5759 first commit лет назад: 5 3534 a4345e5759 first commit лет назад: 5 3541 a4345e5759 first commit лет назад: 5 3541_fsm a4345e5759 first commit лет назад: 5 3541_vm a4345e5759 first commit лет назад: 5 3542 a4345e5759 first commit лет назад: 5 3574 a4345e5759 first commit лет назад: 5 3575 a4345e5759 first commit лет назад: 5 3576 a4345e5759 first commit лет назад: 5 3596 a4345e5759 first commit лет назад: 5 3597 a4345e5759 first commit лет назад: 5 3598 a4345e5759 first commit лет назад: 5 3599 a4345e5759 first commit лет назад: 5 3600 a4345e5759 first commit лет назад: 5 3600_fsm a4345e5759 first commit лет назад: 5 3600_vm a4345e5759 first commit лет назад: 5 3601 a4345e5759 first commit лет назад: 5 3601_fsm a4345e5759 first commit лет назад: 5 3601_vm a4345e5759 first commit лет назад: 5 3602 a4345e5759 first commit лет назад: 5 3602_fsm a4345e5759 first commit лет назад: 5 3602_vm a4345e5759 first commit лет назад: 5 3603 a4345e5759 first commit лет назад: 5 3603_fsm a4345e5759 first commit лет назад: 5 3603_vm a4345e5759 first commit лет назад: 5 3604 a4345e5759 first commit лет назад: 5 3605 a4345e5759 first commit лет назад: 5 3606 a4345e5759 first commit лет назад: 5 3607 a4345e5759 first commit лет назад: 5 3608 a4345e5759 first commit лет назад: 5 3609 a4345e5759 first commit лет назад: 5 3712 a4345e5759 first commit лет назад: 5 3764 a4345e5759 first commit лет назад: 5 3764_fsm a4345e5759 first commit лет назад: 5 3764_vm a4345e5759 first commit лет назад: 5 3766 a4345e5759 first commit лет назад: 5 3767 a4345e5759 first commit лет назад: 5 3997 a4345e5759 first commit лет назад: 5 4143 a4345e5759 first commit лет назад: 5 4144 a4345e5759 first commit лет назад: 5 4145 a4345e5759 first commit лет назад: 5 4146 a4345e5759 first commit лет назад: 5 4147 a4345e5759 first commit лет назад: 5 4148 a4345e5759 first commit лет назад: 5 4149 a4345e5759 first commit лет назад: 5 4150 a4345e5759 first commit лет назад: 5 4151 a4345e5759 first commit лет назад: 5 4152 a4345e5759 first commit лет назад: 5 4153 a4345e5759 first commit лет назад: 5 4154 a4345e5759 first commit лет назад: 5 4155 a4345e5759 first commit лет назад: 5 4156 a4345e5759 first commit лет назад: 5 4157 a4345e5759 first commit лет назад: 5 4158 a4345e5759 first commit лет назад: 5 4159 a4345e5759 first commit лет назад: 5 4160 a4345e5759 first commit лет назад: 5 4161 a4345e5759 first commit лет назад: 5 4162 a4345e5759 first commit лет назад: 5 4163 a4345e5759 first commit лет назад: 5 4164 a4345e5759 first commit лет назад: 5 4165 a4345e5759 first commit лет назад: 5 4166 a4345e5759 first commit лет назад: 5 4167 a4345e5759 first commit лет назад: 5 4168 a4345e5759 first commit лет назад: 5 4169 a4345e5759 first commit лет назад: 5 4170 a4345e5759 first commit лет назад: 5 4171 a4345e5759 first commit лет назад: 5 4172 a4345e5759 first commit лет назад: 5 4173 a4345e5759 first commit лет назад: 5 4174 a4345e5759 first commit лет назад: 5 5002 a4345e5759 first commit лет назад: 5 548 a4345e5759 first commit лет назад: 5 549 a4345e5759 first commit лет назад: 5 6102 a4345e5759 first commit лет назад: 5 6104 a4345e5759 first commit лет назад: 5 6106 a4345e5759 first commit лет назад: 5 6110 a4345e5759 first commit лет назад: 5 6111 a4345e5759 first commit лет назад: 5 6112 a4345e5759 first commit лет назад: 5 6113 a4345e5759 first commit лет назад: 5 6117 a4345e5759 first commit лет назад: 5 826 a4345e5759 first commit лет назад: 5 827 a4345e5759 first commit лет назад: 5 828 a4345e5759 first commit лет назад: 5 PG_VERSION a4345e5759 first commit лет назад: 5 pg_filenode.map a4345e5759 first commit лет назад: 5 tum/whitesports - Gogs: Simplico Git Service

Нет описания

class-acf-field-password.php 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?php
  2. if ( ! class_exists( 'acf_field_password' ) ) :
  3. class acf_field_password extends acf_field {
  4. /*
  5. * initialize
  6. *
  7. * This function will setup the field type data
  8. *
  9. * @type function
  10. * @date 5/03/2014
  11. * @since 5.0.0
  12. *
  13. * @param n/a
  14. * @return n/a
  15. */
  16. function initialize() {
  17. // vars
  18. $this->name = 'password';
  19. $this->label = __( 'Password', 'acf' );
  20. $this->defaults = array(
  21. 'placeholder' => '',
  22. 'prepend' => '',
  23. 'append' => '',
  24. );
  25. }
  26. /*
  27. * render_field()
  28. *
  29. * Create the HTML interface for your field
  30. *
  31. * @param $field - an array holding all the field's data
  32. *
  33. * @type action
  34. * @since 3.6
  35. * @date 23/01/13
  36. */
  37. function render_field( $field ) {
  38. acf_get_field_type( 'text' )->render_field( $field );
  39. }
  40. /*
  41. * render_field_settings()
  42. *
  43. * Create extra options for your field. This is rendered when editing a field.
  44. * The value of $field['name'] can be used (like bellow) to save extra data to the $field
  45. *
  46. * @type action
  47. * @since 3.6
  48. * @date 23/01/13
  49. *
  50. * @param $field - an array holding all the field's data
  51. */
  52. function render_field_settings( $field ) {
  53. // placeholder
  54. acf_render_field_setting(
  55. $field,
  56. array(
  57. 'label' => __( 'Placeholder Text', 'acf' ),
  58. 'instructions' => __( 'Appears within the input', 'acf' ),
  59. 'type' => 'text',
  60. 'name' => 'placeholder',
  61. )
  62. );
  63. // prepend
  64. acf_render_field_setting(
  65. $field,
  66. array(
  67. 'label' => __( 'Prepend', 'acf' ),
  68. 'instructions' => __( 'Appears before the input', 'acf' ),
  69. 'type' => 'text',
  70. 'name' => 'prepend',
  71. )
  72. );
  73. // append
  74. acf_render_field_setting(
  75. $field,
  76. array(
  77. 'label' => __( 'Append', 'acf' ),
  78. 'instructions' => __( 'Appears after the input', 'acf' ),
  79. 'type' => 'text',
  80. 'name' => 'append',
  81. )
  82. );
  83. }
  84. }
  85. // initialize
  86. acf_register_field_type( 'acf_field_password' );
  87. endif; // class_exists check