init
This commit is contained in:
17
site/snippets/blocks/twitch.php
Normal file
17
site/snippets/blocks/twitch.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
$id = uniqid('twitch');
|
||||
?>
|
||||
|
||||
<div>
|
||||
<div id="<?= $id ?>"></div>
|
||||
|
||||
<script src="https://player.twitch.tv/js/embed/v1.js"></script>
|
||||
|
||||
<script>
|
||||
new Twitch.Player("<?= $id ?>", {
|
||||
channel: "<?= $data->channel()->value() ?>",
|
||||
width: '100%',
|
||||
height: 480,
|
||||
})
|
||||
</script>
|
||||
</div>
|
||||
Reference in New Issue
Block a user