<?php
/**
 * Title: Header
 * Slug: fastx/header
 * Categories: header
 * Inserter: no
 */

if ( ( isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], "wp-admin/site-editor.php") ) || get_option('site_logo') ) {
   $site_logo = '<!-- wp:site-logo {"width":60} /-->';
} else {
   $site_logo = '<!-- wp:image {"lightbox":{"enabled":false},"id":12,"width":"110px","height":"30px","scale":"contain","sizeSlug":"large","linkDestination":"custom","style":{"border":{"radius":"4px"}}} -->
   <figure class="wp-block-image size-large is-resized has-custom-border"><a href="'.home_url().'"><img src="'.FASTX_DIR.'/assets/img/fsx_logo.png'.'" alt="" class="wp-image-12" style="border-radius:4px;object-fit:contain;width:110px;height:30px"/></a></figure>
   <!-- /wp:image -->';
}

?>


<!-- wp:group {"align":"full","style":{"border":{"top":{"width":"0px","style":"none"},"right":{"width":"0px","style":"none"},"left":{"width":"0px","style":"none"},"bottom":{"color":"var:preset|color|fsx-base-2","width":"2px"}},"spacing":{"blockGap":"0px"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull" style="border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-color:var(--wp--preset--color--fsx-base-2);border-bottom-width:2px;border-left-style:none;border-left-width:0px"><!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"15px","bottom":"15px"}}},"backgroundColor":"fsx-contrast-2","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull has-fsx-contrast-2-background-color has-background" style="padding-top:15px;padding-bottom:15px"><!-- wp:group {"align":"wide","layout":{"type":"flex","justifyContent":"space-between","flexWrap":"wrap"}} -->
<div class="wp-block-group alignwide"><!-- wp:group {"style":{"spacing":{"blockGap":"10px"}},"layout":{"type":"flex","flexWrap":"wrap"}} -->
<div class="wp-block-group"><!-- wp:social-links {"iconColor":"fsx-base-1","iconColorValue":"#FFFFFF","openInNewTab":true,"size":"has-small-icon-size","style":{"spacing":{"blockGap":{"top":"16px","left":"16px"}}},"className":"is-style-logos-only","layout":{"type":"flex","justifyContent":"left"}} -->
<ul class="wp-block-social-links has-small-icon-size has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"#","service":"facebook"} /-->

<!-- wp:social-link {"url":"#","service":"linkedin"} /-->

<!-- wp:social-link {"url":"#","service":"twitter"} /-->

<!-- wp:social-link {"url":"#","service":"wordpress"} /-->

<!-- wp:social-link {"url":"#","service":"instagram"} /--></ul>
<!-- /wp:social-links --></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"blockGap":"","padding":{"left":"0px"}},"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex","flexWrap":"wrap","orientation":"horizontal","justifyContent":"center"}} -->
<div class="wp-block-group" style="padding-left:0px"><?php echo $site_logo; ?></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"blockGap":"20px"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"primary","textColor":"fsx-over-primary","style":{"elements":{"link":{"color":{"text":"var:preset|color|fsx-over-primary"}}},"border":{"radius":"4px"},"typography":{"textTransform":"capitalize","fontStyle":"normal","fontWeight":"400","fontSize":"16px"},"spacing":{"padding":{"left":"20px","right":"20px","top":"8px","bottom":"8px"}}},"className":"is-style-fill","fontFamily":"roboto"} -->
<div class="wp-block-button has-custom-font-size is-style-fill has-roboto-font-family" style="font-size:16px;font-style:normal;font-weight:400;text-transform:capitalize"><a class="wp-block-button__link has-fsx-over-primary-color has-primary-background-color has-text-color has-background has-link-color wp-element-button" href="#" style="border-radius:4px;padding-top:8px;padding-right:20px;padding-bottom:8px;padding-left:20px">Subscribe</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"20px","bottom":"20px"}},"border":{"radius":"4px"}},"backgroundColor":"fsx-base-1","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide has-fsx-base-1-background-color has-background" style="border-radius:4px;padding-top:20px;padding-bottom:20px"><!-- wp:group {"align":"wide","style":{"elements":{"link":{"color":{"text":"var:preset|color|fsx-base-1"}}}},"textColor":"fsx-base-1","layout":{"type":"flex","justifyContent":"center","flexWrap":"wrap"}} -->
<div class="wp-block-group alignwide has-fsx-base-1-color has-text-color has-link-color"><!-- wp:navigation {"textColor":"fsx-contrast-1","layout":{"type":"flex","justifyContent":"right","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"},"blockGap":"30px"},"layout":{"selfStretch":"fit","flexSize":null},"typography":{"fontSize":"14px"}}} -->

<!-- wp:navigation-link {"label":"Home","url":"/","kind":"custom"} /-->

<!-- wp:navigation-link {"label":"Travel","url":"#","kind":"custom"} /-->

<!-- wp:navigation-link {"label":"About","url":"#","kind":"custom"} /-->

<!-- wp:navigation-link {"label":"Contact","url":"#","kind":"custom"} /-->

<!-- wp:navigation-link {"label":"Fashion","url":"#","kind":"custom"} /-->
<!-- wp:navigation-link {"label":"Free Download","url":"#","kind":"custom"} /-->
<!-- /wp:navigation --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
