1
0
mirror of https://github.com/e107inc/e107.git synced 2025-06-21 16:32:50 +02:00

Issue #1423 - Updated PM button on Profile page.

This commit is contained in:
Cameron
2016-03-17 11:24:43 -07:00
parent 2fdde516f2
commit eda15a5aa8

View File

@ -23,14 +23,24 @@ $pm_prefs = e107::getPlugPref('pm');
if(check_class($pm_prefs['pm_class'])) if(check_class($pm_prefs['pm_class']))
{ {
if(file_exists(THEME.'forum/pm.png')) if(deftrue('FONTAWESOME') && deftrue('BOOTSTRAP'))
{ {
$img = "<img src='".THEME_ABS."forum/pm.png' alt='".LAN_PM."' title='".LAN_PM."' style='border:0' />"; $img = e107::getParser()->toGlyph('fa-paper-plane','');
} return "<a class='btn btn-sm btn-default' href='".e_PLUGIN_ABS."pm/pm.php?send.{$parm}'>{$img} ".LAN_PM_35."</a>";
else }
{
$img = "<img src='".e_PLUGIN_ABS."pm/images/pm.png' alt='".LAN_PM."' title='".LAN_PM."' style='border:0' />";
} if(file_exists(THEME.'forum/pm.png'))
{
$img = "<img src='".THEME_ABS."forum/pm.png' alt='".LAN_PM."' title='".LAN_PM."' style='border:0' />";
}
else
{
$img = "<img src='".e_PLUGIN_ABS."pm/images/pm.png' alt='".LAN_PM."' title='".LAN_PM."' style='border:0' />";
}
return "<a href='".e_PLUGIN_ABS."pm/pm.php?send.{$parm}'>{$img}</a>"; return "<a href='".e_PLUGIN_ABS."pm/pm.php?send.{$parm}'>{$img}</a>";
} }
else else