-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmedia_twitch.tpl
More file actions
36 lines (36 loc) · 1.92 KB
/
Copy pathmedia_twitch.tpl
File metadata and controls
36 lines (36 loc) · 1.92 KB
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>Twitch</txp:hide>
<txp:if_yield name="media">
<txp:oui_cookie name='<txp:variable name="sitename" />_twitch' duration='<txp:variable name="cookielife" />' values="yes" />
<txp:oui_if_cookie name='<txp:variable name="sitename" />_twitch'>
<div class="embed-container" id="m_<txp:yield name="media" />" itemscope itemtype="http://schema.org/VideoObject">
<iframe src="https://player.twitch.tv/?channel=<txp:yield name="media" />&parent=<txp:site_url />" frameborder="0" allowfullscreen="true" scrolling="no" height="378" width="620"></iframe>
</div>
<txp:if_logged_in>
<txp:if_yield name="title" not>
<txp:oui_if_cookie name='<txp:variable name="sitename" />_hide' not>
<div class="gdpr">
<txp:variable name="title" />
<p class="accept"><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="gdpr">
<txp:if_yield name="0" not>
<txp:if_yield name="img">
<txp:variable name="img" />
<else />
</txp:if_yield>
</txp:if_yield>
<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>Hosted by Twitch on <a rel="external noopener" href="https://www.twitch.tv/<txp:yield name="media" />">twitch.tv/<txp:yield name="media" /></a>.</p>
<p class="licence"><a rel="external noopener licence" href="https://www.twitch.tv/p/en/legal/privacy-notice/">Twitch’s privacy policy</a>.</p>
<p class="accept"><a rel="nofollow noindex noodp noydir noarchive nocache" href="?<txp:variable name="sitename" />_twitch=yes#m_<txp:yield name="media" />">View it here</a></p>
</div>
</txp:oui_if_cookie>
</txp:if_yield>