Userlogin.php
49 lines
| 1 | <?php |
| 2 | |
| 3 | namespace ProfilePress\Core\Admin\SettingsPages\DragDropBuilder\Fields\Login; |
| 4 | |
| 5 | |
| 6 | use ProfilePress\Core\Admin\SettingsPages\DragDropBuilder\FieldBase; |
| 7 | |
| 8 | class Userlogin extends FieldBase |
| 9 | { |
| 10 | public function field_type() |
| 11 | { |
| 12 | return 'login-username'; |
| 13 | } |
| 14 | |
| 15 | public static function field_icon() |
| 16 | { |
| 17 | return '<span class="dashicons dashicons-admin-users"></span>'; |
| 18 | } |
| 19 | |
| 20 | public function field_bar_title() |
| 21 | { |
| 22 | return esc_html__('Username or Email', 'wp-user-avatar'); |
| 23 | } |
| 24 | |
| 25 | public function field_title() |
| 26 | { |
| 27 | return esc_html__('User Login', 'wp-user-avatar'); |
| 28 | } |
| 29 | |
| 30 | public function field_settings() |
| 31 | { |
| 32 | return apply_filters('ppress_form_builder_login_username_field_settings', [ |
| 33 | parent::GENERAL_TAB => [ |
| 34 | 'placeholder' => [ |
| 35 | 'label' => esc_html__('Placeholder', 'wp-user-avatar'), |
| 36 | 'field' => self::INPUT_FIELD, |
| 37 | |
| 38 | ] |
| 39 | ], |
| 40 | parent::STYLE_TAB => [ |
| 41 | 'class' => [ |
| 42 | 'label' => esc_html__('CSS Classes', 'wp-user-avatar'), |
| 43 | 'field' => self::INPUT_FIELD, |
| 44 | 'description' => esc_html__('Enter the CSS class names you would like to add to this field.', 'wp-user-avatar') |
| 45 | ] |
| 46 | ] |
| 47 | ], $this); |
| 48 | } |
| 49 | } |