From 034dc7091e6b7d6911bb3f251bc499611c4c92c4 Mon Sep 17 00:00:00 2001 From: "fred.boniface" Date: Sat, 29 Oct 2022 20:44:47 +0100 Subject: [PATCH] Initial test of PHP templating --- new_index.php | 21 +++++++ new_index.html => page-blocks/MASTER.html | 0 page-blocks/footer.php | 6 +- page-blocks/head-img-face.php | 4 ++ page-blocks/head-img.php | 7 +++ page-blocks/head.php | 9 +-- page-blocks/menu.php | 69 +++++++++++++++++++---- page-blocks/micro-content.php | 6 ++ page-blocks/template.php | 21 ------- 9 files changed, 105 insertions(+), 38 deletions(-) create mode 100644 new_index.php rename new_index.html => page-blocks/MASTER.html (100%) create mode 100644 page-blocks/head-img-face.php create mode 100644 page-blocks/head-img.php create mode 100644 page-blocks/micro-content.php delete mode 100644 page-blocks/template.php diff --git a/new_index.php b/new_index.php new file mode 100644 index 0000000..2975518 --- /dev/null +++ b/new_index.php @@ -0,0 +1,21 @@ + + + + + + + + + + +
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce ut eros leo. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Cras tempus, leo sit amet placerat sollicitudin, magna massa vehicula nisi, sed malesuada odio velit iaculis est. Cras egestas nec lectus ac ultrices. Interdum et malesuada fames ac ante ipsum primis in faucibus. Suspendisse cursus odio et massa finibus consequat non sed dolor. Suspendisse eu leo ut nunc tincidunt lacinia. Sed faucibus eu enim sit amet commodo. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Quisque commodo laoreet odio, ac sollicitudin odio.

+

Sed volutpat, dolor quis dignissim varius, risus urna tincidunt nulla, non bibendum urna ante eget enim. Pellentesque sit amet neque lobortis, auctor nulla sagittis, bibendum nisl. Proin fermentum tristique dolor, in vehicula mi efficitur et. Fusce ac justo nulla. In eget odio felis. Suspendisse et tellus tincidunt, consequat mi eu, gravida neque. In elementum lacus ut convallis ornare. Mauris elementum lorem felis, et tincidunt massa consectetur in. Suspendisse ut augue blandit, efficitur augue nec, pellentesque odio. Nulla aliquet arcu vitae vehicula ultricies.

+

Ispum

+

Sed eleifend massa sed sagittis malesuada. Phasellus velit urna, congue sit amet felis dictum, congue ornare tortor. Donec consequat lectus sit amet iaculis ornare. Pellentesque luctus, orci a sagittis efficitur, dolor justo convallis dolor, vitae aliquam dolor eros a nunc. Sed suscipit volutpat est ac ultrices. Cras tempus tellus est, eu tristique est gravida eget. Nulla turpis odio, aliquam id vehicula non, dignissim egestas orci. Suspendisse pulvinar enim eu tortor tincidunt, vel luctus purus pellentesque. Curabitur efficitur mollis est, at imperdiet dui auctor a. Ut malesuada lacus ac nulla tempor sollicitudin. Pellentesque enim elit, eleifend eget ligula sit amet, sagittis efficitur elit. Donec blandit tellus ut vestibulum iaculis. Fusce vel ipsum non felis bibendum porttitor a ut dui. Donec ornare augue augue, a elementum justo ornare quis. Praesent ante tellus, blandit in ultricies id, bibendum sit amet mi. Suspendisse tristique ornare erat.

+

Praesent malesuada sit amet libero eu volutpat. Duis lacinia turpis sit amet malesuada bibendum. Pellentesque ut velit at turpis placerat consequat id sed augue. Cras eleifend augue sem, sed hendrerit nibh feugiat eu. Nam cursus lectus fermentum quam feugiat porttitor. Sed bibendum a enim ut commodo. Maecenas lacinia dolor ante, vel bibendum nulla venenatis aliquam. Aenean ultricies felis eros, quis cursus arcu dictum vitae.

+

Ut magna urna, pretium tincidunt congue id, sodales sed lacus. Suspendisse potenti. Aenean nec quam ultrices, dignissim velit sit amet, cursus nisl. Duis nec risus a nisl porta fringilla. Phasellus vel fermentum justo, a malesuada ex. Nullam eu metus quis arcu sodales vestibulum. Maecenas efficitur gravida risus vitae pretium. Donec non nulla sodales, consectetur est ut, tristique nisl. Phasellus sed dui sed erat efficitur cursus. Vestibulum eget est purus. Aliquam mi ante, hendrerit ac ornare ac, imperdiet et diam. Nunc fermentum nunc faucibus massa finibus mattis.

+
+ + + \ No newline at end of file diff --git a/new_index.html b/page-blocks/MASTER.html similarity index 100% rename from new_index.html rename to page-blocks/MASTER.html diff --git a/page-blocks/footer.php b/page-blocks/footer.php index 9dae3cd..0842d09 100644 --- a/page-blocks/footer.php +++ b/page-blocks/footer.php @@ -1 +1,5 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/page-blocks/head-img-face.php b/page-blocks/head-img-face.php new file mode 100644 index 0000000..2899b57 --- /dev/null +++ b/page-blocks/head-img-face.php @@ -0,0 +1,4 @@ + + + Face image + \ No newline at end of file diff --git a/page-blocks/head-img.php b/page-blocks/head-img.php new file mode 100644 index 0000000..643c0dc --- /dev/null +++ b/page-blocks/head-img.php @@ -0,0 +1,7 @@ +
+
+ + +

+
+
\ No newline at end of file diff --git a/page-blocks/head.php b/page-blocks/head.php index e7e3305..e1e487b 100644 --- a/page-blocks/head.php +++ b/page-blocks/head.php @@ -1,7 +1,8 @@ + - - - - \ No newline at end of file + + + <?php echo $page_title ?> + \ No newline at end of file diff --git a/page-blocks/menu.php b/page-blocks/menu.php index d0d03e7..df2a447 100644 --- a/page-blocks/menu.php +++ b/page-blocks/menu.php @@ -1,12 +1,57 @@ - - -
- -
\ No newline at end of file + + \ No newline at end of file diff --git a/page-blocks/micro-content.php b/page-blocks/micro-content.php new file mode 100644 index 0000000..0d98b55 --- /dev/null +++ b/page-blocks/micro-content.php @@ -0,0 +1,6 @@ +
+

+ This website cannot correctly render on a screen this narrow, + Please resize your window or visit on a larger device. +

+
\ No newline at end of file diff --git a/page-blocks/template.php b/page-blocks/template.php deleted file mode 100644 index 56491c7..0000000 --- a/page-blocks/template.php +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - Page Title - - - - - - -

Page Title

-
- -
- - - - - \ No newline at end of file