mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 01:22:23 -04:00
Add blog post for Public Domain Day 2025
This commit is contained in:
parent
8908c0a268
commit
b536ebdaee
8 changed files with 280 additions and 28 deletions
12
templates/RealisticEbook.php
Normal file
12
templates/RealisticEbook.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?
|
||||
/**
|
||||
* @var Ebook $ebook
|
||||
*/
|
||||
?>
|
||||
<figure class="realistic-ebook <? if($ebook->WordCount < 100000){ ?>small<? }elseif($ebook->WordCount < 200000){ ?>medium<? }elseif($ebook->WordCount <= 300000){ ?>large<? }elseif($ebook->WordCount < 400000){ ?>xlarge<? }else{ ?>xxlarge<? } ?>">
|
||||
<picture>
|
||||
<source srcset="<?= $ebook->CoverImage2xAvifUrl ?> 2x, <?= $ebook->CoverImageAvifUrl ?> 1x" type="image/avif"/>
|
||||
<source srcset="<?= $ebook->CoverImage2xUrl ?> 2x, <?= $ebook->CoverImageUrl ?> 1x" type="image/jpg"/>
|
||||
<img src="<?= $ebook->CoverImageUrl ?>" alt="" height="363" width="242"/>
|
||||
</picture>
|
||||
</figure>
|
Loading…
Add table
Add a link
Reference in a new issue