Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-04-06 12:18:11

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 717
Website

oui_embed - embed everything…

This plugin textpatternize the use of Embed by Oscar Otero. It allows you to get information from any web page (using oembed, opengraph, twitter-cards, scrapping the html, etc). It’s compatible with any web service (youtube, vimeo, flickr, instagram, etc) and has adapters to some sites like (archive.org, github, facebook, etc). It also add a way to cache the output of your requests to speed the page load and avoid too many external requests.

Single tag use

<txp:oui_embed url="https://youtu.be/aVARdqevPfI" />

returns:

<iframe width="480" height="270" src="https://www.youtube.com/embed/aVARdqevPfI?feature=oembed" frameborder="0" allowfullscreen></iframe>

Container tag use

<txp:oui_embed url="https://vimeo.com/157562955" label="Embed" labeltag="h1">
    <txp:oui_embed_info type="code" responsive="1" label="Video" labeltag="h2"   />
    <txp:oui_embed_info type="title" label="Title" labeltag="h2" wraptag="p" />
</txp:oui_embed>

returns:

<h1>Embed</h1>

<h2>Video</h2>
<div class="oui_embed " style="padding-top:56.25%">
    <iframe src="https://player.vimeo.com/video/157562955" width="1920" height="1080" frameborder="0" title="The Uses of Envy" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>

<h2>Title</h2>
<p>The Uses of Envy</p>

Documentation | Download


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#2 2016-04-06 16:40:15

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 717
Website

Re: oui_embed - embed everything…

v0.3.3 is out…


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#3 2016-04-07 13:17:02

jakob
Moderator
From: Germany
Registered: 2005-01-20
Posts: 2,554
Website

Re: oui_embed - embed everything…

Cool!


TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB