mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 14:50:39 -04:00
Italicize instead of em
This commit is contained in:
parent
04cf6bce03
commit
55e7a717f3
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue