Changeset 846693
- Timestamp:
- 01/28/2014 05:52:55 AM (12 years ago)
- Location:
- video-thumbnails
- Files:
-
- 5 edited
- 24 copied
-
tags/2.5 (copied) (copied from video-thumbnails/trunk)
-
tags/2.5/css (copied) (copied from video-thumbnails/trunk/css)
-
tags/2.5/js/bulk.js (copied) (copied from video-thumbnails/trunk/js/bulk.js) (4 diffs)
-
tags/2.5/php/class-video-thumbnails-settings.php (copied) (copied from video-thumbnails/trunk/php/class-video-thumbnails-settings.php) (2 diffs)
-
tags/2.5/php/providers/class-blip-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-blip-thumbnails.php)
-
tags/2.5/php/providers/class-collegehumor-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-collegehumor-thumbnails.php)
-
tags/2.5/php/providers/class-dailymotion-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-dailymotion-thumbnails.php)
-
tags/2.5/php/providers/class-facebook-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-facebook-thumbnails.php)
-
tags/2.5/php/providers/class-funnyordie-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-funnyordie-thumbnails.php)
-
tags/2.5/php/providers/class-googledrive-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-googledrive-thumbnails.php)
-
tags/2.5/php/providers/class-justintv-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-justintv-thumbnails.php)
-
tags/2.5/php/providers/class-kaltura-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-kaltura-thumbnails.php)
-
tags/2.5/php/providers/class-metacafe-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-metacafe-thumbnails.php)
-
tags/2.5/php/providers/class-mpora-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-mpora-thumbnails.php)
-
tags/2.5/php/providers/class-rutube-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-rutube-thumbnails.php)
-
tags/2.5/php/providers/class-twitch-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-twitch-thumbnails.php)
-
tags/2.5/php/providers/class-video-thumbnails-providers.php (copied) (copied from video-thumbnails/trunk/php/providers/class-video-thumbnails-providers.php)
-
tags/2.5/php/providers/class-vimeo-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-vimeo-thumbnails.php) (1 diff)
-
tags/2.5/php/providers/class-vine-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-vine-thumbnails.php)
-
tags/2.5/php/providers/class-wistia-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-wistia-thumbnails.php)
-
tags/2.5/php/providers/class-youku-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-youku-thumbnails.php)
-
tags/2.5/php/providers/class-youtube-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-youtube-thumbnails.php)
-
tags/2.5/readme.txt (copied) (copied from video-thumbnails/trunk/readme.txt) (4 diffs)
-
tags/2.5/video-thumbnails.php (copied) (copied from video-thumbnails/trunk/video-thumbnails.php) (7 diffs)
-
trunk/js/bulk.js (modified) (4 diffs)
-
trunk/php/class-video-thumbnails-settings.php (modified) (2 diffs)
-
trunk/php/providers/class-vimeo-thumbnails.php (modified) (1 diff)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/video-thumbnails.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
video-thumbnails/tags/2.5/js/bulk.js
r840515 r846693 1 var video_thumbnails_bulk_scanner; 2 1 3 jQuery(function ($) { 2 4 … … 18 20 }; 19 21 22 VideoThumbnailsBulkScanner.prototype.disableSubmit = function(text) { 23 $('#video-thumbnails-bulk-scan-options input[type="submit"]').attr('disabled','disabled'); 24 }; 25 26 VideoThumbnailsBulkScanner.prototype.enableSubmit = function(text) { 27 $('#video-thumbnails-bulk-scan-options input[type="submit"]').removeAttr('disabled'); 28 }; 29 30 VideoThumbnailsBulkScanner.prototype.findPosts = function(text) { 31 var data = { 32 action: 'video_thumbnails_bulk_posts_query', 33 params: $('#video-thumbnails-bulk-scan-options').serialize() 34 }; 35 var self = this; 36 this.disableSubmit(); 37 $('#queue-count').text('working...'); 38 $.post(ajaxurl, data, function(response) { 39 self.posts = $.parseJSON( response ); 40 $('#queue-count').text(self.posts.length+' posts'); 41 self.enableSubmit(); 42 }); 43 }; 44 20 45 VideoThumbnailsBulkScanner.prototype.startScan = function() { 46 this.disableSubmit(); 21 47 this.paused = false; 22 48 if ( this.currentItem == 0 ) { … … 24 50 this.progressBar.show(); 25 51 this.resetProgressBar(); 26 $('#video-thumbnails- scan-all-posts').parent().slideUp();52 $('#video-thumbnails-bulk-scan-options').slideUp(); 27 53 } else { 28 54 this.log( 'Resumed Scanning' ); … … 140 166 }; 141 167 142 $('#video-thumbnails-scan-all-posts').on('click',function(e){ 168 video_thumbnails_bulk_scanner = new VideoThumbnailsBulkScanner(); 169 video_thumbnails_bulk_scanner.findPosts(); 170 171 $('#video-thumbnails-bulk-scan-options').on('change',function(e){ 172 video_thumbnails_bulk_scanner.findPosts(); 173 }); 174 175 $('#video-thumbnails-bulk-scan-options').on('submit',function(e){ 143 176 e.preventDefault(); 144 var data = { 145 action: 'video_thumbnails_bulk_posts_query' 146 }; 147 $.post(ajaxurl, data, function(response) { 148 var posts = $.parseJSON( response ); 149 var r = confirm("This will scan " + posts.length + " posts, continue?"); 150 if ( r == true ) { 151 x = new VideoThumbnailsBulkScanner( posts ); 152 x.startScan(); 153 } else { 154 x = "You pressed Cancel!"; 155 } 156 }); 177 video_thumbnails_bulk_scanner.startScan(); 157 178 }); 158 179 -
video-thumbnails/tags/2.5/php/class-video-thumbnails-settings.php
r840515 r846693 49 49 add_action( 'admin_enqueue_scripts', array( &$this, 'admin_scripts' ) ); 50 50 } 51 // Add "Go Pro" call to action to settings footer 52 add_action( 'video_thumbnails/settings_footer', array( 'Video_Thumbnails_Settings', 'settings_footer' ) ); 51 53 } 52 54 … … 568 570 ?> 569 571 570 <div style="width: 250px; margin: 20px 0; padding: 0 20px; background: #f5f5f5; border: 1px solid #dfdfdf; text-align: center; -webkit-border-radius: 8px; -moz-border-radius: 8px; border-radius: 8px;"> 571 <p>All donations are appreciated!<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYB1rPWk/Rr89ydxDsoXWyYIlAwIORRiWzcLHSBBVBMY69PHCO6WVTK2lXYmjZbDrvrHmN/jrM5r3Q008oX19NujzZ4d1VV+dWZxPU+vROuLToOFkk3ivjcvlT825HfdZRoiY/eTwWfBH93YQ+3kAAdc2s3FRxVyC4cUdrtbkBmYpDELMAkGBSsOAwIaBQAwgcQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIkO3IVfkE9PGAgaA9fgOdXrQSpdGgo8ZgjiOxDGlEHoRL51gvB6AZdhNCubfLbqolJjYfTPEMg6Z0dfrq3hVSF2+nLV7BRcmXAtxY5NkH7vu1Kv0Bsb5kDOWb8h4AfnwElD1xyaykvYAr7CRNqHcizYRXZHKE7elWY0w6xRV/bfE7w6E4ZjKvFowHFp9E7/3mcZDrqxbZVU5hqs5gsV2YJj8fNBzG1bbdTucXoIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxM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EtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTExMDA3MDUzMjM1WjAjBgkqhkiG9w0BCQQxFgQUHXhTYmeIfU7OyslesSVlGviqHbIwDQYJKoZIhvcNAQEBBQAEgYDAU3s+ej0si2FdN0uZeXhR+GGCDOMSYbkRswu7K3TRDXoD9D9c67VjQ+GfqP95cA9s40aT73goH+AxPbiQhG64OaHZZGJeSmwiGiCo4rBoVPxNUDONMPWaYfp6vm3Mt41gbxUswUEDNnzps4waBsFRJvuFjbbeQVYg7wbVfQC99Q==-----END PKCS7-----"><input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"></form></p> 572 <?php do_action( 'video_thumbnails/settings_footer' ); ?> 573 574 </div><?php 575 } 576 577 public static function settings_footer() { 578 ?> 579 <div style="width: 250px; margin: 20px 0; padding: 0 20px; background: #fff; border: 1px solid #dfdfdf; text-align: center;"> 580 <div> 581 <p>Support video thumbnails and unlock additional features</p> 582 <p><a href="https://refactored.co/plugins/video-thumbnails" class="button button-primary button-large">Go Pro</a></p> 572 583 </div> 573 574 < /div><?php584 </div> 585 <?php 575 586 } 576 587 -
video-thumbnails/tags/2.5/php/providers/class-vimeo-thumbnails.php
r837855 r846693 91 91 } elseif ( $response['response']['code'] == 404 ) { 92 92 $result = new WP_Error( 'vimeo_info_retrieval', __( 'The Vimeo endpoint located at <a href="' . $request . '">' . $request . '</a> returned a 404 error.<br />Details: ' . $response['response']['message'] ) ); 93 } elseif ( $response['response']['code'] == 403 ) { 94 $result = new WP_Error( 'vimeo_info_retrieval', __( 'The Vimeo endpoint located at <a href="' . $request . '">' . $request . '</a> returned a 403 error.<br />This can occur when a video has embedding disabled or restricted to certain domains. Try entering API credentials in the provider settings.' ) ); 93 95 } else { 94 96 $xml = new SimpleXMLElement( $response['body'] ); -
video-thumbnails/tags/2.5/readme.txt
r841939 r846693 3 3 Donate link: http://wie.ly/u/donate 4 4 Tags: Video, Thumbnails, YouTube, Vimeo, Vine, Twitch, Dailymotion, Youku, Rutube, Featured Image 5 Requires at least: 3. 15 Requires at least: 3.2 6 6 Tested up to: 3.8 7 Stable tag: 2. 4.27 Stable tag: 2.5 8 8 9 9 Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template. … … 12 12 13 13 Video Thumbnails makes it easy to automatically display video thumbnails in your template. When you publish a post, this plugin will find the first video embedded and locate the thumbnail for you. Thumbnails can be saved to your media library and set as a featured image automatically. There's even support for custom post types and custom fields! 14 15 **New!** Get even more power with [Video Thumbnails Pro](https://refactored.co/plugins/video-thumbnails). Enjoy features like maximum image sizes, more powerful bulk scanning options, a customizable upload directory, and more! 14 16 15 17 Video Thumbnails currently supports these video services: … … 41 43 * [WP YouTube Lyte](http://wordpress.org/extend/plugins/wp-youtube-lyte/) 42 44 45 Video Thumbnails will always be totally free while remaining a full-featured plugin, but if you'd like to support the developer consider purchasing [Video Thumbnails Pro](https://refactored.co/plugins/video-thumbnails). The pro version runs alongside the standard version and adds additional features like maximum image sizes, more powerful bulk scanning options, a customizable upload directory, and more! 46 43 47 Some functions are available to advanced users who want to customize their theme: 44 48 … … 111 115 112 116 == Changelog == 117 118 = 2.5 = 119 * Added support for [Video Thumbnails Pro](https://refactored.co/plugins/video-thumbnails), our new solution for power users and professional bloggers 120 * Various bugfixes and improvements 113 121 114 122 = 2.4.2 = -
video-thumbnails/tags/2.5/video-thumbnails.php
r841939 r846693 2 2 /* 3 3 Plugin Name: Video Thumbnails 4 Plugin URI: http ://refactored.co/plugins/video-thumbnails4 Plugin URI: https://refactored.co/plugins/video-thumbnails 5 5 Description: Automatically retrieve video thumbnails for your posts and display them in your theme. Supports YouTube, Vimeo, Facebook, Vine, Justin.tv, Twitch, Dailymotion, Metacafe, Blip, Google Drive, Funny or Die, CollegeHumor, MPORA, Wistia, Youku, and Rutube. 6 6 Author: Sutherland Boswell 7 7 Author URI: http://sutherlandboswell.com 8 Version: 2. 4.28 Version: 2.5 9 9 License: GPL2 10 10 */ … … 29 29 define( 'VIDEO_THUMBNAILS_PATH', dirname(__FILE__) ); 30 30 define( 'VIDEO_THUMBNAILS_FIELD', '_video_thumbnail' ); 31 define( 'VIDEO_THUMBNAILS_VERSION', '2. 4.2' );31 define( 'VIDEO_THUMBNAILS_VERSION', '2.5' ); 32 32 33 33 // Providers … … 301 301 302 302 // Saves to media library 303 public function save_to_media_library( $image_url, $post_id ) {303 public static function save_to_media_library( $image_url, $post_id ) { 304 304 305 305 $error = ''; … … 324 324 325 325 // Save the image bits using the new filename 326 do_action( 'video_thumbnails/pre_upload_bits', $image_contents ); 326 327 $upload = wp_upload_bits( $new_filename, null, $image_contents ); 328 do_action( 'video_thumbnails/after_upload_bits', $upload ); 327 329 328 330 // Stop for any errors while saving the data or else continue adding the image to the media library … … 331 333 return $error; 332 334 } else { 335 336 do_action( 'video_thumbnails/image_downloaded', $upload['file'] ); 333 337 334 338 $image_url = $upload['url']; … … 400 404 401 405 function bulk_posts_query_callback() { 406 // Some default args 402 407 $args = array( 403 ' showposts' => -1,408 'posts_per_page' => -1, 404 409 'post_type' => $this->settings->options['post_types'], 405 410 'fields' => 'ids' 406 411 ); 412 // Setup an array for any form data and parse the jQuery serialized data 413 $form_data = array(); 414 parse_str( $_POST['params'], $form_data ); 415 416 $args = apply_filters( 'video_thumbnails/bulk_posts_query', $args, $form_data ); 417 407 418 $query = new WP_Query( $args ); 408 419 echo json_encode( $query->posts ); … … 451 462 <p>Use this tool to scan all of your posts for Video Thumbnails.</p> 452 463 453 <p><a id="video-thumbnails-scan-all-posts" href="#" class="button button-primary">Scan All Posts</a></p> 464 <form id="video-thumbnails-bulk-scan-options"> 465 <table class="form-table"> 466 <tbody> 467 <?php do_action( 'video_thumbnails/bulk_options_form'); ?> 468 <tr valign="top"> 469 <th scope="row"><span id="queue-count">...</span></th> 470 <td> 471 <input type="submit" value="Scan Now" class="button button-primary"> 472 </td> 473 </tr> 474 </tbody> 475 </table> 476 </form> 454 477 455 478 <div id="vt-bulk-scan-results"> -
video-thumbnails/trunk/js/bulk.js
r840515 r846693 1 var video_thumbnails_bulk_scanner; 2 1 3 jQuery(function ($) { 2 4 … … 18 20 }; 19 21 22 VideoThumbnailsBulkScanner.prototype.disableSubmit = function(text) { 23 $('#video-thumbnails-bulk-scan-options input[type="submit"]').attr('disabled','disabled'); 24 }; 25 26 VideoThumbnailsBulkScanner.prototype.enableSubmit = function(text) { 27 $('#video-thumbnails-bulk-scan-options input[type="submit"]').removeAttr('disabled'); 28 }; 29 30 VideoThumbnailsBulkScanner.prototype.findPosts = function(text) { 31 var data = { 32 action: 'video_thumbnails_bulk_posts_query', 33 params: $('#video-thumbnails-bulk-scan-options').serialize() 34 }; 35 var self = this; 36 this.disableSubmit(); 37 $('#queue-count').text('working...'); 38 $.post(ajaxurl, data, function(response) { 39 self.posts = $.parseJSON( response ); 40 $('#queue-count').text(self.posts.length+' posts'); 41 self.enableSubmit(); 42 }); 43 }; 44 20 45 VideoThumbnailsBulkScanner.prototype.startScan = function() { 46 this.disableSubmit(); 21 47 this.paused = false; 22 48 if ( this.currentItem == 0 ) { … … 24 50 this.progressBar.show(); 25 51 this.resetProgressBar(); 26 $('#video-thumbnails- scan-all-posts').parent().slideUp();52 $('#video-thumbnails-bulk-scan-options').slideUp(); 27 53 } else { 28 54 this.log( 'Resumed Scanning' ); … … 140 166 }; 141 167 142 $('#video-thumbnails-scan-all-posts').on('click',function(e){ 168 video_thumbnails_bulk_scanner = new VideoThumbnailsBulkScanner(); 169 video_thumbnails_bulk_scanner.findPosts(); 170 171 $('#video-thumbnails-bulk-scan-options').on('change',function(e){ 172 video_thumbnails_bulk_scanner.findPosts(); 173 }); 174 175 $('#video-thumbnails-bulk-scan-options').on('submit',function(e){ 143 176 e.preventDefault(); 144 var data = { 145 action: 'video_thumbnails_bulk_posts_query' 146 }; 147 $.post(ajaxurl, data, function(response) { 148 var posts = $.parseJSON( response ); 149 var r = confirm("This will scan " + posts.length + " posts, continue?"); 150 if ( r == true ) { 151 x = new VideoThumbnailsBulkScanner( posts ); 152 x.startScan(); 153 } else { 154 x = "You pressed Cancel!"; 155 } 156 }); 177 video_thumbnails_bulk_scanner.startScan(); 157 178 }); 158 179 -
video-thumbnails/trunk/php/class-video-thumbnails-settings.php
r840515 r846693 49 49 add_action( 'admin_enqueue_scripts', array( &$this, 'admin_scripts' ) ); 50 50 } 51 // Add "Go Pro" call to action to settings footer 52 add_action( 'video_thumbnails/settings_footer', array( 'Video_Thumbnails_Settings', 'settings_footer' ) ); 51 53 } 52 54 … … 568 570 ?> 569 571 570 <div style="width: 250px; margin: 20px 0; padding: 0 20px; background: #f5f5f5; border: 1px solid #dfdfdf; text-align: center; -webkit-border-radius: 8px; -moz-border-radius: 8px; border-radius: 8px;"> 571 <p>All donations are appreciated!<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYB1rPWk/Rr89ydxDsoXWyYIlAwIORRiWzcLHSBBVBMY69PHCO6WVTK2lXYmjZbDrvrHmN/jrM5r3Q008oX19NujzZ4d1VV+dWZxPU+vROuLToOFkk3ivjcvlT825HfdZRoiY/eTwWfBH93YQ+3kAAdc2s3FRxVyC4cUdrtbkBmYpDELMAkGBSsOAwIaBQAwgcQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIkO3IVfkE9PGAgaA9fgOdXrQSpdGgo8ZgjiOxDGlEHoRL51gvB6AZdhNCubfLbqolJjYfTPEMg6Z0dfrq3hVSF2+nLV7BRcmXAtxY5NkH7vu1Kv0Bsb5kDOWb8h4AfnwElD1xyaykvYAr7CRNqHcizYRXZHKE7elWY0w6xRV/bfE7w6E4ZjKvFowHFp9E7/3mcZDrqxbZVU5hqs5gsV2YJj8fNBzG1bbdTucXoIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5U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5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTExMDA3MDUzMjM1WjAjBgkqhkiG9w0BCQQxFgQUHXhTYmeIfU7OyslesSVlGviqHbIwDQYJKoZIhvcNAQEBBQAEgYDAU3s+ej0si2FdN0uZeXhR+GGCDOMSYbkRswu7K3TRDXoD9D9c67VjQ+GfqP95cA9s40aT73goH+AxPbiQhG64OaHZZGJeSmwiGiCo4rBoVPxNUDONMPWaYfp6vm3Mt41gbxUswUEDNnzps4waBsFRJvuFjbbeQVYg7wbVfQC99Q==-----END PKCS7-----"><input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"></form></p> 572 <?php do_action( 'video_thumbnails/settings_footer' ); ?> 573 574 </div><?php 575 } 576 577 public static function settings_footer() { 578 ?> 579 <div style="width: 250px; margin: 20px 0; padding: 0 20px; background: #fff; border: 1px solid #dfdfdf; text-align: center;"> 580 <div> 581 <p>Support video thumbnails and unlock additional features</p> 582 <p><a href="https://refactored.co/plugins/video-thumbnails" class="button button-primary button-large">Go Pro</a></p> 572 583 </div> 573 574 < /div><?php584 </div> 585 <?php 575 586 } 576 587 -
video-thumbnails/trunk/php/providers/class-vimeo-thumbnails.php
r837855 r846693 91 91 } elseif ( $response['response']['code'] == 404 ) { 92 92 $result = new WP_Error( 'vimeo_info_retrieval', __( 'The Vimeo endpoint located at <a href="' . $request . '">' . $request . '</a> returned a 404 error.<br />Details: ' . $response['response']['message'] ) ); 93 } elseif ( $response['response']['code'] == 403 ) { 94 $result = new WP_Error( 'vimeo_info_retrieval', __( 'The Vimeo endpoint located at <a href="' . $request . '">' . $request . '</a> returned a 403 error.<br />This can occur when a video has embedding disabled or restricted to certain domains. Try entering API credentials in the provider settings.' ) ); 93 95 } else { 94 96 $xml = new SimpleXMLElement( $response['body'] ); -
video-thumbnails/trunk/readme.txt
r841939 r846693 3 3 Donate link: http://wie.ly/u/donate 4 4 Tags: Video, Thumbnails, YouTube, Vimeo, Vine, Twitch, Dailymotion, Youku, Rutube, Featured Image 5 Requires at least: 3. 15 Requires at least: 3.2 6 6 Tested up to: 3.8 7 Stable tag: 2. 4.27 Stable tag: 2.5 8 8 9 9 Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template. … … 12 12 13 13 Video Thumbnails makes it easy to automatically display video thumbnails in your template. When you publish a post, this plugin will find the first video embedded and locate the thumbnail for you. Thumbnails can be saved to your media library and set as a featured image automatically. There's even support for custom post types and custom fields! 14 15 **New!** Get even more power with [Video Thumbnails Pro](https://refactored.co/plugins/video-thumbnails). Enjoy features like maximum image sizes, more powerful bulk scanning options, a customizable upload directory, and more! 14 16 15 17 Video Thumbnails currently supports these video services: … … 41 43 * [WP YouTube Lyte](http://wordpress.org/extend/plugins/wp-youtube-lyte/) 42 44 45 Video Thumbnails will always be totally free while remaining a full-featured plugin, but if you'd like to support the developer consider purchasing [Video Thumbnails Pro](https://refactored.co/plugins/video-thumbnails). The pro version runs alongside the standard version and adds additional features like maximum image sizes, more powerful bulk scanning options, a customizable upload directory, and more! 46 43 47 Some functions are available to advanced users who want to customize their theme: 44 48 … … 111 115 112 116 == Changelog == 117 118 = 2.5 = 119 * Added support for [Video Thumbnails Pro](https://refactored.co/plugins/video-thumbnails), our new solution for power users and professional bloggers 120 * Various bugfixes and improvements 113 121 114 122 = 2.4.2 = -
video-thumbnails/trunk/video-thumbnails.php
r841939 r846693 2 2 /* 3 3 Plugin Name: Video Thumbnails 4 Plugin URI: http ://refactored.co/plugins/video-thumbnails4 Plugin URI: https://refactored.co/plugins/video-thumbnails 5 5 Description: Automatically retrieve video thumbnails for your posts and display them in your theme. Supports YouTube, Vimeo, Facebook, Vine, Justin.tv, Twitch, Dailymotion, Metacafe, Blip, Google Drive, Funny or Die, CollegeHumor, MPORA, Wistia, Youku, and Rutube. 6 6 Author: Sutherland Boswell 7 7 Author URI: http://sutherlandboswell.com 8 Version: 2. 4.28 Version: 2.5 9 9 License: GPL2 10 10 */ … … 29 29 define( 'VIDEO_THUMBNAILS_PATH', dirname(__FILE__) ); 30 30 define( 'VIDEO_THUMBNAILS_FIELD', '_video_thumbnail' ); 31 define( 'VIDEO_THUMBNAILS_VERSION', '2. 4.2' );31 define( 'VIDEO_THUMBNAILS_VERSION', '2.5' ); 32 32 33 33 // Providers … … 301 301 302 302 // Saves to media library 303 public function save_to_media_library( $image_url, $post_id ) {303 public static function save_to_media_library( $image_url, $post_id ) { 304 304 305 305 $error = ''; … … 324 324 325 325 // Save the image bits using the new filename 326 do_action( 'video_thumbnails/pre_upload_bits', $image_contents ); 326 327 $upload = wp_upload_bits( $new_filename, null, $image_contents ); 328 do_action( 'video_thumbnails/after_upload_bits', $upload ); 327 329 328 330 // Stop for any errors while saving the data or else continue adding the image to the media library … … 331 333 return $error; 332 334 } else { 335 336 do_action( 'video_thumbnails/image_downloaded', $upload['file'] ); 333 337 334 338 $image_url = $upload['url']; … … 400 404 401 405 function bulk_posts_query_callback() { 406 // Some default args 402 407 $args = array( 403 ' showposts' => -1,408 'posts_per_page' => -1, 404 409 'post_type' => $this->settings->options['post_types'], 405 410 'fields' => 'ids' 406 411 ); 412 // Setup an array for any form data and parse the jQuery serialized data 413 $form_data = array(); 414 parse_str( $_POST['params'], $form_data ); 415 416 $args = apply_filters( 'video_thumbnails/bulk_posts_query', $args, $form_data ); 417 407 418 $query = new WP_Query( $args ); 408 419 echo json_encode( $query->posts ); … … 451 462 <p>Use this tool to scan all of your posts for Video Thumbnails.</p> 452 463 453 <p><a id="video-thumbnails-scan-all-posts" href="#" class="button button-primary">Scan All Posts</a></p> 464 <form id="video-thumbnails-bulk-scan-options"> 465 <table class="form-table"> 466 <tbody> 467 <?php do_action( 'video_thumbnails/bulk_options_form'); ?> 468 <tr valign="top"> 469 <th scope="row"><span id="queue-count">...</span></th> 470 <td> 471 <input type="submit" value="Scan Now" class="button button-primary"> 472 </td> 473 </tr> 474 </tbody> 475 </table> 476 </form> 454 477 455 478 <div id="vt-bulk-scan-results">
Note: See TracChangeset
for help on using the changeset viewer.