| @@ -6,8 +6,9 @@ | ||
| 6 | 6 | use ABlocks\Controls\Range; |
| 7 | 7 | use ABlocks\Controls\Border; |
| 8 | 8 | use ABlocks\Controls\Dimensions; |
| 9 | 9 | use ABlocks\Controls\Link; |
| 10 | +use ABlocks\Components\ButtonGroup; | |
| 10 | 11 | |
| 11 | 12 | if ( ! defined( 'ABSPATH' ) ) { |
| 12 | 13 | exit; |
| 13 | 14 | } |
| @@ -16,8 +17,16 @@ | ||
| 16 | 17 | 'block_id' => array( |
| 17 | 18 | 'type' => 'string', |
| 18 | 19 | 'default' => '' |
| 19 | 20 | ), |
| 21 | + 'email_list_id' => array( | |
| 22 | + 'type' => 'string', | |
| 23 | + 'default' => '' | |
| 24 | + ), | |
| 25 | + 'blockVersion' => array( | |
| 26 | + 'type' => 'number', | |
| 27 | + 'default' => '', | |
| 28 | + ), | |
| 20 | 29 | 'variationSelected' => [ |
| 21 | 30 | 'type' => 'boolean', |
| 22 | 31 | 'default' => true, |
| 23 | 32 | ], |
| @@ -24,12 +33,24 @@ | ||
| 24 | 33 | 'postId' => [ |
| 25 | 34 | 'type' => 'number', |
| 26 | 35 | 'default' => '', |
| 27 | 36 | ], |
| 37 | + 'email_template_id' => [ | |
| 38 | + 'type' => 'string', | |
| 39 | + 'default' => '', | |
| 40 | + ], | |
| 28 | 41 | 'showLabels' => [ |
| 29 | 42 | 'type' => 'boolean', |
| 30 | 43 | 'default' => true |
| 31 | 44 | ], |
| 45 | + 'subscriberToUser' => [ | |
| 46 | + 'type' => 'boolean', | |
| 47 | + 'default' => false | |
| 48 | + ], | |
| 49 | + 'adminNotify' => [ | |
| 50 | + 'type' => 'boolean', | |
| 51 | + 'default' => true | |
| 52 | + ], | |
| 32 | 53 | 'loginRedirect' => [ |
| 33 | 54 | 'type' => 'boolean', |
| 34 | 55 | 'default' => false |
| 35 | 56 | ], |
| @@ -107,9 +128,9 @@ | ||
| 107 | 128 | ], |
| 108 | 129 | // email One settings |
| 109 | 130 | 'emailOneTo' => [ |
| 110 | 131 | 'type' => 'string', |
| 111 | - 'default' => '[email protected]' | |
| 132 | + 'default' => '' | |
| 112 | 133 | ], |
| 113 | 134 | 'emailOneSubject' => [ |
| 114 | 135 | 'type' => 'string', |
| 115 | 136 | 'default' => 'New message' |
| @@ -119,9 +140,9 @@ | ||
| 119 | 140 | 'default' => '{all-fields}' |
| 120 | 141 | ], |
| 121 | 142 | 'emailOneFormEmail' => [ |
| 122 | 143 | 'type' => 'string', |
| 123 | - 'default' => '[email protected]' | |
| 144 | + 'default' => '' | |
| 124 | 145 | ], |
| 125 | 146 | 'emailOneFormName' => [ |
| 126 | 147 | 'type' => 'string', |
| 127 | 148 | 'default' => 'Local Name' |
| @@ -127,9 +148,9 @@ | ||
| 127 | 148 | 'default' => 'Local Name' |
| 128 | 149 | ], |
| 129 | 150 | 'emailOneReplyTo' => [ |
| 130 | 151 | 'type' => 'string', |
| 131 | - 'default' => '[email protected]' | |
| 152 | + 'default' => '' | |
| 132 | 153 | ], |
| 133 | 154 | 'emailOneCc' => [ |
| 134 | 155 | 'type' => 'string', |
| 135 | 156 | 'default' => '' |
| @@ -144,9 +165,9 @@ | ||
| 144 | 165 | ], |
| 145 | 166 | // email two settings |
| 146 | 167 | 'emailTwoTo' => [ |
| 147 | 168 | 'type' => 'string', |
| 148 | - 'default' => '[email protected]' | |
| 169 | + 'default' => '' | |
| 149 | 170 | ], |
| 150 | 171 | 'emailTwoSubject' => [ |
| 151 | 172 | 'type' => 'string', |
| 152 | 173 | 'default' => 'New message' |
| @@ -156,9 +177,9 @@ | ||
| 156 | 177 | 'default' => '{all-fields}' |
| 157 | 178 | ], |
| 158 | 179 | 'emailTwoFormEmail' => [ |
| 159 | 180 | 'type' => 'string', |
| 160 | - 'default' => '[email protected]' | |
| 181 | + 'default' => '' | |
| 161 | 182 | ], |
| 162 | 183 | 'emailTwoFormName' => [ |
| 163 | 184 | 'type' => 'string', |
| 164 | 185 | 'default' => 'Local Name' |
| @@ -164,9 +185,9 @@ | ||
| 164 | 185 | 'default' => 'Local Name' |
| 165 | 186 | ], |
| 166 | 187 | 'emailTwoReplyTo' => [ |
| 167 | 188 | 'type' => 'string', |
| 168 | - 'default' => '[email protected]' | |
| 189 | + 'default' => '' | |
| 169 | 190 | ], |
| 170 | 191 | 'emailTwoCc' => [ |
| 171 | 192 | 'type' => 'string', |
| 172 | 193 | 'default' => '' |
| @@ -502,11 +523,30 @@ | ||
| 502 | 523 | ], |
| 503 | 524 | 'roleSlug' => [ |
| 504 | 525 | 'type' => 'string', |
| 505 | 526 | 'default' => '', |
| 506 | - ] | |
| 527 | + ], | |
| 528 | + 'confirmationNotice' => [ | |
| 529 | + 'type' => 'string', | |
| 530 | + 'default' => 'Form successfully submitted!' | |
| 531 | + | |
| 532 | + ], | |
| 533 | + 'afterFormSubmission' => [ | |
| 534 | + 'type' => 'string', | |
| 535 | + 'default' => 'reset' | |
| 536 | + | |
| 537 | + ], | |
| 538 | + 'customUrl' => [ | |
| 539 | + 'type' => 'string', | |
| 540 | + 'default' => '' | |
| 541 | + | |
| 542 | + ], | |
| 543 | + 'confirmationType' => [ | |
| 544 | + 'type' => 'string', | |
| 545 | + 'default' => 'success' | |
| 546 | + | |
| 547 | + ], | |
| 507 | 548 | ]; |
| 508 | - | |
| 509 | 549 | $attributes = array_merge( |
| 510 | 550 | $attributes, |
| 511 | 551 | Alignment::get_attribute( 'labelAlignment', true, [ 'value' => 'left' ] ), |
| 512 | 552 | Alignment::get_attribute( 'inputAlignment', true, [ 'value' => 'left' ] ), |
| @@ -511,9 +551,9 @@ | ||
| 511 | 551 | Alignment::get_attribute( 'labelAlignment', true, [ 'value' => 'left' ] ), |
| 512 | 552 | Alignment::get_attribute( 'inputAlignment', true, [ 'value' => 'left' ] ), |
| 513 | 553 | Alignment::get_attribute( 'buttonTextAlignment', true, [ 'value' => 'center' ] ), |
| 514 | 554 | Alignment::get_attribute( 'navigatorAlignment', true, [ 'value' => 'left' ] ), |
| 515 | - Alignment::get_attribute( 'buttonAlignment', true, [ 'value' => 'flex-end' ] ), | |
| 555 | + Alignment::get_attribute( 'buttonAlignment', true, [ 'value' => 'center' ] ), | |
| 516 | 556 | Alignment::get_attribute( 'successErrorAlignment', true, [ 'value' => 'center' ] ), |
| 517 | 557 | Range::get_attribute( [ |
| 518 | 558 | 'attributeName' => 'rowsSpacing', |
| 519 | 559 | 'attributeObjectKey' => 'value', |
| @@ -543,9 +583,9 @@ | ||
| 543 | 583 | Range::get_attribute( [ |
| 544 | 584 | 'attributeName' => 'inputIconPosition', |
| 545 | 585 | 'attributeObjectKey' => 'value', |
| 546 | 586 | 'isResponsive' => false, |
| 547 | - 'defaultValue' => 60, | |
| 587 | + 'defaultValue' => 75, | |
| 548 | 588 | ] ), |
| 549 | 589 | Range::get_attribute( [ |
| 550 | 590 | 'attributeName' => 'navigatorSpacing', |
| 551 | 591 | 'attributeObjectKey' => 'value', |
| @@ -565,8 +605,11 @@ | ||
| 565 | 605 | Dimensions::get_attribute( 'inputPadding', true ), |
| 566 | 606 | Dimensions::get_attribute( 'navigatorPadding', true ), |
| 567 | 607 | Dimensions::get_attribute( 'successErrorPadding', true ), |
| 568 | 608 | Dimensions::get_attribute( 'buttonPadding', true ), |
| 609 | + ButtonGroup::get_attribute( 'dir', true, [ | |
| 610 | + 'value' => 'column', | |
| 611 | + ] ), | |
| 569 | 612 | ); |
| 570 | 613 | |
| 571 | 614 | return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() ); |
| 572 | 615 | |