e107inc/e107

View on GitHub
e107_plugins/forum/templates/forum_preview_template.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?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") && !deftrue('BOOTSTRAP')){ define("USER_WIDTH","width:95%;margin-left:auto;margin-right:auto"); }

$FORUM_PREVIEW = "<div>
<table style='".defset('USER_WIDTH')."' class='fborder table'>
<tr>
    <td colspan='2' class='fcaption' style='vertical-align:top'>".LAN_FORUM_3005.
    ($action != "nt" ? "</td>" : " ( ".LAN_FORUM_3011.": {PREVIEW_SUBJECT} )</td>")."
<tr>
    <td class='forumheader3' style='width:20%; vertical-align:top'><b>".$poster."</b></td>
    <td class='forumheader3' style='width:80%'><div class='smallblacktext' style='text-align:right'>".IMAGE_post2." {PREVIEW_DATE}</div>{PREVIEW_POST}</td>
</tr>
</table>
</div>";



//v2.x Bootstrap
$FORUM_PREVIEW_TEMPLATE['item'] = "<div class='alert alert-warning alert-block'>
                                    <div><h4>{PREVIEW_SUBJECT}</h4></div>
                                    <br>
                                    {PREVIEW_POST}
                                    </div>";