summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorNaglfar <naglfar@tilde.institute>2021-01-11 19:56:06 +0100
committerNaglfar <naglfar@tilde.institute>2021-01-11 19:56:06 +0100
commitbf0d6e35c962691a13c1d6f6e40cf24cf1b31f51 (patch)
tree9750a48bba4276b7971053c85eace2a44a4f0f4f
parent052ea1501ffb841862c340124f1799035c58afc4 (diff)
downloadMightyWVMS-bf0d6e35c962691a13c1d6f6e40cf24cf1b31f51.tar.gz
Move header to an php script
-rw-r--r--divs/head.php7
-rw-r--r--index.php7
2 files changed, 8 insertions, 6 deletions
diff --git a/divs/head.php b/divs/head.php
new file mode 100644
index 0000000..6b90913
--- /dev/null
+++ b/divs/head.php
@@ -0,0 +1,7 @@
+<head>
+  <title><?php printf("%s - %s", $vdata[2], $wsdata[0]) ?></title>
+  <meta name="description" content="<?php echo $wsdata[4] ?>" />
+  <meta name="viewport" content="width=device-width,initial-scale=1.0">
+  <link rel="stylesheet" type="text/css" href="/theme/body-wrapper.css"/>
+  <link rel="shortcut icon" href="/theme/favicon.ico" type="image/x-icon">
+</head>
diff --git a/index.php b/index.php
index 91a70b4..f4618c2 100644
--- a/index.php
+++ b/index.php
@@ -7,12 +7,7 @@ require 'php/wd-procedures.php';  #video management (Write/update data)
 ?>
 <!DOCTYPE html>
 <html lang="<?php echo $wsdata[3] ?>">
-<head>
-  <title><?php printf("%s - %s", $vdata[2], $wsdata[0]) ?></title>
-  <meta name="description" content="<?php echo $wsdata[4] ?>" />
-  <meta name="viewport" content="width=device-width,initial-scale=1.0">
-  <link rel="stylesheet" type="text/css" href="/theme/body-wrapper.css"/>
-</head>
+<?php require 'divs/head.php' ?>
 <body>
   <div id="body-wrapper">
     <div id="header"></div>