checkout.php
3 years ago
default.php
3 years ago
default.png
3 years ago
donation.php
3 years ago
donation.png
3 years ago
full-page.php
3 years ago
full-page.png
3 years ago
invoice.php
3 years ago
invoice.png
3 years ago
sections.php
3 years ago
sections.png
3 years ago
simple.php
3 years ago
simple.png
3 years ago
two-column.php
3 years ago
two-column.png
3 years ago
two-column.php
94 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Donation form block pattern |
| 4 | */ |
| 5 | return [ |
| 6 | 'title' => __( 'Two Column', 'surecart' ), |
| 7 | 'categories' => [ 'surecart_form' ], |
| 8 | 'blockTypes' => [], |
| 9 | 'content' => '<!-- wp:surecart/columns {"backgroundColor":"background"} --> |
| 10 | <sc-columns class="wp-block-surecart-columns has-background-background-color has-background"><!-- wp:surecart/column {"verticalAlignment":"top","sticky":true,"stickyOffset":"50px"} --> |
| 11 | <sc-column class="wp-block-surecart-column is-vertically-aligned-top is-sticky" style="top:50px" stickyoffset="50px"><!-- wp:surecart/heading {"title":"Order Summary"} --> |
| 12 | <sc-heading>Order Summary<span slot="description"></span><span slot="end"></span></sc-heading> |
| 13 | <!-- /wp:surecart/heading --> |
| 14 | |
| 15 | <!-- wp:surecart/totals --> |
| 16 | <sc-order-summary class="wp-block-surecart-totals"><!-- wp:surecart/divider --> |
| 17 | <sc-divider></sc-divider> |
| 18 | <!-- /wp:surecart/divider --> |
| 19 | |
| 20 | <!-- wp:surecart/line-items --> |
| 21 | <sc-line-items removable="1" editable="1" class="wp-block-surecart-line-items"></sc-line-items> |
| 22 | <!-- /wp:surecart/line-items --> |
| 23 | |
| 24 | <!-- wp:surecart/divider --> |
| 25 | <sc-divider></sc-divider> |
| 26 | <!-- /wp:surecart/divider --> |
| 27 | |
| 28 | <!-- wp:surecart/subtotal --> |
| 29 | <sc-line-item-total total="subtotal" class="wp-block-surecart-subtotal"><span slot="description">Subtotal</span></sc-line-item-total> |
| 30 | <!-- /wp:surecart/subtotal --> |
| 31 | |
| 32 | <!-- wp:surecart/coupon {"text":"Add Coupon Code","button_text":"Apply Coupon"} --> |
| 33 | <sc-order-coupon-form label="Add Coupon Code">Apply Coupon</sc-order-coupon-form> |
| 34 | <!-- /wp:surecart/coupon --> |
| 35 | |
| 36 | <!-- wp:surecart/tax-line-item --> |
| 37 | <sc-line-item-tax class="wp-block-surecart-tax-line-item"></sc-line-item-tax> |
| 38 | <!-- /wp:surecart/tax-line-item --> |
| 39 | |
| 40 | <!-- wp:surecart/divider --> |
| 41 | <sc-divider></sc-divider> |
| 42 | <!-- /wp:surecart/divider --> |
| 43 | |
| 44 | <!-- wp:surecart/total --> |
| 45 | <sc-line-item-total total="total" size="large" show-currency="1" class="wp-block-surecart-total"><span slot="title">Total</span><span slot="subscription-title">Total Due Today</span></sc-line-item-total> |
| 46 | <!-- /wp:surecart/total --></sc-order-summary> |
| 47 | <!-- /wp:surecart/totals --></sc-column> |
| 48 | <!-- /wp:surecart/column --> |
| 49 | |
| 50 | <!-- wp:surecart/column {"style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} --> |
| 51 | <sc-column class="wp-block-surecart-column" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"> |
| 52 | |
| 53 | <!-- wp:surecart/price-selector {"label":"Choose A Plan"} --> |
| 54 | <sc-price-choices label="Choose A Plan" type="radio" columns="1"><div><!-- wp:surecart/price-choice --> |
| 55 | <sc-price-choice type="radio" show-label="1" show-price="1" show-control="1"></sc-price-choice> |
| 56 | <!-- /wp:surecart/price-choice --></div></sc-price-choices> |
| 57 | <!-- /wp:surecart/price-selector --> |
| 58 | |
| 59 | <!-- wp:surecart/express-payment --> |
| 60 | <sc-express-payment divider-text="or" class="wp-block-surecart-express-payment"></sc-express-payment> |
| 61 | <!-- /wp:surecart/express-payment --> |
| 62 | |
| 63 | <!-- wp:surecart/heading {"title":"Contact Information"} --> |
| 64 | <sc-heading>Contact Information<span slot="description"></span><span slot="end"></span></sc-heading> |
| 65 | <!-- /wp:surecart/heading --> |
| 66 | |
| 67 | <!-- wp:surecart/email {"label":"Email Address"} --> |
| 68 | <sc-customer-email label="Email Address" autocomplete="email" inputmode="email" required class="wp-block-surecart-email"></sc-customer-email> |
| 69 | <!-- /wp:surecart/email --> |
| 70 | |
| 71 | <!-- wp:surecart/password --> |
| 72 | <sc-order-password label="Password" placeholder="" size="medium" type="password" name="password" value="" class="wp-block-surecart-password"></sc-order-password> |
| 73 | <!-- /wp:surecart/password --> |
| 74 | |
| 75 | <!-- wp:surecart/address --> |
| 76 | <sc-order-shipping-address label="Address"></sc-order-shipping-address> |
| 77 | <!-- /wp:surecart/address --> |
| 78 | |
| 79 | <!-- wp:surecart/payment {"secure_notice":"This is a secure, encrypted payment"} --> |
| 80 | <sc-payment label="Payment" secure-notice="This is a secure, encrypted payment" class="wp-block-surecart-payment"></sc-payment> |
| 81 | <!-- /wp:surecart/payment --> |
| 82 | |
| 83 | <!-- wp:surecart/switch {"required":true,"label":"I agree to the purchase terms.","description":"You can find these on our terms page."} --> |
| 84 | <sc-switch name="switch" required class="wp-block-surecart-switch">I agree to the purchase terms.<span slot="description">You can find these on our terms page.</span></sc-switch> |
| 85 | <!-- /wp:surecart/switch --> |
| 86 | |
| 87 | <!-- wp:surecart/submit {"show_total":true,"full":true} --> |
| 88 | <sc-order-submit type="primary" full="true" size="large" icon="lock" show-total="true" class="wp-block-surecart-submit">Purchase</sc-order-submit> |
| 89 | <!-- /wp:surecart/submit --></sc-column> |
| 90 | <!-- /wp:surecart/column --></sc-columns> |
| 91 | <!-- /wp:surecart/columns --> |
| 92 | ', |
| 93 | ]; |
| 94 |