Changeset 759579
- Timestamp:
- 08/20/2013 10:51:01 PM (13 years ago)
- Location:
- meta-ographr
- Files:
-
- 16 added
- 3 edited
-
tags/0.8.19 (added)
-
tags/0.8.19/inc (added)
-
tags/0.8.19/inc/jqplot.dateAxisRenderer.min.js (added)
-
tags/0.8.19/inc/jqplot.highlighter.min.js (added)
-
tags/0.8.19/inc/jquery.jqplot.min.css (added)
-
tags/0.8.19/inc/jquery.jqplot.min.js (added)
-
tags/0.8.19/inc/scripts.min.js (added)
-
tags/0.8.19/inc/style.min.css (added)
-
tags/0.8.19/meta-ographr_admin.php (added)
-
tags/0.8.19/meta-ographr_index.php (added)
-
tags/0.8.19/readme.txt (added)
-
tags/0.8.19/screenshot-1.png (added)
-
tags/0.8.19/screenshot-2.png (added)
-
tags/0.8.19/screenshot-3.png (added)
-
tags/0.8.19/screenshot-4.png (added)
-
tags/0.8.19/screenshot-5.png (added)
-
trunk/meta-ographr_admin.php (modified) (2 diffs)
-
trunk/meta-ographr_index.php (modified) (11 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
meta-ographr/trunk/meta-ographr_admin.php
r739064 r759579 523 523 524 524 <label><input name="ographr_options[enable_soundcloud]" type="checkbox" value="1" <?php if (isset($options['enable_soundcloud'])) { checked('1', $options['enable_soundcloud']); } ?> /> SoundCloud</label> 525 526 <label><input name="ographr_options[enable_spotify]" type="checkbox" value="1" <?php if (isset($options['enable_spotify'])) { checked('1', $options['enable_spotify']); } ?> /> Spotify</label> 525 527 526 528 <label><input name="ographr_options[enable_ustream]" type="checkbox" value="1" <?php if (isset($options['enable_ustream'])) { checked('1', $options['enable_ustream']); } ?> /> Ustream</label> … … 1550 1552 } 1551 1553 1552 }; // end of classa", "EH" => "Western Sahara", "YE" => "Yemen", "ZM" => "Zambia", "ZW" => "Zimbabwe", );1553 return $country_codes;1554 }1555 1556 1554 }; // end of class -
meta-ographr/trunk/meta-ographr_index.php
r739064 r759579 4 4 Plugin URI: http://ographr.whyeye.org 5 5 Description: This plugin scans posts for embedded video and music players and adds their thumbnails URL as an OpenGraph meta-tag. While at it, the plugin also adds OpenGraph tags for the title, description (excerpt) and permalink. Facebook and other social networks can use these to style shared or "liked" articles. 6 Version: 0.8.1 86 Version: 0.8.19 7 7 Author: Jan T. Sott 8 8 Author URI: http://whyeye.org … … 29 29 30 30 // OGRAPHR OPTIONS 31 define("OGRAPHR_VERSION", "0.8.1 8");31 define("OGRAPHR_VERSION", "0.8.19"); 32 32 // enables developer settings on Wordpress interface, can be overwritten from plug-in settings once activated 33 33 define("OGRAPHR_DEVMODE", FALSE); … … 79 79 define("SOUNDCLOUD_IMAGE_SIZE", "t500x500"); 80 80 81 // SPOTIFY 82 // default artwork size (60, 85, 120, 300, and 640) 83 define("SPOTIFY_IMAGE_SIZE", "640"); 84 81 85 // VIMEO 82 86 // default snapshot size (thumbnail_small=100, thumbnail_medium=200, thumbnail_large=640) … … 174 178 "enable_socialcam" => NULL, 175 179 "enable_soundcloud" => "1", 180 "enable_spotify" => "1", 176 181 "enable_ustream" => "1", 177 182 "enable_viddler" => NULL, … … 501 506 if (isset($options['enable_socialcam'])) { print "\t Socialcam enabled\n"; } 502 507 if (isset($options['enable_soundcloud'])) { print "\t SoundCloud enabled\n"; } 508 if (isset($options['enable_spotify'])) { print "\t Spotify enabled\n"; } 503 509 if (isset($options['enable_ustream'])) { print "\t Ustream enabled\n"; } 504 510 if (isset($options['enable_viddler'])) { print "\t Viddler enabled\n"; } … … 1527 1533 ), 1528 1534 ), 1529 1530 1535 'soundcloud_playlist' => array( 1531 1536 'name' => 'SoundCloud playlist', … … 1536 1541 'queries' => array( 1537 1542 'img' => 'artwork_url' 1543 ), 1544 ), 1545 'spotify' => array( 1546 'name' => 'Spotify', 1547 'patterns' => array( 1548 '/embed.spotify.com\/\?uri=spotify:((album|artist|track):([A-Za-z0-9]+))/i' // https://embed.spotify.com/?uri=spotify:track:5e6574xvOP2cKCeLQOVRs3 1549 ), 1550 'url' => 'https://embed.spotify.com/oembed/?url=spotify:%MATCH%', // https://embed.spotify.com/oembed/?url=spotify:artist:7ae4vgLLhir2MCjyhgbGOQ 1551 'queries' => array( 1552 'img' => 'thumbnail_url' 1538 1553 ), 1539 1554 ), … … 1707 1722 if( ($services['name'] == "SoundCloud track") || ($services['name'] == "SoundCloud playlist") ){ 1708 1723 $json_thumbnail['img'] = str_replace('-large.', '-' . SOUNDCLOUD_IMAGE_SIZE . '.', $json_thumbnail['img']); // replace 100x100 default image 1724 } 1725 1726 // Spotify special treatment 1727 if($services['name'] == "Spotify") { 1728 $json_thumbnail['img'] = str_replace('cover', SPOTIFY_IMAGE_SIZE, $json_thumbnail['img']); 1709 1729 } 1710 1730 … … 1822 1842 } 1823 1843 } 1824 } 1825 1826 1844 1845 if (version_compare($options['last_update'], "0.8.19", '<')) { 1846 $options['enable_spotify'] = 1; 1847 } 1848 } 1827 1849 1828 1850 //save current version to db … … 1831 1853 update_option('ographr_options', $options); 1832 1854 } 1833 1834 1835 1836 1855 } 1837 1856 … … 2047 2066 2048 2067 }; // end of class 2049 ?> 'href' => 'http://wordpress.org/extend/plugins/meta-ographr/'2050 )2051 );2052 2053 foreach ($menu_items as $menu_item) {2054 $wp_admin_bar->add_menu($menu_item);2055 }2056 }2057 }2058 2059 }; // end of class2060 2068 ?> -
meta-ographr/trunk/readme.txt
r739064 r759579 2 2 Contributors: yathosho 3 3 Donate link: http://whyeye.org/donate 4 Tags: opengraph,open-graph,open graph,open graph meta,metatags,facebook,google+,google snippets,twitter cards,thumbnails,soundcloud,mixcloud,bandcamp,vimeo,youtube,dailymotion,blip.tv,hulu,internet archive,archive.org,myvideo,official.fm,ustream,viddler,html5,livestream video,jwplayer,nvbplayer,flickr,justin.tv,twitch.tv,8tracks,bambuser,rdio,socialcam 4 Tags: opengraph,open-graph,open graph,open graph meta,metatags,facebook,google+,google snippets,twitter cards,thumbnails,soundcloud,mixcloud,bandcamp,vimeo,youtube,dailymotion,blip.tv,hulu,internet archive,archive.org,myvideo,official.fm,ustream,viddler,html5,livestream video,jwplayer,nvbplayer,flickr,justin.tv,twitch.tv,8tracks,bambuser,rdio,socialcam,spotify 5 5 Requires at least: 3.0 6 Tested up to: 3. 5.27 Stable tag: 0.8.1 86 Tested up to: 3.6 7 Stable tag: 0.8.19 8 8 License: GPLv2 9 9 … … 32 32 * Socialcam 33 33 * SoundCloud 34 * Spotify 34 35 * Ustream 35 36 * Viddler … … 103 104 104 105 == Changelog == 106 107 = 0.8.19 = 108 * added support for Spotify (thanks MiniGod - http://stackoverflow.com/a/18294883/1329116) 105 109 106 110 = 0.8.18 =
Note: See TracChangeset
for help on using the changeset viewer.