mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 12:54:48 -04:00
Don't show author name in grid or detail view if the name is 'Anonymous'
This commit is contained in:
parent
999fa70675
commit
4eae8af914
2 changed files with 6 additions and 2 deletions
|
@ -15,7 +15,9 @@ if(!isset($ebooks)){
|
|||
</a>
|
||||
<p><a href="<?= $ebook->Url ?>"><?= Formatter::ToPlainText($ebook->Title) ?></a></p>
|
||||
<? foreach($ebook->Authors as $author){ ?>
|
||||
<p class="author"><a href="<?= Formatter::ToPlainText($ebook->AuthorsUrl) ?>"><?= Formatter::ToPlainText($author->Name) ?></a></p>
|
||||
<? if($author->Name != 'Anonymous'){ ?>
|
||||
<p class="author"><a href="<?= Formatter::ToPlainText($ebook->AuthorsUrl) ?>"><?= Formatter::ToPlainText($author->Name) ?></a></p>
|
||||
<? } ?>
|
||||
<? } ?>
|
||||
</li>
|
||||
<? } ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue