<div class="content-header">
    <div class="header-section">
        <h1><i class="fa fa-twitch"></i>VirtualUA Live Streams<br> <small>Media Department | <?php echo SITE_NAME?>&copy; <?php echo date("Y"); ?></small></h1>
    </div>
</div>
<ol class="breadcrumb breadcrumb-top">
  <li><a href="<?php echo SITE_URL?>/index.php"><i class="fa fa-home"></i></a></li>
  <li>Livestream</li>
</ol>

<div class="block full">

<div class="col-md-12">
		<div class="alert alert-info">
			<strong>
				Information
			</strong>
			
			<br>
			Hello there! We at VirtualUA encourage streaming while you proudly fly in our colors across the skies.
			If you wish to add your stream here, please email the media team  <strong><a href="mailto:media@virtualua.org" class="text-info">here</a></strong>.
		</div>
	</div>
	



<?php
if(!$twitch)
    {
    	echo '<span style="color:red;">You have not added any Twitch Streams yet.</span>';
    }
    else {?>



	<?php

    foreach($twitch as $stream){


        ?>
        <div class="col-md-6" style="height: 500;">

        <h1><i class="hi hi-map-marker"></i> <?php echo $stream->username;?></h1>
        <p><iframe src="https://player.twitch.tv/?channel=<?php echo $stream->username;?>&parent=<?php echo $stream->parent;?>"
           frameborder="<?php echo $stream->frameborder;?>" allowfullscreen="<?php echo $stream->allowfull;?>" scrolling="<?php echo $stream->scroll;?> "
            height="<?php echo $stream->height;?>" width="<?php echo $stream->width;?>"></iframe></p>
        </div>
        <br />
<?php
}
}
?>

<hr />

</div>

</div>


