File: /var/www/kevin-demo/wp-content/themes/fitmencook/header-app.php
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package fitmencook
*/
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="https://gmpg.org/xfn/11">
<meta name="smartbanner:title" content="FitMenCook - Healthy Recipes">
<meta name="smartbanner:author" content="Nibble Apps">
<meta name="smartbanner:price" content="$3.99">
<meta name="smartbanner:price-suffix-apple" content=" - On the App Store">
<meta name="smartbanner:price-suffix-google" content=" - In Google Play">
<meta name="smartbanner:icon-apple" content="http://is3.mzstatic.com/image/thumb/Purple117/v4/5b/7a/f9/5b7af9d5-d144-5137-e040-4b6271d7ad7f/source/350x350bb.jpg">
<meta name="smartbanner:icon-google" content="https://lh3.googleusercontent.com/FUPpZl9_iHHTpIZsjt1WCDr7oKs6QcojoLUkAg5vLTuqGxr5D49BuYkSgS6W9CI2EA=w300">
<meta name="smartbanner:button" content="View">
<meta name="smartbanner:button-url-apple" content="https://itunes.apple.com/app/id980368562?at=10l5Lv&ct=fmc-top-lnk">
<meta name="smartbanner:button-url-google" content="https://play.google.com/store/apps/details?id=com.nibbleapps.fitmencook">
<meta name="smartbanner:enabled-platforms" content="android,ios">
<meta name="p:domain_verify" content="630d33d666a4140aa5b91ccdf37cb378"/>
<?php echo get_field('head_script', 'option'); ?> <!-- Head External Code -->
<?php wp_head(); ?>
<meta name="theme-color" content="#EAECF0" />
<?php echo get_field('app_meta_pixel', 'option'); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php echo get_field('body_top_script', 'option'); ?> <!-- Body Top External Code -->
<div id="main-content" class="site">
<a class="skip-link screen-reader-text" href="#primary"><?php esc_html_e( 'Skip to content', 'fmc' ); ?></a>
<div class="fmc_mobile_header">
<figure class="fmc_mobile_logo">
<?php the_custom_logo(); ?>
</figure>
<?php
$search_link = get_field('search_link', 'option');
if( $search_link ): ?>
<div class="search_icon">
<a href="<?php echo esc_url( $search_link ); ?>">
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M16.5 16.5L11.5 11.5M13.1667 7.33333C13.1667 10.555 10.555 13.1667 7.33333 13.1667C4.11167 13.1667 1.5 10.555 1.5 7.33333C1.5 4.11167 4.11167 1.5 7.33333 1.5C10.555 1.5 13.1667 4.11167 13.1667 7.33333Z" stroke="#344054" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</a>
</div>
<?php endif; ?>
<a class="cart_icon" href="<?php echo wc_get_cart_url() ?>">
<div class="cart">
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M1.5 1.5H3.16667L3.5 3.16667M4.83333 9.83333H13.1667L16.5 3.16667H3.5M4.83333 9.83333L3.5 3.16667M4.83333 9.83333L2.92259 11.7441C2.39762 12.269 2.76942 13.1667 3.51184 13.1667H13.1667M13.1667 13.1667C12.2462 13.1667 11.5 13.9129 11.5 14.8333C11.5 15.7538 12.2462 16.5 13.1667 16.5C14.0871 16.5 14.8333 15.7538 14.8333 14.8333C14.8333 13.9129 14.0871 13.1667 13.1667 13.1667ZM6.5 14.8333C6.5 15.7538 5.75381 16.5 4.83333 16.5C3.91286 16.5 3.16667 15.7538 3.16667 14.8333C3.16667 13.9129 3.91286 13.1667 4.83333 13.1667C5.75381 13.1667 6.5 13.9129 6.5 14.8333Z" stroke="#344054" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
</a>
<div class="fmc_mm_trigger">
<div></div>
</div>
</div>
<div class="fmc_sitehead">
<header class="fmc_header">
<figure class="fmc_mobile_logo">
<?php the_custom_logo(); ?>
</figure>
<?php
wp_nav_menu(
array(
'theme_location' => 'primary',
'menu_id' => 'primary'
)
);
?>
<div class="fmc_header_right">
<?php
$search_link = get_field('search_link', 'option');
if( $search_link ): ?>
<div class="search_icon">
<a href="<?php echo esc_url( $search_link ); ?>">
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M16.5 16.5L11.5 11.5M13.1667 7.33333C13.1667 10.555 10.555 13.1667 7.33333 13.1667C4.11167 13.1667 1.5 10.555 1.5 7.33333C1.5 4.11167 4.11167 1.5 7.33333 1.5C10.555 1.5 13.1667 4.11167 13.1667 7.33333Z" stroke="#344054" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</a>
</div>
<?php endif; ?>
<a href="<?php echo wc_get_cart_url() ?>">
<div class="cart">
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M1.5 1.5H3.16667L3.5 3.16667M4.83333 9.83333H13.1667L16.5 3.16667H3.5M4.83333 9.83333L3.5 3.16667M4.83333 9.83333L2.92259 11.7441C2.39762 12.269 2.76942 13.1667 3.51184 13.1667H13.1667M13.1667 13.1667C12.2462 13.1667 11.5 13.9129 11.5 14.8333C11.5 15.7538 12.2462 16.5 13.1667 16.5C14.0871 16.5 14.8333 15.7538 14.8333 14.8333C14.8333 13.9129 14.0871 13.1667 13.1667 13.1667ZM6.5 14.8333C6.5 15.7538 5.75381 16.5 4.83333 16.5C3.91286 16.5 3.16667 15.7538 3.16667 14.8333C3.16667 13.9129 3.91286 13.1667 4.83333 13.1667C5.75381 13.1667 6.5 13.9129 6.5 14.8333Z" stroke="#344054" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
</a>
<?php
$order_link = get_field('order_link', 'option');
if( $order_link ):
$order_link_url = $order_link['url'];
$order_link_title = $order_link['title'];
$order_link_target = $order_link['target'] ? $order_link['target'] : '_self';
?>
<a class="fmc_btn" href="<?php echo esc_url( $order_link_url ); ?>" target="<?php echo esc_attr( $order_link_target ); ?>"><?php echo esc_html( $order_link_title ); ?></a>
<?php endif; ?>
</div>
<!-- Begin Brevo Form -->
<!-- START - We recommend to place the below code in head tag of your website html -->
<style>
@font-face {
font-display: block;
font-family: Roboto;
src: url(https://assets.brevo.com/font/Roboto/Latin/normal/normal/7529907e9eaf8ebb5220c5f9850e3811.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/normal/normal/25c678feafdc175a70922a116c9be3e7.woff) format("woff")
}
@font-face {
font-display: fallback;
font-family: Roboto;
font-weight: 600;
src: url(https://assets.brevo.com/font/Roboto/Latin/medium/normal/6e9caeeafb1f3491be3e32744bc30440.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/medium/normal/71501f0d8d5aa95960f6475d5487d4c2.woff) format("woff")
}
@font-face {
font-display: fallback;
font-family: Roboto;
font-weight: 700;
src: url(https://assets.brevo.com/font/Roboto/Latin/bold/normal/3ef7cf158f310cf752d5ad08cd0e7e60.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/bold/normal/ece3a1d82f18b60bcce0211725c476aa.woff) format("woff")
}
#sib-container input:-ms-input-placeholder {
text-align: left;
font-family: Helvetica, sans-serif;
color: #c0ccda;
}
#sib-container input::placeholder {
text-align: left;
font-family: Helvetica, sans-serif;
color: #c0ccda;
}
#sib-container textarea::placeholder {
text-align: left;
font-family: Helvetica, sans-serif;
color: #c0ccda;
}
#sib-container a {
text-decoration: underline;
color: #2BB2FC;
}
div#sib-container {
padding: 0;
}
.sib-form-brevo{
display: flex;
}
form#sib-form:after {
content: "";
position: absolute;
width: 20px;
height: 20px;
background-image: url(https://fitmencook.com/wp-content/uploads/2025/03/letter.svg);
left: 15px;
background-repeat: no-repeat;
background-position: center left;
background-size: contain;
}
form#sib-form-hero {
position: relative;
}
form#sib-form-hero:after {
content: "";
position: absolute;
width: 20px;
height: 20px;
background-image: url(https://fitmencook.com/wp-content/uploads/2025/03/letter.svg);
left: 15px;
top: 50%;
transform:translateY(-50%);
background-repeat: no-repeat;
background-position: center left;
background-size: contain;
}
div.sib-form .input:first-child, .sib-form .input__affix:first-child {
padding-left: 5rem;
}
div.sib-form{
padding: 12px 0 ;
}
#sib-form .entry__field{
border: none;
}
#sib-form {
align-items: center;
}
#sib-form .input:not(textarea), #sib-form .input__button {
height: calc(3.5rem - 2px);
}
</style>
<link rel="stylesheet" href="https://sibforms.com/forms/end-form/build/sib-styles.css">
<!-- END - We recommend to place the above code in head tag of your website html -->
</header>
</div>