Created
September 4, 2011 03:24
-
-
Save kyl191/1192193 to your computer and use it in GitHub Desktop.
Az
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Templatefile</title> | |
<style type="text/css"> | |
body {margin-left: 4%; margin-right: 4%; background-color: #000;} | |
p {text-indent: 1.5em} | |
p.c1 {text-align: center} | |
p.c2 {color: #0D0; font-family: fixedsys, monopoint, terminal} | |
h1.c1 {color: #0D0; font-family: fixedsys, monopoint, terminal} | |
h2.mid {margin-top: 3em; margin-bottom:.4em; text-align:center} | |
h3.h3 {color: #0D0; font-family: fixedsys, monopoint, terminal} | |
h3.c2 {text-align: center} | |
h4.mid {margin-top: 0em; margin-bottom: 0em; text-align:center} | |
h5.h5 {color: #0D0; font-family: fixedsys, monopoint, terminal} | |
div.c2 {text-align: center} | |
div.c4 {color: #0D0; font-family: fixedsys, monopoint, terminal} | |
span.c1 {font-size: 120%} | |
span.c3 {color: #0D0; font-family: fixedsys, monopoint, terminal} | |
</style> | |
</head> | |
<body> | |
<div class="c2"> | |
<h1 class="c1"> | |
Large Header, centered | |
</h1> | |
<h3 class="h3"> | |
Witty sub-header | |
</h3> | |
</div> | |
<h5 class="h5"> | |
<span class="c1"> | |
Hey look, arbitrary extra title field. Chapters or sommat hey? | |
</span> | |
</h5> | |
<div> | |
<p> | |
<?php | |
$articles = array(); | |
foreach (new DirectoryIterator('.') as $item) { | |
$filename = $item->getPathname(); | |
if (strcasecmp(substr($filename, strrpos($filename, ".")), ".html") == 0){ | |
$articles[] = $filename; | |
} | |
} | |
sort($articles); | |
reset($articles); | |
foreach ($articles as $article){ | |
echo "<div class='news'>".file_get_contents($article)."</div>"; | |
} | |
?> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment