2015-07-15 12:12:44 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// main menu
|
|
|
|
echo '
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2016-03-16 10:47:28 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>The Book of Shaders'.$subtitle.'</title>
|
|
|
|
<link href="/favicon.gif" rel="shortcut icon"/>
|
|
|
|
<meta name="keywords" content="shader,openGL,WebGL,GLSL,book,procedural,generative" />
|
|
|
|
<meta name="description" content="Gentle step-by-step guide through the abstract and complex universe of Fragment Shaders." />
|
|
|
|
|
|
|
|
<meta name="twitter:site" content="@bookofshaders">
|
|
|
|
<meta name="twitter:title" content="The Book Of Shaders">
|
|
|
|
<meta name="twitter:description" content="Gentle step-by-step guide through the abstract and complex universe of Fragment Shaders.">
|
|
|
|
<meta name="twitter:creator" content="@patriciogv">
|
|
|
|
<meta name="twitter:domain" content="thebookofshaders.edu">
|
|
|
|
<link href="/favicon.gif" rel="shortcut icon"/>
|
|
|
|
|
|
|
|
<!-- Highlight -->
|
|
|
|
<link type="text/css" rel="stylesheet" href="'.$path.'/css/github.css">
|
|
|
|
<script type="text/javascript" src="'.$path.'/src/highlight.min.js"></script>
|
|
|
|
|
|
|
|
<!-- GlslCanvas -->
|
|
|
|
';
|
|
|
|
|
|
|
|
if (file_exists($path."/src/glslCanvas/build/GlslCanvas.min.js")) {
|
|
|
|
echo '<script type="text/javascript" src="'.$path.'/src/glslCanvas/build/GlslCanvas.min.js"></script>';
|
|
|
|
} else {
|
2016-03-18 11:55:55 +00:00
|
|
|
echo '<script type="text/javascript" src="http://patriciogonzalezvivo.com/glslCanvas/build/GlslCanvas.min.js"></script>';
|
2016-03-16 10:47:28 +00:00
|
|
|
}
|
|
|
|
echo '
|
|
|
|
<!-- GlslEditor -->';
|
|
|
|
if (file_exists($path."/src/glslEditor/build/glslEditor.js")) {
|
|
|
|
echo '
|
|
|
|
<link type="text/css" rel="stylesheet" href="'.$path.'/src/glslEditor/build/glslEditor.css">
|
|
|
|
<script type="application/javascript" src="'.$path.'/src/glslEditor/build/glslEditor.js"></script>';
|
|
|
|
} else {
|
|
|
|
echo '
|
2016-03-18 11:55:55 +00:00
|
|
|
<link type="text/css" rel="stylesheet" href="http://patriciogonzalezvivo.com/glslEditor/build/glslEditor.css">
|
|
|
|
<script type="application/javascript" src="http://patriciogonzalezvivo.com/glslEditor/build/glslEditor.js"></script>';
|
2016-03-16 10:47:28 +00:00
|
|
|
}
|
|
|
|
echo '
|
|
|
|
<link type="text/css" rel="stylesheet" href="'.$path.'/css/style.css">
|
2016-02-28 17:14:23 +00:00
|
|
|
|
2016-03-16 10:47:28 +00:00
|
|
|
<!-- Translation -->
|
|
|
|
';
|
2015-08-14 06:47:07 +00:00
|
|
|
|
2015-08-05 11:39:27 +00:00
|
|
|
if ( $language !== '' && file_exists($path.'/css/style'.$language.'.css') ) {
|
2016-03-16 10:47:28 +00:00
|
|
|
echo '<link type="text/css" rel="stylesheet" href="'.$path.'/css/style'.$language.'.css">';
|
2015-08-05 11:39:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
echo '
|
2016-03-16 10:47:28 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
';
|
2015-07-15 12:12:44 +00:00
|
|
|
?>
|
2016-03-04 15:40:21 +00:00
|
|
|
|
2016-03-08 12:44:37 +00:00
|
|
|
|
|
|
|
|