1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

fix save icon for bootstrap 4 #2898

This commit is contained in:
Jimako
2018-01-07 23:10:05 +01:00
committed by GitHub
parent 2f3f5de97b
commit 8d084706fd

View File

@@ -395,9 +395,12 @@
$url = e_REQUEST_SELF . "?id=" . $this->postInfo['post_id'] . "&dl=" . $key; $url = e_REQUEST_SELF . "?id=" . $this->postInfo['post_id'] . "&dl=" . $key;
if(defset("BOOTSTRAP") == 3) $saveicon = (deftrue('BOOTSTRAP') === 4) ? 'fa-save' : 'icon-save.glyph';
$saveicon = e107::getParser()->toGlyph($saveicon,false);
if(defset("BOOTSTRAP"))
{ {
$txt .= "<a class='forum-attachment-file btn btn-sm btn-default' href='" . $url . "'>" . $tp->toGlyph('glyphicon-save') . " {$name}</a><br />"; $txt .= "<a class='forum-attachment-file btn btn-sm btn-default' href='" . $url . "'>" . $saveicon . " {$name}</a><br />";
} }
else else
{ {