From 4d4ce6f0a5498e53f1abe70d0bb16e55be1845cc Mon Sep 17 00:00:00 2001 From: manfromhuh Date: Fri, 15 Jul 2022 21:24:36 -0400 Subject: [PATCH] Add author pfp --- blog/authors/index.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/blog/authors/index.php b/blog/authors/index.php index 78ab949..7244688 100644 --- a/blog/authors/index.php +++ b/blog/authors/index.php @@ -43,7 +43,12 @@ if (file_exists($dir) && is_dir($dir) ) { foreach($file_array as $file) {//Renders the folder names as more readable titles. $link_title = str_replace('_',' ',$file);//Remove undersores and replace them with spaces $link_title = str_replace($_replace,'',$link_title); - echo("\n");//Output the result. + if (file_exists($file."/pfp.png")){ + $pfp_path = $file."/pfp.png"; + } else { + $pfp_path = ""; + } + echo("\n");//Output the result. } } else { echo "";