| 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_1"> |
| 6 |
<?php if( $layout_header_enable ): ?> |
| 7 |
<section class="bp-section-header bp-donation_thoughts-section"> |
| 8 |
<div class="bp-hero_container"> |
| 9 |
<div class="bp-row "> |
| 10 |
<div class="bp-col bp-col_2 bp-col_100-active_900"> |
| 11 |
<div class="bp-image_wrapper-left bp-text_align-center bp-left_right-image_style-active_900"> |
| 12 |
<?php if( $header_image_one_enable ): ?> |
| 13 |
<div class="bp-left-img-wrapper"> |
| 14 |
<img src="<?php echo esc_url( $header_image_one_url ); ?>" alt="Group One" /> |
| 15 |
</div> |
| 16 |
<?php endif; ?> |
| 17 |
</div> |
| 18 |
</div> |
| 19 |
<div class="bp-col bp-col_8 bp-col_100-active_900"> |
| 20 |
<div class="bp-text_wrapper"> |
| 21 |
<?php if( $header_title_enable ): ?> |
| 22 |
<h1 class="bp-text_primary bp-sora_font bp-text_align-center"> |
| 23 |
<?php echo esc_html( $header_title ); ?> |
| 24 |
</h1> |
| 25 |
<?php endif; ?> |
| 26 |
<?php if( $header_short_desc_enable ): ?> |
| 27 |
<p class="bp-text_secondary bp-inter_font bp-text_align-center"> |
| 28 |
<?php echo esc_html( $header_short_desc ); ?> |
| 29 |
</p> |
| 30 |
<?php endif; ?> |
| 31 |
</div> |
| 32 |
</div> |
| 33 |
<div class="bp-col bp-col_2 bp-col_100-active_900"> |
| 34 |
<div class="bp-image_wrapper-right bp-text_align-center bp-left_right-image_style-active_900"> |
| 35 |
<?php if( $header_image_two_enable ): ?> |
| 36 |
<div class="bp-right-img-wrapper"> |
| 37 |
<img src="<?php echo esc_url( $header_image_two_url ); ?>" alt="Group Two" /> |
| 38 |
</div> |
| 39 |
<?php endif; ?> |
| 40 |
</div> |
| 41 |
</div> |
| 42 |
</div> |
| 43 |
</div> |
| 44 |
</section> |
| 45 |
<?php endif; ?> |
| 46 |
|
| 47 |
<section class="bp-section-donate bp-charity_raised-section"> |
| 48 |
<div class="bp-container"> |
| 49 |
<div class="bp-charity_raised-card"> |
| 50 |
<div class="bp-row"> |
| 51 |
<div class="bp-col bp-col_5 bp-col_100-active_900"> |
| 52 |
<?php if( ! empty( $form_image ) ): ?> |
| 53 |
<div class="bp-line_height-0 bp-charity_raised-img-wrapper"> |
| 54 |
<img src="<?php echo esc_url( $form_image ); ?>" alt="Payment form" /> |
| 55 |
</div> |
| 56 |
<?php endif; ?> |
| 57 |
</div> |
| 58 |
<div class="bp-col bp-col_7 bp-col_100-active_900"> |
| 59 |
<div class="bp-form_wrapper bp-justify_content-center"> |
| 60 |
<?php if( ! empty( $form_title_text ) ): ?> |
| 61 |
<h2 class="bp-form_header bp-text_xxl bp-text_align-left bp-sora_font"> |
| 62 |
<?php echo esc_html( $form_title_text ); ?> |
| 63 |
</h2> |
| 64 |
<?php endif; ?> |
| 65 |
|
| 66 |
<form id="myForm"> |
| 67 |
<?php if ( method_exists( $widgetObj, 'render_campaign_hidden_fields' ) ) { |
| 68 |
echo $widgetObj->render_campaign_hidden_fields( $settings ); |
| 69 |
}?> |
| 70 |
|
| 71 |
<div class="bp-flex bp-justify_content-space_between bp-align_items_center bp-form_top"> |
| 72 |
<?php if( ! empty( $form_goal_label ) && ! empty( $form_goal_amount ) ): ?> |
| 73 |
<label for="bpProgressBar" class="bp-flex bp-text_m bp-inter_font"> |
| 74 |
<span class="bp-amount-label"><?php echo esc_html( $form_goal_label ); ?>:</span> <span class="bp-aamount"><?php echo esc_html( $better_payment_campaign_currency_symbol ); ?><?php echo esc_html( $form_goal_amount ); ?></span> |
| 75 |
</label> |
| 76 |
<?php endif; ?> |
| 77 |
<?php if( $form_goal_percentage_enable ): ?> |
| 78 |
<div> |
| 79 |
<output id="bpProgressOutput" class="bp-progress_output bp-text_m bp-inter_font" aria-live="polite"><?php echo esc_html( $bpc_goal_percentage ); ?>%</output> |
| 80 |
</div> |
| 81 |
<?php endif; ?> |
| 82 |
</div> |
| 83 |
|
| 84 |
<?php if( $form_goal_bar_line_enable ): ?> |
| 85 |
<progress id="bpProgressBar" class="bp-progress_bar" value="<?php echo esc_attr( $bpc_goal_percentage ); ?>" |
| 86 |
max="100"><?php echo esc_html( $bpc_goal_percentage ); ?>%</progress> |
| 87 |
<?php endif; ?> |
| 88 |
|
| 89 |
<div class="bp-flex bp-align_items_center bp-donate_amounts" id="bpDonateAmount"> |
| 90 |
<?php if( ! empty( $amount_items ) ) : ?> |
| 91 |
<?php foreach( $amount_items as $amount_item ) : ?> |
| 92 |
<?php if( !empty( $amount_item['better_payment_campaign_form_amount_list_val_layout_1'] ) ): ?> |
| 93 |
<label for="amount_<?php echo esc_attr( $amount_item['better_payment_campaign_form_amount_list_val_layout_1'] ); ?>" class="bp-radio_label bp-inter_font"> |
| 94 |
<input type="radio" id="amount_<?php echo esc_attr( $amount_item['better_payment_campaign_form_amount_list_val_layout_1'] ); ?>" name="option_amount" value="<?php echo esc_attr( $amount_item['better_payment_campaign_form_amount_list_val_layout_1'] ); ?>" data-value="<?php echo esc_attr( $amount_item['better_payment_campaign_form_amount_list_val_layout_1'] ); ?>" class="bp-option-amount"> |
| 95 |
<?php echo esc_html( $better_payment_campaign_currency_symbol ); ?><?php echo esc_html( $amount_item['better_payment_campaign_form_amount_list_val_layout_1'] ); ?> |
| 96 |
</label> |
| 97 |
<?php endif; ?> |
| 98 |
<?php endforeach; ?> |
| 99 |
<?php endif; ?> |
| 100 |
</div> |
| 101 |
|
| 102 |
<input type="number" min="1" name="campaign-custom-amount" class="campaign-custom-amount bp-inter_font" |
| 103 |
placeholder="<?php echo esc_html__( $placeholder_text, 'better-payment' ); ?>"> |
| 104 |
<div class="bp-flex"> |
| 105 |
<a <?php echo $this->print_render_attribute_string( 'better_payment_campaign_form_button_link' ); ?> class="btn-1 bp-donate_btn bp-inter_font"> |
| 106 |
<?php echo esc_html_e( $button_text, 'better-payment' ); ?> |
| 107 |
</a> |
| 108 |
</div> |
| 109 |
</form> |
| 110 |
</div> |
| 111 |
</div> |
| 112 |
</div> |
| 113 |
</div> |
| 114 |
</div> |
| 115 |
</section> |
| 116 |
|
| 117 |
<section class="bp-content_navigation-section"> |
| 118 |
<div class="bp-container"> |
| 119 |
<!-- Tab navigation --> |
| 120 |
<div class="bp-tab_navigation bp-flex"> |
| 121 |
<?php if( $layout_overview_enable ): ?> |
| 122 |
<button class="bp-tab_button bp-text_xl bp-text_align-left bp-hanken_font bp-active" data-tab="overview"> |
| 123 |
<?php echo esc_html( $overview_title ); ?> |
| 124 |
</button> |
| 125 |
<?php endif; ?> |
| 126 |
|
| 127 |
<?php if( ( ! $this->pro_enabled && $is_edit_mode ) ): ?> |
| 128 |
<button class="bp-tab_button bp-text_xl bp-hanken_font" data-tab="comment">Comment</button> |
| 129 |
<button class="bp-tab_button bp-text_xl bp-hanken_font " data-tab="update">Update</button> |
| 130 |
<?php endif; ?> |
| 131 |
<?php |
| 132 |
do_action('better_payment/widget/fundraising-campaign/tab_navigation', $settings); |
| 133 |
?> |
| 134 |
</div> |
| 135 |
|
| 136 |
<!-- Tab content --> |
| 137 |
<div class="bp-tab_content"> |
| 138 |
<?php if( $layout_overview_enable || $team_enable ): ?> |
| 139 |
<div class="bp-tab_pane bp-active " id="overview"> |
| 140 |
<?php if( $layout_overview_enable && ($overview_desc_one_enable || $overview_images_enable || $overview_desc_two_enable || $overview_mission_enable ) ): ?> |
| 141 |
<div class="bp-section-body"> |
| 142 |
<?php if( $overview_desc_one_enable ): ?> |
| 143 |
<p class="bp-text_secondary bp-inter_font bp-overview_text"> |
| 144 |
<?php echo esc_html( $overview_desc_one ); ?> |
| 145 |
</p> |
| 146 |
<?php endif; ?> |
| 147 |
<?php if( $overview_images_enable ): ?> |
| 148 |
<div class="bp-overview_image-wrapper bp-row"> |
| 149 |
<div class="bp-col bp-col_4 bp-line_height-0 bp-col_100-active_700 bp-text_align-center"> |
| 150 |
<img src="<?php echo esc_url( $overview_image_one_url ); ?>" class="bp-overview_img-1 bp-col_50-active_700 "> |
| 151 |
<img src="<?php echo esc_url( $overview_image_two_url ); ?>" class="bp-overview_img-2 bp-col_50-active_700 "> |
| 152 |
</div> |
| 153 |
<div class="bp-col bp-col_8 bp-line_height-0 bp-col_100-active_700"> |
| 154 |
<img src="<?php echo esc_url( $overview_image_three_url ); ?>" class="bp-overview_img-3"> |
| 155 |
</div> |
| 156 |
</div> |
| 157 |
<?php endif; ?> |
| 158 |
<div class="bp-overview_text-wrapper"> |
| 159 |
<?php if( $overview_mission_enable ): ?> |
| 160 |
<div class="our-mission-section"> |
| 161 |
<h3 class="bp-text_l bp-hanken_font"> |
| 162 |
<?php echo esc_html( $overview_mission_title ); ?> |
| 163 |
</h3> |
| 164 |
<?php if( ! empty( $overview_missions ) ): ?> |
| 165 |
<ul class="bp-overview_list"> |
| 166 |
<?php foreach( $overview_missions as $overview_mission ): ?> |
| 167 |
<li class="bp-flex bp-align_items-center bp-overview_list-item bp-text_l"> |
| 168 |
<span> |
| 169 |
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" |
| 170 |
xmlns="http://www.w3.org/2000/svg"> |
| 171 |
<path d="M20.668 2.45352C22.679 3.61466 24.3519 5.28088 25.5211 7.28725C26.6902 9.29362 27.3151 11.5705 27.3339 13.8926C27.3526 16.2147 26.7646 18.5015 25.628 20.5264C24.4914 22.5514 22.8456 24.2445 20.8536 25.4379C18.8616 26.6314 16.5925 27.2839 14.2708 27.3309C11.9491 27.3779 9.65537 26.8177 7.61671 25.7058C5.57805 24.5939 3.86513 22.9689 2.64752 20.9915C1.42992 19.0142 0.749848 16.7531 0.674636 14.4322L0.667969 14.0002L0.674636 13.5682C0.749306 11.2655 1.41937 9.02146 2.61949 7.05484C3.81961 5.08822 5.50884 3.46612 7.52249 2.34669C9.53614 1.22727 11.8055 0.648711 14.1093 0.667433C16.4131 0.686154 18.6728 1.30151 20.668 2.45352ZM18.944 10.3909C18.7144 10.1613 18.4089 10.0234 18.0849 10.003C17.7608 9.98262 17.4405 10.0812 17.184 10.2802L17.0586 10.3909L12.668 14.7802L10.944 13.0575L10.8186 12.9468C10.5621 12.748 10.2418 12.6495 9.91784 12.67C9.59389 12.6904 9.28851 12.8283 9.05898 13.0579C8.82946 13.2874 8.69154 13.5928 8.67111 13.9167C8.65067 14.2407 8.74911 14.561 8.94797 14.8175L9.05863 14.9428L11.7253 17.6095L11.8506 17.7202C12.0845 17.9016 12.372 18.0001 12.668 18.0001C12.9639 18.0001 13.2515 17.9016 13.4853 17.7202L13.6106 17.6095L18.944 12.2762L19.0546 12.1508C19.2536 11.8943 19.3522 11.574 19.3318 11.2499C19.3114 10.9259 19.1735 10.6204 18.944 10.3909Z" fill="#B872FF" /> |
| 172 |
</svg> |
| 173 |
</span> |
| 174 |
<p class="bp-inter_font"> |
| 175 |
<?php echo esc_html( $overview_mission['better_payment_campaign_overview_our_mission_item'] ); ?> |
| 176 |
</p> |
| 177 |
</li> |
| 178 |
<?php endforeach; ?> |
| 179 |
</ul> |
| 180 |
<?php endif; ?> |
| 181 |
</div> |
| 182 |
<?php endif; ?> |
| 183 |
<?php if( $overview_desc_two_enable ): ?> |
| 184 |
<p class="bp-text_secondary bp-inter_font bp-overview_text"> |
| 185 |
<?php echo esc_html( $overview_desc_two ); ?> |
| 186 |
</p> |
| 187 |
<?php endif; ?> |
| 188 |
</div> |
| 189 |
</div> |
| 190 |
<?php endif; ?> |
| 191 |
|
| 192 |
<?php if( $team_enable ): ?> |
| 193 |
<div class="bp-section-footer bp-overview_team-wrapper"> |
| 194 |
<?php if( ! empty( $team_title ) ): ?> |
| 195 |
<h3 class="bp-text_xxl bp-sora_font bp-tram_section-header"> |
| 196 |
<?php echo esc_html( $team_title ); ?> |
| 197 |
</h3> |
| 198 |
<?php endif; ?> |
| 199 |
<?php if( ! empty( $team_members ) ): ?> |
| 200 |
<div class="bp-row bp-justify_content-center_active-700"> |
| 201 |
<?php $bp_i = 0; foreach( $team_members as $team_member ): ?> |
| 202 |
<?php if( ! empty( $team_member['better_payment_campaign_team_member_image']['url'] ) || ! empty( $team_member['better_payment_campaign_team_member_name'] ) ): ?> |
| 203 |
<div class="bp-col_3 bp-col bp-col_50-active_700"> |
| 204 |
<div class="bp-team_wrapper"> |
| 205 |
<?php if( ! empty( $team_member['better_payment_campaign_team_member_image']['url'] ) ): ?> |
| 206 |
<div class="img-box"> |
| 207 |
<img src="<?php echo esc_url( $team_member['better_payment_campaign_team_member_image']['url'] ); ?>" alt="Team member" /> |
| 208 |
</div> |
| 209 |
<?php endif; ?> |
| 210 |
<?php if( ! empty( $team_member['better_payment_campaign_team_member_name'] ) ): ?> |
| 211 |
<h4 class=" bp-inter_font member-name"> |
| 212 |
<?php echo esc_html( $team_member['better_payment_campaign_team_member_name'] ); ?> |
| 213 |
</h4> |
| 214 |
<?php endif; ?> |
| 215 |
<?php if( ! empty( $team_member['better_payment_campaign_team_member_designation'] ) ): ?> |
| 216 |
<p class="bp-inter_font member-designation"> |
| 217 |
<?php echo esc_html( $team_member['better_payment_campaign_team_member_designation'] ); ?> |
| 218 |
</p> |
| 219 |
<?php endif; ?> |
| 220 |
<?php if( ! empty( $team_member['better_payment_campaign_team_member_social_links_enable'] ) && 'yes' === $team_member['better_payment_campaign_team_member_social_links_enable'] && count( $social_links ) > 0 ): ?> |
| 221 |
<div class="bp-flex bp-team-social_links-wrapper"> |
| 222 |
<?php foreach( $social_links as $link => $icon ): ?> |
| 223 |
<?php if( ! empty( $team_member[$link]['url'] ) ): |
| 224 |
$this->add_link_attributes( $link . '_' . $bp_i, $team_member[$link] ); |
| 225 |
?> |
| 226 |
|
| 227 |
<a <?php echo $this->print_render_attribute_string( $link . '_' . $bp_i ); ?>> |
| 228 |
<?php |
| 229 |
if( ! empty( $team_member[$icon] ) ) { |
| 230 |
\Elementor\Icons_Manager::render_icon( $team_member[$icon], [ 'aria-hidden' => 'true' ] ); |
| 231 |
} |
| 232 |
?> |
| 233 |
</a> |
| 234 |
<?php endif; ?> |
| 235 |
<?php endforeach; ?> |
| 236 |
</div> |
| 237 |
<?php endif; ?> |
| 238 |
</div> |
| 239 |
</div> |
| 240 |
<?php endif; ?> |
| 241 |
<?php $bp_i++; ?> |
| 242 |
<?php endforeach; ?> |
| 243 |
</div> |
| 244 |
<?php endif; ?> |
| 245 |
</div> |
| 246 |
<?php endif; ?> |
| 247 |
</div> |
| 248 |
<?php endif; ?> |
| 249 |
<?php |
| 250 |
do_action('better_payment/widget/fundraising-campaign/comment_tab_content', $settings); |
| 251 |
?> |
| 252 |
<?php if( $is_edit_mode && ! $this->pro_enabled ): ?> |
| 253 |
<div class="bp-tab_pane" id="comment"> |
| 254 |
<a href="https://betterpayment.io/pricing" target="_blank" class="bp-upgrade_pro"> |
| 255 |
<img class="bp-pro-banner" src="<?php echo esc_url( BETTER_PAYMENT_ASSETS . '/img/campaign/layout-1/comingsoon.webp' ); ?>" alt="coming-soon"> |
| 256 |
</a> |
| 257 |
</div> |
| 258 |
<?php endif; ?> |
| 259 |
<?php |
| 260 |
do_action('better_payment/widget/fundraising-campaign/update_tab_content', $settings); |
| 261 |
?> |
| 262 |
<?php if( $is_edit_mode && ! $this->pro_enabled ): ?> |
| 263 |
<div class="bp-tab_pane" id="update"> |
| 264 |
<a href="https://betterpayment.io/pricing" target="_blank" class="bp-upgrade_pro"> |
| 265 |
<img class="bp-pro-banner" src="<?php echo esc_url( BETTER_PAYMENT_ASSETS . '/img/campaign/layout-1/update-pro.webp' ); ?>" alt="upgrade-to-pro"> |
| 266 |
</a> |
| 267 |
</div> |
| 268 |
<?php endif; ?> |
| 269 |
</div> |
| 270 |
</div> |
| 271 |
</section> |
| 272 |
</div> |
| 273 |
</main> |