| 1 |
<?php |
| 2 |
include BETTER_PAYMENT_ADMIN_VIEWS_PATH . "/partials/campaign-vars.php"; |
| 3 |
?> |
| 4 |
<main class="better-payment better-payment-campaign"> |
| 5 |
<div class="better-payment_campaign-layout_3"> |
| 6 |
<section class="bp-donation_hero-section"> |
| 7 |
<div class="bp-container"> |
| 8 |
<div class="bp-hero_wrapper"> |
| 9 |
<div class="bp-row bp-align_items-center"> |
| 10 |
<div class="bp-col bp-col_6 bp-col_100-active_900"> |
| 11 |
<div class="bp-text_wrapper"> |
| 12 |
<?php if( $header_title_enable ): ?> |
| 13 |
<h1 class="bp-ibm_font bp-text_primary margin-bottom_32 bp-hero_header"> |
| 14 |
<?php echo esc_html( $header_title ); ?> |
| 15 |
</h1> |
| 16 |
<?php endif; ?> |
| 17 |
<?php if( $header_short_desc_enable ): ?> |
| 18 |
<p class="bp-ibm_font bp-text_secondary margin-bottom_32 bp-hero_secondary-text"> |
| 19 |
<?php echo esc_html( $header_short_desc ); ?> |
| 20 |
</p> |
| 21 |
<?php endif; ?> |
| 22 |
|
| 23 |
<form class="bp-payment_form"> |
| 24 |
<?php if ( method_exists( $widgetObj, 'render_campaign_hidden_fields' ) ) { |
| 25 |
echo $widgetObj->render_campaign_hidden_fields( $settings ); |
| 26 |
}?> |
| 27 |
<div |
| 28 |
class="bp-flex bp-justify_content-space_between bp-align_items-center margin-bottom_32 input-fild"> |
| 29 |
<input type="number" min="1" name="campaign-custom-amount" placeholder="<?php echo esc_html__( $placeholder_text, 'better-payment' ); ?>" |
| 30 |
class="bp-inter_font bp-payment_form-input other_amount campaign-custom-amount"> |
| 31 |
<span class="bp-ibm_font bp-text_xm layout-3-currency"><?php echo esc_html( $better_payment_campaign_currency ); ?></span> |
| 32 |
</div> |
| 33 |
|
| 34 |
<div class="bp-flex bp-flex_wrap bp-align_items-center bp-payment_item"> |
| 35 |
<!-- Payment Amounts --> |
| 36 |
<?php if( ! empty( $amount_items ) ) : ?> |
| 37 |
<?php foreach( $amount_items as $amount_item ) : ?> |
| 38 |
<?php if( !empty( $amount_item['better_payment_campaign_form_amount_list_val_layout_3'] ) ): ?> |
| 39 |
<input type="radio" id="amount_<?php echo esc_attr( $amount_item['better_payment_campaign_form_amount_list_val_layout_3'] ); ?>" name="option_amount" value="<?php echo esc_attr( $amount_item['better_payment_campaign_form_amount_list_val_layout_3'] ); ?>" class="bp-display_none bp-option-amount" /> |
| 40 |
<label for="amount_<?php echo esc_attr( $amount_item['better_payment_campaign_form_amount_list_val_layout_3'] ); ?>" class="bp-inter_font bp-text_xm bp-payment_item_bg"> |
| 41 |
<?php echo esc_html( $better_payment_campaign_currency_symbol ); ?><?php echo esc_html( $amount_item['better_payment_campaign_form_amount_list_val_layout_3'] ); ?> |
| 42 |
</label> |
| 43 |
<?php endif; ?> |
| 44 |
<?php endforeach; ?> |
| 45 |
<?php endif; ?> |
| 46 |
</div> |
| 47 |
|
| 48 |
<div class="bp-flex"> |
| 49 |
<a <?php echo $this->print_render_attribute_string( 'better_payment_campaign_form_button_link' ); ?> class="btn-3 bp-inter_font bp-donation_btn bp-flex bp-align_items-center bp-donate_btn"> |
| 50 |
<span><?php esc_html_e( $button_text, 'better-payment' ); ?></span> |
| 51 |
<span> |
| 52 |
<svg width="16" height="12" viewBox="0 0 16 12" fill="none" |
| 53 |
xmlns="http://www.w3.org/2000/svg"> |
| 54 |
<path |
| 55 |
d="M1.33203 6H14.6654M14.6654 6L9.66536 1M14.6654 6L9.66536 11" |
| 56 |
stroke="white" stroke-width="1.41667" stroke-linecap="round" |
| 57 |
stroke-linejoin="round" /> |
| 58 |
</svg> |
| 59 |
</span> |
| 60 |
</a> |
| 61 |
</div> |
| 62 |
</form> |
| 63 |
</div> |
| 64 |
</div> |
| 65 |
<?php if( $header_image_one_enable ): ?> |
| 66 |
<div class="bp-col bp-col_6 bp-col_100-active_900"> |
| 67 |
<div class="bp-img_wrapper"> |
| 68 |
<img src="<?php echo esc_url( $header_image_one_url ); ?>" alt="Hero image" /> |
| 69 |
</div> |
| 70 |
</div> |
| 71 |
<?php endif; ?> |
| 72 |
</div> |
| 73 |
</div> |
| 74 |
</div> |
| 75 |
</section> |
| 76 |
|
| 77 |
<section class="bp-help_section"> |
| 78 |
<div class="bp-container"> |
| 79 |
<div class="bp-row bp-flex_direction-reverse_active-700"> |
| 80 |
<div class="bp-col bp-col_8 bp-col_100-active_700"> |
| 81 |
<?php if( $layout_overview_enable ): ?> |
| 82 |
<div class="bp-help_wrapper"> |
| 83 |
<h2 class="bp-ibm_font bp-text_xxl margin-bottom_32 bp-help_section-header"> |
| 84 |
<?php echo esc_html( $overview_title ); ?> |
| 85 |
</h2> |
| 86 |
<?php if( $overview_desc_one_enable ): ?> |
| 87 |
<p class="bp-ibm_font bp-text_secondary margin-bottom_32"> |
| 88 |
<?php echo wp_kses_post( $overview_desc_one ); ?> |
| 89 |
</p> |
| 90 |
<?php endif; ?> |
| 91 |
<?php if( $overview_images_enable ): ?> |
| 92 |
<div class="bp-img_gallery"> |
| 93 |
<div class="bp-img_wrapper bp-line_height-0"> |
| 94 |
<img src="<?php echo esc_url( $overview_image_one_url ); ?>" alt="img-1"> |
| 95 |
</div> |
| 96 |
<div class="bp-img_wrapper bp-line_height-0"> |
| 97 |
<img src="<?php echo esc_url( $overview_image_two_url ); ?>" alt="img-2"> |
| 98 |
</div> |
| 99 |
<div class="bp-img_wrapper bp-line_height-0"> |
| 100 |
<img src="<?php echo esc_url( $overview_image_three_url ); ?>" alt="img-3"> |
| 101 |
</div> |
| 102 |
</div> |
| 103 |
<?php endif; ?> |
| 104 |
<?php if( $overview_desc_two_enable ): ?> |
| 105 |
<p class="bp-ibm_font bp-text_secondary margin-bottom_32"> |
| 106 |
<?php echo esc_html( $overview_desc_two ); ?> |
| 107 |
</p> |
| 108 |
<?php endif; ?> |
| 109 |
</div> |
| 110 |
<?php endif; ?> |
| 111 |
<?php |
| 112 |
do_action('better_payment/widget/fundraising-campaign/comment_tab_content', $settings); |
| 113 |
?> |
| 114 |
<?php if( $is_edit_mode && ! $this->pro_enabled ): ?> |
| 115 |
<div class="bp-tab_pane" id="comment"> |
| 116 |
<a href="https://betterpayment.io/pricing" target="_blank" class="bp-upgrade_pro"> |
| 117 |
<img class="bp-pro-banner" src="<?php echo esc_url( BETTER_PAYMENT_ASSETS . '/img/campaign/layout-1/comingsoon.webp' ); ?>" alt="coming-soon"> |
| 118 |
</a> |
| 119 |
</div> |
| 120 |
<?php endif; ?> |
| 121 |
</div> |
| 122 |
<?php |
| 123 |
do_action('better_payment/widget/fundraising-campaign/update_tab_content', $settings); |
| 124 |
?> |
| 125 |
<?php if( $is_edit_mode && ! $this->pro_enabled ): ?> |
| 126 |
<div class="bp-col bp-col_4 bp-col_100-active_700"> |
| 127 |
<a href="https://betterpayment.io/pricing" target="_blank" class="bp-upgrade_pro"> |
| 128 |
<img class="bp-pro-banner" src="<?php echo esc_url( BETTER_PAYMENT_ASSETS . '/img/campaign/layout-3/update-pro.webp' ); ?>" alt="upgrade-to-pro"> |
| 129 |
</a> |
| 130 |
</div> |
| 131 |
<?php endif; ?> |
| 132 |
</div> |
| 133 |
</div> |
| 134 |
|
| 135 |
</section> |
| 136 |
</div> |
| 137 |
</main> |
| 138 |
|