Esempio n. 1
0
    ?>

<!-- Start add banner -->
<?php 
    $propaganda = new propaganda();
    $propaganda->printCurrAdd();
    ?>
<!-- End add banner -->

<!-- SerieResults -->
<div class="page-header">
<h1>Select your episode</h1>
</div>

<?php 
    $vikiEpisodes = $viki->episodes($_GET['serie'], $_GET['page']);
    $count = count($vikiEpisodes['response']);
    if ($count) {
        //echo "<div class='row'>\r\n";
        echo "<ul class='thumbnails'>\r\n";
        for ($i = 0; $i < $count; $i++) {
            $id = $vikiEpisodes['response'][$i]['id'];
            $number = $vikiEpisodes['response'][$i]['number'];
            $poster = $vikiEpisodes['response'][$i]['images']['poster']['url'];
            echo "<li class='span6'>\r\n";
            echo "<div class='thumbnail'>\r\n";
            echo "<img src='" . $poster . "' alt='Episode " . $number . "' />\r\n";
            echo "<div class='caption'>\r\n";
            echo "<h3>Episode " . $number . "</h3>\r\n";
            echo "<p><a href='episodes.php?episode=" . $id . "' class='btn btn-primary'><i class='icon-download icon-white'></i> Download</a></p>\r\n";
            echo "</div></div></li>\r\n\r\n";