mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 02:46:46 -04:00
Change size checks (like bigger than 3 MB) to use TextSinglePageByteCount, not number and units
This commit is contained in:
parent
ccd73c7cb4
commit
41b130195f
1 changed files with 2 additions and 2 deletions
|
@ -288,8 +288,8 @@ catch(Exceptions\EbookNotFoundException){
|
|||
<li property="schema:encoding" typeof="schema:mediaObject">
|
||||
<meta property="schema:description" content="XHTML"/>
|
||||
<meta property="schema:encodingFormat" content="application/xhtml+xml"/>
|
||||
<p<? if($ebook->TextSinglePageSizeNumber >= 3 && $ebook->TextSinglePageSizeUnit == 'M'){ ?> class="has-size"<? } ?>>
|
||||
<a property="schema:contentUrl" href="<?= $ebook->TextSinglePageUrl ?>" class="page">Read on one page</a><? if($ebook->TextSinglePageSizeNumber >= 3 && $ebook->TextSinglePageSizeUnit == 'M'){ ?><span><?= $ebook->TextSinglePageSizeNumber ?>MB</span><? } ?>
|
||||
<p<? if($ebook->TextSinglePageByteCount >= EBOOK_SINGLE_PAGE_SIZE_WARNING){ ?> class="has-size"<? } ?>>
|
||||
<a property="schema:contentUrl" href="<?= $ebook->TextSinglePageUrl ?>" class="page">Read on one page</a><? if($ebook->TextSinglePageByteCount >= EBOOK_SINGLE_PAGE_SIZE_WARNING){ ?><span><?= $ebook->TextSinglePageSizeNumber ?>MB</span><? } ?>
|
||||
</p>
|
||||
</li>
|
||||
<? } ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue