1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +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;
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
{