Version Description
= 1.6 = Smoothness
= 1.5 = AJAX!
= 1.4 = WP3.5 Media Manager, time-links...
= 1.3 = Internationalization! More user friendly, more customizations.
= 1.2 = Now featuring your local videos!
= 1.1 = Feature Dailymotion Videos on your posts!
Download this release
Release Info
Developer | a.hoereth |
Plugin | Featured Video Plus |
Version | 1.7 |
Comparing to | |
See all releases |
Code changes from version 1.6.1 to 1.7
- css/loading_b.gif +0 -0
- css/loading_w.gif +0 -0
- featured-video-plus.php +13 -10
- js/backend.js +15 -15
- js/backend.min.js +2 -2
- js/frontend.js +69 -0
- js/frontend.min.js +5 -0
- js/jquery.domwindow.js +369 -0
- js/jquery.domwindow.min.js +18 -0
- js/{jquery.fitvids_fvp.js → jquery.fitvids.js} +31 -32
- js/jquery.fitvids.min.js +3 -0
- js/jquery.fitvids_fvp.min.js +0 -3
- js/{backend_settings.js → settings.js} +0 -6
- lng/featured-video-plus-de_DE.mo +0 -0
- lng/featured-video-plus-de_DE.po +668 -631
- lng/featured-video-plus.pot +511 -490
- php/backend.php +57 -36
- php/frontend.php +44 -3
- php/functions.php +9 -6
- php/general.php +54 -59
- php/settings.php +14 -13
- php/upgrade.php +6 -2
- readme.txt +16 -6
css/loading_b.gif
ADDED
Binary file
|
css/loading_w.gif
ADDED
Binary file
|
featured-video-plus.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
Plugin Name: Featured Video Plus
|
4 |
-
Plugin URI:
|
5 |
Description: Add Featured Videos to your posts and pages.
|
6 |
Author: Alexander Höreth
|
7 |
-
Version: 1.
|
8 |
-
Author URI: http://
|
9 |
License: GPL2
|
10 |
|
11 |
Copyright 2009-2012 Alexander Höreth (email: a.hoereth@gmail.com)
|
@@ -27,7 +27,7 @@ License: GPL2
|
|
27 |
*/
|
28 |
|
29 |
if (!defined('FVP_VERSION'))
|
30 |
-
define('FVP_VERSION', '1.
|
31 |
|
32 |
// symlink proof
|
33 |
$pathinfo = pathinfo(dirname(plugin_basename(__FILE__)));
|
@@ -60,9 +60,8 @@ if( is_admin() ) {
|
|
60 |
add_action( 'admin_init', 'featured_video_plus_upgrade' );
|
61 |
|
62 |
// admin meta box
|
63 |
-
add_action('admin_menu',
|
64 |
-
add_action('save_post',
|
65 |
-
add_action('wp_ajax_fvp_ajax', array( &$featured_video_plus_backend, 'ajax' ) );
|
66 |
|
67 |
// enqueue admin scripts and styles
|
68 |
add_action('admin_enqueue_scripts', array( &$featured_video_plus_backend, 'enqueue' ) );
|
@@ -90,6 +89,12 @@ if( is_admin() ) {
|
|
90 |
add_action( 'load-options-media.php', array( &$featured_video_plus_settings, 'tabs' ), 20 ); // $GLOBALS['pagenow']
|
91 |
if( get_bloginfo('version') < 3.3 )
|
92 |
add_filter( 'contextual_help', array( &$featured_video_plus_settings, 'help_pre_33' ), 10, 3 );
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
}
|
94 |
|
95 |
|
@@ -100,8 +105,8 @@ if( !is_admin() ) {
|
|
100 |
$featured_video_plus_frontend = new featured_video_plus_frontend($featured_video_plus);
|
101 |
|
102 |
// enqueue scripts and styles
|
|
|
103 |
add_action( 'wp_enqueue_scripts', array( &$featured_video_plus_frontend, 'enqueue' ) );
|
104 |
-
add_action( 'wp_enqueue_scripts', array( &$featured_video_plus, 'enqueue' ) );
|
105 |
|
106 |
// filter get_post_thumbnail output
|
107 |
add_filter( 'post_thumbnail_html', array( &$featured_video_plus_frontend, 'filter_post_thumbnail'), 99, 5);
|
@@ -109,5 +114,3 @@ if( !is_admin() ) {
|
|
109 |
// shortcode
|
110 |
add_shortcode( 'featured-video-plus', array( &$featured_video_plus_frontend, 'shortcode' ) );
|
111 |
}
|
112 |
-
|
113 |
-
?>
|
1 |
<?php
|
2 |
/**
|
3 |
Plugin Name: Featured Video Plus
|
4 |
+
Plugin URI: http://yrnxt.com/wordpress/featured-video-plus/
|
5 |
Description: Add Featured Videos to your posts and pages.
|
6 |
Author: Alexander Höreth
|
7 |
+
Version: 1.7
|
8 |
+
Author URI: http://yrnxt.com
|
9 |
License: GPL2
|
10 |
|
11 |
Copyright 2009-2012 Alexander Höreth (email: a.hoereth@gmail.com)
|
27 |
*/
|
28 |
|
29 |
if (!defined('FVP_VERSION'))
|
30 |
+
define('FVP_VERSION', '1.7');
|
31 |
|
32 |
// symlink proof
|
33 |
$pathinfo = pathinfo(dirname(plugin_basename(__FILE__)));
|
60 |
add_action( 'admin_init', 'featured_video_plus_upgrade' );
|
61 |
|
62 |
// admin meta box
|
63 |
+
add_action('admin_menu', array( &$featured_video_plus_backend, 'metabox_register' ) );
|
64 |
+
add_action('save_post', array( &$featured_video_plus_backend, 'metabox_save' ) );
|
|
|
65 |
|
66 |
// enqueue admin scripts and styles
|
67 |
add_action('admin_enqueue_scripts', array( &$featured_video_plus_backend, 'enqueue' ) );
|
89 |
add_action( 'load-options-media.php', array( &$featured_video_plus_settings, 'tabs' ), 20 ); // $GLOBALS['pagenow']
|
90 |
if( get_bloginfo('version') < 3.3 )
|
91 |
add_filter( 'contextual_help', array( &$featured_video_plus_settings, 'help_pre_33' ), 10, 3 );
|
92 |
+
|
93 |
+
if (defined('DOING_AJAX')&&DOING_AJAX){
|
94 |
+
add_action( 'wp_ajax_fvp_ajax', array( &$featured_video_plus_backend, 'ajax' ) );
|
95 |
+
add_action( 'wp_ajax_fvp_get_embed', array( &$featured_video_plus_backend, 'ajax_get_embed' ));
|
96 |
+
add_action( 'wp_ajax_nopriv_fvp_get_embed', array( &$featured_video_plus_backend, 'ajax_get_embed' ));
|
97 |
+
}
|
98 |
}
|
99 |
|
100 |
|
105 |
$featured_video_plus_frontend = new featured_video_plus_frontend($featured_video_plus);
|
106 |
|
107 |
// enqueue scripts and styles
|
108 |
+
add_action( 'wp_enqueue_scripts', array( &$featured_video_plus, 'enqueue' ) );
|
109 |
add_action( 'wp_enqueue_scripts', array( &$featured_video_plus_frontend, 'enqueue' ) );
|
|
|
110 |
|
111 |
// filter get_post_thumbnail output
|
112 |
add_filter( 'post_thumbnail_html', array( &$featured_video_plus_frontend, 'filter_post_thumbnail'), 99, 5);
|
114 |
// shortcode
|
115 |
add_shortcode( 'featured-video-plus', array( &$featured_video_plus_frontend, 'shortcode' ) );
|
116 |
}
|
|
|
|
js/backend.js
CHANGED
@@ -24,7 +24,7 @@ jQuery(document).ready(function($){
|
|
24 |
if( t.val() != t.siblings('.fvp_mirror').val() ) {
|
25 |
bg = t.siblings('.fvp_video_choose').children('.fvp_media_icon').css('backgroundImage');
|
26 |
t.siblings('.fvp_video_choose').children('.fvp_media_icon').css('backgroundImage', "url('"+fvp_backend_data.loading_gif+"')");
|
27 |
-
$('#fvp_current_video').css({'backgroundImage':"url('"+fvp_backend_data.loading_gif+"')",'width':'256px'
|
28 |
$.post( ajaxurl,
|
29 |
{
|
30 |
'action' : 'fvp_ajax',
|
@@ -37,17 +37,17 @@ jQuery(document).ready(function($){
|
|
37 |
t.siblings('.fvp_mirror').val( t.val() );
|
38 |
t.siblings('.fvp_video_choose').children('.fvp_media_icon').css('backgroundImage', bg);
|
39 |
if(data.typ == 'removed'){
|
40 |
-
$('#fvp_current_video').html('').css({'backgroundImage':''
|
41 |
if( data.img != '' )
|
42 |
$('#postimagediv .inside').html(data.img);
|
43 |
-
}
|
44 |
if(data.valid) {
|
45 |
$('#postimagediv .inside').html(data.img);
|
46 |
$("#fvp_set_featimg_link, #fvp_featimg_warning").slideUp().addClass("fvp_hidden");
|
47 |
$('#fvp_current_video').html(data.video);
|
48 |
t.css('backgroundColor','#00FF00').animate({'backgroundColor':'white'}, 500, function() { t.css('backgroundColor',''); });
|
49 |
$("#fvp_help_notice").slideUp('fast');
|
50 |
-
}
|
51 |
$('#fvp_current_video').html(data.video);
|
52 |
t.addClass('fvp_invalid');
|
53 |
$("#fvp_help_notice").slideUp('fast');
|
@@ -100,14 +100,6 @@ jQuery(document).ready(function($){
|
|
100 |
}
|
101 |
}
|
102 |
|
103 |
-
/**
|
104 |
-
* recognize change on the primary video input
|
105 |
-
* @since 1.2
|
106 |
-
*/
|
107 |
-
$("#fvp_video").bind("change paste keyup", function() {
|
108 |
-
setTimeout(handleVideoInput($(this)), 200);
|
109 |
-
});
|
110 |
-
|
111 |
/**
|
112 |
* Called when a change on the primary video input occurred
|
113 |
* @since 1.2
|
@@ -146,11 +138,11 @@ jQuery(document).ready(function($){
|
|
146 |
}
|
147 |
|
148 |
/**
|
149 |
-
* recognize change on the
|
150 |
* @since 1.2
|
151 |
*/
|
152 |
-
$("#
|
153 |
-
setTimeout(
|
154 |
});
|
155 |
|
156 |
/**
|
@@ -184,6 +176,14 @@ jQuery(document).ready(function($){
|
|
184 |
|
185 |
}
|
186 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
/**
|
188 |
* Compares the two input boxes if they contain the same URL
|
189 |
* @since 1.2
|
24 |
if( t.val() != t.siblings('.fvp_mirror').val() ) {
|
25 |
bg = t.siblings('.fvp_video_choose').children('.fvp_media_icon').css('backgroundImage');
|
26 |
t.siblings('.fvp_video_choose').children('.fvp_media_icon').css('backgroundImage', "url('"+fvp_backend_data.loading_gif+"')");
|
27 |
+
$('#fvp_current_video').css({'backgroundImage':"url('"+fvp_backend_data.loading_gif+"')",'width':'256px'}).animate({'height':'144px'});
|
28 |
$.post( ajaxurl,
|
29 |
{
|
30 |
'action' : 'fvp_ajax',
|
37 |
t.siblings('.fvp_mirror').val( t.val() );
|
38 |
t.siblings('.fvp_video_choose').children('.fvp_media_icon').css('backgroundImage', bg);
|
39 |
if(data.typ == 'removed'){
|
40 |
+
$('#fvp_current_video').html('').css({'backgroundImage':''}).animate({'height':'0px'});
|
41 |
if( data.img != '' )
|
42 |
$('#postimagediv .inside').html(data.img);
|
43 |
+
}else
|
44 |
if(data.valid) {
|
45 |
$('#postimagediv .inside').html(data.img);
|
46 |
$("#fvp_set_featimg_link, #fvp_featimg_warning").slideUp().addClass("fvp_hidden");
|
47 |
$('#fvp_current_video').html(data.video);
|
48 |
t.css('backgroundColor','#00FF00').animate({'backgroundColor':'white'}, 500, function() { t.css('backgroundColor',''); });
|
49 |
$("#fvp_help_notice").slideUp('fast');
|
50 |
+
}else{
|
51 |
$('#fvp_current_video').html(data.video);
|
52 |
t.addClass('fvp_invalid');
|
53 |
$("#fvp_help_notice").slideUp('fast');
|
100 |
}
|
101 |
}
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
/**
|
104 |
* Called when a change on the primary video input occurred
|
105 |
* @since 1.2
|
138 |
}
|
139 |
|
140 |
/**
|
141 |
+
* recognize change on the primary video input
|
142 |
* @since 1.2
|
143 |
*/
|
144 |
+
$("#fvp_video").bind("change paste keyup", function() {
|
145 |
+
setTimeout(handleVideoInput($(this)), 200);
|
146 |
});
|
147 |
|
148 |
/**
|
176 |
|
177 |
}
|
178 |
|
179 |
+
/**
|
180 |
+
* recognize change on the secondary video input
|
181 |
+
* @since 1.2
|
182 |
+
*/
|
183 |
+
$("#fvp_sec").bind("change paste keyup", function() {
|
184 |
+
setTimeout(handleSecInput($(this)), 200);
|
185 |
+
});
|
186 |
+
|
187 |
/**
|
188 |
* Compares the two input boxes if they contain the same URL
|
189 |
* @since 1.2
|
js/backend.min.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
jQuery(document).ready(function(a){function g(){a.trim(a("#fvp_video").val())==a.trim(a("#fvp_sec").val())?(a("#fvp_sec").addClass("fvp_invalid"),a("#fvp_localvideo_notdistinct_warning").slideDown("fast")):(a("#fvp_localvideo_notdistinct_warning").slideUp("fast"),a("#fvp_sec").removeClass("fvp_invalid"))}a("#fvp_video,#fvp_sec").blur(function(){var c=a(this);c.val(a.trim(c.val()));d=c.val();if(0===d.length||d==fvp_backend_data.default_value||d==fvp_backend_data.default_value_sec)c.addClass("defaultTextActive"),
|
2 |
-
c.is("#fvp_video")?c.val(fvp_backend_data.default_value):c.val(fvp_backend_data.default_value_sec);c.trigger("autosize");c.val()!=c.siblings(".fvp_mirror").val()&&(bg=c.siblings(".fvp_video_choose").children(".fvp_media_icon").css("backgroundImage"),c.siblings(".fvp_video_choose").children(".fvp_media_icon").css("backgroundImage","url('"+fvp_backend_data.loading_gif+"')"),a("#fvp_current_video").css({backgroundImage:"url('"+fvp_backend_data.loading_gif+"')",width:"256px"
|
3 |
-
{action:"fvp_ajax",id:a("#post_ID").val(),fvp_nonce:a("#fvp_nonce").val(),fvp_video:a("#fvp_video").val(),fvp_sec:a("#fvp_sec").val()},function(b){c.siblings(".fvp_mirror").val(c.val());c.siblings(".fvp_video_choose").children(".fvp_media_icon").css("backgroundImage",bg);"removed"==b.typ?(a("#fvp_current_video").html("").css({backgroundImage:""
|
4 |
a("#fvp_current_video").html(b.video),c.css("backgroundColor","#00FF00").animate({backgroundColor:"white"},500,function(){c.css("backgroundColor","")})):(a("#fvp_current_video").html(b.video),c.addClass("fvp_invalid")),a("#fvp_help_notice").slideUp("fast"))},"json"))});a(".fvp_input").focus(function(){d=a(this).val();if(d==fvp_backend_data.default_value||d==fvp_backend_data.default_value_sec)a(this).removeClass("defaultTextActive"),a(this).val("")});a(".fvp_input").autosize().trigger("blur").keypress(function(a){13==
|
5 |
a.keyCode&&a.preventDefault()});a(".fvp_input").click(function(){a(this).select()});if(0<a("#fvp_video").length){var d=a("#fvp_video").val();if(0===d.length||d==fvp_backend_data.default_value||!d.match(fvp_backend_data.wp_upload_dir.replace(/\//g,"\\/")))a("#fvp_sec").val(fvp_backend_data.default_value_sec),a("#fvp_sec_wrapper").hide()}a("#fvp_video").bind("change paste keyup",function(){var c=setTimeout,b=a(this),b=a.trim(b.val());a.trim(a("#fvp_sec").val());a("#fvp_help_notice").slideDown("fast");
|
6 |
if(0===b.length||b==fvp_backend_data.default_value)a("#fvp_video").removeClass("fvp_invalid"),a("#fvp_sec").val(fvp_backend_data.default_value_sec).blur(),a("#fvp_sec_wrapper").slideUp("fast"),a("#fvp_localvideo_format_warning").slideUp("fast");b.match(fvp_backend_data.wp_upload_dir.replace(/\//g,"\\/"))?(b=/^.*\/(.*)\.(.*)$/g.exec(b),"webm"==b[2]||"mp4"==b[2]||"ogg"==b[2]||"ogv"==b[2]?(a("#fvp_sec_wrapper").slideDown("fast"),a("#fvp_video").removeClass("fvp_invalid"),a("#fvp_localvideo_format_warning").slideUp("fast")):
|
1 |
jQuery(document).ready(function(a){function g(){a.trim(a("#fvp_video").val())==a.trim(a("#fvp_sec").val())?(a("#fvp_sec").addClass("fvp_invalid"),a("#fvp_localvideo_notdistinct_warning").slideDown("fast")):(a("#fvp_localvideo_notdistinct_warning").slideUp("fast"),a("#fvp_sec").removeClass("fvp_invalid"))}a("#fvp_video,#fvp_sec").blur(function(){var c=a(this);c.val(a.trim(c.val()));d=c.val();if(0===d.length||d==fvp_backend_data.default_value||d==fvp_backend_data.default_value_sec)c.addClass("defaultTextActive"),
|
2 |
+
c.is("#fvp_video")?c.val(fvp_backend_data.default_value):c.val(fvp_backend_data.default_value_sec);c.trigger("autosize");c.val()!=c.siblings(".fvp_mirror").val()&&(bg=c.siblings(".fvp_video_choose").children(".fvp_media_icon").css("backgroundImage"),c.siblings(".fvp_video_choose").children(".fvp_media_icon").css("backgroundImage","url('"+fvp_backend_data.loading_gif+"')"),a("#fvp_current_video").css({backgroundImage:"url('"+fvp_backend_data.loading_gif+"')",width:"256px"}).animate({height:"144px"}),
|
3 |
+
a.post(ajaxurl,{action:"fvp_ajax",id:a("#post_ID").val(),fvp_nonce:a("#fvp_nonce").val(),fvp_video:a("#fvp_video").val(),fvp_sec:a("#fvp_sec").val()},function(b){c.siblings(".fvp_mirror").val(c.val());c.siblings(".fvp_video_choose").children(".fvp_media_icon").css("backgroundImage",bg);"removed"==b.typ?(a("#fvp_current_video").html("").css({backgroundImage:""}).animate({height:"0px"}),""!=b.img&&a("#postimagediv .inside").html(b.img)):(b.valid?(a("#postimagediv .inside").html(b.img),a("#fvp_set_featimg_link, #fvp_featimg_warning").slideUp().addClass("fvp_hidden"),
|
4 |
a("#fvp_current_video").html(b.video),c.css("backgroundColor","#00FF00").animate({backgroundColor:"white"},500,function(){c.css("backgroundColor","")})):(a("#fvp_current_video").html(b.video),c.addClass("fvp_invalid")),a("#fvp_help_notice").slideUp("fast"))},"json"))});a(".fvp_input").focus(function(){d=a(this).val();if(d==fvp_backend_data.default_value||d==fvp_backend_data.default_value_sec)a(this).removeClass("defaultTextActive"),a(this).val("")});a(".fvp_input").autosize().trigger("blur").keypress(function(a){13==
|
5 |
a.keyCode&&a.preventDefault()});a(".fvp_input").click(function(){a(this).select()});if(0<a("#fvp_video").length){var d=a("#fvp_video").val();if(0===d.length||d==fvp_backend_data.default_value||!d.match(fvp_backend_data.wp_upload_dir.replace(/\//g,"\\/")))a("#fvp_sec").val(fvp_backend_data.default_value_sec),a("#fvp_sec_wrapper").hide()}a("#fvp_video").bind("change paste keyup",function(){var c=setTimeout,b=a(this),b=a.trim(b.val());a.trim(a("#fvp_sec").val());a("#fvp_help_notice").slideDown("fast");
|
6 |
if(0===b.length||b==fvp_backend_data.default_value)a("#fvp_video").removeClass("fvp_invalid"),a("#fvp_sec").val(fvp_backend_data.default_value_sec).blur(),a("#fvp_sec_wrapper").slideUp("fast"),a("#fvp_localvideo_format_warning").slideUp("fast");b.match(fvp_backend_data.wp_upload_dir.replace(/\//g,"\\/"))?(b=/^.*\/(.*)\.(.*)$/g.exec(b),"webm"==b[2]||"mp4"==b[2]||"ogg"==b[2]||"ogv"==b[2]?(a("#fvp_sec_wrapper").slideDown("fast"),a("#fvp_video").removeClass("fvp_invalid"),a("#fvp_localvideo_format_warning").slideUp("fast")):
|
js/frontend.js
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// dynamic
|
2 |
+
function fvp_dynamic(id){
|
3 |
+
var t = jQuery('.fvp_'+id);
|
4 |
+
t.css({'position':'relative'})
|
5 |
+
.prepend(jQuery('<div />', {
|
6 |
+
'class':'fvp_loader',
|
7 |
+
'style':'background:transparent url(\''+fvpdata.loadingb+'\') no-repeat center center;'+
|
8 |
+
'position: absolute; margin: '+t.children('img').css('margin')+';'+
|
9 |
+
'height:'+t.children('img').css('height')+';width:'+t.children('img').css('width')+'; z-index:1000;'
|
10 |
+
}));
|
11 |
+
jQuery('.fvp_'+id+' img').animate({opacity:0.65});
|
12 |
+
jQuery.post( fvpdata.ajaxurl,
|
13 |
+
{
|
14 |
+
'action': 'fvp_get_embed',
|
15 |
+
'nonce' : fvpdata.nonce,
|
16 |
+
'id' : id
|
17 |
+
},
|
18 |
+
function(data){
|
19 |
+
if (data.success){
|
20 |
+
t.replaceWith(data.html);
|
21 |
+
if (fvpdata.fitvids=="1" && fvpdata.overlay=="0")
|
22 |
+
jQuery(".featured_video_plus").fitVids({customSelector:["iframe", "object", "embed", ".video-js"]});
|
23 |
+
}
|
24 |
+
});//.fail(function() { alert("failed here"); });;
|
25 |
+
}
|
26 |
+
|
27 |
+
jQuery(document).ready(function($){
|
28 |
+
|
29 |
+
// overlay
|
30 |
+
if(fvpdata.overlay){
|
31 |
+
$('.fvp_overlay').click(function(){
|
32 |
+
$(this).openDOMWindow({
|
33 |
+
eventType:null,
|
34 |
+
windowPadding:0,
|
35 |
+
borderSize:0,
|
36 |
+
windowBGColor:'transparent',
|
37 |
+
overlayOpacity:fvpdata.opacity
|
38 |
+
});
|
39 |
+
$('#DOMWindow').css({'background':"transparent url('"+fvpdata.loadingw+"') center center no-repeat"});
|
40 |
+
var id = new RegExp('[\\?&\\#]fvp_([0-9]+)').exec($(this).attr('href'));
|
41 |
+
if ($('#fvp_'+id[1]).html().length === 0){
|
42 |
+
jQuery.post( fvpdata.ajaxurl,
|
43 |
+
{
|
44 |
+
'action': 'fvp_get_embed',
|
45 |
+
'nonce' : fvpdata.nonce,
|
46 |
+
'id' : id[1]
|
47 |
+
},
|
48 |
+
function(data){
|
49 |
+
if (data.success){
|
50 |
+
$('#fvp_'+id[1]).html(data.html);
|
51 |
+
$('#DOMWindow').html(data.html).css({'width':'auto','height':'auto','margin':'auto auto','overflow':'hidden'});
|
52 |
+
$(window).trigger('scroll');
|
53 |
+
|
54 |
+
if (fvpdata.fitvids)
|
55 |
+
$(".featured_video_plus").fitVids({customSelector:["iframe", "object", "embed", ".video-js"]});
|
56 |
+
}
|
57 |
+
});//.fail(function() { alert("failed here"); });;
|
58 |
+
}else{
|
59 |
+
$('#DOMWindow').html( $('#fvp_'+id[1]).html() ).css({'width':'auto','height':'auto','margin':'auto auto','overflow':'hidden'});
|
60 |
+
$(window).trigger('scroll');
|
61 |
+
}
|
62 |
+
});
|
63 |
+
}
|
64 |
+
|
65 |
+
// fitvids
|
66 |
+
if (fvpdata.fitvids=="1" && fvpdata.dynamic=="0" && fvpdata.overlay=="0")
|
67 |
+
$(".featured_video_plus").fitVids({customSelector:["iframe", "object", "embed", ".video-js"]});
|
68 |
+
|
69 |
+
});
|
js/frontend.min.js
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function fvp_dynamic(a){var b=jQuery(".fvp_"+a);b.css({position:"relative"}).prepend(jQuery("<div />",{"class":"fvp_loader",style:"background:transparent url('"+fvpdata.loadingb+"') no-repeat center center;position: absolute; margin: "+b.children("img").css("margin")+";height:"+b.children("img").css("height")+";width:"+b.children("img").css("width")+"; z-index:1000;"}));jQuery(".fvp_"+a+" img").animate({opacity:0.65});jQuery.post(fvpdata.ajaxurl,{action:"fvp_get_embed",nonce:fvpdata.nonce,id:a},function(a){a.success&&
|
2 |
+
(b.replaceWith(a.html),"1"==fvpdata.fitvids&&"0"==fvpdata.overlay&&jQuery(".featured_video_plus").fitVids({customSelector:["iframe","object","embed",".video-js"]}))})}
|
3 |
+
jQuery(document).ready(function(a){fvpdata.overlay&&a(".fvp_overlay").click(function(){a(this).openDOMWindow({eventType:null,windowPadding:0,borderSize:0,windowBGColor:"transparent",overlayOpacity:fvpdata.opacity});a("#DOMWindow").css({background:"transparent url('"+fvpdata.loadingw+"') center center no-repeat"});var b=/[\?&\#]fvp_([0-9]+)/.exec(a(this).attr("href"));0===a("#fvp_"+b[1]).html().length?jQuery.post(fvpdata.ajaxurl,{action:"fvp_get_embed",nonce:fvpdata.nonce,id:b[1]},function(c){c.success&&
|
4 |
+
(a("#fvp_"+b[1]).html(c.html),a("#DOMWindow").html(c.html).css({width:"auto",height:"auto",margin:"auto auto",overflow:"hidden"}),a(window).trigger("scroll"),fvpdata.fitvids&&a(".featured_video_plus").fitVids({customSelector:["iframe","object","embed",".video-js"]}))}):(a("#DOMWindow").html(a("#fvp_"+b[1]).html()).css({width:"auto",height:"auto",margin:"auto auto",overflow:"hidden"}),a(window).trigger("scroll"))});"1"==fvpdata.fitvids&&("0"==fvpdata.dynamic&&"0"==fvpdata.overlay)&&a(".featured_video_plus").fitVids({customSelector:["iframe",
|
5 |
+
"object","embed",".video-js"]})});
|
js/jquery.domwindow.js
ADDED
@@ -0,0 +1,369 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function($){
|
2 |
+
|
3 |
+
//closeDOMWindow
|
4 |
+
$.fn.closeDOMWindow = function(settings){
|
5 |
+
|
6 |
+
if(!settings){settings={};}
|
7 |
+
|
8 |
+
var run = function(passingThis){
|
9 |
+
|
10 |
+
if(settings.anchoredClassName){
|
11 |
+
var $anchorClassName = $('.'+settings.anchoredClassName);
|
12 |
+
$anchorClassName.fadeOut('fast',function(){
|
13 |
+
if($.fn.draggable){
|
14 |
+
$anchorClassName.draggable('destory').trigger("unload").remove();
|
15 |
+
}else{
|
16 |
+
$anchorClassName.trigger("unload").remove();
|
17 |
+
}
|
18 |
+
});
|
19 |
+
if(settings.functionCallOnClose){settings.functionCallAfterClose();}
|
20 |
+
}else{
|
21 |
+
var $DOMWindowOverlay = $('#DOMWindowOverlay');
|
22 |
+
var $DOMWindow = $('#DOMWindow');
|
23 |
+
$DOMWindowOverlay.fadeOut('fast',function(){
|
24 |
+
$DOMWindowOverlay.trigger('unload').unbind().remove();
|
25 |
+
});
|
26 |
+
$DOMWindow.fadeOut('fast',function(){
|
27 |
+
if($.fn.draggable){
|
28 |
+
$DOMWindow.draggable("destroy").trigger("unload").remove();
|
29 |
+
}else{
|
30 |
+
$DOMWindow.trigger("unload").remove();
|
31 |
+
}
|
32 |
+
});
|
33 |
+
|
34 |
+
$(window).unbind('scroll.DOMWindow');
|
35 |
+
$(window).unbind('resize.DOMWindow');
|
36 |
+
|
37 |
+
if($.fn.openDOMWindow.isIE6){$('#DOMWindowIE6FixIframe').remove();}
|
38 |
+
if(settings.functionCallOnClose){settings.functionCallAfterClose();}
|
39 |
+
}
|
40 |
+
};
|
41 |
+
|
42 |
+
if(settings.eventType){//if used with $().
|
43 |
+
return this.each(function(index){
|
44 |
+
$(this).bind(settings.eventType, function(){
|
45 |
+
run(this);
|
46 |
+
return false;
|
47 |
+
});
|
48 |
+
});
|
49 |
+
}else{//else called as $.function
|
50 |
+
run();
|
51 |
+
}
|
52 |
+
|
53 |
+
};
|
54 |
+
|
55 |
+
//allow for public call, pass settings
|
56 |
+
$.closeDOMWindow = function(s){$.fn.closeDOMWindow(s);};
|
57 |
+
|
58 |
+
//openDOMWindow
|
59 |
+
$.fn.openDOMWindow = function(instanceSettings){
|
60 |
+
|
61 |
+
var shortcut = $.fn.openDOMWindow;
|
62 |
+
|
63 |
+
//default settings combined with callerSettings////////////////////////////////////////////////////////////////////////
|
64 |
+
|
65 |
+
shortcut.defaultsSettings = {
|
66 |
+
anchoredClassName:'',
|
67 |
+
anchoredSelector:'',
|
68 |
+
borderColor:'#ccc',
|
69 |
+
borderSize:'4',
|
70 |
+
draggable:0,
|
71 |
+
eventType:null, //click, blur, change, dblclick, error, focus, load, mousedown, mouseout, mouseup etc...
|
72 |
+
fixedWindowY:100,
|
73 |
+
functionCallOnOpen:null,
|
74 |
+
functionCallOnClose:null,
|
75 |
+
height:500,
|
76 |
+
loader:0,
|
77 |
+
loaderHeight:0,
|
78 |
+
loaderImagePath:'',
|
79 |
+
loaderWidth:0,
|
80 |
+
modal:0,
|
81 |
+
overlay:1,
|
82 |
+
overlayColor:'#000',
|
83 |
+
overlayOpacity:'85',
|
84 |
+
positionLeft:0,
|
85 |
+
positionTop:0,
|
86 |
+
positionType:'centered', // centered, anchored, absolute, fixed
|
87 |
+
width:500,
|
88 |
+
windowBGColor:'#fff',
|
89 |
+
windowBGImage:null, // http path
|
90 |
+
windowHTTPType:'get',
|
91 |
+
windowPadding:10,
|
92 |
+
windowSource:'inline', //inline, ajax, iframe
|
93 |
+
windowSourceID:'',
|
94 |
+
windowSourceURL:'',
|
95 |
+
windowSourceAttrURL:'href'
|
96 |
+
};
|
97 |
+
|
98 |
+
var settings = $.extend({}, $.fn.openDOMWindow.defaultsSettings , instanceSettings || {});
|
99 |
+
|
100 |
+
//Public functions
|
101 |
+
|
102 |
+
shortcut.viewPortHeight = function(){ return self.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;};
|
103 |
+
shortcut.viewPortWidth = function(){ return self.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;};
|
104 |
+
shortcut.scrollOffsetHeight = function(){ return self.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;};
|
105 |
+
shortcut.scrollOffsetWidth = function(){ return self.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft;};
|
106 |
+
shortcut.isIE6 = typeof document.body.style.maxHeight === "undefined";
|
107 |
+
|
108 |
+
//Private Functions/////////////////////////////////////////////////////////////////////////////////////////////////////////
|
109 |
+
|
110 |
+
var sizeOverlay = function(){
|
111 |
+
var $DOMWindowOverlay = $('#DOMWindowOverlay');
|
112 |
+
if(shortcut.isIE6){//if IE 6
|
113 |
+
var overlayViewportHeight = document.documentElement.offsetHeight + document.documentElement.scrollTop - 4;
|
114 |
+
var overlayViewportWidth = document.documentElement.offsetWidth - 21;
|
115 |
+
$DOMWindowOverlay.css({'height':overlayViewportHeight +'px','width':overlayViewportWidth+'px'});
|
116 |
+
}else{//else Firefox, safari, opera, IE 7+
|
117 |
+
$DOMWindowOverlay.css({'height':'100%','width':'100%','position':'fixed'});
|
118 |
+
}
|
119 |
+
};
|
120 |
+
|
121 |
+
var sizeIE6Iframe = function(){
|
122 |
+
var overlayViewportHeight = document.documentElement.offsetHeight + document.documentElement.scrollTop - 4;
|
123 |
+
var overlayViewportWidth = document.documentElement.offsetWidth - 21;
|
124 |
+
$('#DOMWindowIE6FixIframe').css({'height':overlayViewportHeight +'px','width':overlayViewportWidth+'px'});
|
125 |
+
};
|
126 |
+
|
127 |
+
var centerDOMWindow = function() {
|
128 |
+
var $DOMWindow = $('#DOMWindow');
|
129 |
+
if(settings.height + 50 > shortcut.viewPortHeight()){//added 50 to be safe
|
130 |
+
$DOMWindow.css('left',Math.round(shortcut.viewPortWidth()/2) + shortcut.scrollOffsetWidth() - Math.round(($DOMWindow.outerWidth())/2));
|
131 |
+
}else{
|
132 |
+
$DOMWindow.css('left',Math.round(shortcut.viewPortWidth()/2) + shortcut.scrollOffsetWidth() - Math.round(($DOMWindow.outerWidth())/2));
|
133 |
+
$DOMWindow.css('top',Math.round(shortcut.viewPortHeight()/2) + shortcut.scrollOffsetHeight() - Math.round(($DOMWindow.outerHeight())/2));
|
134 |
+
}
|
135 |
+
};
|
136 |
+
|
137 |
+
var centerLoader = function() {
|
138 |
+
var $DOMWindowLoader = $('#DOMWindowLoader');
|
139 |
+
if(shortcut.isIE6){//if IE 6
|
140 |
+
$DOMWindowLoader.css({'left':Math.round(shortcut.viewPortWidth()/2) + shortcut.scrollOffsetWidth() - Math.round(($DOMWindowLoader.innerWidth())/2),'position':'absolute'});
|
141 |
+
$DOMWindowLoader.css({'top':Math.round(shortcut.viewPortHeight()/2) + shortcut.scrollOffsetHeight() - Math.round(($DOMWindowLoader.innerHeight())/2),'position':'absolute'});
|
142 |
+
}else{
|
143 |
+
$DOMWindowLoader.css({'left':'50%','top':'50%','position':'fixed'});
|
144 |
+
}
|
145 |
+
|
146 |
+
};
|
147 |
+
|
148 |
+
var fixedDOMWindow = function(){
|
149 |
+
var $DOMWindow = $('#DOMWindow');
|
150 |
+
$DOMWindow.css('left', settings.positionLeft + shortcut.scrollOffsetWidth());
|
151 |
+
$DOMWindow.css('top', + settings.positionTop + shortcut.scrollOffsetHeight());
|
152 |
+
};
|
153 |
+
|
154 |
+
var showDOMWindow = function(instance){
|
155 |
+
if(arguments[0]){
|
156 |
+
$('.'+instance+' #DOMWindowLoader').remove();
|
157 |
+
$('.'+instance+' #DOMWindowContent').fadeIn('fast',function(){if(settings.functionCallOnOpen){settings.functionCallOnOpen();}});
|
158 |
+
$('.'+instance+ '.closeDOMWindow').click(function(){
|
159 |
+
$.closeDOMWindow();
|
160 |
+
return false;
|
161 |
+
});
|
162 |
+
}else{
|
163 |
+
$('#DOMWindowLoader').remove();
|
164 |
+
$('#DOMWindow').fadeIn('fast',function(){if(settings.functionCallOnOpen){settings.functionCallOnOpen();}});
|
165 |
+
$('#DOMWindow .closeDOMWindow').click(function(){
|
166 |
+
$.closeDOMWindow();
|
167 |
+
return false;
|
168 |
+
});
|
169 |
+
}
|
170 |
+
|
171 |
+
};
|
172 |
+
|
173 |
+
var urlQueryToObject = function(s){
|
174 |
+
var query = {};
|
175 |
+
s.replace(/b([^&=]*)=([^&=]*)b/g, function (m, a, d) {
|
176 |
+
if (typeof query[a] != 'undefined') {
|
177 |
+
query[a] += ',' + d;
|
178 |
+
} else {
|
179 |
+
query[a] = d;
|
180 |
+
}
|
181 |
+
});
|
182 |
+
return query;
|
183 |
+
};
|
184 |
+
|
185 |
+
//Run Routine ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
186 |
+
var run = function(passingThis){
|
187 |
+
|
188 |
+
//get values from element clicked, or assume its passed as an option
|
189 |
+
settings.windowSourceID = $(passingThis).attr('href') || settings.windowSourceID;
|
190 |
+
settings.windowSourceURL = $(passingThis).attr(settings.windowSourceAttrURL) || settings.windowSourceURL;
|
191 |
+
settings.windowBGImage = settings.windowBGImage ? 'background-image:url('+settings.windowBGImage+')' : '';
|
192 |
+
var urlOnly, urlQueryObject;
|
193 |
+
|
194 |
+
if(settings.positionType == 'anchored'){//anchored DOM window
|
195 |
+
|
196 |
+
var anchoredPositions = $(settings.anchoredSelector).position();
|
197 |
+
var anchoredPositionX = anchoredPositions.left + settings.positionLeft;
|
198 |
+
var anchoredPositionY = anchoredPositions.top + settings.positionTop;
|
199 |
+
|
200 |
+
$('body').append('<div class="'+settings.anchoredClassName+'" style="'+settings.windowBGImage+';background-repeat:no-repeat;padding:'+settings.windowPadding+'px;overflow:auto;position:absolute;top:'+anchoredPositionY+'px;left:'+anchoredPositionX+'px;height:'+settings.height+'px;width:'+settings.width+'px;background-color:'+settings.windowBGColor+';border:'+settings.borderSize+'px solid '+settings.borderColor+';z-index:10001"><div id="DOMWindowContent" style="display:none"></div></div>');
|
201 |
+
//loader
|
202 |
+
if(settings.loader && settings.loaderImagePath !== ''){
|
203 |
+
$('.'+settings.anchoredClassName).append('<div id="DOMWindowLoader" style="width:'+settings.loaderWidth+'px;height:'+settings.loaderHeight+'px;"><img src="'+settings.loaderImagePath+'" /></div>');
|
204 |
+
|
205 |
+
}
|
206 |
+
|
207 |
+
if($.fn.draggable){
|
208 |
+
if(settings.draggable){$('.' + settings.anchoredClassName).draggable({cursor:'move'});}
|
209 |
+
}
|
210 |
+
|
211 |
+
switch(settings.windowSource){
|
212 |
+
case 'inline'://////////////////////////////// inline //////////////////////////////////////////
|
213 |
+
$('.' + settings.anchoredClassName+" #DOMWindowContent").append($(settings.windowSourceID).children());
|
214 |
+
$('.' + settings.anchoredClassName).unload(function(){// move elements back when you're finished
|
215 |
+
$('.' + settings.windowSourceID).append( $('.' + settings.anchoredClassName+" #DOMWindowContent").children());
|
216 |
+
});
|
217 |
+
showDOMWindow(settings.anchoredClassName);
|
218 |
+
break;
|
219 |
+
case 'iframe'://////////////////////////////// iframe //////////////////////////////////////////
|
220 |
+
$('.' + settings.anchoredClassName+" #DOMWindowContent").append('<iframe frameborder="0" hspace="0" wspace="0" src="'+settings.windowSourceURL+'" name="DOMWindowIframe'+Math.round(Math.random()*1000)+'" style="width:100%;height:100%;border:none;background-color:#fff;" class="'+settings.anchoredClassName+'Iframe" ></iframe>');
|
221 |
+
$('.'+settings.anchoredClassName+'Iframe').load(showDOMWindow(settings.anchoredClassName));
|
222 |
+
break;
|
223 |
+
case 'ajax'://////////////////////////////// ajax //////////////////////////////////////////
|
224 |
+
if(settings.windowHTTPType == 'post'){
|
225 |
+
|
226 |
+
if(settings.windowSourceURL.indexOf("?") !== -1){//has a query string
|
227 |
+
urlOnly = settings.windowSourceURL.substr(0, settings.windowSourceURL.indexOf("?"));
|
228 |
+
urlQueryObject = urlQueryToObject(settings.windowSourceURL);
|
229 |
+
}else{
|
230 |
+
urlOnly = settings.windowSourceURL;
|
231 |
+
urlQueryObject = {};
|
232 |
+
}
|
233 |
+
$('.' + settings.anchoredClassName+" #DOMWindowContent").load(urlOnly,urlQueryObject,function(){
|
234 |
+
showDOMWindow(settings.anchoredClassName);
|
235 |
+
});
|
236 |
+
}else{
|
237 |
+
if(settings.windowSourceURL.indexOf("?") == -1){ //no query string, so add one
|
238 |
+
settings.windowSourceURL += '?';
|
239 |
+
}
|
240 |
+
$('.' + settings.anchoredClassName+" #DOMWindowContent").load(
|
241 |
+
settings.windowSourceURL + '&random=' + (new Date().getTime()),function(){
|
242 |
+
showDOMWindow(settings.anchoredClassName);
|
243 |
+
});
|
244 |
+
}
|
245 |
+
break;
|
246 |
+
}
|
247 |
+
|
248 |
+
}else{//centered, fixed, absolute DOM window
|
249 |
+
|
250 |
+
//overlay & modal
|
251 |
+
if(settings.overlay){
|
252 |
+
$('body').append('<div id="DOMWindowOverlay" style="z-index:10000;display:none;position:absolute;top:0;left:0;background-color:'+settings.overlayColor+';filter:alpha(opacity='+settings.overlayOpacity+');-moz-opacity: 0.'+settings.overlayOpacity+';opacity: 0.'+settings.overlayOpacity+';"></div>');
|
253 |
+
if(shortcut.isIE6){//if IE 6
|
254 |
+
$('body').append('<iframe id="DOMWindowIE6FixIframe" src="blank.html" style="width:100%;height:100%;z-index:9999;position:absolute;top:0;left:0;filter:alpha(opacity=0);"></iframe>');
|
255 |
+
sizeIE6Iframe();
|
256 |
+
}
|
257 |
+
sizeOverlay();
|
258 |
+
var $DOMWindowOverlay = $('#DOMWindowOverlay');
|
259 |
+
$DOMWindowOverlay.fadeIn('fast');
|
260 |
+
if(!settings.modal){$DOMWindowOverlay.click(function(){$.closeDOMWindow();});}
|
261 |
+
}
|
262 |
+
|
263 |
+
//loader
|
264 |
+
if(settings.loader && settings.loaderImagePath !== ''){
|
265 |
+
$('body').append('<div id="DOMWindowLoader" style="z-index:10002;width:'+settings.loaderWidth+'px;height:'+settings.loaderHeight+'px;"><img src="'+settings.loaderImagePath+'" /></div>');
|
266 |
+
centerLoader();
|
267 |
+
}
|
268 |
+
|
269 |
+
//add DOMwindow
|
270 |
+
$('body').append('<div id="DOMWindow" style="background-repeat:no-repeat;'+settings.windowBGImage+';overflow:auto;padding:'+settings.windowPadding+'px;display:none;height:'+settings.height+'px;width:'+settings.width+'px;background-color:'+settings.windowBGColor+';border:'+settings.borderSize+'px solid '+settings.borderColor+'; position:absolute;z-index:10001"></div>');
|
271 |
+
|
272 |
+
var $DOMWindow = $('#DOMWindow');
|
273 |
+
//centered, absolute, or fixed
|
274 |
+
switch(settings.positionType){
|
275 |
+
case 'centered':
|
276 |
+
centerDOMWindow();
|
277 |
+
if(settings.height + 50 > shortcut.viewPortHeight()){//added 50 to be safe
|
278 |
+
$DOMWindow.css('top', (settings.fixedWindowY + shortcut.scrollOffsetHeight()) + 'px');
|
279 |
+
}
|
280 |
+
break;
|
281 |
+
case 'absolute':
|
282 |
+
$DOMWindow.css({'top':(settings.positionTop+shortcut.scrollOffsetHeight())+'px','left':(settings.positionLeft+shortcut.scrollOffsetWidth())+'px'});
|
283 |
+
if($.fn.draggable){
|
284 |
+
if(settings.draggable){$DOMWindow.draggable({cursor:'move'});}
|
285 |
+
}
|
286 |
+
break;
|
287 |
+
case 'fixed':
|
288 |
+
fixedDOMWindow();
|
289 |
+
break;
|
290 |
+
case 'anchoredSingleWindow':
|
291 |
+
var anchoredPositions = $(settings.anchoredSelector).position();
|
292 |
+
var anchoredPositionX = anchoredPositions.left + settings.positionLeft;
|
293 |
+
var anchoredPositionY = anchoredPositions.top + settings.positionTop;
|
294 |
+
$DOMWindow.css({'top':anchoredPositionY + 'px','left':anchoredPositionX+'px'});
|
295 |
+
|
296 |
+
break;
|
297 |
+
}
|
298 |
+
|
299 |
+
$(window).bind('scroll.DOMWindow',function(){
|
300 |
+
if(settings.overlay){sizeOverlay();}
|
301 |
+
if(shortcut.isIE6){sizeIE6Iframe();}
|
302 |
+
if(settings.positionType == 'centered'){centerDOMWindow();}
|
303 |
+
if(settings.positionType == 'fixed'){fixedDOMWindow();}
|
304 |
+
});
|
305 |
+
|
306 |
+
$(window).bind('resize.DOMWindow',function(){
|
307 |
+
if(shortcut.isIE6){sizeIE6Iframe();}
|
308 |
+
if(settings.overlay){sizeOverlay();}
|
309 |
+
if(settings.positionType == 'centered'){centerDOMWindow();}
|
310 |
+
});
|
311 |
+
|
312 |
+
switch(settings.windowSource){
|
313 |
+
case 'inline'://////////////////////////////// inline //////////////////////////////////////////
|
314 |
+
$DOMWindow.append($(settings.windowSourceID).children());
|
315 |
+
$DOMWindow.unload(function(){// move elements back when you're finished
|
316 |
+
$(settings.windowSourceID).append($DOMWindow.children());
|
317 |
+
});
|
318 |
+
showDOMWindow();
|
319 |
+
break;
|
320 |
+
case 'iframe'://////////////////////////////// iframe //////////////////////////////////////////
|
321 |
+
$DOMWindow.append('<iframe frameborder="0" hspace="0" wspace="0" src="'+settings.windowSourceURL+'" name="DOMWindowIframe'+Math.round(Math.random()*1000)+'" style="width:100%;height:100%;border:none;background-color:#fff;" id="DOMWindowIframe" ></iframe>');
|
322 |
+
$('#DOMWindowIframe').load(showDOMWindow());
|
323 |
+
break;
|
324 |
+
case 'ajax'://////////////////////////////// ajax //////////////////////////////////////////
|
325 |
+
if(settings.windowHTTPType == 'post'){
|
326 |
+
|
327 |
+
if(settings.windowSourceURL.indexOf("?") !== -1){//has a query string
|
328 |
+
urlOnly = settings.windowSourceURL.substr(0, settings.windowSourceURL.indexOf("?"));
|
329 |
+
urlQueryObject = urlQueryToObject(settings.windowSourceURL);
|
330 |
+
}else{
|
331 |
+
urlOnly = settings.windowSourceURL;
|
332 |
+
urlQueryObject = {};
|
333 |
+
}
|
334 |
+
$DOMWindow.load(urlOnly,urlQueryObject,function(){
|
335 |
+
showDOMWindow();
|
336 |
+
});
|
337 |
+
}else{
|
338 |
+
if(settings.windowSourceURL.indexOf("?") == -1){ //no query string, so add one
|
339 |
+
settings.windowSourceURL += '?';
|
340 |
+
}
|
341 |
+
$DOMWindow.load(
|
342 |
+
settings.windowSourceURL + '&random=' + (new Date().getTime()),function(){
|
343 |
+
showDOMWindow();
|
344 |
+
});
|
345 |
+
}
|
346 |
+
break;
|
347 |
+
}
|
348 |
+
|
349 |
+
}//end if anchored, or absolute, fixed, centered
|
350 |
+
|
351 |
+
};//end run()
|
352 |
+
|
353 |
+
if(settings.eventType){//if used with $().
|
354 |
+
return this.each(function(index){
|
355 |
+
$(this).bind(settings.eventType,function(){
|
356 |
+
run(this);
|
357 |
+
return false;
|
358 |
+
});
|
359 |
+
});
|
360 |
+
}else{//else called as $.function
|
361 |
+
run();
|
362 |
+
}
|
363 |
+
|
364 |
+
};//end function openDOMWindow
|
365 |
+
|
366 |
+
//allow for public call, pass settings
|
367 |
+
$.openDOMWindow = function(s){$.fn.openDOMWindow(s);};
|
368 |
+
|
369 |
+
})(jQuery);
|
js/jquery.domwindow.min.js
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function(b){b.fn.closeDOMWindow=function(e){e||(e={});var c=function(){if(e.anchoredClassName){var a=b("."+e.anchoredClassName);a.fadeOut("fast",function(){b.fn.draggable?a.draggable("destory").trigger("unload").remove():a.trigger("unload").remove()})}else{var c=b("#DOMWindowOverlay"),h=b("#DOMWindow");c.fadeOut("fast",function(){c.trigger("unload").unbind().remove()});h.fadeOut("fast",function(){b.fn.draggable?h.draggable("destroy").trigger("unload").remove():h.trigger("unload").remove()});b(window).unbind("scroll.DOMWindow");
|
2 |
+
b(window).unbind("resize.DOMWindow");b.fn.openDOMWindow.isIE6&&b("#DOMWindowIE6FixIframe").remove()}e.functionCallOnClose&&e.functionCallAfterClose()};if(e.eventType)return this.each(function(){b(this).bind(e.eventType,function(){c(this);return!1})});c()};b.closeDOMWindow=function(e){b.fn.closeDOMWindow(e)};b.fn.openDOMWindow=function(e){var c=b.fn.openDOMWindow;c.defaultsSettings={anchoredClassName:"",anchoredSelector:"",borderColor:"#ccc",borderSize:"4",draggable:0,eventType:null,fixedWindowY:100,
|
3 |
+
functionCallOnOpen:null,functionCallOnClose:null,height:500,loader:0,loaderHeight:0,loaderImagePath:"",loaderWidth:0,modal:0,overlay:1,overlayColor:"#000",overlayOpacity:"85",positionLeft:0,positionTop:0,positionType:"centered",width:500,windowBGColor:"#fff",windowBGImage:null,windowHTTPType:"get",windowPadding:10,windowSource:"inline",windowSourceID:"",windowSourceURL:"",windowSourceAttrURL:"href"};var a=b.extend({},b.fn.openDOMWindow.defaultsSettings,e||{});c.viewPortHeight=function(){return self.innerHeight||
|
4 |
+
document.documentElement.clientHeight||document.body.clientHeight};c.viewPortWidth=function(){return self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth};c.scrollOffsetHeight=function(){return self.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop};c.scrollOffsetWidth=function(){return self.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft};c.isIE6="undefined"===typeof document.body.style.maxHeight;var j=function(){var a=
|
5 |
+
b("#DOMWindowOverlay");c.isIE6?a.css({height:document.documentElement.offsetHeight+document.documentElement.scrollTop-4+"px",width:document.documentElement.offsetWidth-21+"px"}):a.css({height:"100%",width:"100%",position:"fixed"})},h=function(){var a=document.documentElement.offsetHeight+document.documentElement.scrollTop-4,c=document.documentElement.offsetWidth-21;b("#DOMWindowIE6FixIframe").css({height:a+"px",width:c+"px"})},k=function(){var d=b("#DOMWindow");a.height+50>c.viewPortHeight()?d.css("left",
|
6 |
+
Math.round(c.viewPortWidth()/2)+c.scrollOffsetWidth()-Math.round(d.outerWidth()/2)):(d.css("left",Math.round(c.viewPortWidth()/2)+c.scrollOffsetWidth()-Math.round(d.outerWidth()/2)),d.css("top",Math.round(c.viewPortHeight()/2)+c.scrollOffsetHeight()-Math.round(d.outerHeight()/2)))},l=function(){var d=b("#DOMWindow");d.css("left",a.positionLeft+c.scrollOffsetWidth());d.css("top",+a.positionTop+c.scrollOffsetHeight())},g=function(d){d?(b("."+d+" #DOMWindowLoader").remove(),b("."+d+" #DOMWindowContent").fadeIn("fast",
|
7 |
+
function(){a.functionCallOnOpen&&a.functionCallOnOpen()}),b("."+d+".closeDOMWindow").click(function(){b.closeDOMWindow();return!1})):(b("#DOMWindowLoader").remove(),b("#DOMWindow").fadeIn("fast",function(){a.functionCallOnOpen&&a.functionCallOnOpen()}),b("#DOMWindow .closeDOMWindow").click(function(){b.closeDOMWindow();return!1}))},m=function(a){var b={};a.replace(/b([^&=]*)=([^&=]*)b/g,function(a,c,d){b[c]="undefined"!=typeof b[c]?b[c]+(","+d):d});return b},n=function(d){a.windowSourceID=b(d).attr("href")||
|
8 |
+
a.windowSourceID;a.windowSourceURL=b(d).attr(a.windowSourceAttrURL)||a.windowSourceURL;a.windowBGImage=a.windowBGImage?"background-image:url("+a.windowBGImage+")":"";var f;if("anchored"==a.positionType)switch(f=b(a.anchoredSelector).position(),d=f.left+a.positionLeft,f=f.top+a.positionTop,b("body").append('<div class="'+a.anchoredClassName+'" style="'+a.windowBGImage+";background-repeat:no-repeat;padding:"+a.windowPadding+"px;overflow:auto;position:absolute;top:"+f+"px;left:"+d+"px;height:"+a.height+
|
9 |
+
"px;width:"+a.width+"px;background-color:"+a.windowBGColor+";border:"+a.borderSize+"px solid "+a.borderColor+';z-index:10001"><div id="DOMWindowContent" style="display:none"></div></div>'),a.loader&&""!==a.loaderImagePath&&b("."+a.anchoredClassName).append('<div id="DOMWindowLoader" style="width:'+a.loaderWidth+"px;height:"+a.loaderHeight+'px;"><img src="'+a.loaderImagePath+'" /></div>'),b.fn.draggable&&a.draggable&&b("."+a.anchoredClassName).draggable({cursor:"move"}),a.windowSource){case "inline":b("."+
|
10 |
+
a.anchoredClassName+" #DOMWindowContent").append(b(a.windowSourceID).children());b("."+a.anchoredClassName).unload(function(){b("."+a.windowSourceID).append(b("."+a.anchoredClassName+" #DOMWindowContent").children())});g(a.anchoredClassName);break;case "iframe":b("."+a.anchoredClassName+" #DOMWindowContent").append('<iframe frameborder="0" hspace="0" wspace="0" src="'+a.windowSourceURL+'" name="DOMWindowIframe'+Math.round(1E3*Math.random())+'" style="width:100%;height:100%;border:none;background-color:#fff;" class="'+
|
11 |
+
a.anchoredClassName+'Iframe" ></iframe>');b("."+a.anchoredClassName+"Iframe").load(g(a.anchoredClassName));break;case "ajax":"post"==a.windowHTTPType?(-1!==a.windowSourceURL.indexOf("?")?(d=a.windowSourceURL.substr(0,a.windowSourceURL.indexOf("?")),f=m(a.windowSourceURL)):(d=a.windowSourceURL,f={}),b("."+a.anchoredClassName+" #DOMWindowContent").load(d,f,function(){g(a.anchoredClassName)})):(-1==a.windowSourceURL.indexOf("?")&&(a.windowSourceURL+="?"),b("."+a.anchoredClassName+" #DOMWindowContent").load(a.windowSourceURL+
|
12 |
+
"&random="+(new Date).getTime(),function(){g(a.anchoredClassName)}))}else{a.overlay&&(b("body").append('<div id="DOMWindowOverlay" style="z-index:10000;display:none;position:absolute;top:0;left:0;background-color:'+a.overlayColor+";filter:alpha(opacity="+a.overlayOpacity+");-moz-opacity: 0."+a.overlayOpacity+";opacity: 0."+a.overlayOpacity+';"></div>'),c.isIE6&&(b("body").append('<iframe id="DOMWindowIE6FixIframe" src="blank.html" style="width:100%;height:100%;z-index:9999;position:absolute;top:0;left:0;filter:alpha(opacity=0);"></iframe>'),
|
13 |
+
h()),j(),d=b("#DOMWindowOverlay"),d.fadeIn("fast"),a.modal||d.click(function(){b.closeDOMWindow()}));a.loader&&""!==a.loaderImagePath&&(b("body").append('<div id="DOMWindowLoader" style="z-index:10002;width:'+a.loaderWidth+"px;height:"+a.loaderHeight+'px;"><img src="'+a.loaderImagePath+'" /></div>'),d=b("#DOMWindowLoader"),c.isIE6?(d.css({left:Math.round(c.viewPortWidth()/2)+c.scrollOffsetWidth()-Math.round(d.innerWidth()/2),position:"absolute"}),d.css({top:Math.round(c.viewPortHeight()/2)+c.scrollOffsetHeight()-
|
14 |
+
Math.round(d.innerHeight()/2),position:"absolute"})):d.css({left:"50%",top:"50%",position:"fixed"}));b("body").append('<div id="DOMWindow" style="background-repeat:no-repeat;'+a.windowBGImage+";overflow:auto;padding:"+a.windowPadding+"px;display:none;height:"+a.height+"px;width:"+a.width+"px;background-color:"+a.windowBGColor+";border:"+a.borderSize+"px solid "+a.borderColor+'; position:absolute;z-index:10001"></div>');var e=b("#DOMWindow");switch(a.positionType){case "centered":k();a.height+50>c.viewPortHeight()&&
|
15 |
+
e.css("top",a.fixedWindowY+c.scrollOffsetHeight()+"px");break;case "absolute":e.css({top:a.positionTop+c.scrollOffsetHeight()+"px",left:a.positionLeft+c.scrollOffsetWidth()+"px"});b.fn.draggable&&a.draggable&&e.draggable({cursor:"move"});break;case "fixed":l();break;case "anchoredSingleWindow":f=b(a.anchoredSelector).position(),d=f.left+a.positionLeft,f=f.top+a.positionTop,e.css({top:f+"px",left:d+"px"})}b(window).bind("scroll.DOMWindow",function(){a.overlay&&j();c.isIE6&&h();"centered"==a.positionType&&
|
16 |
+
k();"fixed"==a.positionType&&l()});b(window).bind("resize.DOMWindow",function(){c.isIE6&&h();a.overlay&&j();"centered"==a.positionType&&k()});switch(a.windowSource){case "inline":e.append(b(a.windowSourceID).children());e.unload(function(){b(a.windowSourceID).append(e.children())});g();break;case "iframe":e.append('<iframe frameborder="0" hspace="0" wspace="0" src="'+a.windowSourceURL+'" name="DOMWindowIframe'+Math.round(1E3*Math.random())+'" style="width:100%;height:100%;border:none;background-color:#fff;" id="DOMWindowIframe" ></iframe>');
|
17 |
+
b("#DOMWindowIframe").load(g());break;case "ajax":"post"==a.windowHTTPType?(-1!==a.windowSourceURL.indexOf("?")?(d=a.windowSourceURL.substr(0,a.windowSourceURL.indexOf("?")),f=m(a.windowSourceURL)):(d=a.windowSourceURL,f={}),e.load(d,f,function(){g()})):(-1==a.windowSourceURL.indexOf("?")&&(a.windowSourceURL+="?"),e.load(a.windowSourceURL+"&random="+(new Date).getTime(),function(){g()}))}}};if(a.eventType)return this.each(function(){b(this).bind(a.eventType,function(){n(this);return!1})});n()};b.openDOMWindow=
|
18 |
+
function(e){b.fn.openDOMWindow(e)}})(jQuery);
|
js/{jquery.fitvids_fvp.js → jquery.fitvids.js}
RENAMED
@@ -19,29 +19,35 @@
|
|
19 |
customSelector: null
|
20 |
};
|
21 |
|
22 |
-
|
23 |
-
ref = document.getElementsByTagName('base')[0] || document.getElementsByTagName('script')[0];
|
24 |
|
25 |
-
|
26 |
-
|
27 |
-
.fluid-width-video-wrapper { \
|
28 |
-
width: 100%; \
|
29 |
-
position: relative; \
|
30 |
-
padding: 0; \
|
31 |
-
} \
|
32 |
-
\
|
33 |
-
.fluid-width-video-wrapper iframe, \
|
34 |
-
.fluid-width-video-wrapper object, \
|
35 |
-
.fluid-width-video-wrapper embed { \
|
36 |
-
position: absolute; \
|
37 |
-
top: 0; \
|
38 |
-
left: 0; \
|
39 |
-
width: 100%; \
|
40 |
-
height: 100%; \
|
41 |
-
} \
|
42 |
-
</style>';
|
43 |
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
if ( options ) {
|
47 |
$.extend( settings, options );
|
@@ -52,13 +58,9 @@
|
|
52 |
"iframe[src*='player.vimeo.com']",
|
53 |
"iframe[src*='youtube.com']",
|
54 |
"iframe[src*='youtube-nocookie.com']",
|
55 |
-
"iframe[src*='kickstarter.com']",
|
56 |
-
"iframe[src*='liveleak.com']",
|
57 |
-
"iframe[src*='prochan.com']",
|
58 |
-
"iframe[src*='dailymotion.com']",
|
59 |
"object",
|
60 |
-
"embed"
|
61 |
-
".video-js"
|
62 |
];
|
63 |
|
64 |
if (settings.customSelector) {
|
@@ -66,6 +68,7 @@
|
|
66 |
}
|
67 |
|
68 |
var $allVideos = $(this).find(selectors.join(','));
|
|
|
69 |
|
70 |
$allVideos.each(function(){
|
71 |
var $this = $(this);
|
@@ -82,8 +85,4 @@
|
|
82 |
});
|
83 |
});
|
84 |
};
|
85 |
-
})( jQuery );
|
86 |
-
|
87 |
-
jQuery(document).ready(function($){
|
88 |
-
$(".featured_video_plus").fitVids();
|
89 |
-
});
|
19 |
customSelector: null
|
20 |
};
|
21 |
|
22 |
+
if(!document.getElementById('fit-vids-style')) {
|
|
|
23 |
|
24 |
+
var div = document.createElement('div'),
|
25 |
+
ref = document.getElementsByTagName('base')[0] || document.getElementsByTagName('script')[0];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
+
div.className = 'fit-vids-style';
|
28 |
+
div.id = 'fit-vids-style';
|
29 |
+
div.style.display = 'none';
|
30 |
+
div.innerHTML = '­<style> \
|
31 |
+
.fluid-width-video-wrapper { \
|
32 |
+
width: 100%; \
|
33 |
+
position: relative; \
|
34 |
+
padding: 0; \
|
35 |
+
} \
|
36 |
+
\
|
37 |
+
.fluid-width-video-wrapper iframe, \
|
38 |
+
.fluid-width-video-wrapper object, \
|
39 |
+
.fluid-width-video-wrapper embed { \
|
40 |
+
position: absolute; \
|
41 |
+
top: 0; \
|
42 |
+
left: 0; \
|
43 |
+
width: 100%; \
|
44 |
+
height: 100%; \
|
45 |
+
} \
|
46 |
+
</style>';
|
47 |
+
|
48 |
+
ref.parentNode.insertBefore(div,ref);
|
49 |
+
|
50 |
+
}
|
51 |
|
52 |
if ( options ) {
|
53 |
$.extend( settings, options );
|
58 |
"iframe[src*='player.vimeo.com']",
|
59 |
"iframe[src*='youtube.com']",
|
60 |
"iframe[src*='youtube-nocookie.com']",
|
61 |
+
"iframe[src*='kickstarter.com'][src*='video.html']",
|
|
|
|
|
|
|
62 |
"object",
|
63 |
+
"embed"
|
|
|
64 |
];
|
65 |
|
66 |
if (settings.customSelector) {
|
68 |
}
|
69 |
|
70 |
var $allVideos = $(this).find(selectors.join(','));
|
71 |
+
$allVideos = $allVideos.not("object object"); // SwfObj conflict patch
|
72 |
|
73 |
$allVideos.each(function(){
|
74 |
var $this = $(this);
|
85 |
});
|
86 |
});
|
87 |
};
|
88 |
+
})( jQuery );
|
|
|
|
|
|
|
|
js/jquery.fitvids.min.js
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
(function(d){d.fn.fitVids=function(f){var e={customSelector:null};if(!document.getElementById("fit-vids-style")){var c=document.createElement("div"),g=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];c.className="fit-vids-style";c.id="fit-vids-style";c.style.display="none";c.innerHTML="­<style> .fluid-width-video-wrapper { width: 100%; position: relative; padding: 0; } .fluid-width-video-wrapper iframe, .fluid-width-video-wrapper object, .fluid-width-video-wrapper embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } </style>";
|
2 |
+
g.parentNode.insertBefore(c,g)}f&&d.extend(e,f);return this.each(function(){var b="iframe[src*='player.vimeo.com'] iframe[src*='youtube.com'] iframe[src*='youtube-nocookie.com'] iframe[src*='kickstarter.com'][src*='video.html'] object embed".split(" ");e.customSelector&&b.push(e.customSelector);b=d(this).find(b.join(","));b=b.not("object object");b.each(function(){var a=d(this);if(!("embed"===this.tagName.toLowerCase()&&a.parent("object").length||a.parent(".fluid-width-video-wrapper").length)){var b=
|
3 |
+
"object"===this.tagName.toLowerCase()||a.attr("height")&&!isNaN(parseInt(a.attr("height"),10))?parseInt(a.attr("height"),10):a.height(),c=!isNaN(parseInt(a.attr("width"),10))?parseInt(a.attr("width"),10):a.width(),b=b/c;a.attr("id")||(c="fitvid"+Math.floor(999999*Math.random()),a.attr("id",c));a.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*b+"%");a.removeAttr("height").removeAttr("width")}})})}})(jQuery);
|
js/jquery.fitvids_fvp.min.js
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
(function(d){d.fn.fitVids=function(e){var c={customSelector:null},b=document.createElement("div"),f=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];b.className="fit-vids-style";b.innerHTML="­<style> .fluid-width-video-wrapper { width: 100%; position: relative; padding: 0; } .fluid-width-video-wrapper iframe, .fluid-width-video-wrapper object, .fluid-width-video-wrapper embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } </style>";
|
2 |
-
f.parentNode.insertBefore(b,f);e&&d.extend(c,e);return this.each(function(){var b="iframe[src*='player.vimeo.com'] iframe[src*='youtube.com'] iframe[src*='youtube-nocookie.com'] iframe[src*='kickstarter.com'] iframe[src*='liveleak.com'] iframe[src*='prochan.com'] iframe[src*='dailymotion.com'] object embed .video-js".split(" ");c.customSelector&&b.push(c.customSelector);d(this).find(b.join(",")).each(function(){var a=d(this);if(!("embed"===this.tagName.toLowerCase()&&a.parent("object").length||a.parent(".fluid-width-video-wrapper").length)){var b=
|
3 |
-
"object"===this.tagName.toLowerCase()||a.attr("height")&&!isNaN(parseInt(a.attr("height"),10))?parseInt(a.attr("height"),10):a.height(),c=!isNaN(parseInt(a.attr("width"),10))?parseInt(a.attr("width"),10):a.width(),b=b/c;a.attr("id")||(c="fitvid"+Math.floor(999999*Math.random()),a.attr("id",c));a.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*b+"%");a.removeAttr("height").removeAttr("width")}})})}})(jQuery);jQuery(document).ready(function(d){d(".featured_video_plus").fitVids()});
|
|
|
|
|
|
js/{backend_settings.js → settings.js}
RENAMED
@@ -21,10 +21,4 @@ jQuery(document).ready(function($){
|
|
21 |
if( $('#fvp-settings-width-auto:checked').length == 1 )
|
22 |
$('#fvp-settings-align-1').closest('tr').hide();
|
23 |
|
24 |
-
$('#fvp-settings-width-auto').click(function() {
|
25 |
-
if( $('#fvp-settings-width-auto:checked').length == 1 )
|
26 |
-
$('#fvp-settings-align-1').closest('tr').fadeOut('slow');
|
27 |
-
else
|
28 |
-
$('#fvp-settings-align-1').closest('tr').fadeIn( 'slow');
|
29 |
-
});
|
30 |
});
|
21 |
if( $('#fvp-settings-width-auto:checked').length == 1 )
|
22 |
$('#fvp-settings-align-1').closest('tr').hide();
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
});
|
lng/featured-video-plus-de_DE.mo
CHANGED
Binary file
|
lng/featured-video-plus-de_DE.po
CHANGED
@@ -1,631 +1,668 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: featured-video-plus 1.3 de_DE\n"
|
4 |
-
"POT-Creation-Date: 2013-04-
|
5 |
-
"PO-Revision-Date: 2013-04-
|
6 |
-
"Last-Translator: Alexander Höreth <a.hoereth@gmail.com>\n"
|
7 |
-
"Language-Team: a.hoereth <a.hoereth@gmail.com>\n"
|
8 |
-
"Language: de_DE\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.5.4\n"
|
13 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
14 |
-
"X-Poedit-Basepath: ..\n"
|
15 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
-
"X-Poedit-SearchPath-0: php\n"
|
17 |
-
|
18 |
-
#: php/backend.php:32
|
19 |
-
msgid "Video URL"
|
20 |
-
msgstr "Video URL"
|
21 |
-
|
22 |
-
#: php/backend.php:33
|
23 |
-
msgid "Fallback: same video, different format"
|
24 |
-
msgstr "Fallback: gleiche Video, anderes Format"
|
25 |
-
|
26 |
-
#: php/backend.php:92 php/backend.php:
|
27 |
-
#: php/backend.php:
|
28 |
-
msgid "Featured Video"
|
29 |
-
msgstr "Beitragsvideo"
|
30 |
-
|
31 |
-
#: php/backend.php:123
|
32 |
-
msgid "Outdated WordPress Version"
|
33 |
-
msgstr "Veraltete WordPress Version"
|
34 |
-
|
35 |
-
#: php/backend.php:123
|
36 |
-
#, php-format
|
37 |
-
msgid ""
|
38 |
-
"There is WordPress 3.5 out there! The plugin supports older versions way "
|
39 |
-
"back to 3.1 - but %s is defenitly to old!"
|
40 |
-
msgstr ""
|
41 |
-
"Es gibt schon WordPress 3.5! Das Plugin unterstützt alle Versionen ab 3.1 - "
|
42 |
-
"aber %s ist wirklich zu alt!"
|
43 |
-
|
44 |
-
#: php/backend.php:134
|
45 |
-
msgid "Set Featured Video"
|
46 |
-
msgstr "Beitragsvideo festlegen"
|
47 |
-
|
48 |
-
#: php/backend.php:134
|
49 |
-
msgid "Set featured video"
|
50 |
-
msgstr "Beitragsvideo festlegen"
|
51 |
-
|
52 |
-
#: php/backend.php:143
|
53 |
-
msgid "Set Featured Video Fallback"
|
54 |
-
msgstr "Beitragsvideo-Ersatz festlegen"
|
55 |
-
|
56 |
-
#: php/backend.php:143
|
57 |
-
msgid "Set featured video fallback"
|
58 |
-
msgstr "Beitragsvideo Fallback festlegen"
|
59 |
-
|
60 |
-
#: php/backend.php:152 php/backend.php:
|
61 |
-
msgid "Supported Video Formats"
|
62 |
-
msgstr "Unterstützte Videoformate"
|
63 |
-
|
64 |
-
#: php/backend.php:152
|
65 |
-
msgid "or"
|
66 |
-
msgstr "oder"
|
67 |
-
|
68 |
-
#: php/backend.php:152 php/backend.php:
|
69 |
-
msgid "More information"
|
70 |
-
msgstr "Mehr Informationen"
|
71 |
-
|
72 |
-
#: php/backend.php:157
|
73 |
-
msgid "Fallback Video"
|
74 |
-
msgstr "Fallback Video"
|
75 |
-
|
76 |
-
#: php/backend.php:157
|
77 |
-
msgid ""
|
78 |
-
"The two input fields should contain the same video but in distinct formats."
|
79 |
-
msgstr ""
|
80 |
-
"Die zwei Eingabefelder sollen das gleiche Video in unterschiedlichen "
|
81 |
-
"Formaten enthalten."
|
82 |
-
|
83 |
-
#: php/backend.php:164
|
84 |
-
msgid "Hint"
|
85 |
-
msgstr "Hinweis"
|
86 |
-
|
87 |
-
#: php/backend.php:164
|
88 |
-
#, php-format
|
89 |
-
msgid "Take a look into the %sContextual Help%s."
|
90 |
-
msgstr "Wirf einen Blick in die %sHilfe%s."
|
91 |
-
|
92 |
-
#: php/backend.php:170 php/settings.php:
|
93 |
-
msgid "Featured Image"
|
94 |
-
msgstr ""
|
95 |
-
|
96 |
-
#: php/backend.php:170
|
97 |
-
msgid ""
|
98 |
-
"For automatically displaying the Featured Video a Featured Image is required."
|
99 |
-
msgstr ""
|
100 |
-
"Um das Artikelvideo automatisch im Theme anzeigen zu können, muss ein "
|
101 |
-
"Artikelbild festgelegt werden."
|
102 |
-
|
103 |
-
#: php/backend.php:175
|
104 |
-
msgid "Set as Featured Image"
|
105 |
-
msgstr "Als Beitragsbild festlegen"
|
106 |
-
|
107 |
-
#: php/backend.php:179
|
108 |
-
msgid "The current theme does not support Featured Images"
|
109 |
-
msgstr "Das aktuelle Theme nutzt keine Beitragsbilder."
|
110 |
-
|
111 |
-
#: php/backend.php:179
|
112 |
-
#, php-format
|
113 |
-
msgid ""
|
114 |
-
"To display Featured Videos you need to use the <code>Shortcode</code> or "
|
115 |
-
"<code>PHP functions</code>. To hide this notice deactivate "<em>Replace "
|
116 |
-
"Featured Images</em>" in the %sMedia Settings%s."
|
117 |
-
msgstr ""
|
118 |
-
"Damit Beitragsvideos in deinem Theme angezeigt werden, musst du den "
|
119 |
-
"<code>Shortcode</code> oder die <code>PHP-Funktionen</code> verwenden. Um "
|
120 |
-
"diese Warnung zu verstecken, deaktiviere "<em>Artikelbilder ersetzen</"
|
121 |
-
"em>" in deinen %sMedien Einstellungen%s."
|
122 |
-
|
123 |
-
#: php/backend.php:
|
124 |
-
#, php-format
|
125 |
-
msgid ""
|
126 |
-
"To use local videos, copy the <code>Link To Media File</code> from your "
|
127 |
-
"%sMedia Library%s and paste it into the text field."
|
128 |
-
msgstr ""
|
129 |
-
"Um lokale Videos zu nutzen, kopiere den <code>Link zur Medien-Datei</code> "
|
130 |
-
"aus deiner %sMediathek%s und füge ihn in das Textfeld ein."
|
131 |
-
|
132 |
-
#: php/backend.php:
|
133 |
-
#, php-format
|
134 |
-
msgid ""
|
135 |
-
"To use local videos, copy the <code>File URL</code> from your %sMedia Library"
|
136 |
-
"%s and paste it into the text field."
|
137 |
-
msgstr ""
|
138 |
-
"Um lokale Videos zu nutzen, kopiere die <code>Datei-URL</code> aus deiner "
|
139 |
-
"%sMediathek%s und füge sie in das Textfeld ein."
|
140 |
-
|
141 |
-
#: php/backend.php:
|
142 |
-
msgid ""
|
143 |
-
"The second text field is intended to hold the URL to the same video in a "
|
144 |
-
"different format. It will be used as fallback if the primary file can not be "
|
145 |
-
"played."
|
146 |
-
msgstr ""
|
147 |
-
"Das zweite Textfeld ist für eine URL zu dem gleichen Video in einem anderen "
|
148 |
-
"Videoformat gedacht. Dieses zweite Video wird dann als Fallback benutzt, "
|
149 |
-
"falls das erste Video nicht kompatibel ist."
|
150 |
-
|
151 |
-
#: php/backend.php:
|
152 |
-
msgid "Converting your videos"
|
153 |
-
msgstr "Videos konvertieren"
|
154 |
-
|
155 |
-
#: php/backend.php:
|
156 |
-
#, php-format
|
157 |
-
msgid ""
|
158 |
-
"Take a look at the %sMiro Video Converter%s. It is open source, lightweight "
|
159 |
-
"and compatible with Windows, Mac and Linux."
|
160 |
-
msgstr ""
|
161 |
-
"Schau dir den %sMiro Video Converter%s an. Er is Open Source, klein, einfach "
|
162 |
-
"zu verwenden und mit Windows, Mac und Linux kompatibel."
|
163 |
-
|
164 |
-
#: php/backend.php:
|
165 |
-
msgid "Fixing upload errors"
|
166 |
-
msgstr "Videoupload Fehler beheben"
|
167 |
-
|
168 |
-
#: php/backend.php:
|
169 |
-
#, php-format
|
170 |
-
msgid ""
|
171 |
-
"Read %sthis%s on how to increase the <strong>maximum file upload size</"
|
172 |
-
"strong>."
|
173 |
-
msgstr ""
|
174 |
-
"Lies %sdas hier%s, um zu erfahren, wie man das <strong>Dateigrößenlimit</"
|
175 |
-
"strong> erhöht."
|
176 |
-
|
177 |
-
#: php/backend.php:
|
178 |
-
#, php-format
|
179 |
-
msgid ""
|
180 |
-
"WordPress by default does not support <code>webM</code>. The plugin "
|
181 |
-
"activates it, but under some conditions this might not be enough. %sHere%s "
|
182 |
-
"you can get more information on this."
|
183 |
-
msgstr ""
|
184 |
-
"Normalerweise unterstützt WordPress kein <code>webM</code>. Das Plugin "
|
185 |
-
"aktiviert die unterstützung, aber manchmal reicht das noch nicht. %sHier%s "
|
186 |
-
"gibt es mehr Informationen."
|
187 |
-
|
188 |
-
#: php/backend.php:
|
189 |
-
msgid "Flash Fallback"
|
190 |
-
msgstr "Flash Fallback"
|
191 |
-
|
192 |
-
#: php/backend.php:
|
193 |
-
#, php-format
|
194 |
-
msgid ""
|
195 |
-
"The video player, %sVIDEOJS%s, features an Adobe Flash fallback. All you "
|
196 |
-
"need to do is provide an <code>mp4</code>-video."
|
197 |
-
msgstr ""
|
198 |
-
"Der Video Player, %sVIDEOJS%s, bietet einen Adobe Flash Fallback. Du musst "
|
199 |
-
"einfach nur ein <code>mp4</code>-Video einbinden."
|
200 |
-
|
201 |
-
#: php/backend.php:
|
202 |
-
msgid ""
|
203 |
-
"These are some of the tested URL formats. Everything in bold is required, "
|
204 |
-
"everything in brackets is optional."
|
205 |
-
msgstr ""
|
206 |
-
"Das hier sind einige getestete URL Formate. Alles fettgedruckte ist "
|
207 |
-
"notwendig, alles in Klammern optional."
|
208 |
-
|
209 |
-
#: php/backend.php:
|
210 |
-
msgid "Local Media"
|
211 |
-
msgstr "Lokale Medien"
|
212 |
-
|
213 |
-
#: php/backend.php:
|
214 |
-
msgid "Valid URLs"
|
215 |
-
msgstr "Video URLs"
|
216 |
-
|
217 |
-
#: php/settings.php:21
|
218 |
-
msgid "Featured Videos"
|
219 |
-
msgstr "Beitragsvideos"
|
220 |
-
|
221 |
-
#: php/settings.php:23
|
222 |
-
msgid "
|
223 |
-
msgstr "
|
224 |
-
|
225 |
-
#: php/settings.php:24
|
226 |
-
msgid "Autoplay"
|
227 |
-
msgstr ""
|
228 |
-
|
229 |
-
#: php/settings.php:25
|
230 |
-
msgid "Video Sizing"
|
231 |
-
msgstr "Videogröße"
|
232 |
-
|
233 |
-
#: php/settings.php:26
|
234 |
-
msgid "Video Align"
|
235 |
-
msgstr "Video-Ausrichtung"
|
236 |
-
|
237 |
-
#: php/settings.php:27
|
238 |
-
msgid "Local Video Options"
|
239 |
-
msgstr "Lokale Videos"
|
240 |
-
|
241 |
-
#: php/settings.php:28
|
242 |
-
msgid "YouTube Options"
|
243 |
-
msgstr "YouTube Optionen"
|
244 |
-
|
245 |
-
#: php/settings.php:29
|
246 |
-
msgid "Vimeo Options"
|
247 |
-
msgstr "Vimeo Optionen"
|
248 |
-
|
249 |
-
#: php/settings.php:30
|
250 |
-
msgid "Dailymotion Options"
|
251 |
-
msgstr "Dailymotion Optionen"
|
252 |
-
|
253 |
-
#: php/settings.php:31
|
254 |
-
msgid "Support"
|
255 |
-
msgstr "Support"
|
256 |
-
|
257 |
-
#: php/settings.php:45
|
258 |
-
#, php-format
|
259 |
-
msgid ""
|
260 |
-
"To display your featured videos you can either make use of the automatic "
|
261 |
-
"replacement, use the %s or manually edit your theme's source files to make "
|
262 |
-
"use of the plugins PHP-functions."
|
263 |
-
msgstr ""
|
264 |
-
"Um die Artikelvideos anzuzeigen kannst du entweder das automatische Ersetzen "
|
265 |
-
"der Artikelbilder nutzen, auf den %s zurückgreifen oder manuel die PHP-"
|
266 |
-
"Funktionen in deine Theme Dateien integrieren."
|
267 |
-
|
268 |
-
#: php/settings.php:46
|
269 |
-
#, php-format
|
270 |
-
msgid ""
|
271 |
-
"For more information about Shortcode and PHP functions see the %sContextual "
|
272 |
-
"Help%s."
|
273 |
-
msgstr ""
|
274 |
-
"Für mehr Informationen über den Shortcode und die PHP-Funktionen schaue in "
|
275 |
-
"die %sHilfe%s."
|
276 |
-
|
277 |
-
#: php/settings.php:62
|
278 |
-
msgid "
|
279 |
-
msgstr "
|
280 |
-
|
281 |
-
#: php/settings.php:62 php/settings.php:
|
282 |
-
#: php/settings.php:
|
283 |
-
msgid "default"
|
284 |
-
msgstr "default"
|
285 |
-
|
286 |
-
#: php/settings.php:
|
287 |
-
msgid "
|
288 |
-
msgstr "
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
"
|
294 |
-
msgstr ""
|
295 |
-
"
|
296 |
-
"
|
297 |
-
|
298 |
-
#: php/settings.php:
|
299 |
-
msgid ""
|
300 |
-
|
301 |
-
"
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
"
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
msgstr ""
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
#: php/settings.php:
|
334 |
-
msgid "
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
#: php/settings.php:
|
342 |
-
msgid "
|
343 |
-
msgstr "
|
344 |
-
|
345 |
-
#: php/settings.php:
|
346 |
-
msgid "
|
347 |
-
msgstr "
|
348 |
-
|
349 |
-
#: php/settings.php:
|
350 |
-
msgid "
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
"
|
362 |
-
msgstr ""
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
msgstr ""
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
"
|
444 |
-
"
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
#: php/settings.php:
|
451 |
-
msgid "
|
452 |
-
msgstr "
|
453 |
-
|
454 |
-
#: php/settings.php:
|
455 |
-
msgid ""
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
#: php/settings.php:
|
463 |
-
msgid "
|
464 |
-
msgstr "
|
465 |
-
|
466 |
-
#: php/settings.php:
|
467 |
-
#, php-format
|
468 |
-
msgid ""
|
469 |
-
"
|
470 |
-
"
|
471 |
-
"
|
472 |
-
msgstr ""
|
473 |
-
"
|
474 |
-
"
|
475 |
-
"
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
"
|
484 |
-
|
485 |
-
|
486 |
-
"
|
487 |
-
"
|
488 |
-
|
489 |
-
#: php/settings.php:
|
490 |
-
msgid "
|
491 |
-
msgstr "
|
492 |
-
|
493 |
-
#: php/
|
494 |
-
|
495 |
-
msgid "
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
"%s
|
502 |
-
"
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
msgstr "
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
"
|
518 |
-
msgstr ""
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
"
|
529 |
-
|
530 |
-
|
531 |
-
"
|
532 |
-
"
|
533 |
-
|
534 |
-
#: php/upgrade.php:
|
535 |
-
|
536 |
-
|
537 |
-
"
|
538 |
-
"
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
"
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
"
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
"WP3.5 Media Manager
|
554 |
-
"
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
"
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
"
|
565 |
-
"
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
#~
|
596 |
-
|
597 |
-
#~
|
598 |
-
#~ "
|
599 |
-
|
600 |
-
#~
|
601 |
-
#~
|
602 |
-
|
603 |
-
|
604 |
-
#~
|
605 |
-
|
606 |
-
#~
|
607 |
-
#~ "
|
608 |
-
#~ msgstr ""
|
609 |
-
#~ "
|
610 |
-
#~ "
|
611 |
-
|
612 |
-
#~ msgid ""
|
613 |
-
#~ "
|
614 |
-
#~ "
|
615 |
-
#~ "
|
616 |
-
#~
|
617 |
-
#~ "
|
618 |
-
|
619 |
-
#~ "
|
620 |
-
|
621 |
-
|
622 |
-
#~
|
623 |
-
#~ "
|
624 |
-
#~ "
|
625 |
-
#~ msgstr ""
|
626 |
-
#~ "
|
627 |
-
#~ "
|
628 |
-
|
629 |
-
|
630 |
-
#~
|
631 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: featured-video-plus 1.3 de_DE\n"
|
4 |
+
"POT-Creation-Date: 2013-04-30 00:01+0100\n"
|
5 |
+
"PO-Revision-Date: 2013-04-30 00:04+0100\n"
|
6 |
+
"Last-Translator: Alexander Höreth <a.hoereth@gmail.com>\n"
|
7 |
+
"Language-Team: a.hoereth <a.hoereth@gmail.com>\n"
|
8 |
+
"Language: de_DE\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.5.4\n"
|
13 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
14 |
+
"X-Poedit-Basepath: ..\n"
|
15 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
+
"X-Poedit-SearchPath-0: php\n"
|
17 |
+
|
18 |
+
#: php/backend.php:32
|
19 |
+
msgid "Video URL"
|
20 |
+
msgstr "Video URL"
|
21 |
+
|
22 |
+
#: php/backend.php:33
|
23 |
+
msgid "Fallback: same video, different format"
|
24 |
+
msgstr "Fallback: gleiche Video, anderes Format"
|
25 |
+
|
26 |
+
#: php/backend.php:92 php/backend.php:707 php/backend.php:714
|
27 |
+
#: php/backend.php:731 php/backend.php:733
|
28 |
+
msgid "Featured Video"
|
29 |
+
msgstr "Beitragsvideo"
|
30 |
+
|
31 |
+
#: php/backend.php:123
|
32 |
+
msgid "Outdated WordPress Version"
|
33 |
+
msgstr "Veraltete WordPress Version"
|
34 |
+
|
35 |
+
#: php/backend.php:123
|
36 |
+
#, php-format
|
37 |
+
msgid ""
|
38 |
+
"There is WordPress 3.5 out there! The plugin supports older versions way "
|
39 |
+
"back to 3.1 - but %s is defenitly to old!"
|
40 |
+
msgstr ""
|
41 |
+
"Es gibt schon WordPress 3.5! Das Plugin unterstützt alle Versionen ab 3.1 - "
|
42 |
+
"aber %s ist wirklich zu alt!"
|
43 |
+
|
44 |
+
#: php/backend.php:134
|
45 |
+
msgid "Set Featured Video"
|
46 |
+
msgstr "Beitragsvideo festlegen"
|
47 |
+
|
48 |
+
#: php/backend.php:134
|
49 |
+
msgid "Set featured video"
|
50 |
+
msgstr "Beitragsvideo festlegen"
|
51 |
+
|
52 |
+
#: php/backend.php:143
|
53 |
+
msgid "Set Featured Video Fallback"
|
54 |
+
msgstr "Beitragsvideo-Ersatz festlegen"
|
55 |
+
|
56 |
+
#: php/backend.php:143
|
57 |
+
msgid "Set featured video fallback"
|
58 |
+
msgstr "Beitragsvideo Fallback festlegen"
|
59 |
+
|
60 |
+
#: php/backend.php:152 php/backend.php:659
|
61 |
+
msgid "Supported Video Formats"
|
62 |
+
msgstr "Unterstützte Videoformate"
|
63 |
+
|
64 |
+
#: php/backend.php:152
|
65 |
+
msgid "or"
|
66 |
+
msgstr "oder"
|
67 |
+
|
68 |
+
#: php/backend.php:152 php/backend.php:658
|
69 |
+
msgid "More information"
|
70 |
+
msgstr "Mehr Informationen"
|
71 |
+
|
72 |
+
#: php/backend.php:157
|
73 |
+
msgid "Fallback Video"
|
74 |
+
msgstr "Fallback Video"
|
75 |
+
|
76 |
+
#: php/backend.php:157
|
77 |
+
msgid ""
|
78 |
+
"The two input fields should contain the same video but in distinct formats."
|
79 |
+
msgstr ""
|
80 |
+
"Die zwei Eingabefelder sollen das gleiche Video in unterschiedlichen "
|
81 |
+
"Formaten enthalten."
|
82 |
+
|
83 |
+
#: php/backend.php:164
|
84 |
+
msgid "Hint"
|
85 |
+
msgstr "Hinweis"
|
86 |
+
|
87 |
+
#: php/backend.php:164
|
88 |
+
#, php-format
|
89 |
+
msgid "Take a look into the %sContextual Help%s."
|
90 |
+
msgstr "Wirf einen Blick in die %sHilfe%s."
|
91 |
+
|
92 |
+
#: php/backend.php:170 php/settings.php:401
|
93 |
+
msgid "Featured Image"
|
94 |
+
msgstr ""
|
95 |
+
|
96 |
+
#: php/backend.php:170
|
97 |
+
msgid ""
|
98 |
+
"For automatically displaying the Featured Video a Featured Image is required."
|
99 |
+
msgstr ""
|
100 |
+
"Um das Artikelvideo automatisch im Theme anzeigen zu können, muss ein "
|
101 |
+
"Artikelbild festgelegt werden."
|
102 |
+
|
103 |
+
#: php/backend.php:175
|
104 |
+
msgid "Set as Featured Image"
|
105 |
+
msgstr "Als Beitragsbild festlegen"
|
106 |
+
|
107 |
+
#: php/backend.php:179
|
108 |
+
msgid "The current theme does not support Featured Images"
|
109 |
+
msgstr "Das aktuelle Theme nutzt keine Beitragsbilder."
|
110 |
+
|
111 |
+
#: php/backend.php:179
|
112 |
+
#, php-format
|
113 |
+
msgid ""
|
114 |
+
"To display Featured Videos you need to use the <code>Shortcode</code> or "
|
115 |
+
"<code>PHP functions</code>. To hide this notice deactivate "<em>Replace "
|
116 |
+
"Featured Images</em>" in the %sMedia Settings%s."
|
117 |
+
msgstr ""
|
118 |
+
"Damit Beitragsvideos in deinem Theme angezeigt werden, musst du den "
|
119 |
+
"<code>Shortcode</code> oder die <code>PHP-Funktionen</code> verwenden. Um "
|
120 |
+
"diese Warnung zu verstecken, deaktiviere "<em>Artikelbilder ersetzen</"
|
121 |
+
"em>" in deinen %sMedien Einstellungen%s."
|
122 |
+
|
123 |
+
#: php/backend.php:653
|
124 |
+
#, php-format
|
125 |
+
msgid ""
|
126 |
+
"To use local videos, copy the <code>Link To Media File</code> from your "
|
127 |
+
"%sMedia Library%s and paste it into the text field."
|
128 |
+
msgstr ""
|
129 |
+
"Um lokale Videos zu nutzen, kopiere den <code>Link zur Medien-Datei</code> "
|
130 |
+
"aus deiner %sMediathek%s und füge ihn in das Textfeld ein."
|
131 |
+
|
132 |
+
#: php/backend.php:654
|
133 |
+
#, php-format
|
134 |
+
msgid ""
|
135 |
+
"To use local videos, copy the <code>File URL</code> from your %sMedia Library"
|
136 |
+
"%s and paste it into the text field."
|
137 |
+
msgstr ""
|
138 |
+
"Um lokale Videos zu nutzen, kopiere die <code>Datei-URL</code> aus deiner "
|
139 |
+
"%sMediathek%s und füge sie in das Textfeld ein."
|
140 |
+
|
141 |
+
#: php/backend.php:658
|
142 |
+
msgid ""
|
143 |
+
"The second text field is intended to hold the URL to the same video in a "
|
144 |
+
"different format. It will be used as fallback if the primary file can not be "
|
145 |
+
"played."
|
146 |
+
msgstr ""
|
147 |
+
"Das zweite Textfeld ist für eine URL zu dem gleichen Video in einem anderen "
|
148 |
+
"Videoformat gedacht. Dieses zweite Video wird dann als Fallback benutzt, "
|
149 |
+
"falls das erste Video nicht kompatibel ist."
|
150 |
+
|
151 |
+
#: php/backend.php:661
|
152 |
+
msgid "Converting your videos"
|
153 |
+
msgstr "Videos konvertieren"
|
154 |
+
|
155 |
+
#: php/backend.php:662
|
156 |
+
#, php-format
|
157 |
+
msgid ""
|
158 |
+
"Take a look at the %sMiro Video Converter%s. It is open source, lightweight "
|
159 |
+
"and compatible with Windows, Mac and Linux."
|
160 |
+
msgstr ""
|
161 |
+
"Schau dir den %sMiro Video Converter%s an. Er is Open Source, klein, einfach "
|
162 |
+
"zu verwenden und mit Windows, Mac und Linux kompatibel."
|
163 |
+
|
164 |
+
#: php/backend.php:663
|
165 |
+
msgid "Fixing upload errors"
|
166 |
+
msgstr "Videoupload Fehler beheben"
|
167 |
+
|
168 |
+
#: php/backend.php:665
|
169 |
+
#, php-format
|
170 |
+
msgid ""
|
171 |
+
"Read %sthis%s on how to increase the <strong>maximum file upload size</"
|
172 |
+
"strong>."
|
173 |
+
msgstr ""
|
174 |
+
"Lies %sdas hier%s, um zu erfahren, wie man das <strong>Dateigrößenlimit</"
|
175 |
+
"strong> erhöht."
|
176 |
+
|
177 |
+
#: php/backend.php:666
|
178 |
+
#, php-format
|
179 |
+
msgid ""
|
180 |
+
"WordPress by default does not support <code>webM</code>. The plugin "
|
181 |
+
"activates it, but under some conditions this might not be enough. %sHere%s "
|
182 |
+
"you can get more information on this."
|
183 |
+
msgstr ""
|
184 |
+
"Normalerweise unterstützt WordPress kein <code>webM</code>. Das Plugin "
|
185 |
+
"aktiviert die unterstützung, aber manchmal reicht das noch nicht. %sHier%s "
|
186 |
+
"gibt es mehr Informationen."
|
187 |
+
|
188 |
+
#: php/backend.php:668
|
189 |
+
msgid "Flash Fallback"
|
190 |
+
msgstr "Flash Fallback"
|
191 |
+
|
192 |
+
#: php/backend.php:669
|
193 |
+
#, php-format
|
194 |
+
msgid ""
|
195 |
+
"The video player, %sVIDEOJS%s, features an Adobe Flash fallback. All you "
|
196 |
+
"need to do is provide an <code>mp4</code>-video."
|
197 |
+
msgstr ""
|
198 |
+
"Der Video Player, %sVIDEOJS%s, bietet einen Adobe Flash Fallback. Du musst "
|
199 |
+
"einfach nur ein <code>mp4</code>-Video einbinden."
|
200 |
+
|
201 |
+
#: php/backend.php:673
|
202 |
+
msgid ""
|
203 |
+
"These are some of the tested URL formats. Everything in bold is required, "
|
204 |
+
"everything in brackets is optional."
|
205 |
+
msgstr ""
|
206 |
+
"Das hier sind einige getestete URL Formate. Alles fettgedruckte ist "
|
207 |
+
"notwendig, alles in Klammern optional."
|
208 |
+
|
209 |
+
#: php/backend.php:707 php/backend.php:731
|
210 |
+
msgid "Local Media"
|
211 |
+
msgstr "Lokale Medien"
|
212 |
+
|
213 |
+
#: php/backend.php:714 php/backend.php:733
|
214 |
+
msgid "Valid URLs"
|
215 |
+
msgstr "Video URLs"
|
216 |
+
|
217 |
+
#: php/settings.php:21
|
218 |
+
msgid "Featured Videos"
|
219 |
+
msgstr "Beitragsvideos"
|
220 |
+
|
221 |
+
#: php/settings.php:23
|
222 |
+
msgid "Usage"
|
223 |
+
msgstr "Anwendung"
|
224 |
+
|
225 |
+
#: php/settings.php:24
|
226 |
+
msgid "Autoplay"
|
227 |
+
msgstr ""
|
228 |
+
|
229 |
+
#: php/settings.php:25
|
230 |
+
msgid "Video Sizing"
|
231 |
+
msgstr "Videogröße"
|
232 |
+
|
233 |
+
#: php/settings.php:26
|
234 |
+
msgid "Video Align"
|
235 |
+
msgstr "Video-Ausrichtung"
|
236 |
+
|
237 |
+
#: php/settings.php:27
|
238 |
+
msgid "Local Video Options"
|
239 |
+
msgstr "Lokale Videos"
|
240 |
+
|
241 |
+
#: php/settings.php:28
|
242 |
+
msgid "YouTube Options"
|
243 |
+
msgstr "YouTube Optionen"
|
244 |
+
|
245 |
+
#: php/settings.php:29
|
246 |
+
msgid "Vimeo Options"
|
247 |
+
msgstr "Vimeo Optionen"
|
248 |
+
|
249 |
+
#: php/settings.php:30
|
250 |
+
msgid "Dailymotion Options"
|
251 |
+
msgstr "Dailymotion Optionen"
|
252 |
+
|
253 |
+
#: php/settings.php:31
|
254 |
+
msgid "Support"
|
255 |
+
msgstr "Support"
|
256 |
+
|
257 |
+
#: php/settings.php:45
|
258 |
+
#, php-format
|
259 |
+
msgid ""
|
260 |
+
"To display your featured videos you can either make use of the automatic "
|
261 |
+
"replacement, use the %s or manually edit your theme's source files to make "
|
262 |
+
"use of the plugins PHP-functions."
|
263 |
+
msgstr ""
|
264 |
+
"Um die Artikelvideos anzuzeigen kannst du entweder das automatische Ersetzen "
|
265 |
+
"der Artikelbilder nutzen, auf den %s zurückgreifen oder manuel die PHP-"
|
266 |
+
"Funktionen in deine Theme Dateien integrieren."
|
267 |
+
|
268 |
+
#: php/settings.php:46
|
269 |
+
#, php-format
|
270 |
+
msgid ""
|
271 |
+
"For more information about Shortcode and PHP functions see the %sContextual "
|
272 |
+
"Help%s."
|
273 |
+
msgstr ""
|
274 |
+
"Für mehr Informationen über den Shortcode und die PHP-Funktionen schaue in "
|
275 |
+
"die %sHilfe%s."
|
276 |
+
|
277 |
+
#: php/settings.php:62
|
278 |
+
msgid "Replace featured image automatically if possible"
|
279 |
+
msgstr "Ersetze Artikelvideos wenn möglich"
|
280 |
+
|
281 |
+
#: php/settings.php:62 php/settings.php:89 php/settings.php:112
|
282 |
+
#: php/settings.php:122 php/settings.php:143
|
283 |
+
msgid "default"
|
284 |
+
msgstr "default"
|
285 |
+
|
286 |
+
#: php/settings.php:63
|
287 |
+
msgid "Open video overlay when featured image is clicked. Define width below!"
|
288 |
+
msgstr ""
|
289 |
+
"Öffne eine video lightbox wenn das Artikelbild angeklickt wird. Gib unten "
|
290 |
+
"eine Breite an!"
|
291 |
+
|
292 |
+
#: php/settings.php:64
|
293 |
+
msgid "Replace featured image with video on click and auto play if possible"
|
294 |
+
msgstr ""
|
295 |
+
"Ersetze das Artikelbild mit dem Video wenn es angeklickt wird und spiele es "
|
296 |
+
"wenn möglich sofort ab"
|
297 |
+
|
298 |
+
#: php/settings.php:65
|
299 |
+
msgid "None of the above: Manually use PHP-functions or shortcodes"
|
300 |
+
msgstr ""
|
301 |
+
"Nichts von den obenstehenden: Nutze die PHP-Funktionen oder den Shortcode"
|
302 |
+
|
303 |
+
#: php/settings.php:66
|
304 |
+
#, php-format
|
305 |
+
msgid ""
|
306 |
+
"The first three options require your theme to make use of WordPress' "
|
307 |
+
"%sfeatured image%s capabilities."
|
308 |
+
msgstr ""
|
309 |
+
"Die ersten drei Optionen setzen voraus, dass dein Theme die WordPress' "
|
310 |
+
"%sArtikelbild%s funktionen nutzt."
|
311 |
+
|
312 |
+
#: php/settings.php:71
|
313 |
+
#, fuzzy
|
314 |
+
msgid "The current theme does not support featured images"
|
315 |
+
msgstr "Das aktuelle Theme nutzt keine Beitragsbilder."
|
316 |
+
|
317 |
+
#: php/settings.php:71
|
318 |
+
msgid ""
|
319 |
+
"To display Featured Videos you need to use the <code>Shortcode</code> or "
|
320 |
+
"<code>PHP functions</code>."
|
321 |
+
msgstr ""
|
322 |
+
"Um Artikelvideos anzuzeigen musst du den <code>Shortcode</code> oder die "
|
323 |
+
"<code>PHP-Funktionen</code> nutzen."
|
324 |
+
|
325 |
+
#: php/settings.php:87
|
326 |
+
msgid "yes"
|
327 |
+
msgstr "ja"
|
328 |
+
|
329 |
+
#: php/settings.php:89
|
330 |
+
msgid "no"
|
331 |
+
msgstr "nein"
|
332 |
+
|
333 |
+
#: php/settings.php:90
|
334 |
+
msgid ""
|
335 |
+
"YouTube, Vimeo and Dailymotion videos can autoplay when a single post/page "
|
336 |
+
"is being viewed."
|
337 |
+
msgstr ""
|
338 |
+
"Wenn gesetzt, starten YouTube, Vimeo und Dailymotion Videos automatisch wenn "
|
339 |
+
"sie auf der Seite eines einzelnen Beitrags angezeigt werden."
|
340 |
+
|
341 |
+
#: php/settings.php:109
|
342 |
+
msgid "Width"
|
343 |
+
msgstr "Breite"
|
344 |
+
|
345 |
+
#: php/settings.php:119
|
346 |
+
msgid "Height"
|
347 |
+
msgstr "Höhe"
|
348 |
+
|
349 |
+
#: php/settings.php:128
|
350 |
+
msgid ""
|
351 |
+
"When using <code>auto</code> the video will be adjusted to fit it's parent "
|
352 |
+
"element while sticking to it's ratio. Using a <code>fixed</code> height and "
|
353 |
+
"width might result in <em>not so pretty</em> black bars."
|
354 |
+
msgstr ""
|
355 |
+
"Wenn <code>auto</code> gesetzt ist, wird das jeweilige Video automatisch an "
|
356 |
+
"das Elternelement angepasst. Dabei wird versucht, die Seitenverhältnisse "
|
357 |
+
"beizubehalten. Feste Breite und/oder Höhe kann zu <em>nicht so schönen</em> "
|
358 |
+
"schwarzen Balken führen."
|
359 |
+
|
360 |
+
#: php/settings.php:142
|
361 |
+
msgid "left"
|
362 |
+
msgstr "links"
|
363 |
+
|
364 |
+
#: php/settings.php:143
|
365 |
+
msgid "center"
|
366 |
+
msgstr "zentriert"
|
367 |
+
|
368 |
+
#: php/settings.php:144
|
369 |
+
msgid "right"
|
370 |
+
msgstr "rechts"
|
371 |
+
|
372 |
+
#: php/settings.php:163
|
373 |
+
msgid "Use CDN"
|
374 |
+
msgstr "Nutze CDN"
|
375 |
+
|
376 |
+
#: php/settings.php:164
|
377 |
+
msgid "Include JS"
|
378 |
+
msgstr "JS einbinden"
|
379 |
+
|
380 |
+
#: php/settings.php:165
|
381 |
+
msgid "Include CSS"
|
382 |
+
msgstr "CSS einbinden"
|
383 |
+
|
384 |
+
#: php/settings.php:166
|
385 |
+
msgid ""
|
386 |
+
"Disabling JS and/or CSS will break the local video player. Disable only when "
|
387 |
+
"you want to replace VideoJS with a different script and know what you are "
|
388 |
+
"doing."
|
389 |
+
msgstr ""
|
390 |
+
"JS und/oder CSS einbindung ist für die richtige Darstellung von lokalen "
|
391 |
+
"Videos notwendig. Nutze diese funktionen nur wenn du VideoJS durch ein "
|
392 |
+
"anderes Skript austauschen willst und weißt was du tust."
|
393 |
+
|
394 |
+
#: php/settings.php:167
|
395 |
+
msgid "Use featured image as video thumbnail"
|
396 |
+
msgstr "Artikelbild als video thumbnail nutzen"
|
397 |
+
|
398 |
+
#: php/settings.php:188
|
399 |
+
msgid "Light Theme"
|
400 |
+
msgstr "Helles Design"
|
401 |
+
|
402 |
+
#: php/settings.php:189
|
403 |
+
msgid "Fullscreen Button"
|
404 |
+
msgstr "Vollbildschalter"
|
405 |
+
|
406 |
+
#: php/settings.php:197
|
407 |
+
msgid "Info"
|
408 |
+
msgstr "Info"
|
409 |
+
|
410 |
+
#: php/settings.php:199
|
411 |
+
msgid "Related Videos"
|
412 |
+
msgstr "Verwandte Videos"
|
413 |
+
|
414 |
+
#: php/settings.php:200
|
415 |
+
msgid "Javascript API"
|
416 |
+
msgstr ""
|
417 |
+
|
418 |
+
#: php/settings.php:201
|
419 |
+
msgid "White Progressbar"
|
420 |
+
msgstr "Weißer Fortschrittsbalken"
|
421 |
+
|
422 |
+
#: php/settings.php:203 php/settings.php:256
|
423 |
+
msgid "Logo"
|
424 |
+
msgstr "Logo"
|
425 |
+
|
426 |
+
#: php/settings.php:225
|
427 |
+
msgid "Portrait"
|
428 |
+
msgstr "Portrait"
|
429 |
+
|
430 |
+
#: php/settings.php:226
|
431 |
+
msgid "Title"
|
432 |
+
msgstr "Titel"
|
433 |
+
|
434 |
+
#: php/settings.php:227
|
435 |
+
msgid "Byline"
|
436 |
+
msgstr "Author"
|
437 |
+
|
438 |
+
#: php/settings.php:230
|
439 |
+
msgid "Color"
|
440 |
+
msgstr "Farbe"
|
441 |
+
|
442 |
+
#: php/settings.php:234
|
443 |
+
msgid "Vimeo Plus Videos might ignore these settings."
|
444 |
+
msgstr "Vimeo Plus Videos können diese Einstellungen ignorieren."
|
445 |
+
|
446 |
+
#: php/settings.php:257
|
447 |
+
msgid "Videoinfo"
|
448 |
+
msgstr "Videoinfo"
|
449 |
+
|
450 |
+
#: php/settings.php:258
|
451 |
+
msgid "Syndication Key"
|
452 |
+
msgstr "Syndication Schlüssel"
|
453 |
+
|
454 |
+
#: php/settings.php:262
|
455 |
+
msgid "Foreground"
|
456 |
+
msgstr "Vordergrund"
|
457 |
+
|
458 |
+
#: php/settings.php:267
|
459 |
+
msgid "Highlight"
|
460 |
+
msgstr "Hervorhebung"
|
461 |
+
|
462 |
+
#: php/settings.php:272
|
463 |
+
msgid "Background"
|
464 |
+
msgstr "Hintergrund"
|
465 |
+
|
466 |
+
#: php/settings.php:289
|
467 |
+
#, php-format
|
468 |
+
msgid ""
|
469 |
+
"If you have found a bug or are missing a specific video service, please "
|
470 |
+
"%slet me know%s in the support forum. Elsewise, if you like the plugin: "
|
471 |
+
"Please %srate it!%s"
|
472 |
+
msgstr ""
|
473 |
+
"Wenn du einen Fehler gefunden hast oder einen bestimmten Video-Anbieter "
|
474 |
+
"vermisst, %ssag bescheid%s; Ansonsten, wenn dir das Plugin gefällt, bitte "
|
475 |
+
"%sbewerte es!%s"
|
476 |
+
|
477 |
+
#: php/settings.php:376
|
478 |
+
msgid "Displays the video in its default size."
|
479 |
+
msgstr "Stellt das Video in seiner Standardgröße dar."
|
480 |
+
|
481 |
+
#: php/settings.php:380
|
482 |
+
msgid ""
|
483 |
+
"Displays the video with an width of 300 pixel. Height will be fitted to the "
|
484 |
+
"aspect ratio."
|
485 |
+
msgstr ""
|
486 |
+
"Stellt das Video mit einer breite von 300 Pixeln dar. Die Höhe wird "
|
487 |
+
"automatisch angepasst, so dass das Seitenverhältniss erhalten bleibt."
|
488 |
+
|
489 |
+
#: php/settings.php:384
|
490 |
+
msgid "Displays the video with an fixed width and height."
|
491 |
+
msgstr "Stellt das Video mit fester Breite und Höhe dar."
|
492 |
+
|
493 |
+
#: php/settings.php:398
|
494 |
+
#, php-format
|
495 |
+
msgid ""
|
496 |
+
"All parameters are optional. If %s the current post's id will be used. %s is "
|
497 |
+
"either a string keyword (thumbnail, medium, large or full) or a 2-item array "
|
498 |
+
"representing width and height in pixels, e.g. array(32,32)."
|
499 |
+
msgstr ""
|
500 |
+
"Alle Parameter sind optional. Wenn %s gilt, wird die ID des aktuellen "
|
501 |
+
"Beitrags genutzt. %s ist entweder ein String (thumbnail, medium, large oder "
|
502 |
+
"full) oder ein Array mit zwei Stellen (Breite und Höhe); Zum Beispiel array"
|
503 |
+
"(32,32)."
|
504 |
+
|
505 |
+
#: php/settings.php:401
|
506 |
+
#, php-format
|
507 |
+
msgid ""
|
508 |
+
"The functions are implemented corresponding to the original %sfunctions%s: "
|
509 |
+
"They are intended to be used and to act the same way. Take a look into the "
|
510 |
+
"WordPress Codex for further guidance:"
|
511 |
+
msgstr ""
|
512 |
+
"Die Funktionen sind nach den original %sFunktionen%s implementiert. Sie "
|
513 |
+
"sollten genauso genutzt werden können und sich genauso verhalten. Schau dir "
|
514 |
+
"für mehr Informationen den WordPress Codex an:"
|
515 |
+
|
516 |
+
#: php/settings.php:424 php/settings.php:447
|
517 |
+
msgid "PHP-Functions"
|
518 |
+
msgstr "PHP-Funktionen"
|
519 |
+
|
520 |
+
#: php/upgrade.php:164 php/upgrade.php:175 php/upgrade.php:186
|
521 |
+
#: php/upgrade.php:197 php/upgrade.php:208
|
522 |
+
msgid "Featured Video Plus was <strong>upgraded</strong>."
|
523 |
+
msgstr "Featured Video Plus wurde <strong>aktualisiert</strong>."
|
524 |
+
|
525 |
+
#: php/upgrade.php:164
|
526 |
+
#, php-format
|
527 |
+
msgid ""
|
528 |
+
"%s brings new options for YouTube and local videos, fixes a whole bunch of "
|
529 |
+
"glitches and introduces a new PHP-function."
|
530 |
+
msgstr ""
|
531 |
+
"%s bringt neue Einstellungsmöglichkeiten für YouTube und lokale Videos, "
|
532 |
+
"behebt einige Fehler und baut eine neue PHP-Funktion ein."
|
533 |
+
|
534 |
+
#: php/upgrade.php:164 php/upgrade.php:175 php/upgrade.php:186
|
535 |
+
#: php/upgrade.php:197 php/upgrade.php:208
|
536 |
+
#, php-format
|
537 |
+
msgid "If you like the plugin, please %srate it%s."
|
538 |
+
msgstr "Wenn dir das Plugin gefällt, bitte %sbewerte es%s."
|
539 |
+
|
540 |
+
#: php/upgrade.php:175
|
541 |
+
#, php-format
|
542 |
+
msgid ""
|
543 |
+
"%s <strong>ajax</strong>ifies the Featured Video box, introduces new options "
|
544 |
+
"for YouTube and local videos and a new PHP-function."
|
545 |
+
msgstr ""
|
546 |
+
"In %s wurde die Featured Video box überarbeitet und unterstützt nun AJAX. "
|
547 |
+
"Außerdem gibt es neue Optionen in den Medieneinstellungen, besonders für "
|
548 |
+
"YouTube und lokale Videos."
|
549 |
+
|
550 |
+
#: php/upgrade.php:186
|
551 |
+
#, php-format
|
552 |
+
msgid ""
|
553 |
+
"%s features a seamless <strong>WP3.5 Media Manager</strong> integration, an "
|
554 |
+
"all new <strong>ajax</strong>ified metabox, time-links (#t=4m2s) for YouTube "
|
555 |
+
"and Dailymotion, new PHP functions for developers and more."
|
556 |
+
msgstr ""
|
557 |
+
"%s integriert den <strong>WP3.5 Media Manager</strong> nahtlos, unterstützt "
|
558 |
+
"nun AJAX, bietet time-links für YouTube und Dailymotion(#t=4m2s), einige "
|
559 |
+
"neue Einstellungen und neue PHP Funktionen für Entwickler."
|
560 |
+
|
561 |
+
#: php/upgrade.php:197
|
562 |
+
#, php-format
|
563 |
+
msgid ""
|
564 |
+
"%s features a seamless WP3.5 Media Manager integration, an ajaxified "
|
565 |
+
"metabox, time-links (#t=4m2s) for YouTube and Dailymotion, more "
|
566 |
+
"customization settings and internationalization."
|
567 |
+
msgstr ""
|
568 |
+
"%s integriert den <strong>WP3.5 Media Manager</strong> nahtlos, bringt AJAX, "
|
569 |
+
"bietet time-links für YouTube und Dailymotion(#t=4m2s), mehr Einstellungen "
|
570 |
+
"und Internationalisierung."
|
571 |
+
|
572 |
+
#: php/upgrade.php:208
|
573 |
+
#, php-format
|
574 |
+
msgid ""
|
575 |
+
"%s features support for <strong>Local Videos</strong>, a seamless WP3.5 "
|
576 |
+
"Media Manager integration, an ajaxified metabox, time-links (#t=4m2s) for "
|
577 |
+
"YouTube and Dailymotion and many more customization settings."
|
578 |
+
msgstr ""
|
579 |
+
"%s integriert unterstützung für <strong>lokale Videos</strong>, den neuen "
|
580 |
+
"WP3.5 Media Manager, eine überarbeitete AJAX-Metabox, time-links (#t=4m2s) "
|
581 |
+
"für YouTube und Dailymotion und viele neue Einstellungsmöglichkeiten."
|
582 |
+
|
583 |
+
#: php/upgrade.php:220
|
584 |
+
#, php-format
|
585 |
+
msgid ""
|
586 |
+
"Featured Video Plus is <strong>ready to use</strong>. There is a new box on "
|
587 |
+
"post & page edit screens for you to add videos. <strong>Take a look at your "
|
588 |
+
"new %sMedia Settings%s</strong>."
|
589 |
+
msgstr ""
|
590 |
+
"Featured Video Plus wurde <strong>aktiviert</strong>. Beim bearbeiten deiner "
|
591 |
+
"Einträge gibt es eine neue Box um Artikelvideos hinzuzufügen. Außerdem: "
|
592 |
+
"<strong>Schau in deine %sMedien Einstellungen%s</strong>."
|
593 |
+
|
594 |
+
#~ msgid "Replace Featured Images"
|
595 |
+
#~ msgstr "Beitragsbilder ersetzen"
|
596 |
+
|
597 |
+
#~ msgid ""
|
598 |
+
#~ "If a Featured Video is available it can be displayed in place of the "
|
599 |
+
#~ "Featured Image. Still, a Featured Image is required."
|
600 |
+
#~ msgstr ""
|
601 |
+
#~ "Wenn ein Artikelvideo vorhanden ist kann es anstelle des Artikelbildes "
|
602 |
+
#~ "angezeigt werden. Dafür muss trotzdem ein Artikelbild gesetzt sein!"
|
603 |
+
|
604 |
+
#~ msgid ""
|
605 |
+
#~ "The plugin logs it's version, the WordPress version and WordPress "
|
606 |
+
#~ "language for internal statistics. Those help for future plugin "
|
607 |
+
#~ "development."
|
608 |
+
#~ msgstr ""
|
609 |
+
#~ "Das Plugin speichert seine Version, die WordPress Version und WordPress "
|
610 |
+
#~ "Spracheinstellung für eigene Statistiken."
|
611 |
+
|
612 |
+
#~ msgid ""
|
613 |
+
#~ "No personal user information is being collected. Still, you can easily "
|
614 |
+
#~ "Opt-Out and have the data deleted:"
|
615 |
+
#~ msgstr ""
|
616 |
+
#~ "Es werden keine persönlichen Nutzerinformationen gespeichert. Wenn du "
|
617 |
+
#~ "willst kannst du dich abmelden und deine Daten werden gelöscht:"
|
618 |
+
|
619 |
+
#~ msgid "VIDEOJS Player Options"
|
620 |
+
#~ msgstr "VIDEOJS Player Optionen"
|
621 |
+
|
622 |
+
#~ msgid ""
|
623 |
+
#~ "%s features more customization settings, internationalization, better "
|
624 |
+
#~ "error handling and experimental LiveLeak integration."
|
625 |
+
#~ msgstr ""
|
626 |
+
#~ "%s integriert mehr Einstellungsmöglichkeiten, Internationalisierung, "
|
627 |
+
#~ "bessere Fehlerbehandlung und experimentelle LiveLeak Integration."
|
628 |
+
|
629 |
+
#~ msgid "Align"
|
630 |
+
#~ msgstr "Ausrichtung"
|
631 |
+
|
632 |
+
#~ msgid "Found a bug or <strong>missing a specific video service</strong>?"
|
633 |
+
#~ msgstr ""
|
634 |
+
#~ "Hast du einen Fehler gefunden oder <strong>fehlt dir eine bestimmte Video "
|
635 |
+
#~ "Plattform</strong>?"
|
636 |
+
|
637 |
+
#~ msgid "Do you like the plugin?"
|
638 |
+
#~ msgstr "Gefällt dir das Plugin?"
|
639 |
+
|
640 |
+
#~ msgid "rate it"
|
641 |
+
#~ msgstr "bewerte es"
|
642 |
+
|
643 |
+
#~ msgid ""
|
644 |
+
#~ "All parameters are optional. If %s the current post's id will be used."
|
645 |
+
#~ msgstr ""
|
646 |
+
#~ "Alle Parameter sind optional. Wenn %s gilt, wird die ID vom aktuellen "
|
647 |
+
#~ "Eintrag verwendet."
|
648 |
+
|
649 |
+
#~ msgid ""
|
650 |
+
#~ "Featured Video Plus was <strong>upgraded</strong>. Version <strong>%s</"
|
651 |
+
#~ "strong> features more customization settings and a more dynamic admin "
|
652 |
+
#~ "interface."
|
653 |
+
#~ msgstr ""
|
654 |
+
#~ "Version %s integriert mehr Einstellungsmöglichkeiten, "
|
655 |
+
#~ "Internationalisierung, besseres Fehlerbehandlung und LiveLeak Videos "
|
656 |
+
#~ "(experimentell)."
|
657 |
+
|
658 |
+
#~ msgid ""
|
659 |
+
#~ "Featured Video Plus was <strong>upgraded</strong>. Version <strong>%s</"
|
660 |
+
#~ "strong> now supports <strong>local videos</strong> and many more "
|
661 |
+
#~ "customization settings."
|
662 |
+
#~ msgstr ""
|
663 |
+
#~ "Version %s integriert <strong>lokale Videos</strong>, LiveLeak Videos "
|
664 |
+
#~ "(experimentell), mehr Einstellungsmöglichkeiten, Internationalisierung "
|
665 |
+
#~ "und besseres Fehlerbehandlung."
|
666 |
+
|
667 |
+
#~ msgid "YouTube, Vimeo, Dailymotion; Local Media"
|
668 |
+
#~ msgstr "Video Formate"
|
lng/featured-video-plus.pot
CHANGED
@@ -1,490 +1,511 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: featured-video-plus 1.3\n"
|
4 |
-
"POT-Creation-Date: 2013-04-
|
5 |
-
"PO-Revision-Date: 2013-04-
|
6 |
-
"Last-Translator: Alexander Höreth <a.hoereth@gmail.com>\n"
|
7 |
-
"Language-Team: a.hoereth <a.hoereth@gmail.com>\n"
|
8 |
-
"Language: en\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.5.4\n"
|
13 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
14 |
-
"X-Poedit-Basepath: ..\n"
|
15 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
-
"X-Poedit-SearchPath-0: php\n"
|
17 |
-
|
18 |
-
#: php/backend.php:32
|
19 |
-
msgid "Video URL"
|
20 |
-
msgstr ""
|
21 |
-
|
22 |
-
#: php/backend.php:33
|
23 |
-
msgid "Fallback: same video, different format"
|
24 |
-
msgstr ""
|
25 |
-
|
26 |
-
#: php/backend.php:92 php/backend.php:
|
27 |
-
#: php/backend.php:
|
28 |
-
msgid "Featured Video"
|
29 |
-
msgstr ""
|
30 |
-
|
31 |
-
#: php/backend.php:123
|
32 |
-
msgid "Outdated WordPress Version"
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: php/backend.php:123
|
36 |
-
#, php-format
|
37 |
-
msgid ""
|
38 |
-
"There is WordPress 3.5 out there! The plugin supports older versions way "
|
39 |
-
"back to 3.1 - but %s is defenitly to old!"
|
40 |
-
msgstr ""
|
41 |
-
|
42 |
-
#: php/backend.php:134
|
43 |
-
msgid "Set Featured Video"
|
44 |
-
msgstr ""
|
45 |
-
|
46 |
-
#: php/backend.php:134
|
47 |
-
msgid "Set featured video"
|
48 |
-
msgstr ""
|
49 |
-
|
50 |
-
#: php/backend.php:143
|
51 |
-
msgid "Set Featured Video Fallback"
|
52 |
-
msgstr ""
|
53 |
-
|
54 |
-
#: php/backend.php:143
|
55 |
-
msgid "Set featured video fallback"
|
56 |
-
msgstr ""
|
57 |
-
|
58 |
-
#: php/backend.php:152 php/backend.php:
|
59 |
-
msgid "Supported Video Formats"
|
60 |
-
msgstr ""
|
61 |
-
|
62 |
-
#: php/backend.php:152
|
63 |
-
msgid "or"
|
64 |
-
msgstr ""
|
65 |
-
|
66 |
-
#: php/backend.php:152 php/backend.php:
|
67 |
-
msgid "More information"
|
68 |
-
msgstr ""
|
69 |
-
|
70 |
-
#: php/backend.php:157
|
71 |
-
msgid "Fallback Video"
|
72 |
-
msgstr ""
|
73 |
-
|
74 |
-
#: php/backend.php:157
|
75 |
-
msgid ""
|
76 |
-
"The two input fields should contain the same video but in distinct formats."
|
77 |
-
msgstr ""
|
78 |
-
|
79 |
-
#: php/backend.php:164
|
80 |
-
msgid "Hint"
|
81 |
-
msgstr ""
|
82 |
-
|
83 |
-
#: php/backend.php:164
|
84 |
-
#, php-format
|
85 |
-
msgid "Take a look into the %sContextual Help%s."
|
86 |
-
msgstr ""
|
87 |
-
|
88 |
-
#: php/backend.php:170 php/settings.php:
|
89 |
-
msgid "Featured Image"
|
90 |
-
msgstr ""
|
91 |
-
|
92 |
-
#: php/backend.php:170
|
93 |
-
msgid ""
|
94 |
-
"For automatically displaying the Featured Video a Featured Image is required."
|
95 |
-
msgstr ""
|
96 |
-
|
97 |
-
#: php/backend.php:175
|
98 |
-
msgid "Set as Featured Image"
|
99 |
-
msgstr ""
|
100 |
-
|
101 |
-
#: php/backend.php:179
|
102 |
-
msgid "The current theme does not support Featured Images"
|
103 |
-
msgstr ""
|
104 |
-
|
105 |
-
#: php/backend.php:179
|
106 |
-
#, php-format
|
107 |
-
msgid ""
|
108 |
-
"To display Featured Videos you need to use the <code>Shortcode</code> or "
|
109 |
-
"<code>PHP functions</code>. To hide this notice deactivate "<em>Replace "
|
110 |
-
"Featured Images</em>" in the %sMedia Settings%s."
|
111 |
-
msgstr ""
|
112 |
-
|
113 |
-
#: php/backend.php:
|
114 |
-
#, php-format
|
115 |
-
msgid ""
|
116 |
-
"To use local videos, copy the <code>Link To Media File</code> from your "
|
117 |
-
"%sMedia Library%s and paste it into the text field."
|
118 |
-
msgstr ""
|
119 |
-
|
120 |
-
#: php/backend.php:
|
121 |
-
#, php-format
|
122 |
-
msgid ""
|
123 |
-
"To use local videos, copy the <code>File URL</code> from your %sMedia Library"
|
124 |
-
"%s and paste it into the text field."
|
125 |
-
msgstr ""
|
126 |
-
|
127 |
-
#: php/backend.php:
|
128 |
-
msgid ""
|
129 |
-
"The second text field is intended to hold the URL to the same video in a "
|
130 |
-
"different format. It will be used as fallback if the primary file can not be "
|
131 |
-
"played."
|
132 |
-
msgstr ""
|
133 |
-
|
134 |
-
#: php/backend.php:
|
135 |
-
msgid "Converting your videos"
|
136 |
-
msgstr ""
|
137 |
-
|
138 |
-
#: php/backend.php:
|
139 |
-
#, php-format
|
140 |
-
msgid ""
|
141 |
-
"Take a look at the %sMiro Video Converter%s. It is open source, lightweight "
|
142 |
-
"and compatible with Windows, Mac and Linux."
|
143 |
-
msgstr ""
|
144 |
-
|
145 |
-
#: php/backend.php:
|
146 |
-
msgid "Fixing upload errors"
|
147 |
-
msgstr ""
|
148 |
-
|
149 |
-
#: php/backend.php:
|
150 |
-
#, php-format
|
151 |
-
msgid ""
|
152 |
-
"Read %sthis%s on how to increase the <strong>maximum file upload size</"
|
153 |
-
"strong>."
|
154 |
-
msgstr ""
|
155 |
-
|
156 |
-
#: php/backend.php:
|
157 |
-
#, php-format
|
158 |
-
msgid ""
|
159 |
-
"WordPress by default does not support <code>webM</code>. The plugin "
|
160 |
-
"activates it, but under some conditions this might not be enough. %sHere%s "
|
161 |
-
"you can get more information on this."
|
162 |
-
msgstr ""
|
163 |
-
|
164 |
-
#: php/backend.php:
|
165 |
-
msgid "Flash Fallback"
|
166 |
-
msgstr ""
|
167 |
-
|
168 |
-
#: php/backend.php:
|
169 |
-
#, php-format
|
170 |
-
msgid ""
|
171 |
-
"The video player, %sVIDEOJS%s, features an Adobe Flash fallback. All you "
|
172 |
-
"need to do is provide an <code>mp4</code>-video."
|
173 |
-
msgstr ""
|
174 |
-
|
175 |
-
#: php/backend.php:
|
176 |
-
msgid ""
|
177 |
-
"These are some of the tested URL formats. Everything in bold is required, "
|
178 |
-
"everything in brackets is optional."
|
179 |
-
msgstr ""
|
180 |
-
|
181 |
-
#: php/backend.php:
|
182 |
-
msgid "Local Media"
|
183 |
-
msgstr ""
|
184 |
-
|
185 |
-
#: php/backend.php:
|
186 |
-
msgid "Valid URLs"
|
187 |
-
msgstr ""
|
188 |
-
|
189 |
-
#: php/settings.php:21
|
190 |
-
msgid "Featured Videos"
|
191 |
-
msgstr ""
|
192 |
-
|
193 |
-
#: php/settings.php:23
|
194 |
-
msgid "
|
195 |
-
msgstr ""
|
196 |
-
|
197 |
-
#: php/settings.php:24
|
198 |
-
msgid "Autoplay"
|
199 |
-
msgstr ""
|
200 |
-
|
201 |
-
#: php/settings.php:25
|
202 |
-
msgid "Video Sizing"
|
203 |
-
msgstr ""
|
204 |
-
|
205 |
-
#: php/settings.php:26
|
206 |
-
msgid "Video Align"
|
207 |
-
msgstr ""
|
208 |
-
|
209 |
-
#: php/settings.php:27
|
210 |
-
msgid "Local Video Options"
|
211 |
-
msgstr ""
|
212 |
-
|
213 |
-
#: php/settings.php:28
|
214 |
-
msgid "YouTube Options"
|
215 |
-
msgstr ""
|
216 |
-
|
217 |
-
#: php/settings.php:29
|
218 |
-
msgid "Vimeo Options"
|
219 |
-
msgstr ""
|
220 |
-
|
221 |
-
#: php/settings.php:30
|
222 |
-
msgid "Dailymotion Options"
|
223 |
-
msgstr ""
|
224 |
-
|
225 |
-
#: php/settings.php:31
|
226 |
-
msgid "Support"
|
227 |
-
msgstr ""
|
228 |
-
|
229 |
-
#: php/settings.php:45
|
230 |
-
#, php-format
|
231 |
-
msgid ""
|
232 |
-
"To display your featured videos you can either make use of the automatic "
|
233 |
-
"replacement, use the %s or manually edit your theme's source files to make "
|
234 |
-
"use of the plugins PHP-functions."
|
235 |
-
msgstr ""
|
236 |
-
|
237 |
-
#: php/settings.php:46
|
238 |
-
#, php-format
|
239 |
-
msgid ""
|
240 |
-
"For more information about Shortcode and PHP functions see the %sContextual "
|
241 |
-
"Help%s."
|
242 |
-
msgstr ""
|
243 |
-
|
244 |
-
#: php/settings.php:62
|
245 |
-
msgid "
|
246 |
-
msgstr ""
|
247 |
-
|
248 |
-
#: php/settings.php:62 php/settings.php:
|
249 |
-
#: php/settings.php:
|
250 |
-
msgid "default"
|
251 |
-
msgstr ""
|
252 |
-
|
253 |
-
#: php/settings.php:
|
254 |
-
msgid "
|
255 |
-
msgstr ""
|
256 |
-
|
257 |
-
#: php/settings.php:
|
258 |
-
msgid ""
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
msgstr ""
|
289 |
-
|
290 |
-
#: php/settings.php:
|
291 |
-
msgid "
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
msgid ""
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
"
|
419 |
-
"
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
"
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
#: php/
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
"
|
465 |
-
"and
|
466 |
-
msgstr ""
|
467 |
-
|
468 |
-
#: php/upgrade.php:
|
469 |
-
|
470 |
-
|
471 |
-
"
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: featured-video-plus 1.3\n"
|
4 |
+
"POT-Creation-Date: 2013-04-30 00:01+0100\n"
|
5 |
+
"PO-Revision-Date: 2013-04-30 00:01+0100\n"
|
6 |
+
"Last-Translator: Alexander Höreth <a.hoereth@gmail.com>\n"
|
7 |
+
"Language-Team: a.hoereth <a.hoereth@gmail.com>\n"
|
8 |
+
"Language: en\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.5.4\n"
|
13 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
14 |
+
"X-Poedit-Basepath: ..\n"
|
15 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
+
"X-Poedit-SearchPath-0: php\n"
|
17 |
+
|
18 |
+
#: php/backend.php:32
|
19 |
+
msgid "Video URL"
|
20 |
+
msgstr ""
|
21 |
+
|
22 |
+
#: php/backend.php:33
|
23 |
+
msgid "Fallback: same video, different format"
|
24 |
+
msgstr ""
|
25 |
+
|
26 |
+
#: php/backend.php:92 php/backend.php:707 php/backend.php:714
|
27 |
+
#: php/backend.php:731 php/backend.php:733
|
28 |
+
msgid "Featured Video"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: php/backend.php:123
|
32 |
+
msgid "Outdated WordPress Version"
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: php/backend.php:123
|
36 |
+
#, php-format
|
37 |
+
msgid ""
|
38 |
+
"There is WordPress 3.5 out there! The plugin supports older versions way "
|
39 |
+
"back to 3.1 - but %s is defenitly to old!"
|
40 |
+
msgstr ""
|
41 |
+
|
42 |
+
#: php/backend.php:134
|
43 |
+
msgid "Set Featured Video"
|
44 |
+
msgstr ""
|
45 |
+
|
46 |
+
#: php/backend.php:134
|
47 |
+
msgid "Set featured video"
|
48 |
+
msgstr ""
|
49 |
+
|
50 |
+
#: php/backend.php:143
|
51 |
+
msgid "Set Featured Video Fallback"
|
52 |
+
msgstr ""
|
53 |
+
|
54 |
+
#: php/backend.php:143
|
55 |
+
msgid "Set featured video fallback"
|
56 |
+
msgstr ""
|
57 |
+
|
58 |
+
#: php/backend.php:152 php/backend.php:659
|
59 |
+
msgid "Supported Video Formats"
|
60 |
+
msgstr ""
|
61 |
+
|
62 |
+
#: php/backend.php:152
|
63 |
+
msgid "or"
|
64 |
+
msgstr ""
|
65 |
+
|
66 |
+
#: php/backend.php:152 php/backend.php:658
|
67 |
+
msgid "More information"
|
68 |
+
msgstr ""
|
69 |
+
|
70 |
+
#: php/backend.php:157
|
71 |
+
msgid "Fallback Video"
|
72 |
+
msgstr ""
|
73 |
+
|
74 |
+
#: php/backend.php:157
|
75 |
+
msgid ""
|
76 |
+
"The two input fields should contain the same video but in distinct formats."
|
77 |
+
msgstr ""
|
78 |
+
|
79 |
+
#: php/backend.php:164
|
80 |
+
msgid "Hint"
|
81 |
+
msgstr ""
|
82 |
+
|
83 |
+
#: php/backend.php:164
|
84 |
+
#, php-format
|
85 |
+
msgid "Take a look into the %sContextual Help%s."
|
86 |
+
msgstr ""
|
87 |
+
|
88 |
+
#: php/backend.php:170 php/settings.php:401
|
89 |
+
msgid "Featured Image"
|
90 |
+
msgstr ""
|
91 |
+
|
92 |
+
#: php/backend.php:170
|
93 |
+
msgid ""
|
94 |
+
"For automatically displaying the Featured Video a Featured Image is required."
|
95 |
+
msgstr ""
|
96 |
+
|
97 |
+
#: php/backend.php:175
|
98 |
+
msgid "Set as Featured Image"
|
99 |
+
msgstr ""
|
100 |
+
|
101 |
+
#: php/backend.php:179
|
102 |
+
msgid "The current theme does not support Featured Images"
|
103 |
+
msgstr ""
|
104 |
+
|
105 |
+
#: php/backend.php:179
|
106 |
+
#, php-format
|
107 |
+
msgid ""
|
108 |
+
"To display Featured Videos you need to use the <code>Shortcode</code> or "
|
109 |
+
"<code>PHP functions</code>. To hide this notice deactivate "<em>Replace "
|
110 |
+
"Featured Images</em>" in the %sMedia Settings%s."
|
111 |
+
msgstr ""
|
112 |
+
|
113 |
+
#: php/backend.php:653
|
114 |
+
#, php-format
|
115 |
+
msgid ""
|
116 |
+
"To use local videos, copy the <code>Link To Media File</code> from your "
|
117 |
+
"%sMedia Library%s and paste it into the text field."
|
118 |
+
msgstr ""
|
119 |
+
|
120 |
+
#: php/backend.php:654
|
121 |
+
#, php-format
|
122 |
+
msgid ""
|
123 |
+
"To use local videos, copy the <code>File URL</code> from your %sMedia Library"
|
124 |
+
"%s and paste it into the text field."
|
125 |
+
msgstr ""
|
126 |
+
|
127 |
+
#: php/backend.php:658
|
128 |
+
msgid ""
|
129 |
+
"The second text field is intended to hold the URL to the same video in a "
|
130 |
+
"different format. It will be used as fallback if the primary file can not be "
|
131 |
+
"played."
|
132 |
+
msgstr ""
|
133 |
+
|
134 |
+
#: php/backend.php:661
|
135 |
+
msgid "Converting your videos"
|
136 |
+
msgstr ""
|
137 |
+
|
138 |
+
#: php/backend.php:662
|
139 |
+
#, php-format
|
140 |
+
msgid ""
|
141 |
+
"Take a look at the %sMiro Video Converter%s. It is open source, lightweight "
|
142 |
+
"and compatible with Windows, Mac and Linux."
|
143 |
+
msgstr ""
|
144 |
+
|
145 |
+
#: php/backend.php:663
|
146 |
+
msgid "Fixing upload errors"
|
147 |
+
msgstr ""
|
148 |
+
|
149 |
+
#: php/backend.php:665
|
150 |
+
#, php-format
|
151 |
+
msgid ""
|
152 |
+
"Read %sthis%s on how to increase the <strong>maximum file upload size</"
|
153 |
+
"strong>."
|
154 |
+
msgstr ""
|
155 |
+
|
156 |
+
#: php/backend.php:666
|
157 |
+
#, php-format
|
158 |
+
msgid ""
|
159 |
+
"WordPress by default does not support <code>webM</code>. The plugin "
|
160 |
+
"activates it, but under some conditions this might not be enough. %sHere%s "
|
161 |
+
"you can get more information on this."
|
162 |
+
msgstr ""
|
163 |
+
|
164 |
+
#: php/backend.php:668
|
165 |
+
msgid "Flash Fallback"
|
166 |
+
msgstr ""
|
167 |
+
|
168 |
+
#: php/backend.php:669
|
169 |
+
#, php-format
|
170 |
+
msgid ""
|
171 |
+
"The video player, %sVIDEOJS%s, features an Adobe Flash fallback. All you "
|
172 |
+
"need to do is provide an <code>mp4</code>-video."
|
173 |
+
msgstr ""
|
174 |
+
|
175 |
+
#: php/backend.php:673
|
176 |
+
msgid ""
|
177 |
+
"These are some of the tested URL formats. Everything in bold is required, "
|
178 |
+
"everything in brackets is optional."
|
179 |
+
msgstr ""
|
180 |
+
|
181 |
+
#: php/backend.php:707 php/backend.php:731
|
182 |
+
msgid "Local Media"
|
183 |
+
msgstr ""
|
184 |
+
|
185 |
+
#: php/backend.php:714 php/backend.php:733
|
186 |
+
msgid "Valid URLs"
|
187 |
+
msgstr ""
|
188 |
+
|
189 |
+
#: php/settings.php:21
|
190 |
+
msgid "Featured Videos"
|
191 |
+
msgstr ""
|
192 |
+
|
193 |
+
#: php/settings.php:23
|
194 |
+
msgid "Usage"
|
195 |
+
msgstr ""
|
196 |
+
|
197 |
+
#: php/settings.php:24
|
198 |
+
msgid "Autoplay"
|
199 |
+
msgstr ""
|
200 |
+
|
201 |
+
#: php/settings.php:25
|
202 |
+
msgid "Video Sizing"
|
203 |
+
msgstr ""
|
204 |
+
|
205 |
+
#: php/settings.php:26
|
206 |
+
msgid "Video Align"
|
207 |
+
msgstr ""
|
208 |
+
|
209 |
+
#: php/settings.php:27
|
210 |
+
msgid "Local Video Options"
|
211 |
+
msgstr ""
|
212 |
+
|
213 |
+
#: php/settings.php:28
|
214 |
+
msgid "YouTube Options"
|
215 |
+
msgstr ""
|
216 |
+
|
217 |
+
#: php/settings.php:29
|
218 |
+
msgid "Vimeo Options"
|
219 |
+
msgstr ""
|
220 |
+
|
221 |
+
#: php/settings.php:30
|
222 |
+
msgid "Dailymotion Options"
|
223 |
+
msgstr ""
|
224 |
+
|
225 |
+
#: php/settings.php:31
|
226 |
+
msgid "Support"
|
227 |
+
msgstr ""
|
228 |
+
|
229 |
+
#: php/settings.php:45
|
230 |
+
#, php-format
|
231 |
+
msgid ""
|
232 |
+
"To display your featured videos you can either make use of the automatic "
|
233 |
+
"replacement, use the %s or manually edit your theme's source files to make "
|
234 |
+
"use of the plugins PHP-functions."
|
235 |
+
msgstr ""
|
236 |
+
|
237 |
+
#: php/settings.php:46
|
238 |
+
#, php-format
|
239 |
+
msgid ""
|
240 |
+
"For more information about Shortcode and PHP functions see the %sContextual "
|
241 |
+
"Help%s."
|
242 |
+
msgstr ""
|
243 |
+
|
244 |
+
#: php/settings.php:62
|
245 |
+
msgid "Replace featured image automatically if possible"
|
246 |
+
msgstr ""
|
247 |
+
|
248 |
+
#: php/settings.php:62 php/settings.php:89 php/settings.php:112
|
249 |
+
#: php/settings.php:122 php/settings.php:143
|
250 |
+
msgid "default"
|
251 |
+
msgstr ""
|
252 |
+
|
253 |
+
#: php/settings.php:63
|
254 |
+
msgid "Open video overlay when featured image is clicked. Define width below!"
|
255 |
+
msgstr ""
|
256 |
+
|
257 |
+
#: php/settings.php:64
|
258 |
+
msgid "Replace featured image with video on click and auto play if possible"
|
259 |
+
msgstr ""
|
260 |
+
|
261 |
+
#: php/settings.php:65
|
262 |
+
msgid "None of the above: Manually use PHP-functions or shortcodes"
|
263 |
+
msgstr ""
|
264 |
+
|
265 |
+
#: php/settings.php:66
|
266 |
+
#, php-format
|
267 |
+
msgid ""
|
268 |
+
"The first three options require your theme to make use of WordPress' "
|
269 |
+
"%sfeatured image%s capabilities."
|
270 |
+
msgstr ""
|
271 |
+
|
272 |
+
#: php/settings.php:71
|
273 |
+
msgid "The current theme does not support featured images"
|
274 |
+
msgstr ""
|
275 |
+
|
276 |
+
#: php/settings.php:71
|
277 |
+
msgid ""
|
278 |
+
"To display Featured Videos you need to use the <code>Shortcode</code> or "
|
279 |
+
"<code>PHP functions</code>."
|
280 |
+
msgstr ""
|
281 |
+
|
282 |
+
#: php/settings.php:87
|
283 |
+
msgid "yes"
|
284 |
+
msgstr ""
|
285 |
+
|
286 |
+
#: php/settings.php:89
|
287 |
+
msgid "no"
|
288 |
+
msgstr ""
|
289 |
+
|
290 |
+
#: php/settings.php:90
|
291 |
+
msgid ""
|
292 |
+
"YouTube, Vimeo and Dailymotion videos can autoplay when a single post/page "
|
293 |
+
"is being viewed."
|
294 |
+
msgstr ""
|
295 |
+
|
296 |
+
#: php/settings.php:109
|
297 |
+
msgid "Width"
|
298 |
+
msgstr ""
|
299 |
+
|
300 |
+
#: php/settings.php:119
|
301 |
+
msgid "Height"
|
302 |
+
msgstr ""
|
303 |
+
|
304 |
+
#: php/settings.php:128
|
305 |
+
msgid ""
|
306 |
+
"When using <code>auto</code> the video will be adjusted to fit it's parent "
|
307 |
+
"element while sticking to it's ratio. Using a <code>fixed</code> height and "
|
308 |
+
"width might result in <em>not so pretty</em> black bars."
|
309 |
+
msgstr ""
|
310 |
+
|
311 |
+
#: php/settings.php:142
|
312 |
+
msgid "left"
|
313 |
+
msgstr ""
|
314 |
+
|
315 |
+
#: php/settings.php:143
|
316 |
+
msgid "center"
|
317 |
+
msgstr ""
|
318 |
+
|
319 |
+
#: php/settings.php:144
|
320 |
+
msgid "right"
|
321 |
+
msgstr ""
|
322 |
+
|
323 |
+
#: php/settings.php:163
|
324 |
+
msgid "Use CDN"
|
325 |
+
msgstr ""
|
326 |
+
|
327 |
+
#: php/settings.php:164
|
328 |
+
msgid "Include JS"
|
329 |
+
msgstr ""
|
330 |
+
|
331 |
+
#: php/settings.php:165
|
332 |
+
msgid "Include CSS"
|
333 |
+
msgstr ""
|
334 |
+
|
335 |
+
#: php/settings.php:166
|
336 |
+
msgid ""
|
337 |
+
"Disabling JS and/or CSS will break the local video player. Disable only when "
|
338 |
+
"you want to replace VideoJS with a different script and know what you are "
|
339 |
+
"doing."
|
340 |
+
msgstr ""
|
341 |
+
|
342 |
+
#: php/settings.php:167
|
343 |
+
msgid "Use featured image as video thumbnail"
|
344 |
+
msgstr ""
|
345 |
+
|
346 |
+
#: php/settings.php:188
|
347 |
+
msgid "Light Theme"
|
348 |
+
msgstr ""
|
349 |
+
|
350 |
+
#: php/settings.php:189
|
351 |
+
msgid "Fullscreen Button"
|
352 |
+
msgstr ""
|
353 |
+
|
354 |
+
#: php/settings.php:197
|
355 |
+
msgid "Info"
|
356 |
+
msgstr ""
|
357 |
+
|
358 |
+
#: php/settings.php:199
|
359 |
+
msgid "Related Videos"
|
360 |
+
msgstr ""
|
361 |
+
|
362 |
+
#: php/settings.php:200
|
363 |
+
msgid "Javascript API"
|
364 |
+
msgstr ""
|
365 |
+
|
366 |
+
#: php/settings.php:201
|
367 |
+
msgid "White Progressbar"
|
368 |
+
msgstr ""
|
369 |
+
|
370 |
+
#: php/settings.php:203 php/settings.php:256
|
371 |
+
msgid "Logo"
|
372 |
+
msgstr ""
|
373 |
+
|
374 |
+
#: php/settings.php:225
|
375 |
+
msgid "Portrait"
|
376 |
+
msgstr ""
|
377 |
+
|
378 |
+
#: php/settings.php:226
|
379 |
+
msgid "Title"
|
380 |
+
msgstr ""
|
381 |
+
|
382 |
+
#: php/settings.php:227
|
383 |
+
msgid "Byline"
|
384 |
+
msgstr ""
|
385 |
+
|
386 |
+
#: php/settings.php:230
|
387 |
+
msgid "Color"
|
388 |
+
msgstr ""
|
389 |
+
|
390 |
+
#: php/settings.php:234
|
391 |
+
msgid "Vimeo Plus Videos might ignore these settings."
|
392 |
+
msgstr ""
|
393 |
+
|
394 |
+
#: php/settings.php:257
|
395 |
+
msgid "Videoinfo"
|
396 |
+
msgstr ""
|
397 |
+
|
398 |
+
#: php/settings.php:258
|
399 |
+
msgid "Syndication Key"
|
400 |
+
msgstr ""
|
401 |
+
|
402 |
+
#: php/settings.php:262
|
403 |
+
msgid "Foreground"
|
404 |
+
msgstr ""
|
405 |
+
|
406 |
+
#: php/settings.php:267
|
407 |
+
msgid "Highlight"
|
408 |
+
msgstr ""
|
409 |
+
|
410 |
+
#: php/settings.php:272
|
411 |
+
msgid "Background"
|
412 |
+
msgstr ""
|
413 |
+
|
414 |
+
#: php/settings.php:289
|
415 |
+
#, php-format
|
416 |
+
msgid ""
|
417 |
+
"If you have found a bug or are missing a specific video service, please "
|
418 |
+
"%slet me know%s in the support forum. Elsewise, if you like the plugin: "
|
419 |
+
"Please %srate it!%s"
|
420 |
+
msgstr ""
|
421 |
+
|
422 |
+
#: php/settings.php:376
|
423 |
+
msgid "Displays the video in its default size."
|
424 |
+
msgstr ""
|
425 |
+
|
426 |
+
#: php/settings.php:380
|
427 |
+
msgid ""
|
428 |
+
"Displays the video with an width of 300 pixel. Height will be fitted to the "
|
429 |
+
"aspect ratio."
|
430 |
+
msgstr ""
|
431 |
+
|
432 |
+
#: php/settings.php:384
|
433 |
+
msgid "Displays the video with an fixed width and height."
|
434 |
+
msgstr ""
|
435 |
+
|
436 |
+
#: php/settings.php:398
|
437 |
+
#, php-format
|
438 |
+
msgid ""
|
439 |
+
"All parameters are optional. If %s the current post's id will be used. %s is "
|
440 |
+
"either a string keyword (thumbnail, medium, large or full) or a 2-item array "
|
441 |
+
"representing width and height in pixels, e.g. array(32,32)."
|
442 |
+
msgstr ""
|
443 |
+
|
444 |
+
#: php/settings.php:401
|
445 |
+
#, php-format
|
446 |
+
msgid ""
|
447 |
+
"The functions are implemented corresponding to the original %sfunctions%s: "
|
448 |
+
"They are intended to be used and to act the same way. Take a look into the "
|
449 |
+
"WordPress Codex for further guidance:"
|
450 |
+
msgstr ""
|
451 |
+
|
452 |
+
#: php/settings.php:424 php/settings.php:447
|
453 |
+
msgid "PHP-Functions"
|
454 |
+
msgstr ""
|
455 |
+
|
456 |
+
#: php/upgrade.php:164 php/upgrade.php:175 php/upgrade.php:186
|
457 |
+
#: php/upgrade.php:197 php/upgrade.php:208
|
458 |
+
msgid "Featured Video Plus was <strong>upgraded</strong>."
|
459 |
+
msgstr ""
|
460 |
+
|
461 |
+
#: php/upgrade.php:164
|
462 |
+
#, php-format
|
463 |
+
msgid ""
|
464 |
+
"%s brings new options for YouTube and local videos, fixes a whole bunch of "
|
465 |
+
"glitches and introduces a new PHP-function."
|
466 |
+
msgstr ""
|
467 |
+
|
468 |
+
#: php/upgrade.php:164 php/upgrade.php:175 php/upgrade.php:186
|
469 |
+
#: php/upgrade.php:197 php/upgrade.php:208
|
470 |
+
#, php-format
|
471 |
+
msgid "If you like the plugin, please %srate it%s."
|
472 |
+
msgstr ""
|
473 |
+
|
474 |
+
#: php/upgrade.php:175
|
475 |
+
#, php-format
|
476 |
+
msgid ""
|
477 |
+
"%s <strong>ajax</strong>ifies the Featured Video box, introduces new options "
|
478 |
+
"for YouTube and local videos and a new PHP-function."
|
479 |
+
msgstr ""
|
480 |
+
|
481 |
+
#: php/upgrade.php:186
|
482 |
+
#, php-format
|
483 |
+
msgid ""
|
484 |
+
"%s features a seamless <strong>WP3.5 Media Manager</strong> integration, an "
|
485 |
+
"all new <strong>ajax</strong>ified metabox, time-links (#t=4m2s) for YouTube "
|
486 |
+
"and Dailymotion, new PHP functions for developers and more."
|
487 |
+
msgstr ""
|
488 |
+
|
489 |
+
#: php/upgrade.php:197
|
490 |
+
#, php-format
|
491 |
+
msgid ""
|
492 |
+
"%s features a seamless WP3.5 Media Manager integration, an ajaxified "
|
493 |
+
"metabox, time-links (#t=4m2s) for YouTube and Dailymotion, more "
|
494 |
+
"customization settings and internationalization."
|
495 |
+
msgstr ""
|
496 |
+
|
497 |
+
#: php/upgrade.php:208
|
498 |
+
#, php-format
|
499 |
+
msgid ""
|
500 |
+
"%s features support for <strong>Local Videos</strong>, a seamless WP3.5 "
|
501 |
+
"Media Manager integration, an ajaxified metabox, time-links (#t=4m2s) for "
|
502 |
+
"YouTube and Dailymotion and many more customization settings."
|
503 |
+
msgstr ""
|
504 |
+
|
505 |
+
#: php/upgrade.php:220
|
506 |
+
#, php-format
|
507 |
+
msgid ""
|
508 |
+
"Featured Video Plus is <strong>ready to use</strong>. There is a new box on "
|
509 |
+
"post & page edit screens for you to add videos. <strong>Take a look at your "
|
510 |
+
"new %sMedia Settings%s</strong>."
|
511 |
+
msgstr ""
|
php/backend.php
CHANGED
@@ -55,7 +55,7 @@ class featured_video_plus_backend {
|
|
55 |
wp_enqueue_script( 'farbtastic' );
|
56 |
wp_enqueue_script( 'fvp_backend_pre35', FVP_URL . 'js/backend_pre35.js', array( 'jquery' ), FVP_VERSION );
|
57 |
}
|
58 |
-
wp_enqueue_script( '
|
59 |
}
|
60 |
|
61 |
// just required on post.php
|
@@ -165,7 +165,7 @@ class featured_video_plus_backend {
|
|
165 |
echo "\n\t</p>\n</div>\n";
|
166 |
|
167 |
// no featured image warning
|
168 |
-
$class = $has_featimg || !$has_post_video || (isset($options['
|
169 |
echo '<div id="fvp_featimg_warning" class="fvp_notice'.$class.'">'."\n\t".'<p class="description">';
|
170 |
echo '<span style="font-weight: bold;">'.__('Featured Image').':</span> '.__('For automatically displaying the Featured Video a Featured Image is required.', 'featured-video-plus');
|
171 |
echo "</p>\n</div>\n";
|
@@ -175,7 +175,7 @@ class featured_video_plus_backend {
|
|
175 |
printf('<p id="fvp_set_featimg_box"'.$class.'>'."\n\t".'<span id="fvp_set_featimg_input">'."\n\t\t".'<input id="fvp_set_featimg" name="fvp_set_featimg" type="checkbox" value="set_featimg" />'."\n\t\t".'<label for="fvp_set_featimg"> %s</label>'."\n\t".'</span>'."\n\t".'<a class="fvp_hidden" id="fvp_set_featimg_link" href="#">%s</a>'."\n".'</p>'."\n", __('Set as Featured Image', 'featured-video-plus'), __('Set as Featured Image', 'featured-video-plus') );
|
176 |
|
177 |
// current theme does not support Featured Images
|
178 |
-
if( !current_theme_supports('post-thumbnails') && $options['overwrite'] )
|
179 |
echo '<p class="fvp_warning description"><span style="font-weight: bold;">'.__('The current theme does not support Featured Images', 'featured-video-plus').':</span> '.sprintf(__('To display Featured Videos you need to use the <code>Shortcode</code> or <code>PHP functions</code>. To hide this notice deactivate "<em>Replace Featured Images</em>" in the %sMedia Settings%s.', 'featured-video-plus'), '<a href="'.get_admin_url(null, '/options-media.php').'">', '</a>' )."</p>\n\n";
|
180 |
|
181 |
echo "<!-- Featured Video Plus Metabox End-->\n\n\n";
|
@@ -220,10 +220,8 @@ class featured_video_plus_backend {
|
|
220 |
|
221 |
$img = _wp_post_thumbnail_html( get_post_thumbnail_id($post['id']), $post['id'] );
|
222 |
|
223 |
-
if(
|
224 |
-
|
225 |
-
$video = get_the_post_video( $post['id'], array(256,144) );
|
226 |
-
|
227 |
echo json_encode(array( 'typ' => 'updated', 'valid' => $meta['valid'], 'video' => $video, 'img' => $img ));
|
228 |
} else
|
229 |
echo json_encode(array( 'typ' => 'removed', 'valid' => $meta['valid'], 'img' => $img ));
|
@@ -238,7 +236,6 @@ class featured_video_plus_backend {
|
|
238 |
* @see http://codex.wordpress.org/Function_Reference/update_post_meta
|
239 |
*/
|
240 |
function save($post) {
|
241 |
-
|
242 |
if( ( isset($post['fvp_nonce']) && // WP Form submitted..
|
243 |
!wp_verify_nonce( $post['fvp_nonce'], FVP_NAME ) ) )
|
244 |
return false;
|
@@ -272,36 +269,25 @@ class featured_video_plus_backend {
|
|
272 |
|
273 |
$data = $this->get_video_data($url, $sec);
|
274 |
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
'valid' => false
|
281 |
-
);
|
282 |
-
} else {
|
283 |
-
|
284 |
-
// Do we have a screen capture to pull?
|
285 |
-
if( isset($data['img']) && !empty($data['img']) ) {
|
286 |
-
$this->delete_featured_video_image( $post['id'], $meta );
|
287 |
-
$img = $this->set_featured_video_image( $post['id'], $data );
|
288 |
-
}
|
289 |
-
|
290 |
-
$meta = array(
|
291 |
-
'full' => isset($data['url']) && !empty($data['url']) ? $data['url'] : $url,
|
292 |
-
'id' => isset($data['id']) ? $data['id'] : '',
|
293 |
-
'sec' => isset($data['sec']) ? $data['sec'] : '',
|
294 |
-
'sec_id'=> isset($data['sec_id']) && !empty($data['sec_id'])? $data['sec_id']: '',
|
295 |
-
'img' => isset($img) ? $img : '',
|
296 |
-
'prov' => isset($data['provider']) ? $data['provider'] : '',
|
297 |
-
'time' => isset($data['time']) ? $data['time'] : '',
|
298 |
-
'valid' => true
|
299 |
-
);
|
300 |
-
|
301 |
}
|
302 |
|
303 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
304 |
|
|
|
305 |
return $meta;
|
306 |
}
|
307 |
|
@@ -315,7 +301,7 @@ class featured_video_plus_backend {
|
|
315 |
*/
|
316 |
function get_video_data($url, $sec = '') {
|
317 |
$local = wp_upload_dir();
|
318 |
-
preg_match('/(vimeo|youtu|dailymotion|liveleak|'.preg_quote($local['baseurl'], '/').')/i', $url, $prov_data);
|
319 |
if( isset($prov_data[1]) )
|
320 |
$provider = $prov_data[1];
|
321 |
else return false;
|
@@ -485,6 +471,18 @@ class featured_video_plus_backend {
|
|
485 |
|
486 |
break;
|
487 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
488 |
// liveleak.com
|
489 |
// no API provided, the plugin pulls the website and gets the video
|
490 |
// source url and other metadata from the source code.
|
@@ -622,6 +620,29 @@ class featured_video_plus_backend {
|
|
622 |
}
|
623 |
}
|
624 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
625 |
/*
|
626 |
* Initializes the help texts.
|
627 |
*
|
55 |
wp_enqueue_script( 'farbtastic' );
|
56 |
wp_enqueue_script( 'fvp_backend_pre35', FVP_URL . 'js/backend_pre35.js', array( 'jquery' ), FVP_VERSION );
|
57 |
}
|
58 |
+
wp_enqueue_script( 'fvp_settings', FVP_URL . 'js/settings.js', array( 'jquery' ), FVP_VERSION );
|
59 |
}
|
60 |
|
61 |
// just required on post.php
|
165 |
echo "\n\t</p>\n</div>\n";
|
166 |
|
167 |
// no featured image warning
|
168 |
+
$class = $has_featimg || !$has_post_video || (isset($options['usage']) && $options['usage'] == 'manual') ? ' fvp_hidden' : '';
|
169 |
echo '<div id="fvp_featimg_warning" class="fvp_notice'.$class.'">'."\n\t".'<p class="description">';
|
170 |
echo '<span style="font-weight: bold;">'.__('Featured Image').':</span> '.__('For automatically displaying the Featured Video a Featured Image is required.', 'featured-video-plus');
|
171 |
echo "</p>\n</div>\n";
|
175 |
printf('<p id="fvp_set_featimg_box"'.$class.'>'."\n\t".'<span id="fvp_set_featimg_input">'."\n\t\t".'<input id="fvp_set_featimg" name="fvp_set_featimg" type="checkbox" value="set_featimg" />'."\n\t\t".'<label for="fvp_set_featimg"> %s</label>'."\n\t".'</span>'."\n\t".'<a class="fvp_hidden" id="fvp_set_featimg_link" href="#">%s</a>'."\n".'</p>'."\n", __('Set as Featured Image', 'featured-video-plus'), __('Set as Featured Image', 'featured-video-plus') );
|
176 |
|
177 |
// current theme does not support Featured Images
|
178 |
+
if( !current_theme_supports('post-thumbnails') && $options['overwrite'] != 'manual' )
|
179 |
echo '<p class="fvp_warning description"><span style="font-weight: bold;">'.__('The current theme does not support Featured Images', 'featured-video-plus').':</span> '.sprintf(__('To display Featured Videos you need to use the <code>Shortcode</code> or <code>PHP functions</code>. To hide this notice deactivate "<em>Replace Featured Images</em>" in the %sMedia Settings%s.', 'featured-video-plus'), '<a href="'.get_admin_url(null, '/options-media.php').'">', '</a>' )."</p>\n\n";
|
180 |
|
181 |
echo "<!-- Featured Video Plus Metabox End-->\n\n\n";
|
220 |
|
221 |
$img = _wp_post_thumbnail_html( get_post_thumbnail_id($post['id']), $post['id'] );
|
222 |
|
223 |
+
if (has_post_video($post['id'])){
|
224 |
+
$video = get_the_post_video( $post['id'], array(256,144) );
|
|
|
|
|
225 |
echo json_encode(array( 'typ' => 'updated', 'valid' => $meta['valid'], 'video' => $video, 'img' => $img ));
|
226 |
} else
|
227 |
echo json_encode(array( 'typ' => 'removed', 'valid' => $meta['valid'], 'img' => $img ));
|
236 |
* @see http://codex.wordpress.org/Function_Reference/update_post_meta
|
237 |
*/
|
238 |
function save($post) {
|
|
|
239 |
if( ( isset($post['fvp_nonce']) && // WP Form submitted..
|
240 |
!wp_verify_nonce( $post['fvp_nonce'], FVP_NAME ) ) )
|
241 |
return false;
|
269 |
|
270 |
$data = $this->get_video_data($url, $sec);
|
271 |
|
272 |
+
$url = isset($data['url']) && !empty($data['url']) ? $data['url'] : $url;
|
273 |
+
// Do we have a screen capture to pull?
|
274 |
+
if( isset($data['img']) && !empty($data['img']) ) {
|
275 |
+
$this->delete_featured_video_image( $post['id'], $meta );
|
276 |
+
$img = $this->set_featured_video_image( $post['id'], $data );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
}
|
278 |
|
279 |
+
$meta = array(
|
280 |
+
'full' => $url,
|
281 |
+
'id' => isset($data['id']) ? $data['id'] : '',
|
282 |
+
'sec' => isset($data['sec']) ? $data['sec'] : '',
|
283 |
+
'sec_id'=> isset($data['sec_id']) && !empty($data['sec_id'])? $data['sec_id']: '',
|
284 |
+
'img' => isset($img) ? $img : '',
|
285 |
+
'prov' => isset($data['provider']) ? $data['provider'] : '',
|
286 |
+
'time' => isset($data['time']) ? $data['time'] : '',
|
287 |
+
'valid' => isset($data['valid']) ? $data['valid'] : true
|
288 |
+
);
|
289 |
|
290 |
+
update_post_meta( $post['id'], '_fvp_video', $meta );
|
291 |
return $meta;
|
292 |
}
|
293 |
|
301 |
*/
|
302 |
function get_video_data($url, $sec = '') {
|
303 |
$local = wp_upload_dir();
|
304 |
+
preg_match('/(vimeo|youtu|dailymotion|liveleak|blip|hulu|'.preg_quote($local['baseurl'], '/').')/i', $url, $prov_data);
|
305 |
if( isset($prov_data[1]) )
|
306 |
$provider = $prov_data[1];
|
307 |
else return false;
|
471 |
|
472 |
break;
|
473 |
|
474 |
+
/* case 'blip':
|
475 |
+
case 'hulu':
|
476 |
+
$valid = true;
|
477 |
+
if (!wp_oembed_get( $url ))
|
478 |
+
$valid = false;
|
479 |
+
|
480 |
+
$data = array(
|
481 |
+
'url' => $url,
|
482 |
+
'valid' => $valid
|
483 |
+
);
|
484 |
+
break;*/
|
485 |
+
|
486 |
// liveleak.com
|
487 |
// no API provided, the plugin pulls the website and gets the video
|
488 |
// source url and other metadata from the source code.
|
620 |
}
|
621 |
}
|
622 |
|
623 |
+
/**
|
624 |
+
*
|
625 |
+
* @since 1.7
|
626 |
+
*/
|
627 |
+
public function ajax_get_embed(){
|
628 |
+
header( "Content-Type: application/json" );
|
629 |
+
|
630 |
+
if (!isset( $_POST['nonce'] ) ||
|
631 |
+
!wp_verify_nonce( $_POST['nonce'], 'featured-video-plus-nonce' )){
|
632 |
+
json_encode(array('success' => false, 'html' => 'invalid nonce'));
|
633 |
+
exit();
|
634 |
+
}
|
635 |
+
|
636 |
+
if (has_post_video($_POST['id'])){
|
637 |
+
$video = get_the_post_video( $_POST['id'] );
|
638 |
+
echo json_encode(array('success' => 'true', 'html' => $video));
|
639 |
+
} else{
|
640 |
+
$image = get_the_post_thumbnail($_POST['id']);
|
641 |
+
echo json_encode(array('success' => 'false','html' => $image));
|
642 |
+
}
|
643 |
+
exit;
|
644 |
+
}
|
645 |
+
|
646 |
/*
|
647 |
* Initializes the help texts.
|
648 |
*
|
php/frontend.php
CHANGED
@@ -33,6 +33,37 @@ class featured_video_plus_frontend {
|
|
33 |
* @since 1.0
|
34 |
*/
|
35 |
public function enqueue() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
}
|
37 |
|
38 |
/**
|
@@ -50,11 +81,22 @@ class featured_video_plus_frontend {
|
|
50 |
public function filter_post_thumbnail($html, $post_id, $post_thumbnail_id, $size, $attr) {
|
51 |
global $_wp_additional_image_sizes;
|
52 |
|
|
|
|
|
53 |
$options = get_option( 'fvp-settings' );
|
54 |
-
|
|
|
55 |
return $html;
|
56 |
|
57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
}
|
59 |
|
60 |
/**
|
@@ -72,4 +114,3 @@ class featured_video_plus_frontend {
|
|
72 |
return get_the_post_video(null, array($w, $h));
|
73 |
}
|
74 |
}
|
75 |
-
?>
|
33 |
* @since 1.0
|
34 |
*/
|
35 |
public function enqueue() {
|
36 |
+
$options = get_option('fvp-settings');
|
37 |
+
|
38 |
+
wp_enqueue_script('jquery');
|
39 |
+
|
40 |
+
if ($options['sizing']['wmode'] == 'auto' && $options['usage']!='overlay')
|
41 |
+
wp_enqueue_script('jquery.fitvids', FVP_URL . 'js/jquery.fitvids.min.js', array( 'jquery' ), FVP_VERSION, false ); // production
|
42 |
+
//wp_enqueue_script('fvp_fitvids', FVP_URL . 'js/jquery.fitvids.js', array( 'jquery' ), FVP_VERSION, false ); // development
|
43 |
+
|
44 |
+
if ($options['usage']=='overlay')
|
45 |
+
wp_enqueue_script( 'jquery.domwindow', FVP_URL . 'js/jquery.domwindow.min.js', array( 'jquery' ), FVP_VERSION ); // production
|
46 |
+
//wp_enqueue_script( 'jquery.domwindow', FVP_URL . 'js/jquery.domwindow.js', array( 'jquery' ), FVP_VERSION ); // development
|
47 |
+
//add_thickbox();
|
48 |
+
|
49 |
+
wp_enqueue_script( 'fvp_frontend', FVP_URL . 'js/frontend.min.js', array( 'jquery' ), FVP_VERSION ); // production
|
50 |
+
//wp_enqueue_script( 'fvp_frontend', FVP_URL . 'js/frontend.js', array( 'jquery' ), FVP_VERSION ); // development
|
51 |
+
|
52 |
+
wp_localize_script( 'fvp_frontend', 'fvpdata', array(
|
53 |
+
'ajaxurl' => admin_url( 'admin-ajax.php' ),
|
54 |
+
'nonce' => wp_create_nonce( 'featured-video-plus-nonce' ),
|
55 |
+
'fitvids' => isset($options['sizing']['wmode']) &&
|
56 |
+
$options['sizing']['wmode']=='auto' ? 1 : 0,
|
57 |
+
'dynamic' => isset($options['usage']) &&
|
58 |
+
$options['usage']=='dynamic' ? 1 : 0,
|
59 |
+
'overlay' => isset($options['usage']) &&
|
60 |
+
$options['usage']=='overlay' ? 1 : 0,
|
61 |
+
'opacity' => '75',
|
62 |
+
'loadingw'=> FVP_URL . 'css/loading_w.gif',
|
63 |
+
'loadingb'=> FVP_URL . 'css/loading_b.gif'
|
64 |
+
) );
|
65 |
+
|
66 |
+
wp_enqueue_style('fvp_frontend', FVP_URL . 'css/frontend.css', array(), FVP_VERSION, false );
|
67 |
}
|
68 |
|
69 |
/**
|
81 |
public function filter_post_thumbnail($html, $post_id, $post_thumbnail_id, $size, $attr) {
|
82 |
global $_wp_additional_image_sizes;
|
83 |
|
84 |
+
$size = $this->featured_video_plus->get_size();
|
85 |
+
|
86 |
$options = get_option( 'fvp-settings' );
|
87 |
+
|
88 |
+
if ((!$options['usage']=='manual') || !has_post_video($post_id))
|
89 |
return $html;
|
90 |
|
91 |
+
elseif ($options['usage']=='replace')
|
92 |
+
return get_the_post_video($post_id, $size);
|
93 |
+
|
94 |
+
elseif ($options['usage']=='overlay') //?width='.$size['0'].'&height='.$size['1'].'&inlineId=fvp_'.$post_id.'
|
95 |
+
return '<a href="#fvp_'.$post_id.'" class="fvp_overlay" onclick="return false;">'.$html.'</a><div id="fvp_'.$post_id.'" style="display: none;"></div>';
|
96 |
+
|
97 |
+
else//if ($options['usage']=='dynamic')
|
98 |
+
return '<a href="#featuredvideo'.$post_id.'" class="fvp_dynamic fvp_'.$post_id.'" onclick="fvp_dynamic('.$post_id.');return false;">'.$html.'</a>';
|
99 |
+
|
100 |
}
|
101 |
|
102 |
/**
|
114 |
return get_the_post_video(null, array($w, $h));
|
115 |
}
|
116 |
}
|
|
php/functions.php
CHANGED
@@ -11,7 +11,7 @@ function has_post_video($post_id = null){
|
|
11 |
$post_id = ( null === $post_id ) ? get_the_ID() : $post_id;
|
12 |
|
13 |
$meta = get_post_meta( $post_id, '_fvp_video', true );
|
14 |
-
if( !isset($meta) || empty($meta['
|
15 |
return false;
|
16 |
|
17 |
return true;
|
@@ -52,7 +52,7 @@ function get_the_post_video_image_url($post_id = null) {
|
|
52 |
$post_id = ( null === $post_id ) ? get_the_ID() : $post_id;
|
53 |
|
54 |
$meta = get_post_meta( $post_id, '_fvp_video', true );
|
55 |
-
if( !isset($meta) || empty($meta['
|
56 |
return false;
|
57 |
|
58 |
global $featured_video_plus;
|
@@ -71,7 +71,7 @@ function get_the_post_video_image_url($post_id = null) {
|
|
71 |
*/
|
72 |
function get_the_post_video_image($post_id = null, $size = null) {
|
73 |
$meta = get_post_meta( $post_id, '_fvp_video', true );
|
74 |
-
if( !isset($meta) || empty($meta['
|
75 |
return false;
|
76 |
|
77 |
global $featured_video_plus;
|
@@ -89,15 +89,18 @@ function get_the_post_video_image($post_id = null, $size = null) {
|
|
89 |
* @param int $post_id
|
90 |
* @return mixed boolean (false) when no url/ string with url
|
91 |
*/
|
92 |
-
function get_the_post_video_url($post_id){
|
93 |
$post_id = ( null === $post_id ) ? get_the_ID() : $post_id;
|
94 |
|
95 |
$meta = get_post_meta($post_id, '_fvp_video', true );
|
96 |
-
if (!isset($meta) || empty($meta['
|
97 |
return false;
|
98 |
|
99 |
if (isset($meta['prov']) && $meta['prov'] == 'local')
|
100 |
-
|
|
|
|
|
|
|
101 |
else if (isset($meta['full']))
|
102 |
return $meta['full'];
|
103 |
else
|
11 |
$post_id = ( null === $post_id ) ? get_the_ID() : $post_id;
|
12 |
|
13 |
$meta = get_post_meta( $post_id, '_fvp_video', true );
|
14 |
+
if( !isset($meta) || empty($meta['full']) )
|
15 |
return false;
|
16 |
|
17 |
return true;
|
52 |
$post_id = ( null === $post_id ) ? get_the_ID() : $post_id;
|
53 |
|
54 |
$meta = get_post_meta( $post_id, '_fvp_video', true );
|
55 |
+
if( !isset($meta) || empty($meta['full']) )
|
56 |
return false;
|
57 |
|
58 |
global $featured_video_plus;
|
71 |
*/
|
72 |
function get_the_post_video_image($post_id = null, $size = null) {
|
73 |
$meta = get_post_meta( $post_id, '_fvp_video', true );
|
74 |
+
if( !isset($meta) || empty($meta['full']) )
|
75 |
return false;
|
76 |
|
77 |
global $featured_video_plus;
|
89 |
* @param int $post_id
|
90 |
* @return mixed boolean (false) when no url/ string with url
|
91 |
*/
|
92 |
+
function get_the_post_video_url($post_id, $fallback = false){
|
93 |
$post_id = ( null === $post_id ) ? get_the_ID() : $post_id;
|
94 |
|
95 |
$meta = get_post_meta($post_id, '_fvp_video', true );
|
96 |
+
if (!isset($meta) || empty($meta['full']))
|
97 |
return false;
|
98 |
|
99 |
if (isset($meta['prov']) && $meta['prov'] == 'local')
|
100 |
+
if (!$fallback)
|
101 |
+
return wp_get_attachment_url($meta['id']);
|
102 |
+
else
|
103 |
+
return wp_get_attachment_url($meta['sec_id']);
|
104 |
else if (isset($meta['full']))
|
105 |
return $meta['full'];
|
106 |
else
|
php/general.php
CHANGED
@@ -31,12 +31,6 @@ class featured_video_plus {
|
|
31 |
if( $options['local']['videojs']['cdn'] )
|
32 |
wp_enqueue_style( 'videojs', 'http://vjs.zencdn.net/c/video-js.css', array(), FVP_VERSION, false );
|
33 |
else wp_enqueue_style( 'videojs', FVP_URL . 'css/videojs.min.css', array(), FVP_VERSION, false );
|
34 |
-
|
35 |
-
if( $options['sizing']['wmode'] == 'auto' )
|
36 |
-
wp_enqueue_script('fvp_fitvids', FVP_URL . 'js/jquery.fitvids_fvp.min.js', array( 'jquery' ), FVP_VERSION, true ); // production
|
37 |
-
//wp_enqueue_script('fvp_fitvids', FVP_URL . 'js/jquery.fitvids_fvp.js', array( 'jquery' ), FVP_VERSION, true ); // development
|
38 |
-
|
39 |
-
wp_enqueue_style('fvp_frontend', FVP_URL . 'css/frontend.css', array(), FVP_VERSION, false );
|
40 |
}
|
41 |
}
|
42 |
|
@@ -60,47 +54,48 @@ class featured_video_plus {
|
|
60 |
$options= get_option( 'fvp-settings' );
|
61 |
|
62 |
$size = $this->get_size($size);
|
63 |
-
$
|
64 |
-
|
65 |
-
|
66 |
-
$
|
67 |
-
|
68 |
-
|
69 |
-
$
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
$embed .= "\n\t</video>\n";
|
96 |
-
break;
|
97 |
|
|
|
|
|
|
|
98 |
case 'vimeo':
|
99 |
if (!$valid) return '';
|
100 |
|
101 |
$options = get_option( 'fvp-settings' );
|
102 |
$src = 'http://player.vimeo.com/video/'.$meta['id'].'?badge=0&portrait='.$options['vimeo']['portrait'].'&title='.$options['vimeo']['title'].'&byline='.$options['vimeo']['byline'].'&color='.$options['vimeo']['color'].$autoplay;
|
103 |
-
$embed = "\n\t" . '<iframe src="'.$src.'" width="'.$width.'" height="'.$height.'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>' . "\n";
|
104 |
break;
|
105 |
|
106 |
case 'youtube':
|
@@ -113,10 +108,10 @@ class featured_video_plus {
|
|
113 |
$youtube['fs'] = isset($options['youtube']['fs']) ? $options['youtube']['fs'] : 1;
|
114 |
$youtube['wmode'] = isset($options['youtube']['wmode']) && $options['youtube']['wmode'] != 'auto' ? '&wmode='.$options['youtube']['wmode'] : '';
|
115 |
|
|
|
116 |
$src = 'http://www.youtube.com/embed/'.$meta['id'].'?theme='.$youtube['theme'].$youtube['wmode'].'&color='.$youtube['color'].'&showinfo='.$youtube['info'].'&modestbranding='.$youtube['logo'].'&enablejsapi='.$youtube['jsapi'].'&origin='.esc_attr(home_url()).'&rel='.$youtube['rel'].'&fs='.$youtube['fs'].'&start='.$meta['time'].$autoplay;
|
117 |
-
$embed = "\n\t" . '<iframe width="'.$width.'" height="'.$height.'" src="'.$src.'" type="text/html" frameborder="0" id="fvpyt'.$post_id.'"></iframe>' . "\n";
|
118 |
break;
|
119 |
-
|
120 |
case 'dailymotion':
|
121 |
$dm['foreground'] = isset($options['dailymotion']['foreground']) ? $options['dailymotion']['foreground'] : 'F7FFFD';
|
122 |
$dm['highlight'] = isset($options['dailymotion']['highlight']) ? $options['dailymotion']['highlight'] : 'FFC300';
|
@@ -127,32 +122,30 @@ class featured_video_plus {
|
|
127 |
$dm['synd'] = !empty($dm['syndication']) ? '&syndication='.$dm['syndication'] : '';
|
128 |
|
129 |
$dm['src'] = 'http://www.dailymotion.com/embed/video/'.$meta['id'].'?logo='.$dm['logo'].'&hideInfos='.$dm['hideinfo'].'&foreground=%23'.$dm['foreground'].'&highlight=%23'.$dm['highlight'].'&background=%23'.$dm['background'].$dm['synd'].'&start='.$meta['time'].$autoplay;
|
130 |
-
$embed = "\n" . '<iframe width="'.$width.'" height="'.$height.'" src="'.$dm['src'].'" frameborder="0"></iframe>' . "\n";
|
131 |
break;
|
132 |
|
133 |
case 'liveleak':
|
134 |
-
$embed = "\n" . '<iframe width="'.$width.'" height="'.$height.'" src="http://www.liveleak.com/ll_embed?f='.$meta['id'].'" frameborder="0" allowfullscreen></iframe>';
|
135 |
break;
|
136 |
|
137 |
case 'prochan':
|
138 |
-
$embed = "\n" . '<iframe width="'.$width.'" height="'.$height.'" src="http://www.prochan.com/embed?f='.$meta['id'].'" frameborder="0" allowfullscreen></iframe>';
|
139 |
-
break;
|
140 |
-
|
141 |
-
default:
|
142 |
-
$embed = '';
|
143 |
-
$container = false;
|
144 |
break;
|
145 |
|
|
|
|
|
|
|
|
|
|
|
146 |
}
|
147 |
-
|
148 |
-
$containerstyle = isset($options['sizing']['align']) ? ' style="text-align: '.$options['sizing']['align'].'"' : '';
|
149 |
-
$embed = "<div class=\"featured_video_plus\"{$containerstyle}>{$embed}</div>\n\n";
|
150 |
-
|
151 |
-
$embed = "\n\n<!-- Featured Video Plus v".FVP_VERSION."-->\n" . $embed;
|
152 |
-
|
153 |
-
return $embed;
|
154 |
}
|
155 |
|
|
|
|
|
|
|
|
|
|
|
156 |
}
|
157 |
|
158 |
/**
|
@@ -177,6 +170,8 @@ class featured_video_plus {
|
|
177 |
|
178 |
} elseif( !empty( $size[0] ) && is_numeric( $size[0] ) )
|
179 |
$width = $size[0];
|
|
|
|
|
180 |
else
|
181 |
$width = 560;
|
182 |
|
@@ -216,7 +211,7 @@ class featured_video_plus {
|
|
216 |
}
|
217 |
|
218 |
/**
|
219 |
-
* Initializes
|
220 |
*
|
221 |
* @since 1.3
|
222 |
*/
|
31 |
if( $options['local']['videojs']['cdn'] )
|
32 |
wp_enqueue_style( 'videojs', 'http://vjs.zencdn.net/c/video-js.css', array(), FVP_VERSION, false );
|
33 |
else wp_enqueue_style( 'videojs', FVP_URL . 'css/videojs.min.css', array(), FVP_VERSION, false );
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
}
|
35 |
}
|
36 |
|
54 |
$options= get_option( 'fvp-settings' );
|
55 |
|
56 |
$size = $this->get_size($size);
|
57 |
+
$size = array( 'width' => $size[0], 'height' => $size[1] );
|
58 |
+
|
59 |
+
$autoplay = '&autoplay=';
|
60 |
+
if ($options['usage']=='dynamic' && defined('DOING_AJAX') && DOING_AJAX && isset($_POST['action']) && $_POST['action']=='fvp_get_embed')
|
61 |
+
$autoplay.= '1';
|
62 |
+
elseif (is_single())
|
63 |
+
$autoplay.= isset($options['autoplay']) ? $options['autoplay'] : '0';
|
64 |
+
|
65 |
+
$valid = $meta['valid'];
|
66 |
+
|
67 |
+
if ($meta['prov'] == 'local'){
|
68 |
+
if (isset($options['local']['videojs']['poster']) && $options['local']['videojs']['poster'])
|
69 |
+
$poster = has_post_thumbnail($post_id) ? ' poster="'.wp_get_attachment_url( get_post_thumbnail_id($post_id) ).'"' : '';
|
70 |
+
else
|
71 |
+
$poster = ' poster=""';
|
72 |
+
|
73 |
+
$a = wp_get_attachment_url($meta['id']);
|
74 |
+
$ext = pathinfo( $a, PATHINFO_EXTENSION );
|
75 |
+
if( $ext != 'mp4' && $ext != 'ogv' && $ext != 'webm' && $ext != 'ogg' )
|
76 |
+
break;
|
77 |
+
|
78 |
+
$ext = $ext == 'ogv' ? 'ogg' : $ext;
|
79 |
+
$embed = "\n\t".'<video class="video-js vjs-default-skin" controls preload="auto" width="'.$size['width'].'" height="'.$size['height'].'"'.$poster.' data-setup="{}">';
|
80 |
+
$embed .= "\n\t\t".'<source src="' . $a . '" type="video/'.$ext.'">';
|
81 |
+
|
82 |
+
if( isset($meta['sec_id']) && !empty($meta['sec_id']) && $meta['sec_id'] != $meta['id'] ) {
|
83 |
+
$b = wp_get_attachment_url($meta['sec_id']);
|
84 |
+
$ext2 = pathinfo( $b, PATHINFO_EXTENSION );
|
85 |
+
$ext2 = $ext2 == 'ogv' ? 'ogg' : $ext2;
|
86 |
+
if( $ext2 == 'mp4' || $ext2 == 'ogv' || $ext2 == 'webm' || $ext2 == 'ogg' )
|
87 |
+
$embed .= "\n\t\t".'<source src="' . $b . '" type="video/'.$ext2.'">';
|
88 |
+
}
|
|
|
|
|
89 |
|
90 |
+
$embed .= "\n\t</video>\n";
|
91 |
+
}else{
|
92 |
+
switch ($meta['prov']){
|
93 |
case 'vimeo':
|
94 |
if (!$valid) return '';
|
95 |
|
96 |
$options = get_option( 'fvp-settings' );
|
97 |
$src = 'http://player.vimeo.com/video/'.$meta['id'].'?badge=0&portrait='.$options['vimeo']['portrait'].'&title='.$options['vimeo']['title'].'&byline='.$options['vimeo']['byline'].'&color='.$options['vimeo']['color'].$autoplay;
|
98 |
+
$embed = "\n\t" . '<iframe src="'.$src.'" width="'.$size['width'].'" height="'.$size['height'].'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>' . "\n";
|
99 |
break;
|
100 |
|
101 |
case 'youtube':
|
108 |
$youtube['fs'] = isset($options['youtube']['fs']) ? $options['youtube']['fs'] : 1;
|
109 |
$youtube['wmode'] = isset($options['youtube']['wmode']) && $options['youtube']['wmode'] != 'auto' ? '&wmode='.$options['youtube']['wmode'] : '';
|
110 |
|
111 |
+
//$embed = wp_oembed_get('http://youtu.be/'.$meta['id'], $size);
|
112 |
$src = 'http://www.youtube.com/embed/'.$meta['id'].'?theme='.$youtube['theme'].$youtube['wmode'].'&color='.$youtube['color'].'&showinfo='.$youtube['info'].'&modestbranding='.$youtube['logo'].'&enablejsapi='.$youtube['jsapi'].'&origin='.esc_attr(home_url()).'&rel='.$youtube['rel'].'&fs='.$youtube['fs'].'&start='.$meta['time'].$autoplay;
|
113 |
+
$embed = "\n\t" . '<iframe width="'.$size['width'].'" height="'.$size['height'].'" src="'.$src.'" type="text/html" frameborder="0" id="fvpyt'.$post_id.'"></iframe>' . "\n";
|
114 |
break;
|
|
|
115 |
case 'dailymotion':
|
116 |
$dm['foreground'] = isset($options['dailymotion']['foreground']) ? $options['dailymotion']['foreground'] : 'F7FFFD';
|
117 |
$dm['highlight'] = isset($options['dailymotion']['highlight']) ? $options['dailymotion']['highlight'] : 'FFC300';
|
122 |
$dm['synd'] = !empty($dm['syndication']) ? '&syndication='.$dm['syndication'] : '';
|
123 |
|
124 |
$dm['src'] = 'http://www.dailymotion.com/embed/video/'.$meta['id'].'?logo='.$dm['logo'].'&hideInfos='.$dm['hideinfo'].'&foreground=%23'.$dm['foreground'].'&highlight=%23'.$dm['highlight'].'&background=%23'.$dm['background'].$dm['synd'].'&start='.$meta['time'].$autoplay;
|
125 |
+
$embed = "\n" . '<iframe width="'.$size['width'].'" height="'.$size['height'].'" src="'.$dm['src'].'" frameborder="0"></iframe>' . "\n";
|
126 |
break;
|
127 |
|
128 |
case 'liveleak':
|
129 |
+
$embed = "\n" . '<iframe width="'.$size['width'].'" height="'.$size['height'].'" src="http://www.liveleak.com/ll_embed?f='.$meta['id'].'" frameborder="0" allowfullscreen></iframe>';
|
130 |
break;
|
131 |
|
132 |
case 'prochan':
|
133 |
+
$embed = "\n" . '<iframe width="'.$size['width'].'" height="'.$size['height'].'" src="http://www.prochan.com/embed?f='.$meta['id'].'" frameborder="0" allowfullscreen></iframe>';
|
|
|
|
|
|
|
|
|
|
|
134 |
break;
|
135 |
|
136 |
+
/*default:
|
137 |
+
$embed = wp_oembed_get($meta['url'], $size);
|
138 |
+
if (!$embed)
|
139 |
+
return false;
|
140 |
+
break;*/
|
141 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
}
|
143 |
|
144 |
+
$containerstyle = isset($options['sizing']['align']) ? ' style="text-align: '.$options['sizing']['align'].'"' : '';
|
145 |
+
$embed = "<div class=\"featured_video_plus\"{$containerstyle}>{$embed}</div>\n\n";
|
146 |
+
$embed = "\n\n<!-- Featured Video Plus v".FVP_VERSION."--".$size['width'].$size['height']."-->\n" . $embed;
|
147 |
+
|
148 |
+
return $embed;
|
149 |
}
|
150 |
|
151 |
/**
|
170 |
|
171 |
} elseif( !empty( $size[0] ) && is_numeric( $size[0] ) )
|
172 |
$width = $size[0];
|
173 |
+
elseif( isset($options['sizing']['wmode']) && $options['sizing']['wmode'] == 'fixed' )
|
174 |
+
$width = $options['sizing']['width']; // auto width is applied by fitvids JS
|
175 |
else
|
176 |
$width = 560;
|
177 |
|
211 |
}
|
212 |
|
213 |
/**
|
214 |
+
* Initializes i18n
|
215 |
*
|
216 |
* @since 1.3
|
217 |
*/
|
php/settings.php
CHANGED
@@ -20,7 +20,7 @@ class featured_video_plus_settings {
|
|
20 |
function settings_init() {
|
21 |
add_settings_section('fvp-settings-section', __('Featured Videos', 'featured-video-plus'), array( &$this, 'settings_content' ), 'media');
|
22 |
|
23 |
-
add_settings_field('fvp-settings-
|
24 |
add_settings_field('fvp-settings-autoplay', __('Autoplay', 'featured-video-plus'), array( &$this, 'settings_autoplay' ), 'media', 'fvp-settings-section');
|
25 |
add_settings_field('fvp-settings-sizing', __('Video Sizing', 'featured-video-plus'), array( &$this, 'settings_sizing' ), 'media', 'fvp-settings-section');
|
26 |
add_settings_field('fvp-settings-align', __('Video Align', 'featured-video-plus'), array( &$this, 'settings_align' ), 'media', 'fvp-settings-section');
|
@@ -49,25 +49,26 @@ class featured_video_plus_settings {
|
|
49 |
<?php }
|
50 |
|
51 |
/**
|
52 |
-
* Displays the
|
53 |
*
|
54 |
-
* @since 1.
|
55 |
*/
|
56 |
-
function
|
57 |
$options = get_option( 'fvp-settings' );
|
58 |
-
$
|
59 |
?>
|
60 |
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
<input type="radio" name="fvp-settings[
|
65 |
-
<
|
|
|
66 |
|
67 |
<?php
|
68 |
$class = $overwrite ? 'fvp_warning ' : 'fvp_notice ';
|
69 |
if( !current_theme_supports('post-thumbnails') )
|
70 |
-
echo '<p class="'.$class.'description"><span style="font-weight: bold;">'.__('The current theme does not support
|
71 |
|
72 |
}
|
73 |
|
@@ -302,8 +303,8 @@ VideoJS:
|
|
302 |
$numbers = '#[0-9]{1,4}#';
|
303 |
$options = get_option( 'fvp-settings' );
|
304 |
|
305 |
-
//
|
306 |
-
$options['
|
307 |
|
308 |
// Sizing
|
309 |
if(isset($input['sizing']['width' ]['fixed'])) {
|
20 |
function settings_init() {
|
21 |
add_settings_section('fvp-settings-section', __('Featured Videos', 'featured-video-plus'), array( &$this, 'settings_content' ), 'media');
|
22 |
|
23 |
+
add_settings_field('fvp-settings-usage', __('Usage', 'featured-video-plus'), array( &$this, 'settings_usage' ), 'media', 'fvp-settings-section');
|
24 |
add_settings_field('fvp-settings-autoplay', __('Autoplay', 'featured-video-plus'), array( &$this, 'settings_autoplay' ), 'media', 'fvp-settings-section');
|
25 |
add_settings_field('fvp-settings-sizing', __('Video Sizing', 'featured-video-plus'), array( &$this, 'settings_sizing' ), 'media', 'fvp-settings-section');
|
26 |
add_settings_field('fvp-settings-align', __('Video Align', 'featured-video-plus'), array( &$this, 'settings_align' ), 'media', 'fvp-settings-section');
|
49 |
<?php }
|
50 |
|
51 |
/**
|
52 |
+
* Displays the different usage options of the plugin
|
53 |
*
|
54 |
+
* @since 1.7
|
55 |
*/
|
56 |
+
function settings_usage() {
|
57 |
$options = get_option( 'fvp-settings' );
|
58 |
+
$usage = isset($options['usage']) ? $options['usage'] : false;
|
59 |
?>
|
60 |
|
61 |
+
|
62 |
+
<input type="radio" name="fvp-settings[usage]" id="fvp-settings-usage-1" value="replace" <?php checked( 'replace', $usage ) ?>/><label for="fvp-settings-usage-1"> <?php _e('Replace featured image automatically if possible', 'featured-video-plus'); ?> <span style="font-style: italic;">(<?php _e('default', 'featured-video-plus'); ?>)</span></label><br />
|
63 |
+
<input type="radio" name="fvp-settings[usage]" id="fvp-settings-usage-2" value="overlay" <?php checked( 'overlay', $usage ) ?>/><label for="fvp-settings-usage-2"> <?php _e('Open video overlay when featured image is clicked. Define width below!', 'featured-video-plus'); ?></label><br />
|
64 |
+
<input type="radio" name="fvp-settings[usage]" id="fvp-settings-usage-3" value="dynamic" <?php checked( 'dynamic', $usage ) ?>/><label for="fvp-settings-usage-3"> <?php _e('Replace featured image with video on click and auto play if possible','featured-video-plus'); ?></label><br />
|
65 |
+
<input type="radio" name="fvp-settings[usage]" id="fvp-settings-usage-4" value="manual" <?php checked( 'manual', $usage ) ?>/><label for="fvp-settings-usage-4"> <?php _e('None of the above: Manually use PHP-functions or shortcodes','featured-video-plus'); ?></label>
|
66 |
+
<p class="description"><?php printf(__('The first three options require your theme to make use of WordPress\' %sfeatured image%s capabilities.', 'featured-video-plus'),'<a href="http://codex.wordpress.org/Post_Thumbnails" target="_blank">','</a>'); ?></p>
|
67 |
|
68 |
<?php
|
69 |
$class = $overwrite ? 'fvp_warning ' : 'fvp_notice ';
|
70 |
if( !current_theme_supports('post-thumbnails') )
|
71 |
+
echo '<p class="'.$class.'description"><span style="font-weight: bold;">'.__('The current theme does not support featured images', 'featured-video-plus').':</span> '.__('To display Featured Videos you need to use the <code>Shortcode</code> or <code>PHP functions</code>.', 'featured-video-plus').'</p>'."\n";
|
72 |
|
73 |
}
|
74 |
|
303 |
$numbers = '#[0-9]{1,4}#';
|
304 |
$options = get_option( 'fvp-settings' );
|
305 |
|
306 |
+
// Usage
|
307 |
+
$options['usage'] = isset($input['usage']) ? $input['usage'] : 'replace';
|
308 |
|
309 |
// Sizing
|
310 |
if(isset($input['sizing']['width' ]['fixed'])) {
|
php/upgrade.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
function featured_video_plus_upgrade() {
|
8 |
$options = $options_org = get_option( 'fvp-settings' );
|
9 |
|
10 |
-
if(
|
11 |
$version = '0';
|
12 |
elseif( !isset($options['version']) )
|
13 |
$version = '1.1';
|
@@ -113,9 +113,13 @@ function featured_video_plus_upgrade() {
|
|
113 |
$options['local']['videojs']['poster'] = false;
|
114 |
unset($options['reged'], $options['out']);
|
115 |
|
|
|
|
|
|
|
|
|
116 |
|
117 |
// *************************************************************
|
118 |
-
|
119 |
$options['version'] = FVP_VERSION;
|
120 |
break;
|
121 |
}
|
7 |
function featured_video_plus_upgrade() {
|
8 |
$options = $options_org = get_option( 'fvp-settings' );
|
9 |
|
10 |
+
if (!isset($options['overwrite'])&&!isset($options['usage']))
|
11 |
$version = '0';
|
12 |
elseif( !isset($options['version']) )
|
13 |
$version = '1.1';
|
113 |
$options['local']['videojs']['poster'] = false;
|
114 |
unset($options['reged'], $options['out']);
|
115 |
|
116 |
+
case '1.6':
|
117 |
+
case '1.6.1':
|
118 |
+
$options['usage'] = $options['overwrite'] ? 'replace' : 'manual'; // replace;manual;overlay
|
119 |
+
unset($options['overwrite']);
|
120 |
|
121 |
// *************************************************************
|
122 |
+
//default:
|
123 |
$options['version'] = FVP_VERSION;
|
124 |
break;
|
125 |
}
|
readme.txt
CHANGED
@@ -9,8 +9,8 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=a%2eh
|
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
Requires at least: 3.1
|
12 |
-
Tested up to: 3.
|
13 |
-
Stable tag: 1.
|
14 |
|
15 |
Add Featured Videos to your posts and pages. Works like magic with most themes which use Featured Images. Local Media, YouTube, Vimeo, Dailymotion.
|
16 |
|
@@ -23,6 +23,10 @@ This plugin enables you to define Featured Videos, which, if set, take the place
|
|
23 |
2. insert the `[featured-video-plus]`-__Shortcode__ in your posts or
|
24 |
3. manually make use of the __PHP functions__ in your theme's source files.
|
25 |
|
|
|
|
|
|
|
|
|
26 |
Beside your __Local Videos__ (`mp4`, `webM` & `ogg/ogv`) you can use videos from __YouTube__, __Vimeo__ and __Dailymotion__. If you miss a certain video platform: [Leave me a note](http://wordpress.org/support/plugin/featured-video-plus). For YouTube and Dailymotion the plugin also features [time-links](http://support.google.com/youtube/bin/answer.py?hl=en&answer=116618).
|
27 |
|
28 |
The plugin adds customization options to your Media Settings. Beside aesthetic individualizations for each video platform's player you can turn off automatic integration, turn on autoplay, define your Dailymotion Syndication Key and tweak video sizing. By default videos try to dynamically fit their parent containers width. Take a look at *Settings -> Media*.
|
@@ -38,10 +42,10 @@ The plugin adds customization options to your Media Settings. Beside aesthetic i
|
|
38 |
has_post_video( $post_id )
|
39 |
get_the_post_video( $post_id, $size )
|
40 |
get_the_post_video_url( $post_id )
|
41 |
-
get_the_post_video_image_url( $post_id )
|
42 |
get_the_post_video_image( $post_id )
|
43 |
|
44 |
-
All parameters are optional. If no `$post_id` is given the current post's ID will be used. `$size` is either a string keyword (`thumbnail`, `medium`, `large` or `full`) or a 2-item array representing width and height in pixels, e.g. array(560,320).
|
45 |
|
46 |
|
47 |
|
@@ -60,13 +64,19 @@ The plugin is ready to go. Now edit your posts and add video links to the "Featu
|
|
60 |
|
61 |
== Changelog ==
|
62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
= 1.6.1: 2013-04-18 =
|
64 |
* Fixed removing featured image when no featured video is specified ([*](http://wordpress.org/support/topic/featured-image-doesnt-save))
|
65 |
|
66 |
= 1.6: 2013-04-16 =
|
67 |
* Added `get_the_post_video_url($post_id)` PHP-Function
|
68 |
-
* Added YouTube `enablejsapi` parameter with `playerapiid` (`fvpid + $post_id`) and iframe id ([*](http://wordpress.org/support/topic/need-filter-for-iframe-and-embed-code-manipulation)
|
69 |
-
* Added a filter for `get_the_post_video`: `get_the_post_video_filter` ([*](http://wordpress.org/support/topic/need-filter-for-iframe-and-embed-code-manipulation)
|
70 |
* Added option for using the featured image as video thumbnail for local videos
|
71 |
* Fixed local videoJS ([*](http://wordpress.org/support/topic/how-to-style-the-player-play-button-pause-button-etc))
|
72 |
* Fixed auto width and height for the Dailymotion and videoJS players
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
Requires at least: 3.1
|
12 |
+
Tested up to: 3.6
|
13 |
+
Stable tag: 1.7
|
14 |
|
15 |
Add Featured Videos to your posts and pages. Works like magic with most themes which use Featured Images. Local Media, YouTube, Vimeo, Dailymotion.
|
16 |
|
23 |
2. insert the `[featured-video-plus]`-__Shortcode__ in your posts or
|
24 |
3. manually make use of the __PHP functions__ in your theme's source files.
|
25 |
|
26 |
+
Instead of option 1 the plugin can also request the videos using an AJAX request when the featured image is clicked. This reduces load times and gives you the flexibility to display videos in a lightbox to ensure your theme does not break.
|
27 |
+
|
28 |
+
See the theme in action on [yrnxt.com](http://yrnxt.com/wordpress/featured-video-plus/). Also take a look at the [Garvan](http://www.web2feel.com/garvan/) video blogging theme.
|
29 |
+
|
30 |
Beside your __Local Videos__ (`mp4`, `webM` & `ogg/ogv`) you can use videos from __YouTube__, __Vimeo__ and __Dailymotion__. If you miss a certain video platform: [Leave me a note](http://wordpress.org/support/plugin/featured-video-plus). For YouTube and Dailymotion the plugin also features [time-links](http://support.google.com/youtube/bin/answer.py?hl=en&answer=116618).
|
31 |
|
32 |
The plugin adds customization options to your Media Settings. Beside aesthetic individualizations for each video platform's player you can turn off automatic integration, turn on autoplay, define your Dailymotion Syndication Key and tweak video sizing. By default videos try to dynamically fit their parent containers width. Take a look at *Settings -> Media*.
|
42 |
has_post_video( $post_id )
|
43 |
get_the_post_video( $post_id, $size )
|
44 |
get_the_post_video_url( $post_id )
|
45 |
+
get_the_post_video_image_url( $post_id, $fallback )
|
46 |
get_the_post_video_image( $post_id )
|
47 |
|
48 |
+
All parameters are optional. If no `$post_id` is given the current post's ID will be used. `$size` is either a string keyword (`thumbnail`, `medium`, `large` or `full`) or a 2-item array representing width and height in pixels, e.g. array(560,320). $fallback by default is false, when set to true this will return the fallback URL for local videos.
|
49 |
|
50 |
|
51 |
|
64 |
|
65 |
== Changelog ==
|
66 |
|
67 |
+
= 1.7: 2013-04-30 =
|
68 |
+
* Added functionality to display featured video in an lightbox using AJAX on featured image click ([*](http://wordpress.org/support/topic/lightbox-video-on-featured-image-click), [*](http://www.web2feel.com/garvan/))
|
69 |
+
* Added functionality to replace featured image with featured video on demand when image is clicked using AJAX
|
70 |
+
* `get_the_post_video_url` has a new second parameter (boolean) to get the fallback video's URL ([*](http://wordpress.org/support/topic/fallback-video-url))
|
71 |
+
* Tested with WordPress 3.6
|
72 |
+
|
73 |
= 1.6.1: 2013-04-18 =
|
74 |
* Fixed removing featured image when no featured video is specified ([*](http://wordpress.org/support/topic/featured-image-doesnt-save))
|
75 |
|
76 |
= 1.6: 2013-04-16 =
|
77 |
* Added `get_the_post_video_url($post_id)` PHP-Function
|
78 |
+
* Added YouTube `enablejsapi` parameter with `playerapiid` (`fvpid + $post_id`) and iframe id ([*](http://wordpress.org/support/topic/need-filter-for-iframe-and-embed-code-manipulation))
|
79 |
+
* Added a filter for `get_the_post_video`: `get_the_post_video_filter` ([*](http://wordpress.org/support/topic/need-filter-for-iframe-and-embed-code-manipulation))
|
80 |
* Added option for using the featured image as video thumbnail for local videos
|
81 |
* Fixed local videoJS ([*](http://wordpress.org/support/topic/how-to-style-the-player-play-button-pause-button-etc))
|
82 |
* Fixed auto width and height for the Dailymotion and videoJS players
|