mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
parent
5944983b6c
commit
45b073eecb
@ -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();
|
||||
|
@ -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'];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user