Add example file.
This commit is contained in:
23
example/site/blog.html.php
Normal file
23
example/site/blog.html.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
$title = "Blog";
|
||||
include("templates/header.html.php");
|
||||
?>
|
||||
|
||||
<p>
|
||||
Welcome to my blog page! Here's a list of my current entries:
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<?php
|
||||
foreach(glob("site/blog/*.cfg.php") as $i)
|
||||
{
|
||||
include($i);
|
||||
$entry_file = substr($i, 4, -8) . '.html';
|
||||
echo "<li><a href='$entry_file'>$blog_date - $blog_title</a></li>";
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
|
||||
<?php
|
||||
include("templates/footer.html.php");
|
||||
?>
|
Reference in New Issue
Block a user