wp-user-avatar
/
src
/
Admin
/
SettingsPages
/
DragDropBuilder
/
Fields
/
EditProfile
/
ShowCoverImage.php
wp-user-avatar
/
src
/
Admin
/
SettingsPages
/
DragDropBuilder
/
Fields
/
EditProfile
Last commit date
ShowCoverImage.php
4 years ago
ShowProfilePicture.php
5 years ago
ShowCoverImage.php
43 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 ShowCoverImage extends FieldBase |
| 9 | { |
| 10 | public function field_type() |
| 11 | { |
| 12 | return 'pp-user-cover-image'; |
| 13 | } |
| 14 | |
| 15 | public static function field_icon() |
| 16 | { |
| 17 | return '<span class="dashicons dashicons-cover-image"></span>'; |
| 18 | } |
| 19 | |
| 20 | public function field_title() |
| 21 | { |
| 22 | return esc_html__('Show Cover Photo', 'wp-user-avatar'); |
| 23 | } |
| 24 | |
| 25 | public function field_settings() |
| 26 | { |
| 27 | return [ |
| 28 | parent::GENERAL_TAB => [ |
| 29 | 'alt' => [ |
| 30 | 'label' => esc_html__('Alt Text', 'wp-user-avatar'), |
| 31 | 'field' => self::INPUT_FIELD |
| 32 | ] |
| 33 | ], |
| 34 | parent::STYLE_TAB => [ |
| 35 | 'class' => [ |
| 36 | 'label' => esc_html__('CSS Classes', 'wp-user-avatar'), |
| 37 | 'field' => self::INPUT_FIELD, |
| 38 | 'description' => esc_html__('Enter the CSS class names you would like to add to this field.', 'wp-user-avatar') |
| 39 | ] |
| 40 | ] |
| 41 | ]; |
| 42 | } |
| 43 | } |