wp-user-avatar
/
src
/
Admin
/
SettingsPages
/
DragDropBuilder
/
Fields
/
EditProfile
/
ShowProfilePicture.php
wp-user-avatar
/
src
/
Admin
/
SettingsPages
/
DragDropBuilder
/
Fields
/
EditProfile
Last commit date
ShowCoverImage.php
4 years ago
ShowProfilePicture.php
5 years ago
ShowProfilePicture.php
48 lines
| 1 | <?php |
| 2 | |
| 3 | namespace ProfilePress\Core\Admin\SettingsPages\DragDropBuilder\Fields\EditProfile; |
| 4 | |
| 5 | |
| 6 | use ProfilePress\Core\Admin\SettingsPages\DragDropBuilder\FieldBase; |
| 7 | |
| 8 | class ShowProfilePicture extends FieldBase |
| 9 | { |
| 10 | public function field_type() |
| 11 | { |
| 12 | return 'pp-user-avatar'; |
| 13 | } |
| 14 | |
| 15 | public static function field_icon() |
| 16 | { |
| 17 | return '<span class="dashicons dashicons-id"></span>'; |
| 18 | } |
| 19 | |
| 20 | public function field_title() |
| 21 | { |
| 22 | return esc_html__('Show Profile Picture', 'wp-user-avatar'); |
| 23 | } |
| 24 | |
| 25 | public function field_settings() |
| 26 | { |
| 27 | return [ |
| 28 | parent::GENERAL_TAB => [ |
| 29 | 'size' => [ |
| 30 | 'label' => esc_html__('Size', 'wp-user-avatar'), |
| 31 | 'field' => self::INPUT_FIELD, |
| 32 | 'type' => 'number' |
| 33 | ], |
| 34 | 'alt' => [ |
| 35 | 'label' => esc_html__('Alt Text', 'wp-user-avatar'), |
| 36 | 'field' => self::INPUT_FIELD |
| 37 | ] |
| 38 | ], |
| 39 | parent::STYLE_TAB => [ |
| 40 | 'class' => [ |
| 41 | 'label' => esc_html__('CSS Classes', 'wp-user-avatar'), |
| 42 | 'field' => self::INPUT_FIELD, |
| 43 | 'description' => esc_html__('Enter the CSS class names you would like to add to this field.', 'wp-user-avatar') |
| 44 | ] |
| 45 | ] |
| 46 | ]; |
| 47 | } |
| 48 | } |