1
0
mirror of https://github.com/e107inc/e107.git synced 2025-02-12 10:40:20 +01:00
php-e107/e107_plugins/pm/pm_template.php

285 lines
7.0 KiB
PHP
Raw Normal View History

2006-12-02 04:36:16 +00:00
<?php
/*
2009-11-17 13:48:46 +00:00
* e107 website system
*
2009-11-18 01:06:08 +00:00
* Copyright (C) 2008-2009 e107 Inc (e107.org)
2009-11-17 13:48:46 +00:00
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
2009-12-17 22:47:20 +00:00
* PM plugin - template file
2009-11-17 13:48:46 +00:00
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/pm/pm_template.php,v $
2010-02-10 18:18:01 +00:00
* $Revision$
* $Date$
* $Author$
2009-11-17 13:48:46 +00:00
*/
2009-12-17 22:47:20 +00:00
/**
* 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
*/
2006-12-02 04:36:16 +00:00
if (!defined('e107_INIT')) { exit; }
global $sc_style; // Needed for the PM_REPLY shortcode!
2006-12-02 04:36:16 +00:00
if(deftrue('BOOTSTRAP') && deftrue('FONTAWESOME'))
{
define('PM_READ_ICON', e107::getParser()->toGlyph('fa-envelope'));
define('PM_UNREAD_ICON', e107::getParser()->toGlyph('fa-envelope-o'));
}
else
{
if (!defined('PM_READ_ICON')) define('PM_READ_ICON', "<img src='".e_PLUGIN_ABS."pm/images/read.png' class='icon S16' alt='".LAN_PM_111."' />");
if (!defined('PM_UNREAD_ICON')) define('PM_UNREAD_ICON', "<img src='".e_PLUGIN_ABS."pm/images/unread.png' class='icon S16' alt='".LAN_PM_27."' />");
}
2006-12-02 04:36:16 +00:00
$sc_style['PM_ATTACHMENT_ICON']['pre'] = " ";
$sc_style['PM_ATTACHMENTS']['pre'] = "<div class='alert alert-block alert-info'>";
2006-12-02 04:36:16 +00:00
$sc_style['PM_ATTACHMENTS']['post'] = "</div>";
//$sc_style['PM_NEXTPREV']['pre'] = "<tr><td class='forumheader' colspan='6' style='text-align:left'> ".LAN_PM_59;
//$sc_style['PM_NEXTPREV']['post'] = "</td></tr>";
2006-12-02 04:36:16 +00:00
$sc_style['PM_EMOTES']['pre'] = "
2006-12-02 04:36:16 +00:00
<tr>
<td class='forumheader3'>".LAN_PM_7.": </td>
<td class='forumheader3'>
";
$sc_style['PM_EMOTES']['post'] = "</td></tr>";
2006-12-02 04:36:16 +00:00
$sc_style['PM_ATTACHMENT']['pre'] = "
2006-12-02 04:36:16 +00:00
<tr>
<td class='forumheader3'>".LAN_PM_8.": </td>
<td class='forumheader3'>
";
$sc_style['PM_ATTACHMENT']['post'] = "</td></tr>";
2006-12-02 04:36:16 +00:00
$sc_style['PM_RECEIPT']['pre'] = "
2006-12-02 04:36:16 +00:00
<tr>
<td class='forumheader3'>".LAN_PM_9.": </td>
<td class='forumheader3'>
";
$sc_style['PM_RECEIPT']['post'] = "</td></tr>";
2006-12-02 04:36:16 +00:00
$sc_style['PM_REPLY']['pre'] = "<tr>
<td class='forumheader' style='text-align:center' colspan='2'>
";
$sc_style['PM_REPLY']['post'] = "</td>
</tr>
";
$PM_SEND_PM = "<div id='pm-send-pm'>
<table class='table fborder'>
<thead>
2006-12-02 04:36:16 +00:00
<tr>
<th colspan='2' class='fcaption'>".LAN_PLUGIN_PM_NEW.": </th>
2006-12-02 04:36:16 +00:00
</tr>
</thead>
2006-12-02 04:36:16 +00:00
<tr>
<td class='forumheader3' style='width: 30%'>".LAN_PM_2.": </td>
<td class='forumheader3' style='width: 70%; text-align:left'>{PM_FORM_TO}</td>
2006-12-02 04:36:16 +00:00
</tr>
<tr>
<td class='forumheader3'>".LAN_PM_5.": </td>
<td class='forumheader3'>{PM_FORM_SUBJECT}</td>
2006-12-02 04:36:16 +00:00
</tr>
<tr>
<td class='forumheader3'>".LAN_PM_6.": </td>
<td class='forumheader3'>{PM_FORM_MESSAGE}</td>
2006-12-02 04:36:16 +00:00
</tr>
{PM_EMOTES}
{PM_ATTACHMENT}
{PM_RECEIPT}
2006-12-02 04:36:16 +00:00
<tr>
<td class='forumheader' colspan='2' style='text-align:center;'>{PM_POST_BUTTON}</td>
</tr>
</table>
</div>
";
$PM_INBOX_HEADER = "
<table class='table table-striped fborder'>
<thead>
2006-12-02 04:36:16 +00:00
<tr>
<th class='fcaption' style='width:1%'>&nbsp;</th>
<th class='fcaption' style='width:1%'>&nbsp;</th>
<th class='fcaption' style='width:25%'>".LAN_PM_31."</th>
<th class='fcaption' style='width:auto'>".LAN_PM_5."</th>
<th class='fcaption' style='width:auto'>".LAN_PM_32."</th>
<th class='fcaption' style='width:100px'>{PM_COMPOSE: class=block-level}</th>
2006-12-02 04:36:16 +00:00
</tr>
</thead>
2014-08-16 11:14:00 +02:00
<tbody>
2006-12-02 04:36:16 +00:00
";
$PM_INBOX_TABLE = "{SETIMAGE: w=30&h=30&crop=1}
<tr class='{PM_STATUS_CLASS}'>
2006-12-02 04:36:16 +00:00
<td class='forumheader3'>{PM_SELECT}</td>
<td class='forumheader3'>{PM_ATTACHMENT_ICON}</td>
<td class='forumheader3'>{PM_AVATAR: shape=circle} {PM_FROM=link}</td>
<td class='forumheader3'>{PM_SUBJECT=link,inbox}</td>
2006-12-02 04:36:16 +00:00
<td class='forumheader3'>{PM_DATE}</td>
<td class='forumheader3' style='text-align: center; white-space: nowrap'>{PM_DELETE=inbox}&nbsp;{PM_BLOCK_USER}</td>
</tr>
";
$PM_INBOX_EMPTY = "
<tr>
<td colspan='6' class='forumheader'>".LAN_PM_34."</td>
</tr>
";
$PM_INBOX_FOOTER = "
<tr>
<td class='forumheader' colspan='3'>
<input type='hidden' name='pm_come_from' value='inbox' />
{PM_DELETE_SELECTED}
2006-12-02 04:36:16 +00:00
</td>
<td class='forumheader text-right' colspan='3'>
{PM_NEXTPREV=inbox}
</td>
2006-12-02 04:36:16 +00:00
</tr>
</tbody>
2006-12-02 04:36:16 +00:00
</table>
";
$PM_OUTBOX_HEADER = "
2013-02-06 00:20:11 -08:00
<table class='table table-striped fborder'>
<thead>
2006-12-02 04:36:16 +00:00
<tr>
<th class='fcaption' style='width:1%'>&nbsp;</th>
<th class='fcaption' style='width:1%'>&nbsp;</th>
<th class='fcaption' style='width:38%'>".LAN_PM_5."</th>
<th class='fcaption' style='width:22%'>".LAN_PM_2."</th>
<th class='fcaption' style='width:30%'>".LAN_PM_33."</th>
<th class='fcaption' style='width:8%'>&nbsp;</th>
2006-12-02 04:36:16 +00:00
</tr>
</thead>
<tbody>
2006-12-02 04:36:16 +00:00
";
$PM_OUTBOX_TABLE = "
<tr>
<td class='forumheader3'>{PM_SELECT}</td>
<td class='forumheader3'>{PM_ATTACHMENT_ICON}</td>
<td class='forumheader3'>{PM_SUBJECT=link,outbox}</td>
2006-12-02 04:36:16 +00:00
<td class='forumheader3'>{PM_TO=link}</td>
<td class='forumheader3'>{PM_DATE}</td>
2006-12-02 04:36:16 +00:00
<td class='forumheader3' style='text-align: center'>{PM_DELETE=outbox}</td>
</tr>
";
$PM_OUTBOX_EMPTY = "
<tr>
<td colspan='6' class='forumheader'>".LAN_PM_34."</td>
</tr>
";
/*
2006-12-02 04:36:16 +00:00
$PM_OUTBOX_FOOTER = "
<tr>
<td class='forumheader' colspan='6' style='text-align:center'>
<input type='hidden' name='pm_come_from' value='outbox' />
{PM_DELETE_SELECTED}
2006-12-02 04:36:16 +00:00
</td>
</tr>
{PM_NEXTPREV=outbox}
</tbody>
2006-12-02 04:36:16 +00:00
</table>
";*/
$PM_OUTBOX_FOOTER = "
<tr>
<td class='forumheader' colspan='3'>
<input type='hidden' name='pm_come_from' value='inbox' />
{PM_DELETE_SELECTED}
</td>
<td class='forumheader text-right' colspan='3'>
{PM_NEXTPREV=inbox}
</td>
</tr>
</tbody>
</table>
2006-12-02 04:36:16 +00:00
";
$PM_BLOCKED_HEADER = "
2013-02-06 00:20:11 -08:00
<table class='table table-striped fborder'>
<tr>
<td class='fcaption' style='width:5%'>&nbsp;</td>
<td class='fcaption' style='width:48%'>".LAN_PM_68."</td>
<td class='fcaption' style='width:42%'>".LAN_PM_69."</td>
<td class='fcaption' style='width:5%'>&nbsp;</td>
</tr>
";
$PM_BLOCKED_TABLE = "
<tr>
<td class='forumheader3'>{PM_BLOCKED_SELECT}</td>
<td class='forumheader3'>{PM_BLOCKED_USER=link}</td>
<td class='forumheader3'>{PM_BLOCKED_DATE}</td>
<td class='forumheader3' style='text-align: center'>{PM_BLOCKED_DELETE}</td>
</tr>
";
$PM_BLOCKED_EMPTY = "
<tr>
<td colspan='4' class='forumheader'>".LAN_PM_67."</td>
</tr>
";
$PM_BLOCKED_FOOTER = "
<tr>
<td class='forumheader' colspan='4' style='text-align:center'>
{PM_DELETE_BLOCKED_SELECTED}
</td>
</tr>
</table>
";
2006-12-02 04:36:16 +00:00
$PM_SHOW =
"<div class='pm-show' style='text-align: center'>
<table class='table table-bordered table-striped fborder'>
2006-12-02 04:36:16 +00:00
<tr>
<td class='fcaption text-left' colspan='2'>
<h3>{PM_SUBJECT} <small class='pull-right'>{PM_DATE}</small></h3>
<small>{PM_FROM_TO}</small>
<small class='pull-right' >{PM_READ} {PM_DELETE}</small></td>
2006-12-02 04:36:16 +00:00
</tr>
<tr>
<td class='forumheader3 text-left' style='vertical-align:top'>
<div class='pm-message'>{PM_MESSAGE}</div>
{PM_ATTACHMENTS}
2006-12-02 04:36:16 +00:00
</td>
</tr>
{PM_REPLY}
</table>
</div>
<hr />
2006-12-02 04:36:16 +00:00
";
$PM_NOTIFY =
"<div>
<h4>".LAN_PM_101."{SITENAME}</h4>
<table class='table table-striped'>
<tr><td>".LAN_PM_102."</td><td>{USERNAME}</td></tr>
<tr><td>".LAN_PM_103."</td><td>{PM_SUBJECT}</td></tr>
<tr><td>".LAN_PM_108."</td><td>{PM_DATE}</td></tr>
<tr><td>".LAN_PM_104."</td><td>{PM_ATTACHMENTS}</td></tr>
</table>
<table class='table'><tr><td class='text-center'><br />
<a class='btn btn-primary btn-lg' href='{PM_URL}'>".LAN_PM_113."</a></td></tr>
</table>
";