Add donation alerts during the holidays

This commit is contained in:
Alex Cabal 2020-12-22 20:01:03 -06:00
parent b07f406d9f
commit 0e7100cfe8
5 changed files with 77 additions and 0 deletions

View file

@ -110,6 +110,9 @@ catch(\Exception $ex){
<section id="description">
<h2>Description</h2>
<? if(DONATION_ALERT_ON){ ?>
<?= Template::DonationAlert() ?>
<? } ?>
<? if($ebook->LongDescription === null){ ?>
<p><i>Theres no description for this ebook yet.</i></p>
<? }else{ ?>

View file

@ -129,6 +129,9 @@ catch(\Exception $ex){
?><?= Template::Header(['title' => $pageTitle, 'highlight' => 'ebooks', 'description' => $pageDescription]) ?>
<main class="ebooks">
<h1><?= $pageHeader ?></h1>
<? if(DONATION_ALERT_ON){ ?>
<?= Template::DonationAlert() ?>
<? } ?>
<? if($collection === null){ ?>
<?= Template::SearchForm(['query' => $query, 'tags' => $tags, 'sort' => $sort, 'view' => $view, 'perPage' => $perPage]) ?>
<? } ?>