forked from 20xd6/simple_blog
Reviewed-on: 20xd6/simple_blog#27
This commit is contained in:
commit
7734de9fa4
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
echo "\n</div><!--End of print-content div-->\n";
|
echo "\n</div><!--End of print-content div-->\n";
|
||||||
echo("<nav class=\"jmenu\"><div class=\"pmenu\"><ul id=\"back_btn\"><li><a href='..'>Back</a></li></ul></div></nav>\n");
|
echo("<nav class=\"jmenu\"><div class=\"pmenu\"><ul id=\"back_btn\"><li><a href='..'>Back</a></li></ul></div></nav>\n");
|
||||||
if (file_exists('author')){
|
if (file_exists('author') && (filesize('author') != 0)){
|
||||||
$author_name_raw = fopen('author', 'r');
|
$author_name_raw = fopen('author', 'r');
|
||||||
$author_name = fread($author_name_raw, filesize('author'));
|
$author_name = fread($author_name_raw, filesize('author'));
|
||||||
$author_name = str_replace("\n", "", $author_name);
|
$author_name = str_replace("\n", "", $author_name);
|
||||||
@ -31,9 +31,6 @@
|
|||||||
echo "<div class =\"byline\">\n"
|
echo "<div class =\"byline\">\n"
|
||||||
. read_md($byline_path)
|
. read_md($byline_path)
|
||||||
."</div><!--End byline div-->\n";
|
."</div><!--End byline div-->\n";
|
||||||
} else {
|
|
||||||
echo "<h2>No byline</h2>";
|
|
||||||
echo "<p>$byline_path</p>";
|
|
||||||
}
|
}
|
||||||
fclose($author_name_raw);
|
fclose($author_name_raw);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user