1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-09 16:17:14 +02:00

Merge pull request #2958 from Jimmi08/patch-1

fix save icon for bootstrap 4 #2898
This commit is contained in:
Cameron
2018-01-08 14:24:27 -08:00
committed by GitHub

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
{