mirror of
https://github.com/standardebooks/web.git
synced 2025-07-16 03:16:36 -04:00
Completely type hint template functions and switch to named arguments
This commit is contained in:
parent
6108b5e53d
commit
124e8343fc
125 changed files with 542 additions and 450 deletions
|
@ -100,7 +100,7 @@ foreach($ebooks as $ebook){
|
|||
|
||||
ksort($ebooksWithDescriptions);
|
||||
|
||||
?><?= Template::Header(['title' => 'Public Domain Day 2025 in Literature - Blog', 'highlight' => '', 'description' => 'Read about the new ebooks Standard Ebooks is releasing for Public Domain Day 2025!', 'css' => ['/css/public-domain-day.css']]) ?>
|
||||
?><?= Template::Header(title: 'Public Domain Day 2025 in Literature - Blog', description: 'Read about the new ebooks Standard Ebooks is releasing for Public Domain Day 2025!', css: ['/css/public-domain-day.css']) ?>
|
||||
<main>
|
||||
<section class="narrow blog has-hero">
|
||||
<nav class="breadcrumbs"><a href="/blog">Blog</a> →</nav>
|
||||
|
@ -133,7 +133,7 @@ ksort($ebooksWithDescriptions);
|
|||
<li>
|
||||
<div>
|
||||
<a href="<?= $ebookGroup['ebook']->Url ?>">
|
||||
<?= Template::RealisticEbook(['ebook' => $ebookGroup['ebook']]) ?>
|
||||
<?= Template::RealisticEbook(ebook: $ebookGroup['ebook']) ?>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue