From eda15a5aa809ad91c6305b8c2b02b8c715966d22 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 17 Mar 2016 11:24:43 -0700 Subject: [PATCH] Issue #1423 - Updated PM button on Profile page. --- e107_plugins/pm/sendpm.sc | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/e107_plugins/pm/sendpm.sc b/e107_plugins/pm/sendpm.sc index 108813f97..d2ea3f8cd 100644 --- a/e107_plugins/pm/sendpm.sc +++ b/e107_plugins/pm/sendpm.sc @@ -23,14 +23,24 @@ $pm_prefs = e107::getPlugPref('pm'); if(check_class($pm_prefs['pm_class'])) { - if(file_exists(THEME.'forum/pm.png')) - { - $img = "".LAN_PM.""; - } - else - { - $img = "".LAN_PM.""; - } + if(deftrue('FONTAWESOME') && deftrue('BOOTSTRAP')) + { + $img = e107::getParser()->toGlyph('fa-paper-plane',''); + return "{$img} ".LAN_PM_35.""; + } + + + if(file_exists(THEME.'forum/pm.png')) + { + $img = "".LAN_PM.""; + } + else + { + $img = "".LAN_PM.""; + } + + + return "{$img}"; } else