Tulip.php
50 lines
| 1 | <?php |
| 2 | |
| 3 | namespace ProfilePress\Core\Themes\DragDrop\Registration; |
| 4 | |
| 5 | use ProfilePress\Core\Admin\SettingsPages\DragDropBuilder\DragDropBuilder; |
| 6 | use ProfilePress\Core\Themes\DragDrop\AbstractBuildScratch; |
| 7 | use ProfilePress\Core\Admin\SettingsPages\DragDropBuilder\Fields; |
| 8 | |
| 9 | class Tulip extends AbstractBuildScratch |
| 10 | { |
| 11 | public static function default_field_listing() |
| 12 | { |
| 13 | Fields\Init::init(); |
| 14 | $standard_fields = DragDropBuilder::get_instance()->standard_fields(); |
| 15 | |
| 16 | return [ |
| 17 | array_merge( |
| 18 | $standard_fields['reg-username'], |
| 19 | ['icon' => 'face'] |
| 20 | ), |
| 21 | array_merge( |
| 22 | $standard_fields['reg-email'], |
| 23 | ['icon' => 'email'] |
| 24 | ), |
| 25 | array_merge( |
| 26 | $standard_fields['reg-password'], |
| 27 | ['password_visibility_icon' => true] |
| 28 | ), |
| 29 | array_merge( |
| 30 | $standard_fields['reg-first-name'], |
| 31 | ['icon' => 'perm_identity'] |
| 32 | ), |
| 33 | array_merge( |
| 34 | $standard_fields['reg-last-name'], |
| 35 | ['icon' => 'perm_identity'] |
| 36 | ) |
| 37 | ]; |
| 38 | } |
| 39 | |
| 40 | public function default_metabox_settings() |
| 41 | { |
| 42 | $data = parent::default_metabox_settings(); |
| 43 | $data['buildscratch_field_layout'] = 'pill'; |
| 44 | $data['buildscratch_label_field_size'] = 'medium'; |
| 45 | $data['buildscratch_submit_button_layout'] = 'pill'; |
| 46 | $data['buildscratch_submit_button_width'] = 'full-width'; |
| 47 | |
| 48 | return $data; |
| 49 | } |
| 50 | } |