diff --git a/e107_plugins/pm/templates/pm_menu_template.php b/e107_plugins/pm/templates/pm_menu_template.php index ef8e93465..88c814c66 100644 --- a/e107_plugins/pm/templates/pm_menu_template.php +++ b/e107_plugins/pm/templates/pm_menu_template.php @@ -25,15 +25,22 @@ if (!defined('e107_INIT')) { exit; } -//define('PM_INBOX_ICON', "".LAN_PLUGIN_PM_INBOX.""); -define('PM_INBOX_ICON', e107::getParser()->toGlyph('fa-inbox')); -//define('PM_OUTBOX_ICON', "".LAN_PLUGIN_PM_OUTBOX.""); -// Icon candidate to stacked fontawesome icons... -define('PM_OUTBOX_ICON', e107::getParser()->toGlyph('fa-inbox').e107::getParser()->toGlyph('fa-arrow-up')); +if(deftrue('BOOTSTRAP') && deftrue('FONTAWESOME')) +{ + define('PM_INBOX_ICON', e107::getParser()->toGlyph('fa-inbox')); + // Icon candidate to stacked fontawesome icons... + define('PM_OUTBOX_ICON', e107::getParser()->toGlyph('fa-inbox').e107::getParser()->toGlyph('fa-arrow-up')); + // Icon candidate to animated fontawesome icons... + define('NEWPM_ANIMATION', e107::getParser()->toGlyph('fa-envelope')); +} +else +{ + if (!defined('PM_INBOX_ICON')) define('PM_INBOX_ICON', "".LAN_PLUGIN_PM_INBOX.""); + if (!defined('PM_OUTBOX_ICON')) define('PM_OUTBOX_ICON', "".LAN_PLUGIN_PM_OUTBOX.""); + if (!defined('NEWPM_ANIMATION')) define('NEWPM_ANIMATION', ""); +} + //define('PM_SEND_LINK', LAN_PLUGIN_PM_NEW); -//define('NEWPM_ANIMATION', ""); -// Icon candidate to animated fontawesome icons... -define('NEWPM_ANIMATION', e107::getParser()->toGlyph('fa-envelope')); /* $sc_style['PM_SEND_PM_LINK']['pre'] = "

"; $sc_style['PM_SEND_PM_LINK']['post'] = "";