$query = new ToccataPressQuery();
$books = array_reverse($query->GetBookCatalogue());
foreach ($books as &$book) {
$book['index'] = 'book-' . $book['id'];
if (empty($book['cover_images']))
$images = array('no-image-available-bk.gif');
else
$images = array_map(create_function('$i', 'return "../ToccataPress/images/Covers/$i";'),explode(',', $book['cover_images']));
$book['cover_images'] = $images;
}
$smarty = cmsms()->GetSmarty();
$smarty->assignByRef('books', $books);
$smarty->assign('width', round(140 * 0.645));
$smarty->assign('height', 140); // TPDEF_BOOK_COVER_ASPECT
The books on classical music that you won’t find anywhere else…
The Toccata Discovery Club
Join the Toccata Discovery Club for a 25% discount on all Toccata Press titles and £5 off all Toccata Classics CDs.
