mirror of
https://github.com/standardebooks/web.git
synced 2025-07-20 13:24:48 -04:00
Add Authors index
This commit is contained in:
parent
0e92b3acc8
commit
93b55d2da2
7 changed files with 37 additions and 11 deletions
22
www/authors/index.php
Normal file
22
www/authors/index.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?
|
||||
$authors = Contributor::GetAllByMarcRole(Enums\MarcRole::Author);
|
||||
|
||||
?><?= Template::Header(title: 'Authors', description: 'Browse all Standard Ebooks authors.') ?>
|
||||
<main>
|
||||
<section class="narrow has-hero">
|
||||
<h1>Authors</h1>
|
||||
<picture data-caption="Leo Tolstoy in His Study. Ilya Repin, 1891">
|
||||
<source srcset="/images/leo-tolstoy-in-his-study@2x.avif 2x, /images/leo-tolstoy-in-his-study.avif 1x" type="image/avif"/>
|
||||
<source srcset="/images/leo-tolstoy-in-his-study@2x.jpg 2x, /images/leo-tolstoy-in-his-study.jpg 1x" type="image/jpg"/>
|
||||
<img src="/images/leo-tolstoy-in-his-study@2x.jpg" alt="Leo Tolstoy sitting at a desk and writing."/>
|
||||
</picture>
|
||||
<ul>
|
||||
<? foreach($authors as $author){ ?>
|
||||
<li>
|
||||
<p><a href="<?= $author->Url ?>"><?= Formatter::EscapeHtml($author->Name) ?></a></p>
|
||||
</li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
</section>
|
||||
</main>
|
||||
<?= Template::Footer() ?>
|
Loading…
Add table
Add a link
Reference in a new issue