mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 04:44:48 -04:00
Some tweaks to collections
This commit is contained in:
parent
e2dd256edc
commit
1e32a97c7d
5 changed files with 11 additions and 22 deletions
|
@ -1,20 +1,24 @@
|
|||
<?
|
||||
require_once('Core.php');
|
||||
|
||||
use function Safe\apcu_fetch;
|
||||
|
||||
$collection = Library::GetEbookCollections();
|
||||
$collections = Library::GetEbookCollections();
|
||||
|
||||
?><?= Template::Header(['title' => 'Ebook Collections', 'highlight' => '', 'description' => 'Browse collections of Standard Ebooks.']) ?>
|
||||
<main>
|
||||
<section class="narrow has-hero">
|
||||
<h1>Ebook Collections</h1>
|
||||
<picture data-caption="Still Life with Books. Jan Davidsz. de Heem, 1625">
|
||||
<picture data-caption="Still Life with Books and a Violin. Jan Davidszoon de Heem, 1625">
|
||||
<source srcset="/images/still-life-with-books@2x.avif 2x, /images/still-life-with-books.avif 1x" type="image/avif"/>
|
||||
<source srcset="/images/still-life-with-books@2x.jpg 2x, /images/still-life-with-books.jpg 1x" type="image/jpg"/>
|
||||
<img src="/images/still-life-with-books@2x.jpg" alt="A gentleman in regency-era dress buys books from a bookseller."/>
|
||||
<img src="/images/still-life-with-books@2x.jpg" alt="A pile of moldering books lying on a table."/>
|
||||
</picture>
|
||||
<?= Template::CollectionTable(['collections' => $collection]); ?>
|
||||
<ul>
|
||||
<? foreach($collections as $collection){ ?>
|
||||
<li>
|
||||
<p><a href="<?= $collection->Url ?>"><?= Formatter::ToPlainText($collection->Name) ?></a></p>
|
||||
</li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
</section>
|
||||
</main>
|
||||
<?= Template::Footer() ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue