siwwy :3 #3
					 12 changed files with 32 additions and 37 deletions
				
			
		Move title path thing to page title
				commit
				
					
					
						2195834edb
					
				
			
		| 
						 | 
				
			
			@ -6,7 +6,7 @@
 | 
			
		|||
	<?php require('../inc/header.inc.php'); ?>
 | 
			
		||||
 | 
			
		||||
	<!-- Page-specific -->
 | 
			
		||||
	<title>Bookmarks</title>
 | 
			
		||||
	<?php require_once('../inc/title.inc.php') ?>
 | 
			
		||||
	<!--<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">-->
 | 
			
		||||
	<meta property="og:title" content="title">
 | 
			
		||||
	<meta property="og:description" content="description">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,7 +6,7 @@
 | 
			
		|||
	<?php require('../inc/header.inc.php'); ?>
 | 
			
		||||
 | 
			
		||||
	<!-- Page-specific -->
 | 
			
		||||
	<title>Bookmarks</title>
 | 
			
		||||
	<?php require_once('../inc/title.inc.php') ?>
 | 
			
		||||
	<!--<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">-->
 | 
			
		||||
	<meta property="og:title" content="Bookmarks">
 | 
			
		||||
	<meta property="og:description" content="friends' websites or sites I just find cool">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,7 +5,7 @@
 | 
			
		|||
	<?php require('../inc/header.inc.php'); ?>
 | 
			
		||||
 | 
			
		||||
	<!-- Page-specific -->
 | 
			
		||||
	<title>Calculators</title>
 | 
			
		||||
	<?php require_once('../inc/title.inc.php') ?>
 | 
			
		||||
	<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">
 | 
			
		||||
	<meta property="og:title" content="Calculators">
 | 
			
		||||
	<meta property="og:description" content="C a l c u l a t o r s">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,7 +6,7 @@
 | 
			
		|||
	<?php require('../inc/header.inc.php'); ?>
 | 
			
		||||
 | 
			
		||||
	<!-- Page-specific -->
 | 
			
		||||
	<title>Computers</title>
 | 
			
		||||
	<?php require_once('../inc/title.inc.php') ?>
 | 
			
		||||
	<!--<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">-->
 | 
			
		||||
	<meta property="og:title" content="Computers">
 | 
			
		||||
	<meta property="og:description" content="Computers I own or have owned.">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,7 +6,7 @@
 | 
			
		|||
	<?php require('../inc/header.inc.php'); ?>
 | 
			
		||||
 | 
			
		||||
	<!-- Page-specific -->
 | 
			
		||||
	<title>Guestbook</title>
 | 
			
		||||
	<?php require_once('../inc/title.inc.php') ?>
 | 
			
		||||
	<!--<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">-->
 | 
			
		||||
	<meta property="og:title" content="Guestbook">
 | 
			
		||||
	<meta property="og:description" content="h">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,7 +6,7 @@
 | 
			
		|||
	<?php require('../inc/header.inc.php'); ?>
 | 
			
		||||
 | 
			
		||||
	<!-- Page-specific -->
 | 
			
		||||
	<title>Guestbook</title>
 | 
			
		||||
	<?php require_once('../inc/title.inc.php') ?>
 | 
			
		||||
	<!--<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">-->
 | 
			
		||||
	<!--<meta property="og:image" content="/res/img/icons/png/computer.png">-->
 | 
			
		||||
</head>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -9,31 +9,4 @@
 | 
			
		|||
			<a href="/guestbook/">guestbook</a>
 | 
			
		||||
		</div>
 | 
			
		||||
	</nav>
 | 
			
		||||
	<div class="pagetree">
 | 
			
		||||
			<span class="title">
 | 
			
		||||
				<?php
 | 
			
		||||
				$uri = $_SERVER['REQUEST_URI'];
 | 
			
		||||
				if ($uri === '/') { echo '~floppydisk'; }
 | 
			
		||||
				else {
 | 
			
		||||
					$uri = substr(substr($uri, 1), 0, -1);
 | 
			
		||||
					if (!strpos($uri, '/')) {
 | 
			
		||||
						$uriArr = explode('/', $uri);
 | 
			
		||||
						$link = "/";
 | 
			
		||||
						$links = '<a href="/">~floppydisk</a> / ';
 | 
			
		||||
						$currentDir = basename(getcwd());
 | 
			
		||||
						foreach($uriArr as $page) {
 | 
			
		||||
							if ($page !== $currentDir) {
 | 
			
		||||
								if ($link !== '/') $link = $link . '/' . $page;
 | 
			
		||||
								else $link = $link . $page;
 | 
			
		||||
								$links = $links . '<a href="' . $link . '">' . $page . '</a> / ';
 | 
			
		||||
							}
 | 
			
		||||
						}
 | 
			
		||||
						$links = substr($links, 0, -3) . ' / ' . $currentDir;
 | 
			
		||||
						echo $links;
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
				?>
 | 
			
		||||
				
 | 
			
		||||
			</span>
 | 
			
		||||
	</div> <!-- pagetree -->
 | 
			
		||||
</div> <!-- header -->
 | 
			
		||||
							
								
								
									
										22
									
								
								inc/title.inc.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								inc/title.inc.php
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,22 @@
 | 
			
		|||
<title><?php
 | 
			
		||||
$uri = $_SERVER['REQUEST_URI'];
 | 
			
		||||
if ($uri === '/') { echo '~floppydisk'; }
 | 
			
		||||
else {
 | 
			
		||||
    $uri = substr(substr($uri, 1), 0, -1);
 | 
			
		||||
    if (!strpos($uri, '/')) {
 | 
			
		||||
        $uriArr = explode('/', $uri);
 | 
			
		||||
        $link = "/";
 | 
			
		||||
        $links = '~floppydisk / ';
 | 
			
		||||
        $currentDir = basename(getcwd());
 | 
			
		||||
        foreach($uriArr as $page) {
 | 
			
		||||
            if ($page !== $currentDir) {
 | 
			
		||||
                if ($link !== '/') $link = $link . '/' . $page;
 | 
			
		||||
                else $link = $link . $page;
 | 
			
		||||
                $links = $links . $link . $page . ' / ';
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        $links = substr($links, 0, -3) . ' / ' . $currentDir;
 | 
			
		||||
        echo $links;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
?></title>
 | 
			
		||||
| 
						 | 
				
			
			@ -7,7 +7,7 @@
 | 
			
		|||
    <?php require('./inc/header.inc.php'); ?>
 | 
			
		||||
 | 
			
		||||
    <!-- Page-specific -->
 | 
			
		||||
    <title>~floppydisk</title>	
 | 
			
		||||
    <?php require_once('./inc/title.inc.php') ?>
 | 
			
		||||
    <meta property="og:title" content="~floppydisk">
 | 
			
		||||
    <meta property="og:description" content="This is the personal homepage of floppydisk.">
 | 
			
		||||
    <meta property="og:image" content="/favicon.png">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,7 +6,7 @@
 | 
			
		|||
	<?php require('../inc/header.inc.php'); ?>
 | 
			
		||||
 | 
			
		||||
	<!-- Page-specific -->
 | 
			
		||||
	<title>Calculators</title>
 | 
			
		||||
	<?php require_once('../inc/title.inc.php') ?>
 | 
			
		||||
	<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">
 | 
			
		||||
	<meta property="og:title" content="Calculators">
 | 
			
		||||
	<meta property="og:description" content="C a l c u l a t o r s">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,7 +6,7 @@
 | 
			
		|||
	<?php require('../inc/header.inc.php'); ?>
 | 
			
		||||
 | 
			
		||||
	<!-- Page-specific -->
 | 
			
		||||
	<title>Pictures</title>
 | 
			
		||||
	<?php require_once('../inc/title.inc.php') ?>
 | 
			
		||||
	<!--<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">-->
 | 
			
		||||
	<meta property="og:title" content="Pictures">
 | 
			
		||||
	<meta property="og:description" content="description">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,7 +6,7 @@
 | 
			
		|||
	<?php require('../inc/header.inc.php'); ?>
 | 
			
		||||
 | 
			
		||||
	<!-- Page-specific -->
 | 
			
		||||
	<title>Projects</title>
 | 
			
		||||
	<?php require_once('../inc/title.inc.php') ?>
 | 
			
		||||
	<!--<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">-->
 | 
			
		||||
	<meta property="og:title" content="Projects">
 | 
			
		||||
	<meta property="og:description" content="Personal and group projects">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue