aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-06-27 19:10:09 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-06-27 19:10:09 +0200
commit85b4e3dc56fcec1c751858f70d17f4d4e483e1bf (patch)
treedfafd7e20c4e5487d2ed5f369fc199144cc6c75d /inc
parentAdded the projects welcome page (diff)
downloadjoe-www-85b4e3dc56fcec1c751858f70d17f4d4e483e1bf.tar.gz
joe-www-85b4e3dc56fcec1c751858f70d17f4d4e483e1bf.tar.bz2
joe-www-85b4e3dc56fcec1c751858f70d17f4d4e483e1bf.tar.xz
joe-www-85b4e3dc56fcec1c751858f70d17f4d4e483e1bf.tar.zst
joe-www-85b4e3dc56fcec1c751858f70d17f4d4e483e1bf.zip
Project restructure, subdir content inclusion
Diffstat (limited to 'inc')
-rw-r--r--inc/classic-contents.inc.php48
1 files changed, 32 insertions, 16 deletions
diff --git a/inc/classic-contents.inc.php b/inc/classic-contents.inc.php
index b8c1187..7fb4bca 100644
--- a/inc/classic-contents.inc.php
+++ b/inc/classic-contents.inc.php
@@ -1,56 +1,71 @@
+<!-- ----------------------------------------------------------------------- -->
+<!-- -->
+<!-- File : classic-contents.inc.php /_________/ -->
+<!-- Authors : Joe | -->
+<!-- Date : 06/2020 | -->
+<!-- Info : Functions for contents on every page | -->
+<!-- / | -->
+<!-- \ / -->
+<!-- \_____/ -->
+<!-- -->
+<!-- ----------------------------------------------------------------------- -->
+
<?php
function
jo_head($title) {
+ global $prefix;
?>
<html>
<head>
<title>Joe's own website - <?php echo "$title"; ?></title>
- <link rel="stylesheet" type="text/css" href="css/site.css">
+ <link rel="stylesheet" type="text/css" href="<?php echo $prefix; ?>css/site.css">
<meta charset="UTF-8">
</head>
<body>
<div class="fullpage">
<header>
- <h1><a href="index.php">Joe's dev blog - <?php echo "$title"; ?></a></h1>
+ <h1><a href="<?php echo $prefix; ?>index.php">Joe's dev blog - <?php echo "$title"; ?></a></h1>
</header>
<?php
}
function
jo_bloat_head($title) {
+ global $prefix;
?>
<html>
<head>
<title>Joe's own website - <?php echo "$title"; ?></title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
- <link rel="stylesheet" type="text/css" href="css/site.css">
+ <link rel="stylesheet" type="text/css" href="<?php echo $prefix; ?>css/site.css">
<meta charset="UTF-8">
</head>
<body>
<div class="fullpage">
<header>
- <h1><a href="index.php">Joe's dev blog - <?php echo "$title"; ?></a></h1>
+ <h1><a href="<?php echo $prefix; ?>index.php">Joe's dev blog - <?php echo "$title"; ?></a></h1>
</header>
<?php
}
function
jo_sidebar() {
+ global $prefix;
?>
<div class="sidebar">
<ul>
- <li><a href="index.php">Home</a></li>
- <li><a href="">C</a></li>
- <li><a href="">C++</a></li>
- <li><a href="">Lisp</a></li>
- <li><a href="">Assembly</a></li>
- <li><a href="">UNIX</a></li>
- <li><a href="">GNU Emacs</a></li>
- <li><a href="">My school projects</a></li>
- <li><a href="projects.php">My projects</a></li>
- <li><a href="">My C/C++ style</a></li>
- <li><a href="links.php">Links</a></li>
+ <li><a href="<?php echo $prefix; ?>index.php">Home</a></li>
+ <li><a href="<?php echo $prefix; ?>"c.php">C</a></li>
+ <li><a href="<?php echo $prefix; ?>">C++</a></li>
+ <li><a href="<?php echo $prefix; ?>">Lisp</a></li>
+ <li><a href="<?php echo $prefix; ?>">Assembly</a></li>
+ <li><a href="<?php echo $prefix; ?>">UNIX</a></li>
+ <li><a href="<?php echo $prefix; ?>">GNU Emacs</a></li>
+ <li><a href="<?php echo $prefix; ?>">My school projects</a></li>
+ <li><a href="<?php echo $prefix; ?>projects/">My projects</a></li>
+ <li><a href="<?php echo $prefix; ?>">My C/C++ style</a></li>
+ <li><a href="<?php echo $prefix; ?>links.php">Links</a></li>
</ul>
</div>
<?php
@@ -58,11 +73,12 @@ jo_sidebar() {
function
jo_footer() {
+ global $prefix;
?>
<footer>
<p>
Copyright &copy; 2020, Joe -
- see <a href="license.php">LICENSE</a> -
+ see <a href="<?php echo $prefix; ?>license.php">LICENSE</a> -
we do not use cookies
</p>
</footer>