mirror of
https://github.com/standardebooks/web.git
synced 2025-07-20 13:24:48 -04:00
Replace Template::Emit...() functions with more generic function
This commit is contained in:
parent
f449c024ea
commit
806939ca49
40 changed files with 86 additions and 68 deletions
|
@ -20,7 +20,7 @@ try{
|
|||
$authorUrl = $ebooks[0]->AuthorsUrl;
|
||||
}
|
||||
catch(Exceptions\AuthorNotFoundException){
|
||||
Template::Emit404();
|
||||
Template::ExitWithCode(Enums\HttpCode::NotFound);
|
||||
}
|
||||
?><?= Template::Header(['title' => 'Ebooks by ' . $author, 'feedUrl' => str_replace('/ebooks/', '/authors/', $authorUrl), 'feedTitle' => 'Standard Ebooks - Ebooks by ' . $author, 'highlight' => 'ebooks', 'description' => 'All of the Standard Ebooks ebooks by ' . $author, 'canonicalUrl' => SITE_URL . $authorUrl]) ?>
|
||||
<main class="ebooks">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue