File: /var/www/laracopilot.stgviitor.com/laracopilot-wp/wp-content/themes/laracopilot-v2/footer.php
<footer>
<!-- Main footer -->
<div class="footer-main">
<div class="container">
<div class="footer-grid">
<!-- Brand -->
<div>
<div class="footer-brand-name">
<?php
$footer_logo = get_field('upload_footer_logo', 'option');
$logo_url = is_array($footer_logo) ? $footer_logo['url'] : $footer_logo;
if ($logo_url) : ?>
<img src="<?php echo esc_url($logo_url); ?>" height="200" width="200" alt="<?php bloginfo('name'); ?>" />
<?php endif; ?>
</div>
<?php $footer_desc = get_field('footer_description_v2', 'option'); ?>
<p class="footer-brand-desc"><?php echo esc_html($footer_desc ?: 'The AI-powered app builder. Describe it. Build it. Ship it — in minutes, not months.'); ?></p>
<div class="footer-social">
<?php if (have_rows('social_links', 'option')) : ?>
<?php while (have_rows('social_links', 'option')) : the_row();
$social_logo_data = get_sub_field('logo');
$social_logo_url = is_array($social_logo_data) ? $social_logo_data['url'] : $social_logo_data;
$social_link = get_sub_field('link');
?>
<a href="<?php echo esc_url($social_link); ?>" class="social-btn" target="_blank" rel="noopener noreferrer">
<?php if ($social_logo_url) : ?>
<img src="<?php echo esc_url($social_logo_url); ?>" width="24" height="24" alt="Social Icon" />
<?php endif; ?>
</a>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
<!-- Product -->
<div class="footer-col">
<div class="footer-col-title">Product</div>
<?php laracopilot_v2_footer_menu('footer-product'); ?>
</div>
<!-- Grow with us -->
<div class="footer-col">
<div class="footer-col-title">Grow with us</div>
<?php laracopilot_v2_footer_menu('footer-grow-with-us'); ?>
</div>
<!-- Resources -->
<div class="footer-col">
<div class="footer-col-title">Resources</div>
<?php laracopilot_v2_footer_menu('footer-resources'); ?>
</div>
<!-- Company -->
<div class="footer-col">
<div class="footer-col-title">Company</div>
<?php laracopilot_v2_footer_menu('footer-company'); ?>
</div>
</div>
<!-- Bottom bar -->
<div class="footer-bottom">
<?php $copyright = get_field('copyright', 'option'); ?>
<span>© <?php echo date('Y') . ' ' . wp_kses_post($copyright); ?></span>
<div class="footer-status">
<div class="footer-status-dot"></div>
All systems operational
</div>
<div class="footer-bottom-links">
<?php if (have_rows('footer_menu_links', 'option')) : ?>
<?php while (have_rows('footer_menu_links', 'option')) : the_row();
$link_url = get_sub_field('link');
$is_active = (trailingslashit(esc_url($link_url)) === trailingslashit(home_url($wp->request)));
?>
<a href="<?php echo esc_url($link_url); ?>" class="<?php echo $is_active ? 'active' : ''; ?>"><?php echo esc_html(get_sub_field('name')); ?></a>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
</div>
</div>
</footer>
<?php wp_footer(); ?>
</body>
</html>