1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01: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
No known key found for this signature in database
GPG Key ID: AAEA3CC2C5A308F2
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();

View File

@ -524,7 +524,7 @@ class download_shortcodes extends e_shortcode
function sc_download_admin_edit()
{
$icon = (deftrue('BOOTSTRAP')) ? e107::getParser()->toGlyph('edit') : "<img src='".e_IMAGE_ABS."generic/edit.png' alt='*' style='padding:0px;border:0px' />";
$icon = (deftrue('BOOTSTRAP')) ? e107::getParser()->toGlyph('fa-edit') : "<img src='".e_IMAGE_ABS."generic/edit.png' alt='*' style='padding:0px;border:0px' />";
$url = e_PLUGIN_ABS."download/admin_download.php?action=edit&id=".$this->var['download_id'];