Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. <div id="global-stats-row" class="row">
  2. <div class='container'>
  3. <div class="col-md-3">
  4. <img id="avatar" src="https://crafatar.com/avatars/<?=$user_uuid?>?size=255">
  5. <ul class="sidetabs">
  6. <?php
  7. $first = 0;
  8. foreach($stats_config['tables'] as $table => $properties) {
  9. $first = $first + 1;
  10. $a = "'" . "all" . "'";
  11. $n = "'" .preg_replace('/\s+/', '', strtolower($table)). "'";
  12. $n2 = preg_replace('/\s+/', '', strtolower($table));
  13. if($first == 1) {
  14. echo '<li onclick="tab(event, '.$a.')" class="sidetab active">ALL</li>';
  15. }
  16. if($first === 2) {
  17. echo '<li onclick="tab(event, '.$n.')" class="sidetab">'.$n2.'</li>';
  18. } else {
  19. echo '<li onclick="tab(event, '.$n.')" class="sidetab">'.$n2.'</li>';
  20. }
  21. }
  22. ?>
  23. </ul>
  24. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement