forked from pkp/bootstrap3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
ae1eb73
commit 65cf05a
Showing
3 changed files
with
75 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
templates/plugins/generic/citationStyleLanguage/citationblock.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{if $citation} | ||
<div class="panel panel-default how-to-cite"> | ||
<div class="panel-heading"> | ||
<h2 class="panel-title"> | ||
{translate key="submission.howToCite"} | ||
</h2> | ||
</div> | ||
<div class="panel-body"> | ||
<div id="citationOutput" role="region" aria-live="polite"> | ||
{$citation} | ||
</div> | ||
<div class="btn-group"> | ||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> | ||
{translate key="submission.howToCite.citationFormats"} | ||
<span class="caret"></span> | ||
</button> | ||
<ul class="dropdown-menu" role="menu"> | ||
{foreach from=$citationStyles item="citationStyle"} | ||
<li> | ||
<a | ||
rel="nofollow" | ||
aria-controls="citationOutput" | ||
href="{url page="citationstylelanguage" op="get" path=$citationStyle.id params=$citationArgs}" | ||
data-load-citation | ||
data-json-href="{url page="citationstylelanguage" op="get" path=$citationStyle.id params=$citationArgsJson}" | ||
> | ||
{$citationStyle.title|escape} | ||
</a> | ||
</li> | ||
{/foreach} | ||
</ul> | ||
</div> | ||
{if count($citationDownloads)} | ||
<div class="btn-group"> | ||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> | ||
{translate key="submission.howToCite.downloadCitation"} | ||
<span class="caret"></span> | ||
</button> | ||
{* Download citation formats *} | ||
<ul class="dropdown-menu" role="menu"> | ||
{foreach from=$citationDownloads item="citationDownload"} | ||
<li> | ||
<a href="{url page="citationstylelanguage" op="download" path=$citationDownload.id params=$citationArgs}"> | ||
<span class="fa fa-download"></span> | ||
{$citationDownload.title|escape} | ||
</a> | ||
</li> | ||
{/foreach} | ||
</ul> | ||
</div> | ||
{/if} | ||
</div> | ||
</div> | ||
{/if} |