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

Fixes #3865 - Download icons fix

Thanks @jimmi08
This commit is contained in:
Tijn Kuyper
2019-06-27 09:26:53 +02:00
parent 5944983b6c
commit 45b073eecb
2 changed files with 7 additions and 4 deletions

View File

@@ -54,18 +54,21 @@ if (!e107::isInstalled('download'))
if(!defined("USER_WIDTH") && !deftrue('BOOTSTRAP')) { define("USER_WIDTH","width:100%"); }
/* define images */
if(deftrue('BOOTSTRAP'))
if(deftrue('BOOTSTRAP') && BOOTSTRAP === 3)
{
define("IMAGE_DOWNLOAD", (file_exists(THEME."images/download.png") ? THEME."images/download.png" : 'icon-download.glyph'));
define("IMAGE_NEW", (file_exists(THEME."images/new.png") ? THEME."images/new.png" : 'icon-star.glyph'));
}
elseif(deftrue('BOOTSTRAP') && BOOTSTRAP === 4)
{
define("IMAGE_DOWNLOAD", (file_exists(THEME."images/download.png") ? THEME."images/download.png" : 'fa-download.glyph'));
define("IMAGE_NEW", (file_exists(THEME."images/new.png") ? THEME."images/new.png" : 'fa-star.glyph'));
}
else
{
define("IMAGE_DOWNLOAD", (file_exists(THEME."images/download.png") ? THEME."images/download.png" : e_IMAGE."generic/download.png"));
define("IMAGE_NEW", (file_exists(THEME."images/new.png") ? THEME."images/new.png" : e_IMAGE."generic/new.png"));
}
$dl->init();