pm = new pmbox_manager(); $this->prefs = $this->pm->prefs(); } function sc_pm_nav($parm='') { $tp = e107::getParser(); if(!check_class($this->prefs['pm_class'])) { return null; } $mbox = $this->pm->pm_getInfo('inbox'); if(!empty($mbox['inbox']['new'])) { $count = "".$mbox['inbox']['new'].""; $icon = $tp->toGlyph('fa-envelope'); } else { $icon = $tp->toGlyph('fa-envelope-o'); $count = ''; } $urlInbox = e107::url('pm','index','', array('query'=>array('mode'=>'inbox'))); $urlOutbox = e107::url('pm','index','', array('query'=>array('mode'=>'outbox'))); $urlCompose = e107::url('pm','index','', array('query'=>array('mode'=>'send'))); return ''.$icon.$count.'
'; } function sc_sendpm($parm='') { // global $sysprefs, $pm_prefs; // $pm_prefs = $sysprefs->getArray("pm_prefs"); $pm_prefs = e107::getPlugPref('pm'); $url = e107::url('pm','index').'?send.'.$parm; if(check_class($pm_prefs['pm_class'])) { 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 = "