Skip to content

Commit

Permalink
Item13275: add amchart, edocr, audiosnaps, ...
Browse files Browse the repository at this point in the history
... quiz.biz, funnyordie, clyp, ifttt, portfolium

Also: make youtube and vimeon preview images responsive
  • Loading branch information
MichaelDaum committed Feb 23, 2015
1 parent 67f06db commit ae3e3f7
Show file tree
Hide file tree
Showing 8 changed files with 442 additions and 255 deletions.
11 changes: 10 additions & 1 deletion data/System/OEmbedPlugin.txt
Expand Up @@ -16,6 +16,12 @@ code to add it to the page, e.g. add an iframe for videos and the like.
---++ Supported providers

<noautolink>
1 AmChart Live Editor
1 Edocr
1 AudioSnaps
1 Quiz.biz
1 FunnyOrDie
1 Clyp
1 23HQ
1 Alpha App
1 Amazon (embed.ly)
Expand Down Expand Up @@ -46,6 +52,7 @@ code to add it to the page, e.g. add an iframe for videos and the like.
1 Google Maps (embed.ly)
1 HuffDuffer
1 Hulu
1 IFTTT
1 IMDB (embed.ly)
1 Instagram
1 Jest
Expand All @@ -59,6 +66,7 @@ code to add it to the page, e.g. add an iframe for videos and the like.
1 OfficialFM
1 PollEverywhere
1 PollyDaddy
1 Portfolium
1 Quiz.biz
1 Rdio
1 Revision3
Expand Down Expand Up @@ -230,11 +238,12 @@ See the =oembed.tmpl= file on how to use them.
-->

| Author(s): | Michael Daum|
| Copyright: | &copy; 2013-2014 Michael Daum http://michaeldaumconsulting.com |
| Copyright: | &copy; 2013-2015 Michael Daum http://michaeldaumconsulting.com |
| License: | [[http://www.gnu.org/licenses/gpl.html][GPL (Gnu General Public License)]] |
| Release: | %$RELEASE% |
| Version: | %$VERSION% |
| Change History: | <!-- versions below in reverse order -->&nbsp; |
| 23 Feb 2015 | added a few more provider |
| 16 Dec 2014 | have an image preview for vimeo and youtube and only embed the real video when clicking on it; \
added Vine |
| 25 Sep 2014 | added caching |
Expand Down
12 changes: 9 additions & 3 deletions lib/Foswiki/Plugins/OEmbedPlugin.pm
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# OEmbedPlugin is Copyright (C) 2013-2014 Michael Daum http://michaeldaumconsulting.com
# OEmbedPlugin is Copyright (C) 2013-2015 Michael Daum http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand All @@ -20,8 +20,8 @@ use warnings;

use Foswiki::Func ();

our $VERSION = '5.00';
our $RELEASE = '5.00';
our $VERSION = '5.10';
our $RELEASE = '23 Feb 2015';
our $SHORTDESCRIPTION = 'Easy embedding of third party content';
our $NO_PREFS_IN_TOPIC = 1;
our $core;
Expand Down Expand Up @@ -50,6 +50,12 @@ sub initPlugin {
http_allow => 'GET,POST',
);

Foswiki::Func::registerRESTHandler('provider', sub { return core->provider(@_); },
authenticate => 0,
validate => 0,
http_allow => 'GET,POST',
);

return 1;
}

Expand Down

0 comments on commit ae3e3f7

Please sign in to comment.