Last active
October 13, 2015 21:19
-
-
Save nfreear/4257622 to your computer and use it in GitHub Desktop.
Configuration array/hash for jQuery-oEmbed plugin - CloudEngine/ Cloudworks... * Wordpress blogs, Fileviewer embeds.. -- for OLDS-MOOC (#oldsmooc)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // An array of jQuery-oEmbed options. | |
| // @link http://code.google.com/p/jquery-oembed/ | |
| // @link https://bitbucket.org/cloudengine/cloudengine/issue/213 | |
| ##$_wordpress_oembed = "new $.fn.oembed.OEmbedProvider('wordpress', 'rich', ['__HOST__'], 'http://public-api.wordpress.com/oembed/1.0/?for=CW')"; | |
| $config['oembed_options'] = array( | |
| // OU Podcast media player. | |
| 'oupodcast' => array( | |
| //'theme' => 'ouice-dark', # 2011 legacy | |
| 'theme' => 'oup-light', | |
| ), | |
| // http://iSpot.org.uk | |
| 'ispot' => array( | |
| 'count' => 3, | |
| 'postmessage' => 1, | |
| 'style' => 1, | |
| ), | |
| // Global configuration. | |
| 'maxWidth' => 800, | |
| 'customProviders' => array( | |
| //new $.fn.oembed.OEmbedProvider("custom", null, ["customprovider\\.com/.+), | |
| array('name' => 'wordpress', 'type' => 'rich', 'urlschemes' => array( | |
| 'wordpress\.com', | |
| 'wp\.me', | |
| 'oerresearchhub\.org', // OU | |
| 'ouseful\.info', | |
| 'dougclow\.org', | |
| 'penbentley\.com', | |
| 'isharacomix\.org', | |
| 'openeducationnews\.org', | |
| 'oerconsortium\.org', | |
| 'techchrunch\.com', | |
| 'tekartist\.org', | |
| ), | |
| 'apiendpoint' => 'http://public-api.wordpress.com/oembed/1.0/?for=Cloudworks.ac.uk' | |
| ), | |
| array('name' => 'fileviewer', 'type' => 'rich', 'urlschemes' => array( | |
| 'sites\.google\.com', | |
| 'www\.lkl\.ac\.uk', | |
| 'blogs\.cetis\.ac\.uk', | |
| ), | |
| 'apiendpoint'=>'http://embed.open.ac.uk/oembed' | |
| ), | |
| array('name' => 'scaperwiki', 'type' => 'rich', 'urlschemes' => 'scraperwiki\.com', | |
| 'apiendpoint' => 'https://views.scraperwiki.com/run/scraperwiki_oembed_v1/' | |
| ), | |
| /* | |
| array('name'=>'WP', 'type'=>'rich', 'urlschemes'=>'wordpress\.com', 'apiendpoint'=>$_wordpress_endpoint), | |
| array('name'=>'WP', 'type'=>'rich', 'urlschemes'=>'wp\.me', 'apiendpoint'=>$_wordpress_endpoint), | |
| str_replace('__HOST__', '\.wordpress\.com', $_wordpress_oembed), | |
| str_replace('__HOST__', 'wp\.me', $_wordpress_oembed), | |
| */ | |
| ), | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment