From 51a547ca6a0b19f2d3a586de90722f243b9fe40b Mon Sep 17 00:00:00 2001 From: rica-carv Date: Tue, 2 May 2017 21:48:51 +0100 Subject: [PATCH] Legacy themes support Legacy themes support --- .../pm/templates/pm_menu_template.php | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) 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'] = "";