mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
Private Messenger: Bootstrap 4 styling fixes.
This commit is contained in:
@@ -103,7 +103,7 @@ class pm_shortcodes extends e_shortcode
|
|||||||
$pm = new private_message;
|
$pm = new private_message;
|
||||||
|
|
||||||
$glyph = empty($parm['glyph']) ? 'fa-paper-plane' : $parm['glyph'];
|
$glyph = empty($parm['glyph']) ? 'fa-paper-plane' : $parm['glyph'];
|
||||||
$class = empty($parm['class']) ? 'btn btn-sm btn-default' : $parm['class'];
|
$class = empty($parm['class']) ? 'btn btn-sm btn-default btn-secondary' : $parm['class'];
|
||||||
|
|
||||||
|
|
||||||
if(check_class($pm_prefs['pm_class']) && $pm->canSendTo($parm['user'])) // check $this->pmPrefs['send_to_class'].
|
if(check_class($pm_prefs['pm_class']) && $pm->canSendTo($parm['user'])) // check $this->pmPrefs['send_to_class'].
|
||||||
|
@@ -562,7 +562,7 @@ if(!class_exists('plugin_pm_pm_shortcodes'))
|
|||||||
{
|
{
|
||||||
$icon = (deftrue('FONTAWESOME')) ? e107::getParser()->toGlyph('fa-user-times','fw=1') : "<img src='".e_PLUGIN_ABS."pm/images/mail_block.png' alt='".LAN_PM_50."' class='icon S16' />";
|
$icon = (deftrue('FONTAWESOME')) ? e107::getParser()->toGlyph('fa-user-times','fw=1') : "<img src='".e_PLUGIN_ABS."pm/images/mail_block.png' alt='".LAN_PM_50."' class='icon S16' />";
|
||||||
|
|
||||||
return "<a class='btn btn-default' href='".$this->url('action/block', 'id='.$this->var['pm_from'])."' title='".LAN_PM_50."'>".$icon."</a>";
|
return "<a class='btn btn-default btn-secondary' href='".$this->url('action/block', 'id='.$this->var['pm_from'])."' title='".LAN_PM_50."'>".$icon."</a>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -586,7 +586,7 @@ if(!class_exists('plugin_pm_pm_shortcodes'))
|
|||||||
|
|
||||||
|
|
||||||
$action = $extra == '.outbox' ? 'delete-out' : 'delete-in';
|
$action = $extra == '.outbox' ? 'delete-out' : 'delete-in';
|
||||||
return "<a class='btn btn-default' title='".LAN_DELETE."' href='".$this->url('action/'.$action, 'id='.$this->var['pm_id'])."'>".PM_DELETE_ICON."</a>";
|
return "<a class='btn btn-default btn-secondary' title='".LAN_DELETE."' href='".$this->url('action/'.$action, 'id='.$this->var['pm_id'])."'>".PM_DELETE_ICON."</a>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ $sc_style['PM_BLOCKED_SENDERS_MANAGE']['pre'] = "<br />[ <a href='".e_PLUGIN_ABS
|
|||||||
$sc_style['PM_BLOCKED_SENDERS_MANAGE']['post'] = '</a> ]';
|
$sc_style['PM_BLOCKED_SENDERS_MANAGE']['post'] = '</a> ]';
|
||||||
*/
|
*/
|
||||||
//$PM_MENU_WRAPPER['PM_SEND_PM_LINK']= "<br /><br />{---}";
|
//$PM_MENU_WRAPPER['PM_SEND_PM_LINK']= "<br /><br />{---}";
|
||||||
$PM_MENU_WRAPPER['PM_SEND_PM_LINK']= "<a class='btn btn-mini btn-xs btn-default' href='{---}'>".LAN_PLUGIN_PM_NEW."</a>";
|
$PM_MENU_WRAPPER['PM_SEND_PM_LINK']= "<a class='btn btn-mini btn-xs btn-default btn-secondary' href='{---}'>".LAN_PLUGIN_PM_NEW."</a>";
|
||||||
$PM_MENU_WRAPPER['PM_INBOX_FILLED']=$PM_MENU_WRAPPER['PM_OUTBOX_FILLED']= "[{---}%]";
|
$PM_MENU_WRAPPER['PM_INBOX_FILLED']=$PM_MENU_WRAPPER['PM_OUTBOX_FILLED']= "[{---}%]";
|
||||||
$PM_MENU_WRAPPER['PM_NEWPM_ANIMATE']= "<a href='".e_PLUGIN_ABS."pm/pm.php?inbox'>{---}</a>";
|
$PM_MENU_WRAPPER['PM_NEWPM_ANIMATE']= "<a href='".e_PLUGIN_ABS."pm/pm.php?inbox'>{---}</a>";
|
||||||
$PM_MENU_WRAPPER['PM_BLOCKED_SENDERS_MANAGE']= "<br />[ <a href='".e_PLUGIN_ABS."pm/pm.php?blocked'>{---}</a> ]";
|
$PM_MENU_WRAPPER['PM_BLOCKED_SENDERS_MANAGE']= "<br />[ <a href='".e_PLUGIN_ABS."pm/pm.php?blocked'>{---}</a> ]";
|
||||||
|
Reference in New Issue
Block a user