Video Embed & Thumbnail Generator - Version 4.0.2

Version Description

  • April 25, 2013 =
  • Plugin settings are no longer re-saved to the database on every page load. Should speed things up a little.
  • Changed CSS to discourage theme styles from overriding embed code overlay styles.
Download this release

Release Info

Developer kylegilman
Plugin Icon 128x128 Video Embed & Thumbnail Generator
Version 4.0.2
Comparing to
See all releases

Code changes from version 4.0.1 to 4.0.2

css/kgvid_styles.css CHANGED
@@ -72,7 +72,7 @@ img.kgvid_ios_novideo {
72
 
73
  .kgvid_video_meta div {
74
  display:inline-block;
75
- margin: 6px;
76
  }
77
 
78
  .kgvid_title {
@@ -83,22 +83,18 @@ img.kgvid_ios_novideo {
83
  padding-left: 4px;
84
  }
85
 
86
- #content .kgvid_video_meta input {
87
- font: inherit;
88
- color: #eee;
89
- line-height: 1.6em;
90
- }
91
-
92
  .kgvid_video_meta input {
93
- color: #eee;
94
- width: 100px;
 
95
  font: 10px "Helvetica Neue", Helvetica, Arial, sans-serif !important;
96
- line-height: 1.6em;
97
- background-color: #999;
98
- border: none;
99
- -moz-border-radius: 5px;
100
- border-radius: 5px;
101
- padding: 2px;
 
102
  }
103
 
104
  .kgvid_share {
72
 
73
  .kgvid_video_meta div {
74
  display:inline-block;
75
+ margin: 6px !important;
76
  }
77
 
78
  .kgvid_title {
83
  padding-left: 4px;
84
  }
85
 
 
 
 
 
 
 
86
  .kgvid_video_meta input {
87
+ display: inline-block !important;
88
+ color: #eee !important;
89
+ width: 100px !important;
90
  font: 10px "Helvetica Neue", Helvetica, Arial, sans-serif !important;
91
+ line-height: 1.6em !important;
92
+ background-color: #999 !important;
93
+ border: none !important;
94
+ -moz-border-radius: 5px !important;
95
+ border-radius: 5px !important;
96
+ padding: 2px !important;
97
+ margin: 0px !important;
98
  }
99
 
100
  .kgvid_share {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kyleg
4
  Tags: video, video gallery, html5, shortcode, thumbnail, ffmpeg, libav, embed, mobile, webm, ogg, h.264
5
  Requires at least: 3.2
6
  Tested up to: 3.6
7
- Stable tag: 4.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -136,6 +136,10 @@ Use the "Embed from URL" tab. Use the format http://username:password@yourdomain
136
 
137
  == Changelog ==
138
 
 
 
 
 
139
  = 4.0.1 - April 23, 2013 =
140
  * Added options to display video title and embed code overlays on video player, and captions and view counts below videos.
141
  * Added option to filter your theme's video attachment page template to display the video instead of WordPress's default behavior of just showing the title of the video. For backwards compatibility retained old method of completely replacing the video attachment template with a video player.
4
  Tags: video, video gallery, html5, shortcode, thumbnail, ffmpeg, libav, embed, mobile, webm, ogg, h.264
5
  Requires at least: 3.2
6
  Tested up to: 3.6
7
+ Stable tag: 4.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
136
 
137
  == Changelog ==
138
 
139
+ = 4.0.2 - April 25, 2013 =
140
+ * Plugin settings are no longer re-saved to the database on every page load. Should speed things up a little.
141
+ * Changed CSS to discourage theme styles from overriding embed code overlay styles.
142
+
143
  = 4.0.1 - April 23, 2013 =
144
  * Added options to display video title and embed code overlays on video player, and captions and view counts below videos.
145
  * Added option to filter your theme's video attachment page template to display the video instead of WordPress's default behavior of just showing the title of the video. For backwards compatibility retained old method of completely replacing the video attachment template with a video player.
video-embed-thumbnail-generator.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Video Embed & Thumbnail Generator
4
  Plugin URI: http://www.kylegilman.net/2011/01/18/video-embed-thumbnail-generator-wordpress-plugin/
5
  Description: Generates thumbnails, HTML5-compliant videos, and embed codes for locally hosted videos. Requires FFMPEG for thumbnails and encodes. <a href="options-general.php?page=video-embed-thumbnail-generator/video-embed-thumbnail-generator.php">Settings</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kylegilman@gmail.com&item_name=Video%20Embed%20And%20Thumbnail%20Generator%20Plugin%20Donation/">Donate</a>
6
- Version: 4.0.1
7
  Author: Kyle Gilman
8
  Author URI: http://www.kylegilman.net/
9
 
@@ -42,7 +42,7 @@ if ( ! defined( 'ABSPATH' ) )
42
 
43
  function kgvid_default_options_fn() {
44
  $options = array(
45
- "version"=>4.01,
46
  "embed_method"=>"Video.js",
47
  "template"=>false,
48
  "template_gentle"=>"on",
@@ -1533,6 +1533,7 @@ function kgvid_update_settings() {
1533
  global $wpdb;
1534
 
1535
  $options = get_option('kgvid_video_embed_options');
 
1536
  $default_options = kgvid_default_options_fn();
1537
 
1538
  if ( empty($options) ) { // run if the new settings don't exist yet (before version 3.0)
@@ -1589,7 +1590,7 @@ function kgvid_update_settings() {
1589
  $options['watermark'] = "";
1590
  }
1591
  if ( $options['version'] < 4.0 ) {
1592
- $options['version'] = 4.01;
1593
  $options['overlay_title'] = false;
1594
  $options['overlay_embedcode'] = false;
1595
  $options['view_count'] = false;
@@ -1609,7 +1610,8 @@ function kgvid_update_settings() {
1609
  }
1610
 
1611
  }
1612
- update_option('kgvid_video_embed_options', $options);
 
1613
  }
1614
  }
1615
  add_action('init', 'kgvid_update_settings' );
3
  Plugin Name: Video Embed & Thumbnail Generator
4
  Plugin URI: http://www.kylegilman.net/2011/01/18/video-embed-thumbnail-generator-wordpress-plugin/
5
  Description: Generates thumbnails, HTML5-compliant videos, and embed codes for locally hosted videos. Requires FFMPEG for thumbnails and encodes. <a href="options-general.php?page=video-embed-thumbnail-generator/video-embed-thumbnail-generator.php">Settings</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kylegilman@gmail.com&item_name=Video%20Embed%20And%20Thumbnail%20Generator%20Plugin%20Donation/">Donate</a>
6
+ Version: 4.0.2
7
  Author: Kyle Gilman
8
  Author URI: http://www.kylegilman.net/
9
 
42
 
43
  function kgvid_default_options_fn() {
44
  $options = array(
45
+ "version"=>4.02,
46
  "embed_method"=>"Video.js",
47
  "template"=>false,
48
  "template_gentle"=>"on",
1533
  global $wpdb;
1534
 
1535
  $options = get_option('kgvid_video_embed_options');
1536
+ $options_old = $options; //save the values that are in the db
1537
  $default_options = kgvid_default_options_fn();
1538
 
1539
  if ( empty($options) ) { // run if the new settings don't exist yet (before version 3.0)
1590
  $options['watermark'] = "";
1591
  }
1592
  if ( $options['version'] < 4.0 ) {
1593
+ $options['version'] = 4.0;
1594
  $options['overlay_title'] = false;
1595
  $options['overlay_embedcode'] = false;
1596
  $options['view_count'] = false;
1610
  }
1611
 
1612
  }
1613
+ if ( $options['version'] != $default_options['version'] ) { $options['version'] = $default_options['version']; }
1614
+ if ( $options !== $options_old ) { update_option('kgvid_video_embed_options', $options); }
1615
  }
1616
  }
1617
  add_action('init', 'kgvid_update_settings' );