PluginProbe
Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress / 4.0.3
Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress v4.0.3
4.17.3 4.17.2 4.17.1 4.17.0 4.16.19 4.16.18 4.16.17 4.16.16 trunk 1.0 1.0.1 1.0.2 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.5a 1.1.6 1.1.7 1.2 1.2.1 1.2.2 1.2.3 All 220 releases
wp-user-avatar / src / Admin / SettingsPages / DragDropBuilder / Fields / EditProfile / ShowProfilePicture.php
ShowProfilePicture.php
48 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 }