Moved <head>-tag to the page files, not all css files will be loaded for each page.

This commit is contained in:
Marijn Jansen
2017-01-13 12:03:46 +01:00
parent 3cd0772224
commit 9db7c6776c
8 changed files with 147 additions and 131 deletions

View File

@@ -1,21 +1,24 @@
<!DOCTYPE html>
<html>
<?php
include("views/head.php");
?>
<body>
<?php
/*
<head>
<?php include("views/head.php"); ?>
<style>
@import url("styles/adminpanel.css");
</style>
</head>
<body>
<?php
/*
* This view adds the main layout over the screen.
* Header and menu.
*/
include("views/main.php");
include("views/main.php");
/* Add your view files here. */
include("views/adminpanel.php");
/* Add your view files here. */
include("views/adminpanel.php");
/* This adds the footer. */
include("views/footer.php");
?>
</body>
/* This adds the footer. */
include("views/footer.php");
?>
</body>
</html>

View File

@@ -1,21 +1,24 @@
<!DOCTYPE html>
<html>
<?php
include("views/head.php");
?>
<body>
<?php
/*
<head>
<?php include("views/head.php"); ?>
<style>
@import url("styles/chat.css");
</style>
</head>
<body>
<?php
/*
* This view adds the main layout over the screen.
* Header, menu, footer.
*/
include("views/main.php");
include("views/main.php");
/* Add your view files here. */
include("views/chat-view.php");
/* Add your view files here. */
include("views/chat-view.php");
/* This adds the footer. */
include("views/footer.php");
?>
</body>
/* This adds the footer. */
include("views/footer.php");
?>
</body>
</html>

View File

@@ -1,21 +1,24 @@
<!DOCTYPE html>
<html>
<?php
include("views/head.php");
?>
<body>
<?php
/*
<head>
<?php include("views/head.php"); ?>
<style>
@import url("styles/profile.css");
</style>
</head>
<body>
<?php
/*
* This view adds the main layout over the screen.
* Header, menu, footer.
*/
include("views/main.php");
include("views/main.php");
/* Add your view files here. */
include("views/group.php");
/* Add your view files here. */
include("views/group.php");
/* This adds the footer. */
include("views/footer.php");
?>
</body>
/* This adds the footer. */
include("views/footer.php");
?>
</body>
</html>

View File

@@ -1,21 +1,24 @@
<!DOCTYPE html>
<html>
<?php
include("views/head.php");
?>
<body>
<?php
/*
<head>
<?php include("views/head.php"); ?>
<style>
@import url("styles/profile.css");
</style>
</head>
<body>
<?php
/*
* This view adds the main layout over the screen.
* Header, menu, footer.
*/
include("views/main.php");
include("views/main.php");
/* Add your view files here. */
include("views/profile.php");
/* Add your view files here. */
include("views/profile.php");
/* This adds the footer. */
include("views/footer.php");
?>
</body>
/* This adds the footer. */
include("views/footer.php");
?>
</body>
</html>

View File

@@ -1,21 +1,24 @@
<!DOCTYPE html>
<html>
<?php
include("views/head.php");
?>
<body>
<?php
/*
<head>
<?php include("views/head.php"); ?>
<style>
@import url("styles/search.css");
</style>
</head>
<body>
<?php
/*
* This view adds the main layout over the screen.
* Header and menu.
*/
include("views/main.php");
include("views/main.php");
/* Add your view files here. */
include("views/search-view.php");
/* Add your view files here. */
include("views/search-view.php");
/* This adds the footer. */
include("views/footer.php");
?>
</body>
/* This adds the footer. */
include("views/footer.php");
?>
</body>
</html>

View File

@@ -1,19 +1,24 @@
<!DOCTYPE html>
<html>
<?php include("views/head.php"); ?>
<body>
<?php
/*
<head>
<?php include("views/head.php"); ?>
<style>
@import url("styles/settings.css");
</style>
</head>
<body>
<?php
/*
* This view adds the main layout over the screen.
* Header and menu.
*/
include("views/main.php");
include("views/main.php");
/* Add your view files here. */
include("views/settings-view.php");
/* Add your view files here. */
include("views/settings-view.php");
/* This adds the footer. */
include("views/footer.php");
?>
</body>
/* This adds the footer. */
include("views/footer.php");
?>
</body>
</html>

View File

@@ -1,21 +1,24 @@
<!DOCTYPE html>
<html>
<?php
include("views/head.php");
?>
<body>
<?php
/*
<head>
<?php include("views/head.php"); ?>
<style>
/*Insert own stylesheet here ;)*/
</style>
</head>
<body>
<?php
/*
* This view adds the main layout over the screen.
* Header and menu.
*/
include("views/main.php");
include("views/main.php");
/* Add your view files here. */
include("views/homepage.php");
/* Add your view files here. */
include("views/homepage.php");
/* This adds the footer. */
include("views/footer.php");
?>
</body>
/* This adds the footer. */
include("views/footer.php");
?>
</body>
</html>

View File

@@ -1,21 +1,14 @@
<head>
<meta charset="utf-8">
<title>MyHyvesbook+</title>
<!-- Add your javascript files here. -->
<script src="js/jquery.js"></script>
<script src="js/header.js"></script>
<script src="js/menu.js"></script>
<style>
<meta charset="utf-8">
<title>MyHyvesbook+</title>
<!-- Add your javascript files here. -->
<script src="js/jquery.js"></script>
<script src="js/header.js"></script>
<script src="js/menu.js"></script>
<style>
/* Add your css files here. */
@import url("styles/main.css");
@import url("styles/profile.css");
@import url("styles/font-awesome.css");
@import url("styles/header.css");
@import url("styles/menu.css");
@import url("styles/footer.css");
@import url("styles/search.css");
@import url("styles/adminpanel.css");
@import url("styles/chat.css");
@import url("styles/settings.css");
</style>
</head>
</style>