| 1 |
<?php |
| 2 |
|
| 3 |
use ABlocks\Controls\Typography; |
| 4 |
use ABlocks\Controls\Background; |
| 5 |
use ABlocks\Controls\Border; |
| 6 |
use ABlocks\Controls\Dimensions; |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
exit; |
| 10 |
} |
| 11 |
|
| 12 |
$attributes = [ |
| 13 |
'block_id' => array( |
| 14 |
'type' => 'string', |
| 15 |
'default' => '', |
| 16 |
), |
| 17 |
'form_title' => array( |
| 18 |
'type' => 'string', |
| 19 |
'default' => 'Log In into your Account', |
| 20 |
), |
| 21 |
'username_label' => array( |
| 22 |
'type' => 'string', |
| 23 |
'default' => 'Username or Email Address', |
| 24 |
), |
| 25 |
'username_placeholder' => array( |
| 26 |
'type' => 'string', |
| 27 |
'default' => 'Username or Email Address', |
| 28 |
), |
| 29 |
'password_label' => array( |
| 30 |
'type' => 'string', |
| 31 |
'default' => 'Password', |
| 32 |
), |
| 33 |
'password_placeholder' => array( |
| 34 |
'type' => 'string', |
| 35 |
'default' => 'Password', |
| 36 |
), |
| 37 |
'remember_label' => array( |
| 38 |
'type' => 'string', |
| 39 |
'default' => 'Remember me', |
| 40 |
), |
| 41 |
'login_button_label' => array( |
| 42 |
'type' => 'string', |
| 43 |
'default' => 'Log in', |
| 44 |
), |
| 45 |
'reset_password_label' => array( |
| 46 |
'type' => 'string', |
| 47 |
'default' => 'Reset password', |
| 48 |
), |
| 49 |
'show_logged_in_message' => array( |
| 50 |
'type' => 'boolean', |
| 51 |
'default' => true, |
| 52 |
), |
| 53 |
'customer_register_url' => array( |
| 54 |
'type' => 'string', |
| 55 |
'default' => '', |
| 56 |
), |
| 57 |
'login_redirect_url' => array( |
| 58 |
'type' => 'string', |
| 59 |
'default' => '', |
| 60 |
), |
| 61 |
'logout_redirect_url' => array( |
| 62 |
'type' => 'string', |
| 63 |
'default' => '', |
| 64 |
), |
| 65 |
'login_btn_color' => array( |
| 66 |
'type' => 'string', |
| 67 |
'default' => '#fff', |
| 68 |
), |
| 69 |
'login_btn_bg_color' => array( |
| 70 |
'type' => 'string', |
| 71 |
'default' => '#7B68EE', |
| 72 |
), |
| 73 |
'login_btn_bg_hover_color' => array( |
| 74 |
'type' => 'string', |
| 75 |
'default' => '#6F5DD6', |
| 76 |
), |
| 77 |
'login_btn_hover_color' => array( |
| 78 |
'type' => 'string', |
| 79 |
'default' => '#fff', |
| 80 |
), |
| 81 |
'title_color' => array( |
| 82 |
'type' => 'string', |
| 83 |
'default' => '#000', |
| 84 |
), |
| 85 |
'title_hover_color' => array( |
| 86 |
'type' => 'string', |
| 87 |
'default' => '#000', |
| 88 |
), |
| 89 |
'input_field_label_color' => array( |
| 90 |
'type' => 'string', |
| 91 |
'default' => '#333', |
| 92 |
), |
| 93 |
'input_field_label_hover_color' => array( |
| 94 |
'type' => 'string', |
| 95 |
'default' => '#333', |
| 96 |
), |
| 97 |
'form_footer_title_color' => array( |
| 98 |
'type' => 'string', |
| 99 |
'default' => '#000', |
| 100 |
), |
| 101 |
'input_field_bg_color' => array( |
| 102 |
'type' => 'string', |
| 103 |
'default' => '#fff', |
| 104 |
), |
| 105 |
'inputFieldColor' => array( |
| 106 |
'type' => 'string', |
| 107 |
'default' => '#333', |
| 108 |
), |
| 109 |
'input_field_bg_hover_color' => array( |
| 110 |
'type' => 'string', |
| 111 |
'default' => '#fff', |
| 112 |
), |
| 113 |
'inputFieldColorH' => array( |
| 114 |
'type' => 'string', |
| 115 |
'default' => '#333', |
| 116 |
), |
| 117 |
]; |
| 118 |
|
| 119 |
$attributes = array_merge( |
| 120 |
$attributes, |
| 121 |
Typography::get_attribute( 'login_btn_typography', true ), |
| 122 |
Background::get_attribute( 'form_bg_color', true ), |
| 123 |
Typography::get_attribute( 'title_typography', true ), |
| 124 |
Typography::get_attribute( 'input_field_label_typography', true ), |
| 125 |
Typography::get_attribute( 'form_footer_title_typography', true ), |
| 126 |
Border::get_attribute( 'input_field_border', true ), |
| 127 |
Border::get_attribute( 'form_border', true ), |
| 128 |
Dimensions::get_attribute( 'input_field_padding', true ), |
| 129 |
Dimensions::get_attribute( 'form_padding', true ), |
| 130 |
); |
| 131 |
|
| 132 |
return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() ); |
| 133 |
|
| 134 |
|