-
Notifications
You must be signed in to change notification settings - Fork 1
/
media_ytnc.tpl
36 lines (36 loc) · 3.08 KB
/
media_ytnc.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<txp:hide>YouTube</txp:hide>
<txp:if_yield name="media">
<txp:oui_cookie name='<txp:variable name="sitename" />_youtube' duration='<txp:variable name="cookielife" />' values="yes" />
<txp:oui_if_cookie name='<txp:variable name="sitename" />_youtube'>
<div class="embed-container<txp:if_yield name="class"> <txp:yield name="class" /></txp:if_yield>" id="m_<txp:yield name="media" />" itemscope itemtype="http://schema.org/VideoObject">
<txp:if_yield name="url" value="pl"><iframe loading="lazy" src="https://www.youtube-nocookie.com/embed/videoseries?list=<txp:yield name="media" />" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen width="100%" height="auto"></iframe></txp:if_yield>
<txp:if_yield name="url" value="user"><iframe loading="lazy" src="https://www.youtube-nocookie.com/embed?listType=user_uploads&list=<txp:yield name="media" />" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></txp:if_yield>
<txp:if_yield name="url" not><iframe loading="lazy" src="https://www.youtube-nocookie.com/embed/<txp:yield name="media" />" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></txp:if_yield>
</div>
<txp:if_logged_in>
<txp:if_yield name="title" not>
<txp:oui_if_cookie name='<txp:variable name="sitename" />_hide' not>
<div class="theylive">
<txp:variable name="title" />
<p class="accept red centre"><a rel="nofollow noindex noodp noydir noarchive nocache" href="?<txp:variable name="sitename" />_hide=yes">Hide warnings for 30 minutes</a></p>
</div>
</txp:oui_if_cookie>
</txp:if_yield>
</txp:if_logged_in>
<txp:else />
<div class="theylive<txp:if_yield name="class"> <txp:yield name="class" /></txp:if_yield>">
<txp:etc_query url='https://www.youtube.com/oembed?url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D<txp:yield name="media" />&format=json' query="." markup="json">
<img loading="lazy" src="{thumbnail_url?}" width="{thumbnail_width?}" height="{thumbnail_height?}" alt="Video poster frame">
</txp:etc_query>
<txp:if_yield name="title">
<txp:yield name="title" escape="textile" />
<txp:else />
<txp:if_logged_in><txp:variable name="title" /></txp:if_logged_in>
</txp:if_yield>
<p class="clearboth">Hosted by YouTube on<br>
<a rel="external noopener" href="<txp:if_yield name="url" value="pl">https://www.youtube.com/playlist?list=<txp:else />https://youtu.be/</txp:if_yield><txp:yield name="media" />"><txp:if_yield name="url" value="pl">youtube.com/playlist?list=<txp:else />youtu.be/</txp:if_yield><txp:yield name="media" /></a>.</p>
<p class="accept red centre"><a rel="nofollow noindex noodp noydir noarchive nocache" href="?<txp:variable name="sitename" />_youtube=yes#m_<txp:yield name="media" />">Watch here</a></p>
<p class="licence"><a rel="external noopener licence" href="https://youtube.com/privacy">YouTube’s privacy policy</a>.</p>
</div>
</txp:oui_if_cookie>
</txp:if_yield>