Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Commit

Permalink
Moves theming to separate theme folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
Potherca committed May 15, 2015
1 parent a2341c6 commit bc84cb9
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 5 deletions.
5 changes: 5 additions & 0 deletions common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

$sThemeDir = 'themes/default/';

/*EOF*/
6 changes: 3 additions & 3 deletions footer.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
date_default_timezone_set('Europe/Amsterdam');
require 'common.php';

$sReadme = '';
$aReadMeExtensions = array('.html','.md','.txt');
Expand Down Expand Up @@ -28,7 +28,7 @@

<?php echo $_SERVER['SERVER_SIGNATURE'] ?>

<script src="/Directory_Listing_Theme/zepto.min.js"></script>
<script src="/Directory_Listing_Theme/functions.js"></script>
<script src="/Directory_Listing_Theme/<?= $sThemeDir; ?>zepto.min.js"></script>
<script src="/Directory_Listing_Theme/<?= $sThemeDir; ?>functions.js"></script>
</body>
</html>
7 changes: 5 additions & 2 deletions header.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<!DOCTYPE html>
<?php

require 'common.php';

if(isset($_SERVER['WEB_ROOT'])){
$sRoot = $_SERVER['WEB_ROOT'];
}
Expand Down Expand Up @@ -107,8 +110,8 @@
<meta charset="utf-8" />
<title>Index of <?= $sIndex;?></title>

<link href="/Directory_Listing_Theme/dirlisting.css" rel="stylesheet" />
<link href="/Directory_Listing_Theme/thumbnails.css" rel="stylesheet" />
<link href="/Directory_Listing_Theme/<?= $sThemeDir; ?>dirlisting.css" rel="stylesheet" />
<link href="/Directory_Listing_Theme/<?= $sThemeDir; ?>thumbnails.css" rel="stylesheet" />

<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
</head>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit bc84cb9

Please sign in to comment.