Skip to content

Commit

Permalink
Specify the exact ID for authors bio modals #18
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy-1 committed Mar 19, 2019
1 parent 71110d6 commit 169b421
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/frontend/objects/article_details.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
</a>
{/if}
<div class="collapse" id="authorInfoCollapse">
{foreach from=$article->getAuthors() item=author}
{foreach from=$article->getAuthors() item=author key=number}
<div class="additional-author-block">
{if $author->getLocalizedAffiliation() || $author->getLocalizedBiography()}
<span class="additional-author-name">{$author->getFullName()|escape}</span>
Expand All @@ -110,11 +110,11 @@
{/if}
{if $author->getLocalizedBiography()}
<br/>
<a class="more_button" data-toggle="modal" data-target="#modalAuthorBio">
<a class="more_button" data-toggle="modal" data-target="#modalAuthorBio-{$number}">
{translate key="plugins.themes.classic.biography"}
</a>
{* author's biography *}
<div class="modal fade" id="modalAuthorBio" tabindex="-1" role="dialog" aria-labelledby="modalAuthorBioTitle" aria-hidden="true">
<div class="modal fade" id="modalAuthorBio-{$number}" tabindex="-1" role="dialog" aria-labelledby="modalAuthorBioTitle" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
Expand Down

0 comments on commit 169b421

Please sign in to comment.