* 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
34 lines
907 B
PHP
34 lines
907 B
PHP
<?php
|
|
/**
|
|
* Main Navigation - Menu Items outer list
|
|
*
|
|
* Please review documentation upon first use, and, as-needed:
|
|
* https://docs.vincentdevelopment.ca/docs/starter-v3-enhancements/navigation/
|
|
*/
|
|
|
|
namespace SoloFrameEvo;
|
|
|
|
// Variables available from MenuItems component:
|
|
// $topLevelNavItems, $hasChildren, $nestedNavItems, $currentPage, $location
|
|
|
|
if ( $location === 'main_navigation' ) {
|
|
$menuID = 'menu-container';
|
|
} else {
|
|
$menuID = 'menu-container-aux';
|
|
}
|
|
?>
|
|
|
|
<ul id="<?php echo esc_attr( $menuID ); ?>" class="menu-vdi">
|
|
<li class="menu-item menu-item--search px-4 lg:hidden">
|
|
<?php get_template_part( 'views/forms/search' ); ?>
|
|
</li>
|
|
|
|
<?php foreach ( $topLevelNavItems as $item ) : ?>
|
|
<?php if ( $hasChildren( $item ) ) : ?>
|
|
<?php include __DIR__ . '/has-children.php'; ?>
|
|
<?php else : ?>
|
|
<?php include __DIR__ . '/single.php'; ?>
|
|
<?php endif; ?>
|
|
<?php endforeach; ?>
|
|
</ul>
|