Add documents page.
authorSam White <webmaster@ycra.org.uk>
Wed, 8 Dec 2021 11:59:22 +0000 (11:59 +0000)
committerSam White <webmaster@ycra.org.uk>
Wed, 8 Dec 2021 11:59:22 +0000 (11:59 +0000)
public_html/documents.php [new file with mode: 0644]
public_html/includes/navbar.php

diff --git a/public_html/documents.php b/public_html/documents.php
new file mode 100644 (file)
index 0000000..951b1c5
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+include_once('includes/html-templating.php');
+
+function page_title() {
+  return 'Documents';
+}
+
+function content() { ?>
+  <h1>YCRA Documents</h1>
+
+  <p>Please find link to all of our important public documents below.</p><?php
+
+  $documents = ['privacy-policy-v2.pdf'=>'Privacy Policy'];?>
+
+  <ul><?php
+    foreach ($documents as $filename=>$document) {?>
+      <li><a <?php document_href($filename);?>><?php esc($document);?></a></li><?php
+    }?>
+  </ul>
+
+  <p>Have you spotted a mistake in one of our documents, or have any questions?
+  Please get in touch with us at
+  <a href="mailto:contact@ycra.org.uk">contact@ycra.org.uk</a>.</p><?php
+}
+
+include_once('includes/template.php');
index 025053d75b154bfb612106406be149eef327e91c..5263b388f396a51e4cf64076363bd5b2650c8136 100644 (file)
@@ -21,10 +21,10 @@ function get_menu_pages() {
               ],/*
     'links' => [ 'name' => 'Useful Links',
                 'path' => '#'
-              ],
-    'register' => [ 'name' => 'Register',
-                'path' => '#'
-              ],
+                ],*/
+    'documents' => [ 'name' => 'Documents',
+                'path' => 'documents.php'
+              ],/*
     'login' => [ 'name' => 'Login',
                 'path' => '#'
               ]*/