mirror of
https://github.com/e107inc/e107.git
synced 2025-06-20 07:51:56 +02:00
Issue #1423 - Updated PM button on Profile page.
This commit is contained in:
@ -23,6 +23,13 @@ $pm_prefs = e107::getPlugPref('pm');
|
|||||||
|
|
||||||
if(check_class($pm_prefs['pm_class']))
|
if(check_class($pm_prefs['pm_class']))
|
||||||
{
|
{
|
||||||
|
if(deftrue('FONTAWESOME') && deftrue('BOOTSTRAP'))
|
||||||
|
{
|
||||||
|
$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>";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if(file_exists(THEME.'forum/pm.png'))
|
if(file_exists(THEME.'forum/pm.png'))
|
||||||
{
|
{
|
||||||
$img = "<img src='".THEME_ABS."forum/pm.png' alt='".LAN_PM."' title='".LAN_PM."' style='border:0' />";
|
$img = "<img src='".THEME_ABS."forum/pm.png' alt='".LAN_PM."' title='".LAN_PM."' style='border:0' />";
|
||||||
@ -31,6 +38,9 @@ if(check_class($pm_prefs['pm_class']))
|
|||||||
{
|
{
|
||||||
$img = "<img src='".e_PLUGIN_ABS."pm/images/pm.png' alt='".LAN_PM."' title='".LAN_PM."' style='border:0' />";
|
$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
|
||||||
|
Reference in New Issue
Block a user