mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 15:50:29 -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>
|
||||
<? } ?>
|
||||
|
|
|
@ -75,7 +75,9 @@ catch(\Exception $ex){
|
|||
<hgroup>
|
||||
<h1><?= Formatter::ToPlainText($ebook->Title) ?></h1>
|
||||
<? foreach($ebook->Authors as $author){ ?>
|
||||
<h2><a href="<?= Formatter::ToPlainText($ebook->AuthorsUrl) ?>"><?= Formatter::ToPlainText($author->Name) ?></a></h2>
|
||||
<? if($author->Name != 'Anonymous'){ ?>
|
||||
<h2><a href="<?= Formatter::ToPlainText($ebook->AuthorsUrl) ?>"><?= Formatter::ToPlainText($author->Name) ?></a></h2>
|
||||
<? } ?>
|
||||
<? } ?>
|
||||
</hgroup>
|
||||
<picture>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue