Skip to content

Commit

Permalink
#1334 Improve footer and subforum view
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick committed Sep 4, 2015
1 parent 1094482 commit 26629bd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
12 changes: 6 additions & 6 deletions themes/Sixteen/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
<div class="col-md-2">
<div class="col-lg-2 col-md-4 col-sm-6 col-xs-12">
<div class="statistic-item"><?php echo _n( 'User', 'Users', get_total_users(), 'luna' ) ?>: <strong><?php total_users(); ?></strong></div>
</div>
<div class="col-md-2">
<div class="col-lg-2 col-md-4 col-sm-6 col-xs-12">
<div class="statistic-item"><?php echo _n( 'Topic', 'Topics', get_total_topics(), 'luna' ) ?>: <strong><?php total_topics(); ?></strong></div>
</div>
<div class="col-md-2">
<div class="col-lg-2 col-md-4 col-sm-6 col-xs-12">
<div class="statistic-item"><?php echo _n( 'Post', 'Posts', get_total_posts(), 'luna' ) ?>: <strong><?php total_posts(); ?></strong></div>
</div>
<div class="col-md-2">
<div class="col-lg-2 col-md-4 col-sm-6 col-xs-12">
<div class="statistic-item"><?php _e('Newest user', 'luna') ?>: <strong><?php newest_user(); ?></strong></div>
</div>
<div class="col-md-2">
<div class="col-lg-2 col-md-4 col-sm-6 col-xs-12">
<div class="statistic-item">
<?php if ($luna_config['o_users_online']) { ?>
<div class="dropup">
Expand All @@ -72,7 +72,7 @@
<?php } else {
echo _n('User online', 'Users online', num_users_online(), 'luna').' <strong>'.users_online().'</strong>'; } ?></div>
</div>
<div class="col-md-2">
<div class="col-lg-2 col-md-4 col-sm-6 col-xs-12">
<div class="statistic-item"><?php _e('Guests online', 'luna') ?>: <strong><?php guests_online(); ?></strong></div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion themes/Sixteen/forum.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</div>
</div>
<div class="list-group list-group-forum">
<?php draw_subforum_list('forum.php') ?>
<?php draw_subforum_list('subforum.php') ?>
</div>
</div>
<hr />
Expand Down
18 changes: 10 additions & 8 deletions themes/Sixteen/objects/subforum.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?php
$style = '';

if ($current_id == $cur_forum['fid'])
?>
<a href="<?php echo $page ?>?id=<?php echo $cur_forum['fid'] ?>" class="list-group-item <?php echo $item_status ?>">
<?php echo luna_htmlspecialchars($cur_forum['forum_name']) ?>
</a>
<div class="row forum-row <?php echo $item_status ?>">
<div class="col-md-11 col-sm-10 col-xs-8">
<strong><a href="viewforum.php?id=<?php echo $cur_forum['fid'] ?>"><?php echo luna_htmlspecialchars($cur_forum['forum_name']) ?></a></strong><br />
<?php echo $forum_desc ?>
</div>
<div class="col-md-1 col-sm-2 col-xs-4 text-center">
<?php echo '<b>'.$cur_forum['num_topics'].'</b> '.$topics_label; ?><br />
<?php echo '<b>'.$cur_forum['num_posts'].'</b> '.$posts_label; ?>
</div>
</div>

0 comments on commit 26629bd

Please sign in to comment.