🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:template-donate.php
<?php /** * Template Name: Donate Page */ get_header(); ?> <section class="page-banner-section"> <div class="container"> <div class="row"> <div class="col-12 text-center"> <h1 class="page-banner-title"><?php the_title(); ?></h1> <?php unfia_breadcrumbs(); ?> </div> </div> </div> </section> <section class="donate-intro section-padding"> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-8 text-center" data-aos="fade-up"> <span class="section-subtitle"><?php _e('Support Our Mission', 'unfia'); ?></span> <h2><?php _e('Make a Difference Today', 'unfia'); ?></h2> <p><?php _e('Your generous contribution helps us advance education, research, humanitarian service, and global cooperation. Every donation creates lasting impact.', 'unfia'); ?></p> </div> </div> </div> </section> <section class="donate-funds section-padding bg-light"> <div class="container"> <div class="row g-4"> <?php $funds = [ ['icon' => 'fa-graduation-cap', 'title' => __('Education Fund', 'unfia'), 'desc' => __('Support educational programs, scholarships, and learning initiatives worldwide.', 'unfia'), 'color' => '#1F45D8'], ['icon' => 'fa-microscope', 'title' => __('Research Fund', 'unfia'), 'desc' => __('Advance scientific research and innovation for global challenges.', 'unfia'), 'color' => '#1AA9E8'], ['icon' => 'fa-users', 'title' => __('Youth Fund', 'unfia'), 'desc' => __('Empower the next generation of leaders and change-makers.', 'unfia'), 'color' => '#38BDF8'], ['icon' => 'fa-hands-helping', 'title' => __('Humanitarian Fund', 'unfia'), 'desc' => __('Provide aid and support to communities in need worldwide.', 'unfia'), 'color' => '#111827'], ['icon' => 'fa-calendar', 'title' => __('Conference Fund', 'unfia'), 'desc' => __('Enable global conferences that bring together world leaders.', 'unfia'), 'color' => '#1F45D8'], ]; foreach ($funds as $fund): ?> <div class="col-lg-4 col-md-6" data-aos="fade-up"> <div class="fund-card" style="--fund-color: <?php echo esc_attr($fund['color']); ?>"> <div class="fund-icon"> <i class="fas <?php echo esc_attr($fund['icon']); ?>"></i> </div> <h4><?php echo esc_html($fund['title']); ?></h4> <p><?php echo esc_html($fund['desc']); ?></p> <button class="btn btn-outline-primary donate-now-btn" data-fund="<?php echo esc_attr($fund['title']); ?>"><?php _e('Donate Now', 'unfia'); ?></button> </div> </div> <?php endforeach; ?> </div> </div> </section> <section class="donate-form-section section-padding"> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-8" data-aos="fade-up"> <?php unfia_section_title(__('Make a Donation', 'unfia'), __('Secure Payment', 'unfia')); ?> <div class="donate-form-wrapper"> <form class="unfia-form" action="#" method="post"> <div class="row g-3"> <div class="col-12"> <label class="form-label"><?php _e('Select Fund', 'unfia'); ?></label> <select class="form-select" name="fund" required> <option value=""><?php _e('Choose a fund to support', 'unfia'); ?></option> <option value="education"><?php _e('Education Fund', 'unfia'); ?></option> <option value="research"><?php _e('Research Fund', 'unfia'); ?></option> <option value="youth"><?php _e('Youth Fund', 'unfia'); ?></option> <option value="humanitarian"><?php _e('Humanitarian Fund', 'unfia'); ?></option> <option value="conference"><?php _e('Conference Fund', 'unfia'); ?></option> <option value="general"><?php _e('General Donation', 'unfia'); ?></option> </select> </div> <div class="col-md-6"> <label class="form-label"><?php _e('Full Name *', 'unfia'); ?></label> <input type="text" class="form-control" name="name" required> </div> <div class="col-md-6"> <label class="form-label"><?php _e('Email *', 'unfia'); ?></label> <input type="email" class="form-control" name="email" required> </div> <div class="col-12"> <label class="form-label"><?php _e('Donation Amount', 'unfia'); ?></label> <div class="donation-amounts"> <button type="button" class="amount-btn" data-amount="10">$10</button> <button type="button" class="amount-btn" data-amount="25">$25</button> <button type="button" class="amount-btn" data-amount="50">$50</button> <button type="button" class="amount-btn" data-amount="100">$100</button> <button type="button" class="amount-btn" data-amount="500">$500</button> <button type="button" class="amount-btn custom" data-amount="custom"><?php _e('Custom', 'unfia'); ?></button> </div> <input type="number" class="form-control mt-2 custom-amount" name="amount" placeholder="<?php esc_attr_e('Enter custom amount', 'unfia'); ?>" style="display:none;"> </div> <div class="col-12"> <label class="form-label"><?php _e('Message (Optional)', 'unfia'); ?></label> <textarea class="form-control" rows="3" name="message" placeholder="<?php esc_attr_e('Leave a message with your donation', 'unfia'); ?>"></textarea> </div> <div class="col-12 text-center"> <button type="submit" class="btn btn-primary btn-lg"><?php _e('Donate Now', 'unfia'); ?> <i class="fas fa-heart"></i></button> </div> </div> </form> </div> </div> </div> </div> </section> <?php get_footer(); ?>
Save Changes
Cancel
Create New File
Create New Folder