-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
94 lines (86 loc) · 3.92 KB
/
header.php
File metadata and controls
94 lines (86 loc) · 3.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script>
(function() {
var theme = localStorage.getItem('minimalcode-theme') || 'light';
document.documentElement.setAttribute('data-theme', theme);
})();
</script>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<div class="ticker" aria-label="<?php esc_attr_e( 'Site status ticker', 'minimalcode' ); ?>">
<div class="ticker-track">
<?php
$ticker_items = array(
'automem recall pipeline live',
'autohub orchestration notes',
'wp fusion still pays the bills',
'autojack last pass: recent',
'skills indexed locally',
'debug notes from production',
);
foreach ( array_merge( $ticker_items, $ticker_items ) as $ticker_item ) :
?>
<span><?php echo esc_html( $ticker_item ); ?><span class="dot">•</span></span>
<?php endforeach; ?>
</div>
</div>
<header class="masthead wrap">
<div class="mast-row">
<div class="brand">
<a class="brand-logo" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<?php bloginfo( 'name' ); ?>
</a>
<div class="brand-meta">
VOL.04 / <span class="iss">ISS.27</span><br>
EST. 2009 · MIA / LTS / GPL<br>
jack arturo · vgp
</div>
</div>
<div class="mast-tag serif">
"Just another <span class="pull">Wordprussite</span>." — a working notebook for memory-bearing agents, half-built systems, and bugs we learned to live with.
</div>
<div class="mast-utility">
<button class="util-btn search-trigger" aria-label="Search (⌘K)" title="Search (⌘K)">
<span class="search-kbd">⌘K</span>
<span class="search-trigger-label"><?php esc_html_e( 'Search', 'minimalcode' ); ?></span>
</button>
<button class="util-btn theme-toggle" aria-label="Toggle dark mode" title="Toggle dark mode">
<span class="sun-icon"><?php esc_html_e( 'Light', 'minimalcode' ); ?></span>
<span class="moon-icon"><?php esc_html_e( 'Dark', 'minimalcode' ); ?></span>
</button>
<a class="util-btn hot" href="<?php echo esc_url( get_feed_link() ); ?>"><?php esc_html_e( 'RSS', 'minimalcode' ); ?></a>
</div>
</div>
</header>
<?php
$minimalcode_virtual = get_query_var( 'minimalcode_virtual' );
$is_log_active = is_home() && empty( $minimalcode_virtual );
$is_dev_pulse_active = ( 'dev-pulse' === $minimalcode_virtual );
$is_colophon_active = ( 'colophon' === $minimalcode_virtual );
?>
<nav class="nav wrap" aria-label="<?php esc_attr_e( 'Primary navigation', 'minimalcode' ); ?>">
<a class="nav-item <?php echo $is_log_active ? 'active' : ''; ?>" href="<?php echo esc_url( home_url( '/' ) ); ?>">
<span class="nav-num">01</span> <?php esc_html_e( 'Log', 'minimalcode' ); ?>
</a>
<a class="nav-item <?php echo is_post_type_archive( 'projects' ) ? 'active' : ''; ?>" href="<?php echo esc_url( get_post_type_archive_link( 'projects' ) ); ?>">
<span class="nav-num">02</span> <?php esc_html_e( 'Projects', 'minimalcode' ); ?>
</a>
<a class="nav-item <?php echo $is_dev_pulse_active ? 'active' : ''; ?>" href="<?php echo esc_url( home_url( '/dev-pulse/' ) ); ?>">
<span class="nav-num">03</span> <?php esc_html_e( 'Dev Pulse', 'minimalcode' ); ?>
</a>
<a class="nav-item <?php echo is_page( 'about' ) ? 'active' : ''; ?>" href="<?php echo esc_url( home_url( '/about/' ) ); ?>">
<span class="nav-num">04</span> <?php esc_html_e( 'About', 'minimalcode' ); ?>
</a>
<a class="nav-item <?php echo $is_colophon_active ? 'active' : ''; ?>" href="<?php echo esc_url( home_url( '/colophon/' ) ); ?>">
<span class="nav-num">05</span> <?php esc_html_e( 'Colophon', 'minimalcode' ); ?>
</a>
<span class="nav-spacer" aria-hidden="true"></span>
<span class="nav-status"><span class="live-dot"></span><?php esc_html_e( 'Live', 'minimalcode' ); ?></span>
</nav>
<main id="main" class="site-main">