Add placeholders for ebooks

This commit is contained in:
Mike Colagrosso 2024-12-13 11:45:14 -06:00 committed by Alex Cabal
parent cf5f488cae
commit 1ab95df084
52 changed files with 1192 additions and 237 deletions

View file

@ -106,6 +106,10 @@ function CreateZip(string $filePath, array $ebooks, string $type, string $webRoo
// Iterate over all ebooks and arrange them by publication month.
foreach(Ebook::GetAll() as $ebook){
if($ebook->IsPlaceholder()){
continue;
}
$timestamp = $ebook->EbookCreated->format('Y-m');
$updatedTimestamp = $ebook->EbookUpdated->getTimestamp();

View file

@ -100,6 +100,10 @@ foreach($dirs as $dir){
// Iterate over all ebooks to build the various feeds.
foreach(Ebook::GetAll() as $ebook){
if($ebook->IsPlaceholder()){
continue;
}
$allEbooks[] = $ebook;
$newestEbooks[] = $ebook;