Changeset 462401
- Timestamp:
- 11/13/2011 04:56:18 PM (14 years ago)
- Location:
- mediaembedder
- Files:
-
- 63 added
- 4 edited
-
tags/0.0.3 (added)
-
tags/0.0.3/list.php (added)
-
tags/0.0.3/mediaembedder.php (added)
-
tags/0.0.3/module (added)
-
tags/0.0.3/module/allthingsdigital.php (added)
-
tags/0.0.3/module/aniboom.php (added)
-
tags/0.0.3/module/atom.php (added)
-
tags/0.0.3/module/bambuser.php (added)
-
tags/0.0.3/module/bliptv.php (added)
-
tags/0.0.3/module/collegehumor.php (added)
-
tags/0.0.3/module/dailymotion.php (added)
-
tags/0.0.3/module/doller99.php (added)
-
tags/0.0.3/module/flickr.php (added)
-
tags/0.0.3/module/funnyordie.php (added)
-
tags/0.0.3/module/gametrailers.php (added)
-
tags/0.0.3/module/hulu.php (added)
-
tags/0.0.3/module/metacafe.php (added)
-
tags/0.0.3/module/photobucket.php (added)
-
tags/0.0.3/module/revision3.php (added)
-
tags/0.0.3/module/scribd.php (added)
-
tags/0.0.3/module/smugmug.php (added)
-
tags/0.0.3/module/viddler.php (added)
-
tags/0.0.3/module/vimeo.php (added)
-
tags/0.0.3/module/youtube.php (added)
-
tags/0.0.3/readme.txt (added)
-
tags/0.0.3/settings.php (added)
-
tags/0.0.3/sql (added)
-
tags/0.0.3/sql/main.sql (added)
-
tags/0.0.3/template (added)
-
tags/0.0.3/template/allthingsdigital.php (added)
-
tags/0.0.3/template/aniboom.php (added)
-
tags/0.0.3/template/atom.php (added)
-
tags/0.0.3/template/bambuser.php (added)
-
tags/0.0.3/template/bambuser_channel.php (added)
-
tags/0.0.3/template/bliptv.php (added)
-
tags/0.0.3/template/collegehumor.php (added)
-
tags/0.0.3/template/dailymotion.php (added)
-
tags/0.0.3/template/doller99.php (added)
-
tags/0.0.3/template/flickr.php (added)
-
tags/0.0.3/template/flickr_video.php (added)
-
tags/0.0.3/template/funnyordie.php (added)
-
tags/0.0.3/template/gametrailers.php (added)
-
tags/0.0.3/template/hulu.php (added)
-
tags/0.0.3/template/metacafe.php (added)
-
tags/0.0.3/template/photobucket.php (added)
-
tags/0.0.3/template/revision3.php (added)
-
tags/0.0.3/template/scribd.php (added)
-
tags/0.0.3/template/smugmug.php (added)
-
tags/0.0.3/template/viddler.php (added)
-
tags/0.0.3/template/vimeo.php (added)
-
tags/0.0.3/template/youtube.php (added)
-
tags/0.0.3/template/youtube_playlist.php (added)
-
trunk/list.php (modified) (2 diffs)
-
trunk/mediaembedder.php (modified) (2 diffs)
-
trunk/module/allthingsdigital.php (added)
-
trunk/module/aniboom.php (added)
-
trunk/module/atom.php (added)
-
trunk/module/bambuser.php (added)
-
trunk/module/doller99.php (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/settings.php (modified) (1 diff)
-
trunk/template/allthingsdigital.php (added)
-
trunk/template/aniboom.php (added)
-
trunk/template/atom.php (added)
-
trunk/template/bambuser.php (added)
-
trunk/template/bambuser_channel.php (added)
-
trunk/template/doller99.php (added)
Legend:
- Unmodified
- Added
- Removed
-
mediaembedder/trunk/list.php
r456295 r462401 3 3 $mediaembedderlist = array( 4 4 array( 5 're' => '^http(s?)://([a-z]*).youtube.com/(watch|index)\?(.*)v=(?P<youtube_id>[a-zA-Z0-9 ]+)',5 're' => '^http(s?)://([a-z]*).youtube.com/(watch|index)\?(.*)v=(?P<youtube_id>[a-zA-Z0-9-_]+)', 6 6 'module' => 'youtube' 7 7 ), 8 8 array( 9 're' => '^http(s?)://([a-z]*).youtube.com/v/(?P<youtube_id>[a-zA-Z0-9 ]+)',9 're' => '^http(s?)://([a-z]*).youtube.com/v/(?P<youtube_id>[a-zA-Z0-9-_]+)', 10 10 'module' => 'youtube' 11 11 ), 12 12 array( 13 're' => '^http(s?)://youtu.be/(?P<youtube_id>[a-zA-Z0-9 ]+)',13 're' => '^http(s?)://youtu.be/(?P<youtube_id>[a-zA-Z0-9-_]+)', 14 14 'module' => 'youtube' 15 15 ), 16 16 array( 17 're' => '^http(s?)://([a-z]*).youtube.com/playlist?(.*)list=(?P<youtube_playlist_id>[a-zA-Z0-9 ]+)',17 're' => '^http(s?)://([a-z]*).youtube.com/playlist?(.*)list=(?P<youtube_playlist_id>[a-zA-Z0-9-_]+)', 18 18 'module' => 'youtube', 19 19 'method' => 'playlist' 20 ), 21 array( 22 're' => '^http(s?)://video.allthingsd.com/video/(.*)/(?P<allthingsdigital_id>[a-zA-Z0-9-_]+)(/?)', 23 'module' => 'allthingsdigital' 24 ), 25 array( 26 're' => '^http(s?)://allthingsd.com/video/\?video_id=(?P<allthingsdigital_id>[a-zA-Z0-9-_]+)(/?)', 27 'module' => 'allthingsdigital' 28 ), 29 array( 30 're' => '^http(s?)://(.*)aniboom.com/animation-video/(?P<aniboom_id>\d+)(/?)', 31 'module' => 'aniboom' 32 ), 33 array( 34 're' => '^http(s?)://www.atom.com/(?P<atom_group>[A-Za-z0-9-_]+)/(?P<atom_id>[A-Za-z0-9-_]+)(/?)', 35 'module' => 'atom' 36 ), 37 array( 38 're' => '^http(s?)://bambuser.com/v/(?P<bambuser_id>\d+)(/?)', 39 'module' => 'bambuser' 40 ), 41 array( 42 're' => '^http(s?)://bambuser.com/channel/(.*)/broadcast/(?P<bambuser_id>\d+)(/?)', 43 'module' => 'bambuser' 44 ), 45 array( 46 're' => '^http(s?)://bambuser.com/channel/(?P<bambuser>[A-Za-z0-9-_]+)(/?)', 47 'module' => 'bambuser', 48 'method' => 'channel' 20 49 ), 21 50 array( … … 30 59 're' => '^http(s?)://www.dailymotion.com/(.*)video/(?P<dailymotion_id>[^_]+)', 31 60 'module' => 'dailymotion' 61 ), 62 array( 63 're' => '^http(s?)://(.*)99dollarmusicvideos.com(.*)/episode/(?P<doller99_id>[A-Za-z0-9-_]+)/(?P<doller99_name>[A-Za-z0-9-_]+)', 64 'module' => 'doller99' 32 65 ), 33 66 array( -
mediaembedder/trunk/mediaembedder.php
r456295 r462401 5 5 Plugin URI: http://cj-jackson.com/ 6 6 Description: An efficient, flexible multimedia embedder 7 Version: 0.0. 27 Version: 0.0.3 8 8 Author: Christopher John Jackson 9 9 Author URI: http://cj-jackson.com/ … … 41 41 42 42 static public function init() { 43 global $mediaembedderlist, $wpdb; 44 $count = 0; 45 foreach($mediaembedderlist as $list) { 46 wp_embed_register_handler('me_'.$count, 47 self::patternWrap($list['re']), 43 global $wpdb; 44 wp_embed_register_handler('mediaembedder', 45 '#http(s?)://(.*)#i', 48 46 array(__CLASS__, 'handler')); 49 $count++;50 }51 47 $sql = file_get_contents(dirname(__FILE__).'/sql/main.sql'); 52 48 $sql = str_replace("__prefix__", $wpdb->base_prefix, $sql); -
mediaembedder/trunk/readme.txt
r456295 r462401 5 5 Requires at least: 3.2.0 6 6 Tested up to: 3.2.1 7 Stable tag: 0.0. 27 Stable tag: 0.0.3 8 8 9 9 Multimedia Embedder that relies on template, unlike oEmbed, therefore allowing … … 27 27 oEmbed. 28 28 29 Current ly sites supportare:29 Current supported sites are: 30 30 31 * [$99 Music Videos](http://www.99dollarmusicvideos.com/) 32 * [All Things Digital](http://allthingsd.com/) 33 * [Aniboom](http://www.aniboom.com/) 34 * [Atom.com](http://www.atom.com/) 35 * [Bambuser](http://bambuser.com/) 31 36 * [Blip.tv](http://blip.tv/) 32 37 * [CollegeHumor](http://www.collegehumor.com/) … … 55 60 == Changelog == 56 61 62 = 0.0.3 = 63 * Added $99 Music Videos 64 * Added All Things Digital 65 * Added Aniboom 66 * Added Atom.com 67 * Added Bambuser 68 57 69 = 0.0.2 = 58 70 * Added CollegeHumor. -
mediaembedder/trunk/settings.php
r456084 r462401 19 19 <?php echo $title_enabled ?>/> 20 20 21 Only works with sites that support 'og:title' meta tag.21 Only works with sites that support 'og:title' or 'title' meta tag. 22 22 </p> 23 23
Note: See TracChangeset
for help on using the changeset viewer.