🤩 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:front-page.php
<?php get_header(); ?> <section id="hero" class="hero-section"> <div id="particles-js" class="hero-particles"></div> <div class="hero-overlay"></div> <div class="container hero-content"> <div class="row align-items-center"> <div class="col-lg-8 mx-auto text-center"> <div class="hero-logo" data-aos="fade-down" data-aos-duration="1000"> <?php unfia_logo(); ?> </div> <h1 class="hero-title" data-aos="fade-up" data-aos-duration="1000"> <?php echo nl2br(esc_html(unfia_get_option('hero_heading', "Connecting Knowledge\nInspiring Excellence\nBuilding Global Unity"))); ?> </h1> <p class="hero-subtitle" data-aos="fade-up" data-aos-duration="1000" data-aos-delay="200"> <?php echo esc_html(unfia_get_option('hero_subheading', 'Building International Cooperation Through Education, Research, Awards, Cultural Exchange and Humanitarian Service.')); ?> </p> <div class="hero-buttons" data-aos="fade-up" data-aos-duration="1000" data-aos-delay="400"> <a href="<?php echo esc_url(unfia_get_option('hero_btn_1_url', get_permalink(get_page_by_path('membership')))); ?>" class="btn btn-primary btn-lg hero-btn"> <span><?php echo esc_html(unfia_get_option('hero_btn_1_text', __('Become Member', 'unfia'))); ?></span> <i class="fas fa-arrow-right"></i> </a> <a href="<?php echo esc_url(unfia_get_option('hero_btn_2_url', get_permalink(get_page_by_path('awards')))); ?>" class="btn btn-outline-light btn-lg hero-btn"> <span><?php echo esc_html(unfia_get_option('hero_btn_2_text', __('Apply Award', 'unfia'))); ?></span> <i class="fas fa-trophy"></i> </a> <a href="<?php echo esc_url(unfia_get_option('hero_btn_3_url', get_permalink(get_page_by_path('conferences')))); ?>" class="btn btn-outline-light btn-lg hero-btn"> <span><?php echo esc_html(unfia_get_option('hero_btn_3_text', __('Conference', 'unfia'))); ?></span> <i class="fas fa-users"></i> </a> <a href="<?php echo esc_url(unfia_get_option('hero_btn_4_url', get_permalink(get_page_by_path('donate')))); ?>" class="btn btn-accent btn-lg hero-btn"> <span><?php echo esc_html(unfia_get_option('hero_btn_4_text', __('Donate', 'unfia'))); ?></span> <i class="fas fa-heart"></i> </a> </div> </div> </div> </div> <div class="hero-scroll-indicator"> <span><?php _e('Scroll Down', 'unfia'); ?></span> <i class="fas fa-chevron-down"></i> </div> <?php echo unfia_get_svg_divider('bottom', '#ffffff'); ?> </section> <section id="statistics" class="statistics-section"> <div class="container"> <div class="row g-3"> <?php $counters = [ ['label' => __('Countries', 'unfia'), 'value' => unfia_get_option('counter_value_1', '150'), 'icon' => 'fa-globe'], ['label' => __('Members', 'unfia'), 'value' => unfia_get_option('counter_value_2', '50000'), 'icon' => 'fa-users'], ['label' => __('Awards', 'unfia'), 'value' => unfia_get_option('counter_value_3', '1000'), 'icon' => 'fa-trophy'], ['label' => __('Events', 'unfia'), 'value' => unfia_get_option('counter_value_4', '500'), 'icon' => 'fa-calendar'], ['label' => __('Projects', 'unfia'), 'value' => unfia_get_option('counter_value_5', '200'), 'icon' => 'fa-project-diagram'], ]; foreach ($counters as $counter): ?> <div class="col-md col-6" data-aos="fade-up" data-aos-delay="<?php echo 100 * $i++; $i = isset($i) ? $i : 1; ?>"> <div class="stat-item"> <div class="stat-icon"> <i class="fas <?php echo esc_attr($counter['icon']); ?>"></i> </div> <span class="stat-number counter"><?php echo esc_html($counter['value']); ?></span> <span class="stat-label"><?php echo esc_html($counter['label']); ?></span> </div> </div> <?php $i = isset($i) ? $i : 1; $i++; endforeach; ?> </div> </div> </section> <section id="about" class="about-section section-padding"> <div class="container"> <div class="row align-items-center g-5"> <div class="col-lg-6" data-aos="fade-right"> <div class="about-image-wrapper"> <div class="about-image"> <?php echo unfia_get_image('unfia-hero', 'img-fluid rounded-4', 47); ?> </div> <div class="about-experience"> <span class="exp-number">25+</span> <span class="exp-text"><?php _e('Years of Global Service', 'unfia'); ?></span> </div> </div> </div> <div class="col-lg-6" data-aos="fade-left"> <span class="section-subtitle"><?php _e('Who We Are', 'unfia'); ?></span> <h2 class="section-heading"><?php _e('United Nations Federation of International Astro', 'unfia'); ?></h2> <p><?php _e('UNFIA is a premier international organization dedicated to fostering global cooperation through education, research, awards, cultural exchange, and humanitarian service. With a presence in over 150 countries, we bring together nations, institutions, and individuals to work towards a shared vision of peace, excellence, and sustainable development.', 'unfia'); ?></p> <p><?php _e('Founded on the principles of unity, integrity, and excellence, UNFIA has been at the forefront of international collaboration, recognizing outstanding achievements, advancing scientific research, and empowering communities worldwide.', 'unfia'); ?></p> <div class="row g-3 mt-4"> <div class="col-sm-6"> <div class="about-feature"> <i class="fas fa-check-circle"></i> <span><?php _e('International Recognition', 'unfia'); ?></span> </div> </div> <div class="col-sm-6"> <div class="about-feature"> <i class="fas fa-check-circle"></i> <span><?php _e('Global Network', 'unfia'); ?></span> </div> </div> <div class="col-sm-6"> <div class="about-feature"> <i class="fas fa-check-circle"></i> <span><?php _e('Humanitarian Impact', 'unfia'); ?></span> </div> </div> <div class="col-sm-6"> <div class="about-feature"> <i class="fas fa-check-circle"></i> <span><?php _e('Sustainable Development', 'unfia'); ?></span> </div> </div> </div> <a href="<?php echo esc_url(get_permalink(get_page_by_path('about'))); ?>" class="btn btn-primary mt-4"><?php _e('Learn More About Us', 'unfia'); ?> <i class="fas fa-arrow-right"></i></a> </div> </div> </div> </section> <section id="mission-vision" class="mission-vision-section section-padding"> <?php echo unfia_get_svg_divider('top', '#F8FAFC'); ?> <div class="container"> <div class="row g-4"> <div class="col-md-6" data-aos="fade-up"> <div class="mission-card"> <div class="card-icon"> <i class="fas fa-eye"></i> </div> <h3><?php _e('Our Vision', 'unfia'); ?></h3> <p><?php _e('To be the leading international federation fostering global unity, peace, and excellence in education, research, and humanitarian service, creating a world where every nation collaborates for the greater good of humanity.', 'unfia'); ?></p> </div> </div> <div class="col-md-6" data-aos="fade-up" data-aos-delay="100"> <div class="mission-card"> <div class="card-icon"> <i class="fas fa-bullseye"></i> </div> <h3><?php _e('Our Mission', 'unfia'); ?></h3> <p><?php _e('To promote international cooperation through prestigious awards, groundbreaking research, transformative education, cultural exchange programs, and humanitarian initiatives that empower individuals and communities worldwide.', 'unfia'); ?></p> </div> </div> </div> </div> <?php echo unfia_get_svg_divider('bottom', '#ffffff'); ?> </section> <section id="core-values" class="values-section section-padding"> <div class="container"> <?php unfia_section_title(__('Our Core Values', 'unfia'), __('What We Stand For', 'unfia')); ?> <div class="row g-4"> <?php $values = [ ['icon' => 'fa-handshake', 'title' => __('Unity', 'unfia'), 'desc' => __('Building bridges across nations and cultures for a harmonious world.', 'unfia')], ['icon' => 'fa-gem', 'title' => __('Excellence', 'unfia'), 'desc' => __('Striving for the highest standards in all our endeavors.', 'unfia')], ['icon' => 'fa-shield-alt', 'title' => __('Integrity', 'unfia'), 'desc' => __('Upholding transparency, honesty, and ethical conduct.', 'unfia')], ['icon' => 'fa-heart', 'title' => __('Humanity', 'unfia'), 'desc' => __('Serving humanity with compassion and dedication.', 'unfia')], ['icon' => 'fa-lightbulb', 'title' => __('Innovation', 'unfia'), 'desc' => __('Embracing innovation to solve global challenges.', 'unfia')], ['icon' => 'fa-leaf', 'title' => __('Sustainability', 'unfia'), 'desc' => __('Committed to sustainable development and environmental stewardship.', 'unfia')], ]; foreach ($values as $i => $value): ?> <div class="col-lg-4 col-md-6" data-aos="fade-up" data-aos-delay="<?php echo $i * 100; ?>"> <div class="value-card"> <div class="value-icon"> <i class="fas <?php echo esc_attr($value['icon']); ?>"></i> </div> <h4 class="value-title"><?php echo esc_html($value['title']); ?></h4> <p class="value-desc"><?php echo esc_html($value['desc']); ?></p> </div> </div> <?php endforeach; ?> </div> </div> </section> <section id="services" class="services-section section-padding"> <?php echo unfia_get_svg_divider('top', '#F8FAFC'); ?> <div class="container"> <?php unfia_section_title(__('Our Programs & Services', 'unfia'), __('What We Offer', 'unfia')); ?> <div class="row g-4"> <?php $services = [ ['icon' => 'fa-globe-americas', 'title' => __('International Conferences', 'unfia'), 'desc' => __('Global platforms for dialogue, knowledge exchange, and networking among world leaders and experts.', 'unfia')], ['icon' => 'fa-award', 'title' => __('Global Awards', 'unfia'), 'desc' => __('Prestigious awards recognizing outstanding contributions across multiple disciplines.', 'unfia')], ['icon' => 'fa-chart-line', 'title' => __('Professional Development', 'unfia'), 'desc' => __('Comprehensive programs for professional growth and capacity building.', 'unfia')], ['icon' => 'fa-microscope', 'title' => __('Research', 'unfia'), 'desc' => __('Advanced research initiatives in science, technology, and social development.', 'unfia')], ['icon' => 'fa-plane', 'title' => __('International Tours', 'unfia'), 'desc' => __('Cultural exchange tours promoting mutual understanding and global citizenship.', 'unfia')], ['icon' => 'fa-hands-helping', 'title' => __('Humanitarian Projects', 'unfia'), 'desc' => __('Life-changing humanitarian initiatives serving communities in need worldwide.', 'unfia')], ['icon' => 'fa-user-graduate', 'title' => __('Leadership Programs', 'unfia'), 'desc' => __('Developing the next generation of global leaders through intensive training.', 'unfia')], ['icon' => 'fa-certificate', 'title' => __('Certification Programs', 'unfia'), 'desc' => __('Internationally recognized certifications for professional excellence.', 'unfia')], ['icon' => 'fa-handshake', 'title' => __('Global Networking', 'unfia'), 'desc' => __('Connecting professionals, institutions, and organizations across borders.', 'unfia')], ]; foreach ($services as $i => $service): ?> <div class="col-lg-4 col-md-6" data-aos="fade-up" data-aos-delay="<?php echo ($i % 3) * 100; ?>"> <div class="service-card"> <div class="service-icon"> <i class="fas <?php echo esc_attr($service['icon']); ?>"></i> </div> <h3 class="service-title"><?php echo esc_html($service['title']); ?></h3> <p class="service-desc"><?php echo esc_html($service['desc']); ?></p> <a href="#" class="service-link"><?php _e('Learn More', 'unfia'); ?> <i class="fas fa-arrow-right"></i></a> </div> </div> <?php endforeach; ?> </div> </div> </section> <section id="testimonials" class="testimonials-section section-padding"> <div class="container"> <?php unfia_section_title(__('What People Say', 'unfia'), __('Testimonials', 'unfia')); ?> <div class="swiper testimonial-slider"> <div class="swiper-wrapper"> <?php $testimonials = new WP_Query(['post_type' => 'testimonial', 'posts_per_page' => 6]); if ($testimonials->have_posts()): while ($testimonials->have_posts()): $testimonials->the_post(); ?> <div class="swiper-slide"> <div class="testimonial-card"> <div class="testimonial-stars"> <i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i> </div> <p class="testimonial-text"><?php echo esc_html(get_the_excerpt()); ?></p> <div class="testimonial-author"> <?php if (has_post_thumbnail()): ?> <div class="testimonial-avatar"> <?php the_post_thumbnail('thumbnail'); ?> </div> <?php endif; ?> <div> <h5 class="testimonial-name"><?php the_title(); ?></h5> <span class="testimonial-role"><?php echo esc_html(get_post_meta(get_the_ID(), '_testimonial_role', true)); ?></span> </div> </div> </div> </div> <?php endwhile; wp_reset_postdata(); endif; ?> </div> <div class="swiper-pagination"></div> </div> </div> </section> <section id="news" class="news-section section-padding"> <?php echo unfia_get_svg_divider('top', '#ffffff'); ?> <div class="container"> <?php unfia_section_title(__('Latest News & Updates', 'unfia'), __('Stay Informed', 'unfia')); ?> <div class="row g-4"> <?php $news = new WP_Query(['posts_per_page' => 3]); if ($news->have_posts()): while ($news->have_posts()): $news->the_post(); ?> <div class="col-lg-4 col-md-6" data-aos="fade-up"> <article class="news-card"> <div class="news-thumb"> <?php if (has_post_thumbnail()): ?> <?php the_post_thumbnail('unfia-card', ['class' => 'img-fluid']); ?> <?php else: ?> <?php echo unfia_get_image('unfia-card'); ?> <?php endif; ?> <div class="news-date"> <span class="day"><?php echo get_the_date('d'); ?></span> <span class="month"><?php echo get_the_date('M'); ?></span> </div> </div> <div class="news-body"> <div class="news-meta"> <span><i class="far fa-user"></i> <?php the_author(); ?></span> <span><i class="far fa-folder"></i> <?php the_category(', '); ?></span> </div> <h3 class="news-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <p><?php echo unfia_excerpt(20); ?></p> <a href="<?php the_permalink(); ?>" class="news-read-more"><?php _e('Read More', 'unfia'); ?> <i class="fas fa-arrow-right"></i></a> </div> </article> </div> <?php endwhile; wp_reset_postdata(); endif; ?> </div> </div> </section> <section id="partners" class="partners-section section-padding"> <div class="container"> <?php unfia_section_title(__('Our Partners', 'unfia'), __('Trusted Collaborations', 'unfia')); ?> <div class="swiper partner-slider"> <div class="swiper-wrapper"> <?php $partners = new WP_Query(['post_type' => 'partner', 'posts_per_page' => 12]); if ($partners->have_posts()): while ($partners->have_posts()): $partners->the_post(); ?> <div class="swiper-slide"> <div class="partner-logo"> <?php if (has_post_thumbnail()): ?> <?php the_post_thumbnail('medium', ['class' => 'img-fluid', 'alt' => get_the_title()]); ?> <?php else: ?> <span><?php the_title(); ?></span> <?php endif; ?> </div> </div> <?php endwhile; wp_reset_postdata(); endif; ?> </div> </div> </div> </section> <section id="cta" class="cta-section section-padding"> <?php echo unfia_get_svg_divider('top', '#ffffff'); ?> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-10 text-center" data-aos="fade-up"> <h2 class="cta-title"><?php _e('Join Us in Building a Better World', 'unfia'); ?></h2> <p class="cta-text"><?php _e('Become part of the United Nations Federation of International Astro and contribute to global unity, excellence, and humanitarian service.', 'unfia'); ?></p> <div class="cta-buttons"> <a href="<?php echo esc_url(get_permalink(get_page_by_path('membership'))); ?>" class="btn btn-light btn-lg"><?php _e('Become a Member', 'unfia'); ?> <i class="fas fa-arrow-right"></i></a> <a href="<?php echo esc_url(get_permalink(get_page_by_path('donate'))); ?>" class="btn btn-outline-light btn-lg"><?php _e('Donate Now', 'unfia'); ?> <i class="fas fa-heart"></i></a> </div> </div> </div> </div> </section> <?php get_footer(); ?>
Save Changes
Cancel
Create New File
Create New Folder