The actual source
A shared header & footer
Read the whole file. This is the code the example uses, not a separately maintained copy.
<?php
$title = 'One header. One footer. Your page.';
require __DIR__ . '/../../partials/example-header.php';
?>
<h1>A few familiar pieces.</h1>
<p>The header and footer are ordinary PHP includes.</p>
<p>Change either shared file, and every page using it changes too.</p>
<?php require __DIR__ . '/../../partials/example-footer.php'; ?>