PHP Classes

File: upload/themes/bb_simple/views/right.php

Recommend this page to a friend!
  Classes of James Brows   PHP Bulletin Board   upload/themes/bb_simple/views/right.php   Download  
File: upload/themes/bb_simple/views/right.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Bulletin Board
Manage and post messages in multi-user forums
Author: By
Last change:
Date: 2 years ago
Size: 5,234 bytes
 

Contents

Class file image Download
<!-- right -->
        <div class='col-lg-3 col-md-3 '>
        <?php load_hook('bb_before_forum_right_widgets');?>

          <?php BB_PHPCode::load('before_forum_right_widgets');?>


          <!-- card -->
          <div class="card margin-bottom-20">
            <div class="card-body">
              <h5 class="card-title" style='font-size: 13pt;'>Latest posts</h5>
              <?php
                    $latestPost
=BB_Threads::load_top_x_latest(10);

                   
$total=count($latestPost);

                   
$li='';

                    for (
$i=0; $i < $total; $i++) {
                       
$li.='
                        <!-- sidebar-thread -->
                        <!-- row -->
                        <div class="row margin-bottom-10">
                                        
                        <div class="col-lg-2 col-md-12 ">
                          '
.user_home_avatar($latestPost[$i]['username'],$latestPost[$i]['avatar']).'
                        </div>
                          <div class="col-lg-10 col-md-12 ">
                            <div><a href="'
.thread_url($latestPost[$i]['friendly_url']).'" style="font-size:11pt;">'.$latestPost[$i]['title'].'</a></div>
                            <div style="font-size:10pt;color: #999;"><span>Started by '
.$latestPost[$i]['author'].' at '.date('M d, Y',strtotime($latestPost[$i]['ent_dt'])).'</span></div>
                            <div><a href="'
.forum_url($latestPost[$i]['forum_friendly_url']).'" style="font-size:10pt;color: #999;">'.$latestPost[$i]['forum_title'].'</a></div>
                          </div>
                        </div>
                        <!-- row -->
                         <!-- sidebar-thread -->

                        '
;
                    }

                    echo
$li;

               
?>


            </div>
          </div>
          <!-- card -->
          <!-- card -->
          <div class="card margin-bottom-20">
            <div class="card-body">
              <h5 class="card-title" style='font-size: 13pt;'>Forum statistics</h5>
              <div class='row' style='font-size: 11pt;'>
                <div class='col-lg-9 col-lg-9 '>Threads:</div>
                <div class='col-lg-3 col-lg-3' style='text-align: right;'><?php echo Configs::$_['bb_total_threads'];?></div>
              </div>
              <div class='row' style='font-size: 11pt;'>
                <div class='col-lg-9 col-lg-9 '>Posts:</div>
                <div class='col-lg-3 col-lg-3' style='text-align: right;'><?php echo Configs::$_['bb_total_post'];?></div>
              </div>
              <div class='row' style='font-size: 11pt;'>
                <div class='col-lg-9 col-lg-9 '>Members:</div>
                <div class='col-lg-3 col-lg-3' style='text-align: right;'><?php echo Configs::$_['bb_total_users'];?></div>
              </div>
              <div class='row' style='font-size: 11pt;'>
                <div class='col-lg-7 col-lg-7 '>Latest member:</div>
                <div class='col-lg-5 col-lg-5' style='text-align: right;'><a href="<?php echo SITE_URL.'profile-'.Configs::$_['bb_latest_username'];?>.html" class="card-link" style='font-size: 10pt;'><?php echo Configs::$_['bb_latest_username'];?></a></div>
              </div>

            </div>
          </div>
          <!-- card -->
          <!-- card -->
          <div class="card margin-bottom-20">
            <div class="card-body">
              <h5 class="card-title" style='font-size: 13pt;'>Share this page</h5>
             
              <!-- <a href="#" class="card-link" style='font-size: 24pt;'><i class='fab fa-facebook'></i></a>
              <a href="#" class="card-link" style='font-size: 24pt;'><i class='fab fa-twitter'></i></a>
              <a href="#" class="card-link" style='font-size: 24pt;'><i class='fab fa-facebook'></i></a> -->

                <div class="effect aeneas">
                  <div class="buttons">
                    <a href="https://www.facebook.com/sharer.php?u=<?php echo urlencode(SITE_URL);?>" class="fb" title="Join us on Facebook"><i class="fab fa-facebook" aria-hidden="true"></i></a>
                    <a href="https://reddit.com/submit?url=<?php echo urlencode(SITE_URL);?>" class="reddit" title="Join us on Reddit"><i class="fab fa-reddit" aria-hidden="true"></i></a>
                    <a href="https://pinterest.com/pin/create/bookmarklet/?url=<?php echo urlencode(SITE_URL);?>" class="pinterest" title="Join us on Pinterest"><i class="fab fa-pinterest-p" aria-hidden="true"></i></a>
                    <a href="https://api.whatsapp.com/send?text=<?php echo urlencode(SITE_URL);?>" class="whatsapp" title="Join us on Whatsapp"><i class="fab fa-whatsapp" aria-hidden="true"></i></a>
                 
                  </div>
                </div>
            </div>
          </div>
          <!-- card -->
          <?php BB_PHPCode::load('after_forum_right_widgets');?>
<?php load_hook('bb_after_forum_right_widgets');?>

        </div>
        <!-- left -->

        </div>
        <!-- row -->


       
      </main>
     
      <footer>
       
      </footer>
     
     
    </div>
    <!-- container -->