Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
arc_vimeo
Current version: 1.1
Easily embed Vimeo videos in your content.
Main features:-
- fetch Vimeo videos using the video’s ID or url
- option to use custom field to associate videos with articles
- outputs valid XHTML mark-up
- customise the look of the player
- option to autoplay video
Full details on the plugin’s information page.
Last edited by monkeyninja (2014-10-25 08:42:51)
Offline
Re: arc_vimeo
I’ve posted details about the new plugin and how it works with arc_youtube on my blog.
Offline
Offline
Re: arc_vimeo
Thanks for the plugin.
I was checking the examples in your plugin page and they don’t seem to be following the standard txp syntax which uses double quotes unless there’s a tag in tag. Is there a reason for that?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: arc_vimeo
colak wrote #278988:
Thanks for the plugin.
I was checking the examples in your plugin page and they don’t seem to be following the standard txp syntax which uses double quotes unless there’s a tag in tag. Is there a reason for that?
Hi colak, I was completely unaware that there was a standard TXP syntax. Is this a new concept? Using single quotes is just a habit I have from writing PHP. In PHP I only use double quotes if I intend to include variables in a string.
I’ll update my examples.
Offline
Re: arc_vimeo
monkeyninja wrote #278989:
Hi colak, I was completely unaware that there was a standard TXP syntax. Is this a new concept?
I remember reading about it in some place but maybe this indirectly answers your question.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Offline
Re: arc_vimeo
monkeyninja wrote #278991:
Strange that the opposite convention to PHP’s usage of quotes has been adopted for Textpattern tags. A bit confusing.
Yes, it’s opposite when viewed from a programming perspective, but (I guess: I wasn’t around at its inception) it made sense to have a front-end parser that parsed HTML-style double-quoted attributes. Although HTML accepts both, the double-quote style was more prevalent in the early 2000s so was probably adopted. Thus when tags-in-tags syntax came along, Ruud had very little left to play with and had to use single quotes as the ‘executable content’ format.
EDIT: In any case, colak’s suggestion to use double quotes is perhaps a trifle faster (though I haven’t walked the code) because double-quoted strings don’t need to be checked for tags in the parser. Whether that’s true in practice, I’m unsure.
Last edited by Bloke (2014-02-16 20:37:27)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: arc_vimeo
I’ve updated the plugin to allow both http and https video URLs. It also uses double rather than single quotes for HTML tag attributes now.
Offline
Offline
Pages: 1