2013-01-31 19:13:50 -08:00
|
|
|
//<?php
|
|
|
|
/*
|
|
|
|
*//*
|
2009-12-17 22:47:20 +00:00
|
|
|
* Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
2010-02-10 18:18:01 +00:00
|
|
|
* $Id$
|
2009-12-17 22:47:20 +00:00
|
|
|
*
|
|
|
|
* PM icon shortcode
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* e107 Private messenger plugin
|
|
|
|
*
|
|
|
|
* @package e107_plugins
|
|
|
|
* @subpackage pm
|
2010-02-10 18:18:01 +00:00
|
|
|
* @version $Id$;
|
2009-12-17 22:47:20 +00:00
|
|
|
*/
|
|
|
|
|
2009-12-10 20:40:39 +00:00
|
|
|
include_lan(e_PLUGIN.'pm/languages/'.e_LANGUAGE.'.php');
|
2009-08-15 11:55:30 +00:00
|
|
|
|
2013-01-31 19:13:50 -08:00
|
|
|
// global $sysprefs, $pm_prefs;
|
|
|
|
// $pm_prefs = $sysprefs->getArray("pm_prefs");
|
|
|
|
$pm_prefs = e107::getPlugPref('pm');
|
|
|
|
|
2006-12-02 04:36:16 +00:00
|
|
|
if(check_class($pm_prefs['pm_class']))
|
|
|
|
{
|
2009-12-17 22:47:20 +00:00
|
|
|
if(file_exists(THEME.'forum/pm.png'))
|
2006-12-02 04:36:16 +00:00
|
|
|
{
|
2009-12-10 20:40:39 +00:00
|
|
|
$img = "<img src='".THEME_ABS."forum/pm.png' alt='".LAN_PM."' title='".LAN_PM."' style='border:0' />";
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2009-12-10 20:40:39 +00:00
|
|
|
$img = "<img src='".e_PLUGIN_ABS."pm/images/pm.png' alt='".LAN_PM."' title='".LAN_PM."' style='border:0' />";
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|
2009-12-10 20:40:39 +00:00
|
|
|
return "<a href='".e_PLUGIN_ABS."pm/pm.php?send.{$parm}'>{$img}</a>";
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2009-12-17 22:47:20 +00:00
|
|
|
return '';
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|