<?php
//session_start();

  //  if(isset($_SESSION['jfdhgkldjsfhglkjhsdfgkjhafgdskhjl'])) {
    //    $txtMsg = "You are now logged in"; // optional
   // }else {
     //   header("Location:welcome.php");
   // }
//ask Jim if it's possible to do this or if I need a seperate login page

//Includes switch that controls all variables
include("include/header.php"); 
// calls the different functions


//$html = $_POST['myTextDB']; 	
//if($html != ""){ 				
//	writeToBlog($html); 		
//}

?>

    <!doctype html>
    <html class="no-js" lang="">

    <head>
        <meta charset="utf-8">
        <meta http-equiv="x-ua-compatible" content="ie=edge">
        <title>
            <?php echo $thisPageTitle; ?>
        </title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <link rel="apple-touch-icon" href="apple-touch-icon.png">
        <!-- Place favicon.ico in the root directory -->

        <link rel="stylesheet" href="css/normalize.css">
        <link rel="stylesheet" href="css/main.css">
        <link rel="stylesheet" href="css/font-awesome.css">
        <link href="https://fonts.googleapis.com/css?family=Rajdhani:400,500,700" rel="stylesheet">
        <script src="js/vendor/modernizr-2.8.3.min.js"></script>
    </head>

    <body>
        <header class="clearfix index" id="site-header">
            <?php include("include/nav.php"); ?>
        </header>

        <div class="wrapper">
            <h1 class="title">
                <?php echo $thisPageTitle ?>
            </h1>

            <main>
                <?php include($thisMainFile); ?>
            </main>
        </div>
        <footer>
            <?php
        include("include/footer.php");
        ?>
        </footer>
    </body>

    </html>
