diff --git a/templates/EbookGrid.php b/templates/EbookGrid.php index 6b31741c..68f84d12 100644 --- a/templates/EbookGrid.php +++ b/templates/EbookGrid.php @@ -1,4 +1,9 @@ + +if($view == ''){ + $view = VIEW_GRID; +} + if(!isset($ebooks)){ $ebooks = []; } @@ -14,13 +19,21 @@ if(!isset($ebooks)){
= Formatter::ToPlainText($ebook->Title) ?>
+ if($view == VIEW_GRID){ ?> foreach($ebook->Authors as $author){ ?> } ?> - if($view == VIEW_LIST){ ?> + }else{ ?> += rtrim($ebook->ContributorsHtml, '.') ?>
+= rtrim($ebook->ContributorsHtml, '.') ?>
+= number_format($ebook->WordCount) ?> words • = $ebook->ReadingEase ?> reading ease