Browse code

add main menu

Blackbeard authored on 2018-10-07 22:18:59
Showing 2 changed files
... ...
@@ -3,6 +3,7 @@
3 3
 include_once 'helpers/paths.php'; 
4 4
 $PAGE_TITLE = "albertoefg.info"; 
5 5
 paths_subview('header.php');
6
+paths_subview('menu.php');
6 7
 ?>
7 8
 <!-- END PHP -->
8 9
 
... ...
@@ -20,8 +21,7 @@ echo "</head>";
20 21
 <body>
21 22
     <div id="main">
22 23
 	<article>
23
-	<h1>albertoefg</h1>
24
-	<p class="subtitle">My thoughts and random stuff</p>
24
+	    <?php menu_main(); ?>
25 25
 	<section>
26 26
             <p>This is the front page, soon content will go here</p>
27 27
 	</section>
28 28
new file mode 100644
... ...
@@ -0,0 +1,18 @@
1
+<?php
2
+// Title -> HTML
3
+// Outputs html for the <!DOCTYPE> of a page
4
+
5
+function menu_main() {
6
+    echo <<<EOL
7
+    <h1 class="title" href="/">albertoefg</h1>
8
+    <p>
9
+	<span class="newthought">
10
+	    <a href="/blog"> Blog</a>
11
+	    <a href="/about.html"> About</a>
12
+	    <a href="/contact">Contact </a>
13
+	</span>
14
+    </p>
15
+EOL;
16
+}
17
+
18
+?>