Example of Menu in header (editable)

Any examples to have a shared component (either php or .shtml) on doing either a header / footer or Menu that is editable.

Main Page index.php

Components
      header.inc
      menu.inc
      footer.inc

Thanks

Hi @jimiz

My construct is as follows. I have all files in the root. Both my .php files and my .inc files.

My header.inc contains opening tags (doctype, html, head, body) and the visible header.
My footer.inc contains the closing tags (/body and /html) and the bottom menu / foot text.

.php file

`<?php ` `$pageTitle = "Page Title";` `include("$_SERVER[DOCUMENT_ROOT]/header.inc");` `?>`

Divs and content of this page.

<?php include("$_SERVER[DOCUMENT_ROOT]/footer.inc"); ?>

header.inc

`` `` `` ` ` ` <?=$pageTitle?>` links and scripts `` `` divs for head icon and menu

Hope the idea is clear.