<commit_before><?php

use frontend\modules\bbii\models\BbiiForum;
use frontend\modules\bbii\models\BbiiMember;
use frontend\modules\bbii\models\BbiiMessage;
use frontend\modules\bbii\models\BbiiPost;
use frontend\modules\bbii\models\BbiiSession;
use frontend\modules\bbii\models\BbiiTopic;

use yii\helpers\Html;

$member = BbiiMember::find()->newest()->one();

/* @var $this ForumController */
?>
<div id = "bbii-footer">
	<table><tr>
		<td class = "legend">
			<table>
				<caption>
					<?php echo Yii::t('BbiiModule.bbii','Forum legend'); ?>
				</caption>
				<tr>
					<td>
						<div class = "forum-cell topic1"></div>
					</td>
					<td>
						<?php echo Yii::t('BbiiModule.bbii','Unread topic'); ?>
					</td>
					<td>
						<div class = "forum-cell topic1s"></div>
					</td>
					<td>
						<?php echo Yii::t('BbiiModule.bbii','Sticky topic'); ?>
					</td>
					<td>
						<div class = "forum-cell topic1g"></div>
					</td>
					<td>
						<?php echo Yii::t('BbiiModule.bbii','Global topic'); ?>
					</td>
				</tr>
				<tr>
					<td>
						<div class = "forum-cell topic2"></div>
					</td>
					<td>
						<?php echo Yii::t('BbiiModule.bbii','Read topic'); ?>
					</td>
					<td>
						<div class = "forum-cell topic1l"></div>
					</td>
					<td>
						<?php echo Yii::t('BbiiModule.bbii','Locked topic'); ?>
					</td>
					<?php // @todo Polls disabled for init release - DJE : 2015-05-29 ?>
					<?php /*
					<td>
						<div class = "forum-cell topic1p"></div>
					</td>
					<td>
						<?php echo Yii::t('BbiiModule.bbii','Poll'); ?>
					</td>
					*/?>
				</tr>
			</table>
		</td>
		<td class = "statistics">
			<table>
			<caption class = "header2">
				<?php echo Yii::t('BbiiModule.bbii','Board Statistics'); ?>
			</caption>
			<tr>
				<th><?php echo Yii::t('BbiiModule.bbii','Total topics'); ?></th><td><?php echo BbiiTopic::find()->count(); ?></td>
			</tr><tr>
				<th><?php echo Yii::t('BbiiModule.bbii','Total posts'); ?></th><td><?php echo BbiiPost::find()->count(); ?></td>
			</tr><tr>
				<th><?php echo Yii::t('BbiiModule.bbii','Total members'); ?></th><td><?php echo BbiiMember::find()->count(); ?></td>
			</tr><tr>
				<th><?php echo Yii::t('BbiiModule.bbii','Newest member'); ?></th><td><?php echo Html::a($member->member_name, array('member/view', 'id' => $member->id)); ?></td>
			</tr><tr>
				<th><?php echo Yii::t('BbiiModule.bbii','Visitors today'); ?></th><td><?php echo BbiiSession::find()->count(); ?></td>
			</tr>
			</table>
		</td>
	</tr></table>
</div><commit_msg>Refactored for bootstrap<commit_after><?php

use frontend\modules\bbii\models\BbiiForum;
use frontend\modules\bbii\models\BbiiMember;
use frontend\modules\bbii\models\BbiiMessage;
use frontend\modules\bbii\models\BbiiPost;
use frontend\modules\bbii\models\BbiiSession;
use frontend\modules\bbii\models\BbiiTopic;

use yii\helpers\Html;

$member = BbiiMember::find()->newest()->one();

/* @var $this ForumController */
?>
<div class="well clearfix">
    <div class="col col-sm-12 col-md-8 legend">
        <h4>
            <?php echo Yii::t('BbiiModule.bbii','Forum legend'); ?>
        </h4>
        <ul class="list-group">
            <li class="list-group-item">
                <i class = "forum-cell topic1"></i>
                <?php echo Yii::t('BbiiModule.bbii','Unread topic'); ?>
            </li>
            <li class="list-group-item">
                <i class = "forum-cell topic1s"></i>
                <?php echo Yii::t('BbiiModule.bbii','Sticky topic'); ?>
            </li>
            <li class="list-group-item">
                <i class = "forum-cell topic1g"></i>
                <?php echo Yii::t('BbiiModule.bbii','Global topic'); ?>
            </li>
            <li class="list-group-item">
                <i class = "forum-cell topic2"></i>
                <?php echo Yii::t('BbiiModule.bbii','Read topic'); ?>
            </li>
            <li class="list-group-item">
                <i class = "forum-cell topic1l"></i>
                <?php echo Yii::t('BbiiModule.bbii','Locked topic'); ?>
            </li>
            <?php // @todo Polls disabled for init release - DJE : 2015-05-29 ?>
            <?php /*
            <li class="list-group-item">
                <span class = "forum-cell topic1p"></span>
                <?php echo Yii::t('BbiiModule.bbii','Poll'); ?>
            </li>
            */?>
        </ul>

    </div>
    <div class="col col-sm-12 col-md-4 statistics">
        <h4>
            <?php echo Yii::t('BbiiModule.bbii','Board Statistics'); ?>
        </h4>
        <ul class="list-group">
            <li class="list-group-item">
                <?php echo Yii::t('BbiiModule.bbii','Total topics'); ?>
                <div class="badge pull-right"><?php echo BbiiTopic::find()->count(); ?></div>
            </li>
            <li class="list-group-item">
                <?php echo Yii::t('BbiiModule.bbii','Total posts'); ?>
                <div class="badge pull-right"><?php echo BbiiPost::find()->count(); ?></div>
            </li>
            <li class="list-group-item">
                <?php echo Yii::t('BbiiModule.bbii','Total members'); ?>
                <div class="badge pull-right"><?php echo BbiiMember::find()->count(); ?></div>
            </li>
            <li class="list-group-item">
                <?php echo Yii::t('BbiiModule.bbii','Newest member'); ?>
                <div class="pull-right"><?php echo Html::a($member->member_name, array('member/view', 'id' => $member->id)); ?></div>
            </li>
            <li class="list-group-item">
                <?php echo Yii::t('BbiiModule.bbii','Visitors today'); ?>
                <div class="badge pull-right"><?php echo BbiiSession::find()->count(); ?></div>
            </li>
        </ul>
    </div>
</div>
{'fraction_non_alphanumeric': 0.21322256836275527, 'fraction_numerical': 0.006749740394600207, 'mean_word_length': 2.3022857142857145, 'pattern_counts': {'":': 0, '<': 191, '<?xml version=': 0, '>': 209, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2241134', 'n_tokens_mistral': 2276, 'n_tokens_neox': 2024, 'n_words': 383}