Implements the Technology hub + 6 pillar detail pages, reusing the data + partial pattern established for Solutions and Industries. - inc/technology-data.php: 6 pillars keyed by slug, copy verbatim from PDF Strategie & Contenu D.12-D.17 (vr-hardware, software-ai, weapons-tracking, scenarios, instructor-cockpit, after-action-review). - templates/page-technology-detail.php: Custom Template that reuses template-parts/industry-detail.php (same hero + sections + conversion banner schema works for both industries and technology). - templates/page-technology-overview.php: hub /technology/ with 6 pillar cards (eyebrow numbered 01-06, gold accent). 7 pages seeded by one-shot mu-plugin (asterion-seed-technology.php in LocalWP). All URLs verified HTTP 200: /technology/ 55 KB /technology/vr-hardware/ 62 KB /technology/software-ai/ 61 KB /technology/weapons-tracking/ 57 KB /technology/scenarios/ 60 KB /technology/instructor-cockpit/ 59 KB /technology/after-action-review/ 61 KB Project tally now: 18 live pages (home + 5 solutions + 5 industries + 7 technology). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
30 lines
915 B
PHP
30 lines
915 B
PHP
<?php
|
|
/**
|
|
* Template Name: Technology Detail
|
|
*
|
|
* Custom page template for the 6 /technology/* sub-pages.
|
|
* Same data schema as industries — reuses template-parts/industry-detail.php.
|
|
*
|
|
* @package AsterionBricks
|
|
*/
|
|
defined('ABSPATH') || exit;
|
|
|
|
$slug = get_post_field('post_name', get_queried_object_id());
|
|
$data = include AV_THEME_DIR . '/inc/technology-data.php';
|
|
|
|
if (! isset($data[$slug])) {
|
|
get_header();
|
|
echo '<section class="av-section"><div class="av-container">';
|
|
echo '<h1>' . esc_html(get_the_title()) . '</h1>';
|
|
echo '<p>' . esc_html__('Technology data not found for slug:', 'asterion-bricks') . ' ' . esc_html($slug) . '</p>';
|
|
echo '</div></section>';
|
|
get_footer();
|
|
return;
|
|
}
|
|
|
|
get_header();
|
|
// industry-detail partial expects the data under `av_industry`.
|
|
set_query_var('av_industry', $data[$slug]);
|
|
get_template_part('template-parts/industry-detail');
|
|
get_footer();
|