Advertisement
Guest User

index.tpl.php

a guest
Apr 18th, 2016
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.79 KB | None | 0 0
  1. <div>
  2.     <ul class="nav nav-tabs" role="tablist">
  3.     <?php
  4.     foreach ($data['chaines'] as $k) {
  5.         ?>
  6.         <li role="presentation" <?php if ($k == $data['chaines']['0']) { echo "class='active'"; } ?>><a href="#<?= $k; ?>" aria-controls="<?= $k; ?>" role="tab" data-toggle="tab"><i class="fa fa-twitch"></i>
  7. <?= $k; ?></a></li>
  8.         <?php
  9.     }
  10.     ?>
  11.     </ul>
  12.  
  13.     <div class="tab-content">
  14.  
  15.     <?php
  16.     foreach ($data['chaines'] as $k) {
  17.         ?>
  18.         <div role="tabpanel" class="tab-pane <?php if (current($k) == $k[0]) { echo "class='active'"; } ?>" id="<?= $k; ?>">
  19.         <a href="http://twitch.tv/<?= $k; ?>" target="_blank">
  20.         <img src=" http://streambadge.com/twitch/<?php echo $data['urlparams']; ?>/<?= $k; ?>.png" width="300" height="64" alt="Avatar Streambadge" /></a>
  21.         </div>
  22.  
  23.         <?php
  24.     }
  25.     ?>
  26.  
  27.     </div>
  28. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement