Added ability to add extra metadata per page

This commit is contained in:
Keplyx 2018-05-23 17:03:18 +02:00
parent defc3a4394
commit 0426172f7c
3 changed files with 16 additions and 3 deletions

View file

@ -274,5 +274,12 @@ function generatePath($path)
<script src="assets/scripts/photosScript.js"></script>
<?php
$pageContent = ob_get_clean(); // Store html content in variable
include("template.php"); // Display template with variable content
?>
<?
ob_start(); // Start reading html
?>
<link rel="stylesheet" type="text/css" media="screen" href="assets/css/photos.css">
<?php
$pageMeta = ob_get_clean(); // Store html content in variable
include("template.php"); // Display template with variable content
?>

View file

@ -91,5 +91,12 @@ ob_start(); // Start reading html
<script src="assets/scripts/planningScript.js"></script>
<?php
$pageContent = ob_get_clean(); // Store html content in variable
?>
<?
ob_start(); // Start reading html
?>
<link rel="stylesheet" type="text/css" media="screen" href="assets/css/planning_events.css">
<?php
$pageMeta = ob_get_clean(); // Store html content in variable
include("template.php"); // Display template with variable content
?>

View file

@ -8,12 +8,11 @@
<link rel="stylesheet" type="text/css" media="screen" href="assets/css/style.css">
<link rel="stylesheet" type="text/css" media="screen" href="assets/css/sidenav.css">
<link rel="stylesheet" type="text/css" media="screen" href="assets/css/hamburger.css">
<link rel="stylesheet" type="text/css" media="screen" href="assets/css/planning_events.css">
<link rel="stylesheet" type="text/css" media="screen" href="assets/css/photos.css">
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/hammer.js/2.0.8/hammer.js"></script>
<link href="https://fonts.googleapis.com/css?family=Nunito+Sans|Work+Sans" rel="stylesheet">
<link rel="shortcut icon" href="favicon.ico">
<?= $pageMeta // Additional metadata ?>
</head>
<body id="main">
<div id="back_button" onclick="closeNav()"></div>