Skip to content

Commit 95f4fc5

Browse files
author
Yiğit Kerem Oktay
authored
Add support for additional code after head tag
1 parent 8b2c664 commit 95f4fc5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

template.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ public static function render_header($page_name, $admin = false){
2424
<!doctype html>
2525
<html lang="en">
2626
<head>
27+
<?php
28+
$headfile = fopen("head.txt", "r") or die("Unable to open head.txt!");
29+
$head_additionalcode = fread($versionfile,filesize("head.txt"));
30+
fclose($headfile); ?>
2731
<meta charset="utf-8">
2832
<title><?php echo $page_name." - ".NAME ?></title>
2933
<meta name="viewport" content="width=device-width, initial-scale=1">

0 commit comments

Comments
 (0)