Merge with upstream #3

Merged
manfromhuh merged 19 commits from 20xd6/simple_blog:master into master 2022-07-26 10:42:55 -04:00
Showing only changes of commit 4929ea5eb8 - Show all commits

View File

@ -41,12 +41,8 @@ if (file_exists($dir) && is_dir($dir) ) {
}
if (sizeof($file_array) != 0){
foreach($file_array as $file) {//Renders the folder names as more readable titles.
$_replace = array('.php', '.html', '.htm');//Remove file extensions from webpages.
$link_title = str_replace('_',' ',$file);//Remove undersores and replace them with spaces
$link_title = str_replace($_replace,'',$link_title);
$link_title = ucwords($link_title);//Set the first letter of each word to upercase.
$link_title = get_month_name($link_title);//
$link_title = remove_sorting_number($link_title);//Removes the number used to keep articles in post order from the displayed title.
echo("<ul><li><a href='$file'> $link_title </a></li></ul>\n");//Output the result.
}
} else {