DefinedFieldTypes
1 month ago
EditProfile
4 years ago
Login
5 years ago
PasswordReset
5 years ago
UserProfile
5 years ago
Bio.php
5 years ago
CFPassword.php
5 years ago
CheckboxList.php
5 years ago
ConfirmEmail.php
5 years ago
ConfirmPassword.php
2 years ago
Country.php
5 years ago
CoverImage.php
4 years ago
Date.php
5 years ago
DisplayName.php
5 years ago
Email.php
5 years ago
FirstName.php
5 years ago
HTML.php
5 years ago
Init.php
5 years ago
LastName.php
5 years ago
Nickname.php
5 years ago
Number.php
5 years ago
Password.php
5 years ago
PasswordStrengthMeter.php
5 years ago
ProfilePicture.php
5 years ago
RadioButtons.php
5 years ago
SelectDropdown.php
5 years ago
SelectRole.php
2 months ago
SingleCheckbox.php
5 years ago
TextBox.php
1 month ago
Textarea.php
5 years ago
Username.php
5 years ago
Website.php
5 years ago
HTML.php
41 lines
| 1 | <?php |
| 2 | |
| 3 | namespace ProfilePress\Core\Admin\SettingsPages\DragDropBuilder\Fields; |
| 4 | |
| 5 | |
| 6 | use ProfilePress\Core\Admin\SettingsPages\DragDropBuilder\FieldBase; |
| 7 | |
| 8 | class HTML extends FieldBase |
| 9 | { |
| 10 | public function field_type() |
| 11 | { |
| 12 | return 'pp-custom-html'; |
| 13 | } |
| 14 | |
| 15 | public static function field_icon() |
| 16 | { |
| 17 | return '<span class="dashicons dashicons-editor-code"></span>'; |
| 18 | } |
| 19 | |
| 20 | public function field_title() |
| 21 | { |
| 22 | return esc_html__('Custom HTML', 'wp-user-avatar'); |
| 23 | } |
| 24 | |
| 25 | public function field_bar_title() |
| 26 | { |
| 27 | return esc_html__('Custom HTML', 'wp-user-avatar'); |
| 28 | } |
| 29 | |
| 30 | public function field_settings() |
| 31 | { |
| 32 | return apply_filters('ppress_form_builder_email_field_settings', [ |
| 33 | parent::GENERAL_TAB => [ |
| 34 | 'custom_html' => [ |
| 35 | 'label' => esc_html__('Content', 'wp-user-avatar'), |
| 36 | 'field' => self::WPEDITOR_FIELD, |
| 37 | ] |
| 38 | ] |
| 39 | ], $this); |
| 40 | } |
| 41 | } |