e107_plugins/forum/templates/forum_viewtopic_template.php
<?php
/*
* e107 website system
*
* Copyright (C) 2008-2013 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
*/
if (!defined('e107_INIT')) { exit; }
if(!defined("USER_WIDTH")){ define("USER_WIDTH","width:95%;margin-left:auto;margin-right:auto"); }
$sc_style['LASTEDIT']['pre'] = LAN_FORUM_2016.' ';
$sc_style['LASTEDITBY']['pre'] = ' '.LAN_FORUM_2017.' ';
$sc_style['LASTEDITBY']['post'] = '';
$sc_style['LEVEL']['pre'] = "";
$sc_style['LEVEL']['post'] = "";
$sc_style['ATTACHMENTS']['pre'] = "<div>";
$sc_style['ATTACHMENTS']['post'] = "</div>";
$sc_style['ANON_IP']['pre'] = "";
$sc_style['ANON_IP']['post'] = "";
$sc_style['CUSTOMTITLE']['pre'] = "<small>";
$sc_style['CUSTOMTITLE']['post'] = "</small>";
$sc_style['USER_EXTENDED']['location.text_value']['mid'] = ": ";
$sc_style['USER_EXTENDED']['location.text_value']['post'] = "<br />";
$FORUMSTART = "<a id='top'></a><div style='text-align:center'>
<div class='spacer'>
<table style='".USER_WIDTH."' class='fborder table'>
<tr>
<td class='fcaption'>
{BACKLINK}
</td>
<td class='fcaption' style='text-align: right'>
<div class='smalltext'>
{TRACK}
</div>
</td>
<td class='fcaption' style='text-align: right'>
<span class='smalltext'>
{NEXTPREV}
</span>
</td>
</tr>
<tr>
<td class='forumheader' colspan='3'>
{THREADNAME}
</td>
</tr>
</table>
</div>
<div class='spacer'>
{MESSAGE}
<div class='spacer'>
<table style='".USER_WIDTH."'>
<tr>
<td style='width:60%; text-align: left'>
{GOTOPAGES}
</td>
<td style='width:40%; text-align:right; white-space: nowrap'>
{BUTTONS}
</td>
</tr>
<tr>
<td style='width:60%; text-align: left'>
<div class='spacer'>
{MODERATORS}
</div>
</td>
<td style='width:40%; text-align:right'>
{THREADSTATUS}
</td>
</tr>
</table>
<div class='spacer'>
<table style='".USER_WIDTH."' class='fborder table'>
<tr>
<td style='width:20%; text-align:center' class='fcaption'>
{LAN=AUTHOR}
</td>
<td style='width:80%; text-align:center' class='fcaption'>
{LAN=FORUM_2015}
</td>
</tr>";
$FORUMTHREADSTYLE = "<tr>
<td class='forumheader' style='vertical-align:middle'>
{NEWFLAG}
{POSTER}
{ANON_IP}
</td>
<td class='forumheader' style='vertical-align:middle'>
<table cellspacing='0' cellpadding='0' style='width:100%'>
<tr>
<td class='smallblacktext'>
{THREADDATESTAMP}
</td>
<td style='text-align:right'>
{EMAILITEM} {PRINTITEM} {REPORTIMG}{EDITIMG}{QUOTEIMG}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='forumheader3' style='vertical-align:top'>
{CUSTOMTITLE}
{AVATAR}
<div class='smalltext'>
{LEVEL=special}
{LEVEL=pic}
{LEVEL=userid}
{JOINED}
{USER_EXTENDED=location.text_value}
{POSTS}
</div>
</td>
<td class='forumheader3' style='vertical-align:top'>{POLL}
{POST}
{ATTACHMENTS}
{LASTEDIT}{LASTEDITBY=link}
{SIGNATURE}
</td>
</tr>
<tr>
<td class='finfobar'>
<span class='smallblacktext'>
{TOP}
</span>
</td>
<td class='finfobar' style='vertical-align:top'>
<table cellspacing='0' cellpadding='0' style='width:100%'>
<tr>
<td>
{PROFILEIMG}
{EMAILIMG}
{WEBSITEIMG}
{PRIVMESSAGE}
</td>
<td style='text-align:right'>
{MODOPTIONS}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan='2'>
</td>
</tr>";
$FORUMEND = "<tr><td colspan='2' class='forumheader3' style='text-align:center'>{QUICKREPLY}</td></tr></table></div>
<table style='".USER_WIDTH."'>
<tr>
<td style='width:80%'>{GOTOPAGES}
</td>
<td style='width:20%; text-align: right; white-space: nowrap'>
{BUTTONS}
</td>
</tr>
<tr>
<td colspan ='2'>
{FORUMJUMP}
</td>
</tr>
</table>
</div>";
/*
<div style='text-align:center' class='spacer'>
<a href='".e_PLUGIN."rss_menu/rss.php?8.1.".e_QUERY."'><img src='".e_PLUGIN."rss_menu/images/rss1.png' alt='{LAN=FORUM_0012}' style='vertical-align: middle; border: 0;' /></a> <a href='".e_PLUGIN."rss_menu/rss.php?8.2.".e_QUERY."'><img src='".e_PLUGIN."rss_menu/images/rss2.png' alt='{LAN=FORUM_0013}' style='vertical-align: middle; border: 0;' /></a> <a href='".e_PLUGIN."rss_menu/rss.php?8.3.".e_QUERY."'><img src='".e_PLUGIN."rss_menu/images/rss3.png' alt='{LAN=433}' style='vertical-align: middle; border: 0;' /></a>
</div>
*/
$FORUMEND .= "
<div class='nforumdisclaimer' style='text-align:center'>Powered by <b>e107 Forum System</b></div>";
$FORUMREPLYSTYLE = "<tr>
<td class='forumheader' style='vertical-align:middle'>
{NEWFLAG}
{POSTER}
{ANON_IP}
</td>
<td class='forumheader' style='vertical-align:middle'>
<table cellspacing='0' cellpadding='0' style='width:100%'>
<tr>
<td class='smallblacktext'>
{THREADDATESTAMP}
</td>
<td style='text-align:right'>
{REPORTIMG}{EDITIMG}{QUOTEIMG}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='forumheader3' style='vertical-align:top'>
{CUSTOMTITLE}
{AVATAR}
<div class='smalltext'>
{LEVEL=special}
{LEVEL=pic}
{LEVEL=userid}
{JOINED}
{USER_EXTENDED=location.text_value}
{POSTS}
</div>
</td>
<td class='forumheader3' style='vertical-align:top'>{POST}
{ATTACHMENTS}
{LASTEDIT}{LASTEDITBY}
{SIGNATURE}
</td>
</tr>
<tr>
<td class='finfobar'>
<span class='smallblacktext'>
{TOP}
</span>
</td>
<td class='finfobar' style='vertical-align:top'>
<table cellspacing='0' cellpadding='0' style='width:100%'>
<tr>
<td>
{PROFILEIMG}
{EMAILIMG}
{WEBSITEIMG}
{PRIVMESSAGE}
</td>
<td style='text-align:right'>
{MODOPTIONS}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan='2'>
</td>
</tr>";
$FORUMDELETEDSTYLE = "<tr>
<td class='forumheader' style='vertical-align:middle'>
{POSTER}
{ANON_IP}
</td>
<td class='forumheader' style='vertical-align:middle'>
<table cellspacing='0' cellpadding='0' style='width:100%'>
<tr>
<td class='smallblacktext'>
{THREADDATESTAMP}
</td>
<td style='text-align:right'>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='forumheader3' style='vertical-align:top' colspan='2'>
{POSTDELETED}
</td>
</tr>
<tr>
<td class='finfobar'>
<span class='smallblacktext'>
</span>
</td>
<td class='finfobar' style='vertical-align:top' colspan='2'>
<table cellspacing='0' cellpadding='0' style='width:100%'>
<tr>
<td>
</td>
<td style='text-align:right'>
{MODOPTIONS}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan='2'>
</td>
</tr>";
$FORUM_CRUMB['sitename']['value'] = "<a class='forumlink' href='{SITENAME_HREF}'>{SITENAME}</a>";
$FORUM_CRUMB['sitename']['sep'] = " :: ";
$FORUM_CRUMB['forums']['value'] = "<a class='forumlink' href='{FORUMS_HREF}'>{FORUMS_TITLE}</a>";
$FORUM_CRUMB['forums']['sep'] = " :: ";
$FORUM_CRUMB['parent']['value'] = "<a class='forumlink' href='{PARENT_HREF}'>{PARENT_TITLE}</a>";
$FORUM_CRUMB['parent']['sep'] = " :: ";
$FORUM_CRUMB['subparent']['value'] = "<a class='forumlink' href='{SUBPARENT_HREF}'>{SUBPARENT_TITLE}</a>";
$FORUM_CRUMB['subparent']['sep'] = " :: ";
$FORUM_CRUMB['forum']['value'] = "<a class='forumlink' href='{FORUM_HREF}'>{FORUM_TITLE}</a>";
// {MODERATORS} {THREADSTATUS}
// New in v2.x - requires a bootstrap theme be loaded.
$FORUM_VIEWTOPIC_TEMPLATE['caption'] = "";
$FORUM_VIEWTOPIC_TEMPLATE['start'] = "
<div class='row-fluid'>
<div>{BACKLINK}</div>
</div>
<div class='row row-fluid'>
<div class='col-md-9 span9 pull-left float-left'><h3>{THREADNAME}</h3></div><div class='col-md-3 span3 pull-right float-right float-end right text-right'>{TRACK} {BUTTONSX}</div>
</div>
{MESSAGE}
<ul id='forum-viewtopic' class='unstyled list-unstyled'>
";
$FORUM_VIEWTOPIC_TEMPLATE['thread'] = "
<li id='post-{POSTID}' class='forum-viewtopic-post'>
<div class='hidden-xs row row-fluid btn-navbar navbar-btn'>
{SETIMAGE: w=100&h=100&crop=1}
<div class='col-2 col-xs-2 span2 left text-left'>
<div class='row'>
<div class='col-12 col-xs-12 col-md-12 forum-user-combo'>{USERCOMBO}<br />{CUSTOMTITLE}</div>
</div>
{NEWFLAG} {ANON_IP}</div>
<div class='col-4 col-xs-4 col-sm-3 text-muted span4 text-muted muted'><small>{THREADDATESTAMP=relative}</small></div>
<div class='col-5 col-xs-5 text-muted span5 text-muted muted right text-right'><small>{LASTEDIT}{LASTEDITBY=link}</small></div>
<div class='col-3 col-xs-3 col-sm-2 span1 right text-right'>{POSTOPTIONS}</div>
</div>
<div class='row row-fluid' >
<div class='col-12 col-xs-12 col-md-2 span2 left'>
<div class='row'>
<div class='col-3 col-xs-3 col-md-12 text-center'>{AVATAR: shape=rounded}</div>
<div class='col-6 col-xs-6 visible-xs d-block d-sm-none'>{USERCOMBO}<br />{CUSTOMTITLE}</div>
<div class='col-6 col-xs-6 col-md-12 hidden-xs'>
<small>
{LEVEL=badge} {LEVEL=glyph}
</small>
</div>
<div class='visible-xs d-block d-sm-none col-3 col-xs-3'><div class='clearfix'>{POSTOPTIONS}</div><div class='pull-right float-right float-end'><br /><small class='text-muted'>{THREADDATESTAMP=relative}</small></div></div>
</div>
</div>
<div class='visible-xs d-block d-sm-none col-12 col-xs-12'><hr /></div>
<div class='col-12 col-xs-12 col-md-9 span9 forum-thread-text '>
{POLL}
{THREAD_TEXT}
{ATTACHMENTS: modal=1}
</div>
</div>
<div class='row row-fluid'>
<div class='col-2 col-xs-2 span2 finfobar'>
</div>
<div class='col-9 col-xs-9 span9 finfobar' >
<small> {SIGNATURE=clean}</small>
</div>
<div class='col-3 col-xs-3 span3'>
</div>
</div>
</li>
";
$FORUM_VIEWTOPIC_TEMPLATE['end'] = "</ul>
<div class='col-12 col-xs-12'>
<hr />
</div>
<div class='row'>
<div class='col-12 col-xs-12 col-md-4'></div>
<div class='col-12 col-xs-12 col-md-4 text-center'>
{GOTOPAGES}
</div>
<div class='col-12 col-xs-12 col-md-4'>
<div class='pull-right float-right float-end'>
{BUTTONSX}
</div>
</div>
</div>
<div class='row'>
<div class='col-12 col-xs-12 col-md-8 offset-md-2 col-md-offset-2'>
{QUICKREPLY}
</div>
</div>
<small class='text-muted'>{MODERATORS}</small>
{THREADSTATUS}
";
$FORUM_VIEWTOPIC_TEMPLATE['replies'] = $FORUM_VIEWTOPIC_TEMPLATE['thread'];
$FORUM_VIEWTOPIC_TEMPLATE['deleted'] = "
<li id='post-{POSTID}' class='forum-viewtopic-deleted forum-viewtopic-post'>
<div class='hidden-xs row row-fluid btn-navbar navbar-btn'>
{SETIMAGE: w=100&h=0&crop=0}
<div class='col-2 col-xs-2 span2 left text-left'>
<div class='row'>
<div class='col-12 col-xs-12 col-md-12 forum-user-combo'>{USERCOMBO}<br />{CUSTOMTITLE}</div>
</div>
{NEWFLAG} {ANON_IP}</div>
<div class='col-4 col-xs-4 col-sm-3 text-muted span4 text-muted muted'><small>{THREADDATESTAMP=relative}</small></div>
<div class='col-5 col-xs-5 text-muted span5 text-muted muted right text-right'><small>{LASTEDIT}{LASTEDITBY=link}</small></div>
<div class='col-3 col-xs-3 col-sm-2 span1 right text-right'>{POSTOPTIONS}</div>
</div>
<div class='row row-fluid' >
<div class='col-12 col-xs-12 col-md-2 span2 left'>
<div class='row'>
<div class='col-3 col-xs-3 col-md-12 text-center'>{AVATAR: shape=rounded}</div>
<div class='col-6 col-xs-6 visible-xs d-block d-sm-none'>{USERCOMBO}<br />{CUSTOMTITLE}</div>
<div class='col-6 col-xs-6 col-md-12 hidden-xs'>
<small>
{LEVEL=badge} {LEVEL=glyph}
</small>
</div>
<div class='visible-xs d-block d-sm-none col-3 col-xs-3'><div class='clearfix'>{POSTOPTIONS}</div><div class='pull-right float-right float-end'><br /><small class='text-muted'>{THREADDATESTAMP=relative}</small></div></div>
</div>
</div>
<div class='visible-xs d-block d-sm-none col-12 col-xs-12'><hr /></div>
<div class='col-12 col-xs-12 col-md-9 span9 forum-thread-text '>
{POSTDELETED}
</div>
</div>
<div class='row row-fluid'>
<div class='col-2 col-xs-2 span2 finfobar'>
</div>
<div class='col-9 col-xs-9 span9 finfobar' >
<small> {SIGNATURE=clean}</small>
</div>
<div class='col-3 col-xs-3 span3'>
</div>
</div>
</li>
";
$FORUM_VIEWTOPIC_WRAPPER['thread']['ATTACHMENTS'] = "<div class='forum-viewtopic-attachments'>{---}</div>";
$FORUM_VIEWTOPIC_WRAPPER['thread']['CUSTOMTITLE'] = "<span class='forum-viewtopic-customtitle'><small>{---}</small></span>";
$FORUM_VIEWTOPIC_WRAPPER['replies']['ATTACHMENTS'] = $FORUM_VIEWTOPIC_WRAPPER['thread']['ATTACHMENTS'];
$FORUM_VIEWTOPIC_WRAPPER['replies']['CUSTOMTITLE'] = $FORUM_VIEWTOPIC_WRAPPER['thread']['CUSTOMTITLE'];