forked from 20xd6/simple_blog
Add author pfp to list
This commit is contained in:
parent
4d4ce6f0a5
commit
849d5a25b6
@ -44,11 +44,11 @@ if (file_exists($dir) && is_dir($dir) ) {
|
|||||||
$link_title = str_replace('_',' ',$file);//Remove undersores and replace them with spaces
|
$link_title = str_replace('_',' ',$file);//Remove undersores and replace them with spaces
|
||||||
$link_title = str_replace($_replace,'',$link_title);
|
$link_title = str_replace($_replace,'',$link_title);
|
||||||
if (file_exists($file."/pfp.png")){
|
if (file_exists($file."/pfp.png")){
|
||||||
$pfp_path = $file."/pfp.png";
|
$pfp_path = "$file/pfp.png";
|
||||||
} else {
|
} else {
|
||||||
$pfp_path = "";
|
$pfp_path = "";
|
||||||
}
|
}
|
||||||
echo("<ul><li><img src=\".$pfp_path\" name=\"$file pfp\" width=\"20\" height=\"20\"><a href='$file'> $link_title </a></li></ul>\n");//Output the result.
|
echo("<ul><li><img src=\"$pfp_path\" class=\"pfp\" name=\"$file pfp\" width=\"20\" height=\"20\"><a href='$file'> $link_title </a></li></ul>\n");//Output the result.
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo "<ul><li><a>No Authors<a></li></ul>";
|
echo "<ul><li><a>No Authors<a></li></ul>";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user