Skip to content

Commit fcb673b

Browse files
authored
Merge pull request #114 from iMattPro/fixes
Update twitter
2 parents ca0d1fb + 316c2f8 commit fcb673b

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

collection/sites/twitter.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ iframe:
1414
data-s9e-livepreview-ignore-attrs: "style"
1515
onload: "let c=new MessageChannel;c.port1.onmessage=e=>this.style.height=e.data+'px';this.contentWindow.postMessage('s9e:init','*',[c.port2])"
1616
width: "550"
17-
height: "273"
17+
height: "350"
1818
allow: "autoplay *"
19-
src: https://s9e.github.io/iframe/2/twitter.min.html#<xsl:value-of select="@id"/><xsl:if test="$MEDIAEMBED_THEME='dark'">#theme=dark</xsl:if>
19+
src: https://s9e.github.io/iframe/2/twitter.min.html#<xsl:value-of select="@id"/><xsl:if test="$MEDIAEMBED_THEME">#theme=<xsl:value-of select="$MEDIAEMBED_THEME"/></xsl:if>
20+
amp:
21+
custom-element: amp-twitter
22+
src: https://cdn.ampproject.org/v0/amp-twitter-0.1.js
23+
template: '<amp-twitter layout="responsive" width="550" height="273" data-tweetid="{@id}"><blockquote placeholder=""><a href="https://twitter.com/user/status/{@id}">X</a></blockquote></amp-twitter>'

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "phpbb-extension",
44
"description": "An official phpBB extension that allows users to embed content from allowed sites using a [media] BBCode, or from simply posting a supported URL in plain text.",
55
"homepage": "https://www.phpbb.com/customise/db/extension/mediaembed/",
6-
"version": "2.0.2",
6+
"version": "2.0.3-dev",
77
"license": "GPL-2.0-only",
88
"authors": [
99
{

0 commit comments

Comments
 (0)