Skip to content

Commit

Permalink
added bootstrap-powered decoration for download links
Browse files Browse the repository at this point in the history
  • Loading branch information
vladykin committed Jun 9, 2014
1 parent 28bce1c commit a617be7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin/src/mendeley.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ private function getMendeleyBib($mendeley_user) {
private function formatDoc($doc, \mendeley\DocFormatter $formatter, $user) {
$item = htmlspecialchars($formatter->format($doc));
foreach ($doc->files as $file) {
$item .= ' ' . '<a href="' . JURI::base(true) .'/index.php?option=com_mendeley&amp;user=' . $user . '&amp;doc=' . $doc->id . '&amp;file=' . $file->file_hash . '&amp;ext=' . $file->file_extension . '">' . $file->file_extension . '</a>';
$item .= ' <a class="btn btn-mini" href="'
. JURI::base(true) .'/index.php?option=com_mendeley&amp;user=' . $user . '&amp;doc=' . $doc->id . '&amp;file=' . $file->file_hash . '&amp;ext=' . $file->file_extension
. '"><span class="icon-download-alt"></span> ' . strtoupper($file->file_extension) . '</a>';
}
return $item;
}
Expand Down

0 comments on commit a617be7

Please sign in to comment.