Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="aside-widget">
- <div class="aside-widget__title">{$L_STREAMS_BLOCK_TITLE}</div>
- <div class="aside-widget__content">
- <div class="swiper">
- <div class="swiper-container streams">
- <div class="swiper-wrapper">
- {if $stream_exist}
- {foreach $stream_list as $stream first=$first}
- {if $stream.type == 'twitch'}
- <div class="swiper-slide streams__item" data-insertmedia='{ "type" : "twitch", "src" : "https://player.twitch.tv/?channel={$stream.key}", "setting":"autoplay={if $first}true{else}false{/if}&muted=true&parent={$.php.urlencode($.server['HTTP_HOST'])}", "width" : "100%", "height" : "100%" }'>
- </div>
- {elseif $stream.type == 'youtube'}
- <div class="swiper-slide streams__item" data-insertmedia='{ "type" : "youtube", "src" : "https://www.youtube.com/embed/{$stream.key}", "setting":"autoplay={if $first}1{else}0{/if}&mute=1", "width" : "100%", "height" : "100%" }'>
- </div>
- {/if}
- {/foreach}
- {/if}
- <div class="swiper-slide streams__item" data-insertmedia='{ "type" : "youtube", "src" : "https://www.youtube.com/embed/nT1RqpPXaqs", "setting":"autoplay=0&mute=1", "width" : "100%", "height" : "100%" }'>
- </div>
- <div class="swiper-slide streams__item" data-insertmedia='{ "type" : "youtube", "src" : "https://www.youtube.com/embed/JZDpIYTSeDk", "setting":"autoplay=0&mute=1", "width" : "100%", "height" : "100%" }'>
- </div>
- <div class="swiper-slide streams__item" data-insertmedia='{ "type" : "youtube", "src" : "https://www.youtube.com/embed/V3wfp1SvJtU", "setting":"autoplay=0&mute=1", "width" : "100%", "height" : "100%" }'>
- </div>
- <!-- <div class="swiper-slide streams__item" data-insertmedia='{ "type" : "twitch", "src" : "https://player.twitch.tv/?channel=letsgoy1", "setting":"autoplay=false&muted=true&parent={$.php.urlencode($.server['HTTP_HOST'])}", "width" : "100%", "height" : "100%" }'>
- </div> -->
- </div>
- </div>
- <div class="swiper-pagination streams-pagination"></div>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement