Create method for getting sets of ebooks

This commit is contained in:
Alex Cabal 2025-06-03 10:31:26 -05:00
parent cd4be0a3e3
commit 8a1a64629d
7 changed files with 22 additions and 16 deletions

View file

@ -1,6 +1,5 @@
<?
$ebookIds = [2321, 1080, 185, 1090, 431];
$carousel = Db::Query('SELECT * from Ebooks where EbookId in ' . Db::CreateSetSql($ebookIds), $ebookIds, Ebook::class);
$carousel = Ebook::GetAllBySet([2321, 1080, 185, 1090, 431]);
?>
<?= Template::Header(title: 'A Kind of Bolshevism in an Uncanny Bookshop', css: ['/css/blog.css']) ?>
<main>

View file

@ -1,6 +1,5 @@
<?
$ebookIds = [1085, 1052];
$carousel = Db::Query('SELECT * from Ebooks where EbookId in ' . Db::CreateSetSql($ebookIds), $ebookIds, Ebook::class);
$carousel = Ebook::GetAllBySet([1085, 1052]);
?>
<?= Template::Header(title: 'Death and Beauty in the Alps', css: ['/css/blog.css']) ?>
<main>

View file

@ -1,6 +1,5 @@
<?
$ebookIds = [288, 485, 289, 908, 565, 2114];
$carousel = Db::Query('SELECT * from Ebooks where EbookId in ' . Db::CreateSetSql($ebookIds), $ebookIds, Ebook::class);
$carousel = Ebook::GetAllBySet([288, 485, 289, 908, 565, 2114]);
?>
<?= Template::Header(title: 'Edith Whartons Vision of Literary Art', css: ['/css/blog.css']) ?>
<main>

View file

@ -1,6 +1,5 @@
<?
$ebookIds = [565, 778, 561, 1059];
$carousel = Db::Query('SELECT * from Ebooks where EbookId in ' . Db::CreateSetSql($ebookIds), $ebookIds, Ebook::class);
$carousel = Ebook::GetAllBySet([565, 778, 561, 1059]);
?>
<?= Template::Header(title: 'Joyces Ulysses, the Rubáiyát, and “Yes”', css: ['/css/blog.css']) ?>
<main>

View file

@ -1,6 +1,5 @@
<?
$ebookIds = [981, 561, 833];
$carousel = Db::Query('SELECT * from Ebooks where EbookId in ' . Db::CreateSetSql($ebookIds), $ebookIds, Ebook::class);
$carousel = Ebook::GetAllBySet([981, 561, 833]);
?>
<?= Template::Header(title: 'Of Human Bondage, Spinoza, and the Meaning of Life', css: ['/css/blog.css']) ?>
<main>

View file

@ -1,6 +1,5 @@
<?
$ebookIds = [415, 607];
$carousel = Db::Query('SELECT * from Ebooks where EbookId in ' . Db::CreateSetSql($ebookIds), $ebookIds, Ebook::class);
$carousel = Ebook::GetAllBySet([415, 607]);
?>
<?= Template::Header(title: 'The Ugly Duckling and the Carmelite in Middlemarch', css: ['/css/blog.css']) ?>
<main>