Italicize instead of em

This commit is contained in:
Brandon 2022-11-11 20:10:52 -08:00 committed by Alex Cabal
parent 04cf6bce03
commit 55e7a717f3

View file

@ -33,8 +33,8 @@ if($toc){
$fileName = $epubDirectory . '/' . $chapterLinks[$i]->Path . '.xhtml'; $fileName = $epubDirectory . '/' . $chapterLinks[$i]->Path . '.xhtml';
$chapter = file_get_contents($fileName); $chapter = file_get_contents($fileName);
// Inject the navigation footer. // Inject the navigation footer.
$previousLink = $previousObj ? sprintf('<a href="%s"><em>Previous:</em> %s</a>', $bookUrl . '/' . $previousObj->Path, htmlspecialchars($previousObj->Name)) : ''; $previousLink = $previousObj ? sprintf('<a href="%s"><i>Previous:</i> %s</a>', $bookUrl . '/' . $previousObj->Path, htmlspecialchars($previousObj->Name)) : '';
$nextLink = $nextObj ? sprintf('<a href="%s"><em>Next:</em> %s</a>', $bookUrl . '/' . $nextObj->Path, htmlspecialchars($nextObj->Name)) : ''; $nextLink = $nextObj ? sprintf('<a href="%s"><i>Next:</i> %s</a>', $bookUrl . '/' . $nextObj->Path, htmlspecialchars($nextObj->Name)) : '';
$footer = sprintf('<footer><ul><li>%s</li><li>%s</li></ul></footer>', $previousLink, $nextLink); $footer = sprintf('<footer><ul><li>%s</li><li>%s</li></ul></footer>', $previousLink, $nextLink);
$chapter = str_replace('</body>', $footer . '</body>', $chapter); $chapter = str_replace('</body>', $footer . '</body>', $chapter);
file_put_contents($fileName, $chapter); file_put_contents($fileName, $chapter);