* docs: Add onboarding documentation for new developers Add four comprehensive guides to help new developers get started with the VDI-Starter-v5 WordPress theme: - docs/getting-started.md: Setup from zero, local WordPress options, env config, theme activation warnings, troubleshooting - docs/architecture.md: Bootstrap flow, 7 architectural layers, namespace conventions, WP hooks cleanup, enqueue system, theme.json - docs/creating-blocks.md: Step-by-step ACF block creation tutorial, helper functions, parent-child patterns, Tailwind integration - docs/reference.md: Hooks/filters tables, design tokens, CSS import tree, JS module graph, class reference, CLI commands, deployment Update README.md: trim deep-dive API docs (moved to reference), add documentation links section, fix CSS paths (views/styles/ → styles/), add missing contact-info block, fix deployment filename typo (wpengine,yml → wpengine.yml), add backToTop.js and enqEditorAssets(), add namespace conventions table. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * docs: language graph * docs: Update readme * 🔵 other: Rename project and publish * 🔵 other: Update .gitignore
63 lines
1.6 KiB
PHP
63 lines
1.6 KiB
PHP
<?php
|
|
/**
|
|
* Theme header template
|
|
*
|
|
* @package SoloFrameEvo
|
|
* @since 1.0.0
|
|
*/
|
|
|
|
namespace SoloFrameEvo;
|
|
|
|
global $views;
|
|
|
|
$headerLogo = getFieldValue( 'header.header_logo.url' ) ? getFieldValue( 'header.header_logo.url' ) : get_theme_file_uri( '/static/img/logo.svg' );
|
|
|
|
// Check conditions for displaying the hero section
|
|
$showHero = in_array(
|
|
true,
|
|
array(
|
|
get_field( 'hero_style' ) === 'default',
|
|
is_home(),
|
|
is_archive(),
|
|
is_single(),
|
|
is_search(),
|
|
is_404(),
|
|
),
|
|
true
|
|
);
|
|
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<html <?php language_attributes(); ?>>
|
|
|
|
<head>
|
|
<title><?php wp_title( '' ); ?></title>
|
|
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<?php wp_head(); ?>
|
|
</head>
|
|
|
|
<body <?php echo body_class(); ?>>
|
|
<a class="skip-link" href="#maincontent">
|
|
<?php echo esc_html__( 'Skip to main content' ); ?>
|
|
</a>
|
|
|
|
<header role="banner" class="site-header bg-secondary flex flex-col items-center justify-start">
|
|
<?php get_template_part( 'views/components/nav-aux' ); ?>
|
|
|
|
<div class="header__nav-main container py-4 items-center grid gap-x-8 gap-y-0 grid-cols-[83px_auto] grid-rows-[1fr] justify-between">
|
|
<a href="<?php bloginfo( 'url' ); ?>" class="site-header__logo block size-20">
|
|
<img class="size-full" src="<?php echo esc_url( $headerLogo ); ?>" alt="<?php bloginfo( 'name' ); ?> logo"/>
|
|
</a>
|
|
|
|
<?php get_template_part( 'views/components/nav-main' ); ?>
|
|
</div>
|
|
</header>
|
|
|
|
<main id="maincontent" class="overflow-hidden min-h-[78dvh]">
|
|
<?php if ( $showHero ) : ?>
|
|
<?php get_template_part( 'views/partials/page-hero' ); ?>
|
|
<?php endif; ?>
|