Move PHP files to /common/php/
This commit is contained in:
13
common/php/h1_month.php
Normal file
13
common/php/h1_month.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
//Sets the proper level 1 heading for the folder.
|
||||
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/get_month_name.php');
|
||||
$current_dir = basename(getcwd());
|
||||
$named_month = get_month_name($current_dir);
|
||||
if ( $named_month == "blog") {
|
||||
echo "<h1>Blog Posts</h1>";
|
||||
}elseif ($named_month == "by_year"){
|
||||
echo "<h1>Posts by Year</h1>";
|
||||
} else {
|
||||
echo "<h1>Posts for ". $named_month ."</h1> ";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user