YouTube Embed - Version 2.5.5

Version Description

  • Maintenance: Updated sponsorship - now includes option to switch off if user has donated
  • Maintenance: Updated options screen to reflect the fact that the related and color parameters are now supported by the HTML5 player
  • Maintenance: Updated options screen to show that the info parameter, if used alongside a playlist will show thumbnails of the videos
  • Maintenance: Removed redundant GA code, which was never used
  • Maintenance: Combined scripts
  • Bug: Fixed internationalisation
  • Bug: Fixed output of video information on the Lists option screen
  • Bug: Modified cache key so that length does not exceed MySQL field maximum
  • Bug: Added close anchor for media meta - causes unclosed anchor under IE9 (thanks to Marcel Bootsman for identifying this)
  • Bug: Responsive video was not working on a demonstration video in Profile screen
Download this release

Release Info

Developer dartiss
Plugin Icon 128x128 YouTube Embed
Version 2.5.5
Comparing to
See all releases

Code changes from version 2.5.4 to 2.5.5

Files changed (48) hide show
  1. css/aye-admin UNCOMPRESSED.css +33 -0
  2. css/aye-admin-3.1 UNCOMPRESSED.css +47 -0
  3. css/aye-admin-3.1.css +1 -0
  4. css/aye-admin.css +1 -1
  5. css/{aye-dynamic UNCOMPRESSED.css → aye-main UNCOMPRESSED.css} +0 -0
  6. css/{aye-dynamic.css → aye-main.css} +0 -0
  7. css/aye-tinymce-button UNCOMPRESSED.css +0 -6
  8. css/aye-tinymce-button-3.1 UNCOMPRESSED.css +0 -3
  9. css/aye-tinymce-button-3.1.css +0 -1
  10. css/aye-tinymce-button.css +0 -1
  11. images/Facebook.png +0 -0
  12. images/Google+.png +0 -0
  13. images/RSS.png +0 -0
  14. images/Twitter.png +0 -0
  15. images/themefuse_banner.jpg +0 -0
  16. includes/artiss-plugin-ads.php +159 -0
  17. includes/aye-add-scripts.php +20 -8
  18. includes/aye-add-to-admin-bar.php +6 -6
  19. includes/aye-admin-config.php +39 -39
  20. includes/aye-deprecated.php +1 -1
  21. includes/aye-display-about.php +25 -17
  22. includes/aye-display-readme.php +5 -4
  23. includes/aye-function-calls.php +3 -3
  24. includes/aye-generate-download-code.php +2 -2
  25. includes/aye-generate-embed-code.php +8 -7
  26. includes/aye-generate-shorturl-code.php +2 -2
  27. includes/aye-generate-thumbnail-code.php +1 -1
  28. includes/aye-generate-transcript-code.php +1 -1
  29. includes/aye-generate-widgets.php +3 -3
  30. includes/aye-options-general.php +86 -72
  31. includes/aye-options-lists.php +23 -19
  32. includes/aye-options-profiles.php +122 -120
  33. includes/aye-options-widgets.php +37 -37
  34. includes/aye-set-defaults.php +43 -34
  35. includes/aye-shared-functions.php +1 -1
  36. includes/aye-shortcodes.php +1 -1
  37. js/aye-ga-tracker UNCOMPRESSED.js +0 -3
  38. js/aye-ga-tracker.js +0 -1
  39. languages/youtube-embed.mo +0 -0
  40. languages/youtube-embed.po +273 -234
  41. readme.txt +21 -7
  42. screenshot-2.png +0 -0
  43. screenshot-3.png +0 -0
  44. screenshot-4.png +0 -0
  45. screenshot-5.png +0 -0
  46. screenshot-6.png +0 -0
  47. screenshot-7.png +0 -0
  48. youtube-embed.php +8 -2
css/aye-admin UNCOMPRESSED.css CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  .ytbox_grey {
2
  background-color: #f1f1f1;
3
  padding: 10px;
@@ -14,4 +17,34 @@
14
 
15
  #np-notepad ul, ol {
16
  margin-left: 60px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  }
1
+
2
+ /* Administration screen styles */
3
+
4
  .ytbox_grey {
5
  background-color: #f1f1f1;
6
  padding: 10px;
17
 
18
  #np-notepad ul, ol {
19
  margin-left: 60px;
20
+ }
21
+
22
+
23
+ /* Video dynamic resizing */
24
+
25
+ .ye-container {
26
+ position: relative;
27
+ padding-bottom: 56.25%;
28
+ padding-top: 30px;
29
+ height: 0;
30
+ overflow: hidden;
31
+ }
32
+
33
+ .ye-container iframe,
34
+ .ye-container object,
35
+ .ye-container embed {
36
+ position: absolute;
37
+ top: 0;
38
+ left: 0;
39
+ width: 100%;
40
+ height: 100%;
41
+ }
42
+
43
+ /* TinyMCE button */
44
+
45
+ .wp_themeSkin span.mce_YouTube {
46
+ background:url('../images/youtube_button_b&w.png') no-repeat 0 0;
47
+ }
48
+ .wp_themeSkin span.mce_YouTube:hover {
49
+ background:url('../images/youtube_button_colour.png') no-repeat 0 0;
50
  }
css/aye-admin-3.1 UNCOMPRESSED.css ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ /* Administration screen styles */
3
+
4
+ .ytbox_grey {
5
+ background-color: #f1f1f1;
6
+ padding: 10px;
7
+ border: 1px solid #ddd;
8
+ }
9
+ .yt_heading {
10
+ font-weight: bold;
11
+ font-size: 1.1em;
12
+ }
13
+
14
+ #np-notepad ul {
15
+ list-style: disc;
16
+ }
17
+
18
+ #np-notepad ul, ol {
19
+ margin-left: 60px;
20
+ }
21
+
22
+
23
+ /* Video dynamic resizing */
24
+
25
+ .ye-container {
26
+ position: relative;
27
+ padding-bottom: 56.25%;
28
+ padding-top: 30px;
29
+ height: 0;
30
+ overflow: hidden;
31
+ }
32
+
33
+ .ye-container iframe,
34
+ .ye-container object,
35
+ .ye-container embed {
36
+ position: absolute;
37
+ top: 0;
38
+ left: 0;
39
+ width: 100%;
40
+ height: 100%;
41
+ }
42
+
43
+ /* TinyMCE button 3.1 */
44
+
45
+ .wp_themeSkin span.mce_YouTube {
46
+ background:url('../images/youtube_button_colour.png') no-repeat 0 0;
47
+ }
css/aye-admin-3.1.css ADDED
@@ -0,0 +1 @@
 
1
+ .ytbox_grey{background-color:#f1f1f1;padding:10px;border:1px solid #ddd;}.yt_heading{font-weight:bold;font-size:1.1em;}#np-notepad ul{list-style:disc;}#np-notepad ul,ol{margin-left:60px;}.ye-container{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden;}.ye-container iframe,.ye-container object,.ye-container embed{position:absolute;top:0;left:0;width:100%;height:100%;}.wp_themeSkin span.mce_YouTube{background:url('../images/youtube_button_colour.png') no-repeat 0 0;}
css/aye-admin.css CHANGED
@@ -1 +1 @@
1
- .ytbox_grey{background-color:#f1f1f1;padding:10px;border:1px solid #ddd;}.yt_heading{font-weight:bold;font-size:1.1em;}#np-notepad ul{list-style:disc;}#np-notepad ul,ol{margin-left:60px;}
1
+ .ytbox_grey{background-color:#f1f1f1;padding:10px;border:1px solid #ddd;}.yt_heading{font-weight:bold;font-size:1.1em;}#np-notepad ul{list-style:disc;}#np-notepad ul,ol{margin-left:60px;}.ye-container{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden;}.ye-container iframe,.ye-container object,.ye-container embed{position:absolute;top:0;left:0;width:100%;height:100%;}.wp_themeSkin span.mce_YouTube{background:url('../images/youtube_button_b&w.png') no-repeat 0 0;}.wp_themeSkin span.mce_YouTube:hover{background:url('../images/youtube_button_colour.png') no-repeat 0 0;}
css/{aye-dynamic UNCOMPRESSED.css → aye-main UNCOMPRESSED.css} RENAMED
File without changes
css/{aye-dynamic.css → aye-main.css} RENAMED
File without changes
css/aye-tinymce-button UNCOMPRESSED.css DELETED
@@ -1,6 +0,0 @@
1
- .wp_themeSkin span.mce_YouTube {
2
- background:url('../images/youtube_button_b&w.png') no-repeat 0 0;
3
- }
4
- .wp_themeSkin span.mce_YouTube:hover {
5
- background:url('../images/youtube_button_colour.png') no-repeat 0 0;
6
- }
 
 
 
 
 
 
css/aye-tinymce-button-3.1 UNCOMPRESSED.css DELETED
@@ -1,3 +0,0 @@
1
- .wp_themeSkin span.mce_YouTube {
2
- background:url('../images/youtube_button_colour.png') no-repeat 0 0;
3
- }
 
 
 
css/aye-tinymce-button-3.1.css DELETED
@@ -1 +0,0 @@
1
- .wp_themeSkin span.mce_YouTube{background:url('../images/youtube_button_colour.png') no-repeat 0 0;}
 
css/aye-tinymce-button.css DELETED
@@ -1 +0,0 @@
1
- .wp_themeSkin span.mce_YouTube{background:url('../images/youtube_button_b&w.png') no-repeat 0 0;}.wp_themeSkin span.mce_YouTube:hover{background:url('../images/youtube_button_colour.png') no-repeat 0 0;}
 
images/Facebook.png DELETED
Binary file
images/Google+.png DELETED
Binary file
images/RSS.png DELETED
Binary file
images/Twitter.png DELETED
Binary file
images/themefuse_banner.jpg DELETED
Binary file
includes/artiss-plugin-ads.php ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Artiss Plugin Ads (1.2)
4
+ *
5
+ * Generate an advert - intended for use within Artiss plugin administration screens/
6
+ * All output is responsive and is image based.
7
+ * No data is sent back to an external website (unless links are clicked on).
8
+ *
9
+ */
10
+
11
+ /**
12
+ * Generate Ad Code
13
+ *
14
+ * Combine 2 ads and add additional information
15
+ *
16
+ * @param string trans Translation name
17
+ * @uses artiss_fetch_ad_code Get a random advert
18
+ */
19
+
20
+ function artiss_plugin_ads( $trans, $width = 750 ) {
21
+
22
+ $advertisers = 4;
23
+
24
+ // Get first advert
25
+
26
+ $ad_array = artiss_fetch_ad_code( rand( 1, $advertisers ) );
27
+ $code1 = $ad_array[ 'code' ];
28
+
29
+ // Now choose another advertiser
30
+
31
+ $next_ad = $ad_array[ 'ad' ] + 1;
32
+ if ( $next_ad > $advertisers ) { $next_ad = 1; }
33
+
34
+ // Get a second advert
35
+
36
+ $ad_array = artiss_fetch_ad_code( $next_ad );
37
+ $code2 = $ad_array[ 'code' ];
38
+
39
+ // Generate the advert code
40
+
41
+ $newline = "\n";
42
+
43
+ $code = '<p><div style="width: ' . $width . 'px; height: 125px; border: 1px solid #ddd; padding: 10px;">' . $newline;
44
+ $code .= $code1 . $newline . $code2 . $newline;
45
+ $code .= '<span style="font-weight: bold">' . __( 'Donate', $trans ) . '</span>' . $newline;
46
+ $code .= '<br/>' . __( 'If you like this plugin and appreciate the effort being put into it, <a href="http://www.artiss.co.uk/donate">please consider donating</a>.', $trans ) . '<br/>' . $newline;
47
+ $code .= '<br/><span style="font-weight: bold">' . __( 'Follow Me', $trans ) . '</span>' . $newline;
48
+ $code .= '<br/>' . __( 'Please stay in touch with the latest news via one of the following social streams...', $trans ) . '<br/>' . $newline;
49
+ $code .= '<div align="center" style="padding-top: 10px;">' . $newline;
50
+ $code .= '<a href="http://www.twitter.com/artiss_tech"><img src="https://dl.dropbox.com/u/61522/Artiss.co.uk/Plugins/ads/Twitter.png" alt="' . __( 'Follow Artiss.co.uk on Twitter', $trans ) . '" title="' . __( 'Follow Artiss.co.uk on Twitter', $trans ) . '" style="margin-right: 20px;"></a>' . $newline;
51
+ $code .= '<a href="http://www.facebook.com/artiss.co.uk"><img src="https://dl.dropbox.com/u/61522/Artiss.co.uk/Plugins/ads/Facebook.png" alt="' . __( 'Follow Artiss.co.uk on Facebook', $trans ) . '" title="' . __( 'Follow Artiss.co.uk on Facebook', $trans ) . '" style="margin-right: 20px;"></a>' . $newline;
52
+ $code .= '<a href="https://plus.google.com/108446415028687420620?rel=author"><img src="https://dl.dropbox.com/u/61522/Artiss.co.uk/Plugins/ads/Google%2B.png" alt="' . __( 'Follow Artiss.co.uk on Google+', $trans ) . '" title="' . __( 'Follow Artiss.co.uk on Google+', $trans ) . '" style="margin-right: 20px;"></a>' . $newline;
53
+ $code .= '<a href="http://www.artiss.co.uk/feed"><img src="https://dl.dropbox.com/u/61522/Artiss.co.uk/Plugins/ads/RSS.png" alt="' . __( 'Follow Artiss.co.uk on RSS feed', $trans ) . '" title="' . __( 'Follow Artiss.co.uk on RSS feed', $trans ) . '"></a>' . $newline;
54
+ $code .= '</div></div></p>' . $newline;
55
+
56
+ echo $code;
57
+ return;
58
+ }
59
+
60
+ /**
61
+ * Get a random advert
62
+ *
63
+ * Picks a random advert and generated the code for it
64
+ *
65
+ * @return array Code and advert numbers
66
+ */
67
+
68
+ function artiss_fetch_ad_code( $ad_number ) {
69
+
70
+ $sub_ad = '';
71
+
72
+ // iThemes
73
+
74
+ if ( $ad_number == 1 ) {
75
+
76
+ $sub_ad = rand( 1, 9 );
77
+
78
+ if ( $sub_ad == 1 ) { $ad_code = '<a rel="nofollow" href="http://ithemes.com/member/go.php?r=32106&i=b0"><img src="http://ithemes.com/wp-content/uploads/2008/02/ithemes125ad.gif" border=0 alt="WordPress Themes" width=125 height=125></a>'; }
79
+
80
+ if ( $sub_ad == 2 ) { $ad_code = '<a href="http://ithemes.com/member/go.php?r=32106&i=b1"><img src="http://ithemes.com/wp-content/uploads/2008/11/ithemes-ad1.jpg" border=0 alt="WordPress Themes" width=125 height=125></a>'; }
81
+
82
+ if ( $sub_ad == 3 ) { $ad_code = '<a href="http://ithemes.com/member/go.php?r=32106&i=b2"><img src="http://ithemes.com/wp-content/uploads/2009/02/flexx125x125.jpg" border=0 alt="Flexx WP Blog Theme" width=125 height=125></a>'; }
83
+
84
+ if ( $sub_ad == 4 ) { $ad_code = '<a href="http://ithemes.com/member/go.php?r=32106&i=b5"><img src="http://ithemes.com/graphics/allaccessad1.jpg" border=0 alt="All Access Pass - 30+ WP Themes" width=125 height=125></a>'; }
85
+
86
+ if ( $sub_ad == 5 ) { $ad_code = '<a href="http://ithemes.com/member/go.php?r=32106&i=b15"><img src="http://ithemes.com/graphics/backupbuddy-125.gif" border=0 alt="Backup WordPress Easily" width=125 height=125></a>'; }
87
+
88
+ if ( $sub_ad == 6 ) { $ad_code = '<a href="http://ithemes.com/member/go.php?r=32106&i=b17"><img src="http://ithemes.com/graphics/pluginbuddy_ads/pb-mobile-static.png" border=0 alt="PluginBuddy Mobile" width=125 height=125></a>'; }
89
+
90
+ if ( $sub_ad == 7 ) { $ad_code = '<a href="http://ithemes.com/member/go.php?r=32106&i=b23"><img src="http://ithemes.com/graphics/builder-ads/builderforum125.png" border=0 alt="iThemes Builder" width=125 height=125></a>'; }
91
+
92
+ if ( $sub_ad == 8 ) { $ad_code = '<a href="http://ithemes.com/member/go.php?r=32106&i=b25"><img src="http://ithemes.com/graphics/pluginbuddy_ads/ebuddy-125.png" border=0 alt="EmailBuddy" width=125 height=125></a>'; }
93
+
94
+ if ( $sub_ad == 9 ) { $ad_code = '<a href="http://ithemes.com/member/go.php?r=32106&i=b27"><img src="http://affiliates.ithemes.com/files/2010/11/fxEa.loopbuddy125.png" border=0 alt="LoopBuddy from PluginBuddy.com" width=125 height=125></a>'; }
95
+
96
+ }
97
+
98
+ // Tribulant
99
+
100
+ if ( $ad_number == 2 ) {
101
+
102
+ $sub_ad = rand( 1, 7 );
103
+
104
+ if ( $sub_ad == 1 ) { $ad_code = '<a href="http://tribulant.com/plugins/view/10/wordpress-shopping-cart-plugin?a_aid=artisscouk&amp;a_bid=67d9e505" target=""><img src="http://tribulant.postaffiliatepro.com/accounts/default1/banners/shopping-cart-small.jpg" alt="wordpress-shopping-cart-plugin" title="wordpress-shopping-cart-plugin" width="125" height="125" /></a>'; }
105
+
106
+ if ( $sub_ad == 2 ) { $ad_code = '<a href="http://tribulant.com/plugins/view/1/wordpress-mailing-list-plugin?a_aid=artisscouk&amp;a_bid=48d79f09" target=""><img src="http://tribulant.postaffiliatepro.com/accounts/default1/banners/newsletter-small.jpg" alt="wordpress-newsletters-plugin" title="wordpress-newsletters-plugin" width="125" height="125" /></a>'; }
107
+
108
+ if ( $sub_ad == 3 ) { $ad_code = '<a href="http://tribulant.com/products/view/12/wordpress-whois-plugin?a_aid=artisscouk&amp;a_bid=4d629414" target=""><img src="http://tribulant.postaffiliatepro.com/accounts/default1/banners/domain-whois-small.jpg" alt="wordpress-whois-plugin" title="wordpress-whois-plugin" width="125" height="125" /></a>'; }
109
+
110
+ if ( $sub_ad == 4 ) { $ad_code = '<a href="http://tribulant.com/products/view/9/wordpress-lightbox-plugin?a_aid=artisscouk&amp;a_bid=9acc8d37" target=""><img src="http://tribulant.postaffiliatepro.com/accounts/default1/banners/lightbox-js-small.jpg" alt="wordpress-lightbox-js-plugin" title="wordpress-lightbox-js-plugin" width="125" height="125" /></a>'; }
111
+
112
+ if ( $sub_ad == 5 ) { $ad_code = '<a href="http://tribulant.com/plugins/view/8/wordpress-faqs-plugin?a_aid=artisscouk&amp;a_bid=b9082471" target=""><img src="http://tribulant.postaffiliatepro.com/accounts/default1/banners/questions-small.jpg" alt="wordpress-faqs-plugin" title="wordpress-faqs-plugin" width="125" height="125" /></a>'; }
113
+
114
+ if ( $sub_ad == 6 ) { $ad_code = '<a href="http://tribulant.com/plugins/view/7/wordpress-custom-fields-plugin?a_aid=artisscouk&amp;a_bid=38fc0021" target=""><img src="http://tribulant.postaffiliatepro.com/accounts/default1/banners/custom-fields-small.jpg" alt="wordpress-custom-fields-plugin" title="wordpress-custom-fields-plugin" width="125" height="125" /></a>'; }
115
+
116
+ if ( $sub_ad == 7 ) { $ad_code = '<a href="http://tribulant.com/plugins/view/2/wordpress-banner-rotator-plugin?a_aid=artisscouk&amp;a_bid=418973f2" target=""><img src="http://tribulant.postaffiliatepro.com/accounts/default1/banners/banner-rotator-small.jpg" alt="wordpress-banners-plugin" title="wordpress-banners-plugin" width="125" height="125" /></a>'; }
117
+
118
+ }
119
+
120
+ // WP Download Manager
121
+
122
+ if ( $ad_number == 3 ) {
123
+
124
+ $sub_ad = rand( 1, 3 );
125
+
126
+ $ad_code = '<a href="http://www.wpdownloadmanager.com/?affid=dartiss" target="_top"><img src="https://dl.dropbox.com/u/61522/Artiss.co.uk/Plugins/ads/webMkt_banner_125x125_' . $sub_ad . '.jpg" alt="WP Download Manager" title="WP Download Manager" width="125" height="125" /></a>';
127
+
128
+ }
129
+
130
+ // Solostream
131
+
132
+ if ( $ad_number == 4 ) {
133
+
134
+ $sub_ad = rand( 1, 2 );
135
+
136
+ if ( $sub_ad == 1 ) { $ad_code = '<a href="http://www.solostream.com/amember/go.php?r=7855&i=b0"><img src="http://www.solostream.com/images/solo-banner-125-1.gif" border=0 alt="Premium WordPress Themes" width=125 height=125></a>'; }
137
+
138
+ if ( $sub_ad == 2 ) { $ad_code = '<a href="http://www.solostream.com/amember/go.php?r=7855&i=b1"><img src="http://www.solostream.com/images/solo-banner-125-2.gif" border=0 alt="Premium WordPress Themes" width=125 height=125></a>'; }
139
+
140
+ }
141
+
142
+ // Add NOFOLLOW to the ad
143
+
144
+ $ad_code = '<a rel="nofollow"' . substr( $ad_code, 2 );
145
+
146
+ // Add STYLE to image
147
+
148
+ $pos = strpos( $ad_code, '<img ' );
149
+ $ad_code = substr( $ad_code, 0, $pos + 5 ) . 'style="float: left; padding-right: 10px;" ' . substr( $ad_code, $pos + 5 );
150
+
151
+ // Add the details into an array and return it
152
+
153
+ $return[ 'code' ] = $ad_code;
154
+ $return[ 'ad' ] = $ad_number;
155
+ $return[ 'sub-ad' ] = $sub_ad;
156
+
157
+ return $return;
158
+ }
159
+ ?>
includes/aye-add-scripts.php CHANGED
@@ -7,6 +7,24 @@
7
  * @package Artiss-YouTube-Embed
8
  */
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  /**
11
  * Add scripts to theme
12
  *
@@ -17,9 +35,7 @@
17
 
18
  function aye_main_scripts() {
19
 
20
- wp_enqueue_script( 'aye_ga_js', plugins_url( '/youtube-embed/js/aye-ga-tracker.js' ) );
21
-
22
- wp_register_style( 'aye_dynamic', plugins_url( '/youtube-embed/css/aye-dynamic.css' ) );
23
 
24
  wp_enqueue_style( 'aye_dynamic' );
25
 
@@ -37,14 +53,10 @@ add_action( 'wp_enqueue_scripts', 'aye_main_scripts' );
37
 
38
  function aye_admin_css() {
39
 
40
- wp_enqueue_style( 'aye_admin', plugins_url() . '/youtube-embed/css/aye-admin.css' );
41
-
42
- wp_enqueue_style( 'aye_dynamic', plugins_url() . '/youtube-embed/css/aye-dynamic.css' );
43
-
44
  global $wp_version;
45
  if ( ( float ) $wp_version >= 3.2 ) { $version = ''; } else { $version = '-3.1'; }
46
 
47
- wp_enqueue_style( 'tinymce_button', plugins_url() . '/youtube-embed/css/aye-tinymce-button' . $version . '.css' );
48
 
49
  }
50
 
7
  * @package Artiss-YouTube-Embed
8
  */
9
 
10
+ /**
11
+ * Plugin initialisation
12
+ *
13
+ * Loads the plugin's translated strings and the plugins' JavaScript
14
+ *
15
+ * @since 2.5.5
16
+ */
17
+
18
+ function aye_plugin_init() {
19
+
20
+ $language_dir = plugin_basename( dirname( __FILE__ ) ) . '/languages/';
21
+
22
+ load_plugin_textdomain( 'youtube-embed', false, $language_dir );
23
+
24
+ }
25
+
26
+ add_action( 'init', 'aye_plugin_init' );
27
+
28
  /**
29
  * Add scripts to theme
30
  *
35
 
36
  function aye_main_scripts() {
37
 
38
+ wp_register_style( 'aye_dynamic', plugins_url( '/youtube-embed/css/aye-main.css' ) );
 
 
39
 
40
  wp_enqueue_style( 'aye_dynamic' );
41
 
53
 
54
  function aye_admin_css() {
55
 
 
 
 
 
56
  global $wp_version;
57
  if ( ( float ) $wp_version >= 3.2 ) { $version = ''; } else { $version = '-3.1'; }
58
 
59
+ wp_enqueue_style( 'tinymce_button', plugins_url() . '/youtube-embed/css/aye-admin' . $version . '.css' );
60
 
61
  }
62
 
includes/aye-add-to-admin-bar.php CHANGED
@@ -33,7 +33,7 @@ function aye_admin_bar_render_3_1() {
33
  $wp_admin_bar -> add_menu( array(
34
  'parent' => 'appearance',
35
  'id' => 'aye-options',
36
- 'title' => __( 'YouTube Embed' ),
37
  'href' => admin_url( 'admin.php?page=youtube-embed-profiles' ),
38
  'meta' => false ) );
39
  }
@@ -70,33 +70,33 @@ function aye_admin_bar_render_3_3( $meta = TRUE ) {
70
 
71
  $wp_admin_bar -> add_menu( array(
72
  'id' => 'aye-menu',
73
- 'title' => __( 'YouTube Embed' ) ) );
74
 
75
  $wp_admin_bar -> add_menu( array(
76
  'parent' => 'aye-menu',
77
  'id' => 'aye-options',
78
- 'title' => __( 'Options' ),
79
  'href' => admin_url( 'admin.php?page=aye-general-options' ),
80
  'meta' => array( 'target' => '_blank' ) ) );
81
 
82
  $wp_admin_bar -> add_menu( array(
83
  'parent' => 'aye-menu',
84
  'id' => 'aye-profile',
85
- 'title' => __( 'Profiles' ),
86
  'href' => admin_url( 'admin.php?page=aye-profile-options' ),
87
  'meta' => array( 'target' => '_blank' ) ) );
88
 
89
  $wp_admin_bar -> add_menu( array(
90
  'parent' => 'aye-menu',
91
  'id' => 'aye-lists',
92
- 'title' => __( 'Lists' ),
93
  'href' => admin_url( 'admin.php?page=aye-list-options' ),
94
  'meta' => array( 'target' => '_blank' ) ) );
95
 
96
  $wp_admin_bar -> add_menu( array(
97
  'parent' => 'aye-menu',
98
  'id' => 'aye-readme',
99
- 'title' => __( 'README' ),
100
  'href' => admin_url( 'admin.php?page=aye-support-readme' ),
101
  'meta' => array( 'target' => '_blank' ) ) );
102
  }
33
  $wp_admin_bar -> add_menu( array(
34
  'parent' => 'appearance',
35
  'id' => 'aye-options',
36
+ 'title' => __( 'YouTube Embed', 'youtube-embed' ),
37
  'href' => admin_url( 'admin.php?page=youtube-embed-profiles' ),
38
  'meta' => false ) );
39
  }
70
 
71
  $wp_admin_bar -> add_menu( array(
72
  'id' => 'aye-menu',
73
+ 'title' => __( 'YouTube Embed', 'youtube-embed' ) ) );
74
 
75
  $wp_admin_bar -> add_menu( array(
76
  'parent' => 'aye-menu',
77
  'id' => 'aye-options',
78
+ 'title' => __( 'Options', 'youtube-embed' ),
79
  'href' => admin_url( 'admin.php?page=aye-general-options' ),
80
  'meta' => array( 'target' => '_blank' ) ) );
81
 
82
  $wp_admin_bar -> add_menu( array(
83
  'parent' => 'aye-menu',
84
  'id' => 'aye-profile',
85
+ 'title' => __( 'Profiles', 'youtube-embed' ),
86
  'href' => admin_url( 'admin.php?page=aye-profile-options' ),
87
  'meta' => array( 'target' => '_blank' ) ) );
88
 
89
  $wp_admin_bar -> add_menu( array(
90
  'parent' => 'aye-menu',
91
  'id' => 'aye-lists',
92
+ 'title' => __( 'Lists', 'youtube-embed' ),
93
  'href' => admin_url( 'admin.php?page=aye-list-options' ),
94
  'meta' => array( 'target' => '_blank' ) ) );
95
 
96
  $wp_admin_bar -> add_menu( array(
97
  'parent' => 'aye-menu',
98
  'id' => 'aye-readme',
99
+ 'title' => __( 'README', 'youtube-embed' ),
100
  'href' => admin_url( 'admin.php?page=aye-support-readme' ),
101
  'meta' => array( 'target' => '_blank' ) ) );
102
  }
includes/aye-admin-config.php CHANGED
@@ -51,9 +51,9 @@ function aye_set_plugin_meta( $links, $file ) {
51
 
52
  if ( strpos( $file, 'youtube-embed.php' ) !== false ) {
53
 
54
- $links = array_merge( $links, array( '<a href="admin.php?page=aye-display-about">' . __( 'Support' ) . '</a>' ) );
55
 
56
- $links = array_merge( $links, array( '<a href="http://www.artiss.co.uk/donate">' . __( 'Donate' ) . '</a>' ) );
57
  }
58
 
59
  return $links;
@@ -79,13 +79,13 @@ function aye_menu_initialise() {
79
 
80
  // Add main admin option
81
 
82
- add_menu_page( __( 'Artiss YouTube Embed Settings' ), __( 'YouTube' ), 'manage_options', 'aye-general-options', 'aye_general_options', plugins_url() . '/youtube-embed/images/menu_icon.png' );
83
 
84
  // Add options sub-menu
85
 
86
  if ( $contextual_help == 'new' ) { global $aye_options_hook; }
87
 
88
- $aye_options_hook = add_submenu_page( 'aye-general-options', __( 'Artiss YouTube Embed Options' ), __( 'Options' ), 'edit_posts', 'aye-general-options', 'aye_general_options' );
89
 
90
  if ( $contextual_help == 'new' ) { add_action( 'load-' . $aye_options_hook, 'aye_add_options_help' ); }
91
 
@@ -95,7 +95,7 @@ function aye_menu_initialise() {
95
 
96
  if ( $contextual_help == 'new' ) { global $aye_profiles_hook; }
97
 
98
- $aye_profiles_hook = add_submenu_page( 'aye-general-options', __( 'Artiss YouTube Embed Profiles' ), __( 'Profiles' ), 'edit_posts', 'aye-profile-options', 'aye_profile_options' );
99
 
100
  if ( $contextual_help == 'new' ) { add_action( 'load-' . $aye_profiles_hook, 'aye_add_profiles_help' ); }
101
 
@@ -105,7 +105,7 @@ function aye_menu_initialise() {
105
 
106
  if ( $contextual_help == 'new' ) { global $aye_lists_hook; }
107
 
108
- $aye_lists_hook = add_submenu_page( 'aye-general-options', __( 'Artiss YouTube Embed Lists' ), __( 'Lists' ), 'edit_posts', 'aye-list-options', 'aye_list_options' );
109
 
110
  if ( $contextual_help == 'new' ) { add_action( 'load-' . $aye_lists_hook, 'aye_add_lists_help' ); }
111
 
@@ -114,14 +114,14 @@ function aye_menu_initialise() {
114
  // Add readme sub-menu
115
 
116
  if ( function_exists( 'wp_readme_parser' ) ) {
117
- add_submenu_page( 'aye-general-options', __( 'Artiss YouTube Embed README' ), __( 'README' ), 'edit_posts', 'aye-support-readme', 'aye_support_readme' );
118
  }
119
 
120
  // Add about sub-menu
121
 
122
  if ( $contextual_help == 'new' ) { global $aye_about_hook; }
123
 
124
- $aye_about_hook = add_submenu_page( 'aye-general-options', __( 'About Artiss YouTube Embed' ), __( 'About' ), 'edit_posts', 'aye-support-about', 'aye_support_about' );
125
 
126
  if ( $contextual_help == 'new' ) { add_action( 'load-' . $aye_about_hook, 'aye_add_about_help' ); }
127
 
@@ -243,7 +243,7 @@ function aye_add_options_help() {
243
 
244
  if ( $screen->id != $aye_options_hook ) { return; }
245
 
246
- $screen -> add_help_tab( array( 'id' => 'aye-options-help-tab', 'title' => __( 'Help' ), 'content' => aye_options_help() ) );
247
  }
248
 
249
  /**
@@ -258,12 +258,12 @@ function aye_add_options_help() {
258
 
259
  function aye_options_help() {
260
 
261
- $help_text = '<p>' . __( 'This screen allows you to select non-specific options for the Artiss YouTube Embed plugin. For the default embedding settings, please select the <a href="admin.php?page=aye-profile-options">Profiles</a> administration option.' ) . '</p>';
262
- $help_text .= '<p>' . __( 'Remember to click the Save Settings button at the bottom of the screen for new settings to take effect.' ) . '</p>';
263
- $help_text .= '<p><strong>' . __( 'For more information:' ) . '</strong></p>';
264
- $help_text .= '<p><a href="http://www.artiss.co.uk/artiss-youtube-embed">' . __( 'Artiss YouTube Embed Plugin Documentation' ) . '</a></p>';
265
- $help_text .= '<p><a href="http://code.google.com/apis/youtube/player_parameters.html">' . __( 'YouTube Player Documentation' ) . '</a></p>';
266
- $help_text .= '<h4>' . __( 'This plugin, and all support, is supplied for free, but <a title="Donate" href="http://artiss.co.uk/donate" target="_blank">donations</a> are always welcome.' ) . '</h4>';
267
 
268
  return $help_text;
269
  }
@@ -285,7 +285,7 @@ function aye_add_profiles_help() {
285
 
286
  if ( $screen->id != $aye_profiles_hook ) { return; }
287
 
288
- $screen -> add_help_tab( array( 'id' => 'aye-profiles-help-tab', 'title' => __( 'Help' ), 'content' => aye_profiles_help() ) );
289
  }
290
 
291
  /**
@@ -300,13 +300,13 @@ function aye_add_profiles_help() {
300
 
301
  function aye_profiles_help() {
302
 
303
- $help_text = '<p>' . __( 'This screen allows you to set the options for the default and additional profiles. If you don\'t specify a specific parameter when displaying your YouTube video then the default profile option will be used instead. Additional profiles, which you may name, can be used as well and used as required.' ) . '</p>';
304
- $help_text .= '<p>' . __( 'Remember to click the Save Settings button at the bottom of the screen for new settings to take effect.' ) . '</p>';
305
  $help_text .= '<p><strong>' . __( 'For more information:' ) . '</strong></p>';
306
- $help_text .= '<p><a href="http://www.artiss.co.uk/artiss-youtube-embed">' . __( 'Artiss YouTube Embed Plugin Documentation' ) . '</a></p>';
307
- $help_text .= '<p><a href="http://code.google.com/apis/youtube/player_parameters.html">' . __( 'YouTube Player Documentation' ) . '</a></p>';
308
- $help_text .= '<p><a href="http://embedplus.com/">' . __( 'EmbedPlus website' ) . '</a></p>';
309
- $help_text .= '<h4>' . __( 'This plugin, and all support, is supplied for free, but <a title="Donate" href="http://artiss.co.uk/donate" target="_blank">donations</a> are always welcome.' ) . '</h4>';
310
 
311
  return $help_text;
312
  }
@@ -328,7 +328,7 @@ function aye_add_lists_help() {
328
 
329
  if ( $screen->id != $aye_lists_hook ) { return; }
330
 
331
- $screen -> add_help_tab( array( 'id' => 'aye-lists-help-tab', 'title' => __( 'Help' ), 'content' => aye_lists_help() ) );
332
  }
333
 
334
  /**
@@ -343,12 +343,12 @@ function aye_add_lists_help() {
343
 
344
  function aye_lists_help() {
345
 
346
- $help_text = '<p>' . __( 'This screen allows you to create lists of YouTube videos, which may be named. These lists can then be used in preference to a single video ID.' ) . '</p>';
347
- $help_text .= '<p>' . __( 'Remember to click the Save Settings button at the bottom of the screen for new settings to take effect.' ) . '</p>';
348
- $help_text .= '<p><strong>' . __( 'For more information:' ) . '</strong></p>';
349
- $help_text .= '<p><a href="http://www.artiss.co.uk/artiss-youtube-embed">' . __( 'Artiss YouTube Embed Plugin Documentation' ) . '</a></p>';
350
- $help_text .= '<p><a href="http://code.google.com/apis/youtube/player_parameters.html">' . __( 'YouTube Player Documentation' ) . '</a></p>';
351
- $help_text .= '<h4>' . __( 'This plugin, and all support, is supplied for free, but <a title="Donate" href="http://artiss.co.uk/donate" target="_blank">donations</a> are always welcome.' ) . '</h4>';
352
 
353
  return $help_text;
354
  }
@@ -370,7 +370,7 @@ function aye_add_about_help() {
370
 
371
  if ( $screen->id != $aye_about_hook ) { return; }
372
 
373
- $screen -> add_help_tab( array( 'id' => 'aye-about-help-tab', 'title' => __( 'Help' ), 'content' => aye_about_help() ) );
374
  }
375
 
376
  /**
@@ -385,11 +385,11 @@ function aye_add_about_help() {
385
 
386
  function aye_about_help() {
387
 
388
- $help_text = '<p>' . __( 'This screen provides useful information about this plugin along with methods of support.' ) . '</p>';
389
- $help_text .= '<p><strong>' . __( 'For more information:' ) . '</strong></p>';
390
- $help_text .= '<p><a href="http://www.artiss.co.uk/artiss-youtube-embed">' . __( 'Artiss YouTube Embed Plugin Documentation' ) . '</a></p>';
391
- $help_text .= '<p><a href="http://code.google.com/apis/youtube/player_parameters.html">' . __( 'YouTube Player Documentation' ) . '</a></p>';
392
- $help_text .= '<h4>' . __( 'This plugin, and all support, is supplied for free, but <a title="Donate" href="http://artiss.co.uk/donate" target="_blank">donations</a> are always welcome.' ) . '</h4>';
393
 
394
  return $help_text;
395
  }
@@ -447,10 +447,10 @@ function aye_admin_enqueue_scripts() {
447
 
448
  function aye_admin_print_footer_scripts() {
449
 
450
- $pointer_content = '<h3>' . __( 'Welcome to Artiss YouTube Embed' ) . '</h3>';
451
- $pointer_content .= '<p style="font-style:italic;">' . __( 'Thank you for installing this plugin.' ) . '</p>';
452
- $pointer_content .= '<p>' . __( 'These new menu options will allow you to configure your videos to just how you want them and provide links for help and support.' ) . '</p>';
453
- $pointer_content .= '<p>' . __( 'Even if you do nothing else, please visit the Profiles option to check your default video values.' ) . '</p>';
454
  ?>
455
  <script>
456
  jQuery(function () {
51
 
52
  if ( strpos( $file, 'youtube-embed.php' ) !== false ) {
53
 
54
+ $links = array_merge( $links, array( '<a href="admin.php?page=aye-display-about">' . __( 'Support', 'youtube-embed' ) . '</a>' ) );
55
 
56
+ $links = array_merge( $links, array( '<a href="http://www.artiss.co.uk/donate">' . __( 'Donate', 'youtube-embed' ) . '</a>' ) );
57
  }
58
 
59
  return $links;
79
 
80
  // Add main admin option
81
 
82
+ add_menu_page( __( 'Artiss YouTube Embed Settings', 'youtube-embed' ), __( 'YouTube', 'youtube-embed' ), 'manage_options', 'aye-general-options', 'aye_general_options', plugins_url() . '/youtube-embed/images/menu_icon.png' );
83
 
84
  // Add options sub-menu
85
 
86
  if ( $contextual_help == 'new' ) { global $aye_options_hook; }
87
 
88
+ $aye_options_hook = add_submenu_page( 'aye-general-options', __( 'Artiss YouTube Embed Options', 'youtube-embed' ), __( 'Options', 'youtube-embed' ), 'edit_posts', 'aye-general-options', 'aye_general_options' );
89
 
90
  if ( $contextual_help == 'new' ) { add_action( 'load-' . $aye_options_hook, 'aye_add_options_help' ); }
91
 
95
 
96
  if ( $contextual_help == 'new' ) { global $aye_profiles_hook; }
97
 
98
+ $aye_profiles_hook = add_submenu_page( 'aye-general-options', __( 'Artiss YouTube Embed Profiles', 'youtube-embed' ), __( 'Profiles', 'youtube-embed' ), 'edit_posts', 'aye-profile-options', 'aye_profile_options' );
99
 
100
  if ( $contextual_help == 'new' ) { add_action( 'load-' . $aye_profiles_hook, 'aye_add_profiles_help' ); }
101
 
105
 
106
  if ( $contextual_help == 'new' ) { global $aye_lists_hook; }
107
 
108
+ $aye_lists_hook = add_submenu_page( 'aye-general-options', __( 'Artiss YouTube Embed Lists', 'youtube-embed' ), __( 'Lists', 'youtube-embed' ), 'edit_posts', 'aye-list-options', 'aye_list_options' );
109
 
110
  if ( $contextual_help == 'new' ) { add_action( 'load-' . $aye_lists_hook, 'aye_add_lists_help' ); }
111
 
114
  // Add readme sub-menu
115
 
116
  if ( function_exists( 'wp_readme_parser' ) ) {
117
+ add_submenu_page( 'aye-general-options', __( 'Artiss YouTube Embed README', 'youtube-embed' ), __( 'README', 'youtube-embed' ), 'edit_posts', 'aye-support-readme', 'aye_support_readme' );
118
  }
119
 
120
  // Add about sub-menu
121
 
122
  if ( $contextual_help == 'new' ) { global $aye_about_hook; }
123
 
124
+ $aye_about_hook = add_submenu_page( 'aye-general-options', __( 'About Artiss YouTube Embed', 'youtube-embed' ), __( 'About', 'youtube-embed' ), 'edit_posts', 'aye-support-about', 'aye_support_about' );
125
 
126
  if ( $contextual_help == 'new' ) { add_action( 'load-' . $aye_about_hook, 'aye_add_about_help' ); }
127
 
243
 
244
  if ( $screen->id != $aye_options_hook ) { return; }
245
 
246
+ $screen -> add_help_tab( array( 'id' => 'aye-options-help-tab', 'title' => __( 'Help', 'youtube-embed' ), 'content' => aye_options_help() ) );
247
  }
248
 
249
  /**
258
 
259
  function aye_options_help() {
260
 
261
+ $help_text = '<p>' . __( 'This screen allows you to select non-specific options for the Artiss YouTube Embed plugin. For the default embedding settings, please select the <a href="admin.php?page=aye-profile-options">Profiles</a> administration option.', 'youtube-embed' ) . '</p>';
262
+ $help_text .= '<p>' . __( 'Remember to click the Save Settings button at the bottom of the screen for new settings to take effect.', 'youtube-embed' ) . '</p>';
263
+ $help_text .= '<p><strong>' . __( 'For more information:', 'youtube-embed' ) . '</strong></p>';
264
+ $help_text .= '<p><a href="http://www.artiss.co.uk/artiss-youtube-embed">' . __( 'Artiss YouTube Embed Plugin Documentation', 'youtube-embed' ) . '</a></p>';
265
+ $help_text .= '<p><a href="http://code.google.com/apis/youtube/player_parameters.html">' . __( 'YouTube Player Documentation', 'youtube-embed' ) . '</a></p>';
266
+ $help_text .= '<h4>' . __( 'This plugin, and all support, is supplied for free, but <a title="Donate" href="http://artiss.co.uk/donate" target="_blank">donations</a> are always welcome.', 'youtube-embed' ) . '</h4>';
267
 
268
  return $help_text;
269
  }
285
 
286
  if ( $screen->id != $aye_profiles_hook ) { return; }
287
 
288
+ $screen -> add_help_tab( array( 'id' => 'aye-profiles-help-tab', 'title' => __( 'Help', 'youtube-embed' ), 'content' => aye_profiles_help() ) );
289
  }
290
 
291
  /**
300
 
301
  function aye_profiles_help() {
302
 
303
+ $help_text = '<p>' . __( 'This screen allows you to set the options for the default and additional profiles. If you don\'t specify a specific parameter when displaying your YouTube video then the default profile option will be used instead. Additional profiles, which you may name, can be used as well and used as required.', 'youtube-embed' ) . '</p>';
304
+ $help_text .= '<p>' . __( 'Remember to click the Save Settings button at the bottom of the screen for new settings to take effect.', 'youtube-embed' ) . '</p>';
305
  $help_text .= '<p><strong>' . __( 'For more information:' ) . '</strong></p>';
306
+ $help_text .= '<p><a href="http://www.artiss.co.uk/artiss-youtube-embed">' . __( 'Artiss YouTube Embed Plugin Documentation', 'youtube-embed' ) . '</a></p>';
307
+ $help_text .= '<p><a href="http://code.google.com/apis/youtube/player_parameters.html">' . __( 'YouTube Player Documentation', 'youtube-embed' ) . '</a></p>';
308
+ $help_text .= '<p><a href="http://embedplus.com/">' . __( 'EmbedPlus website', 'youtube-embed' ) . '</a></p>';
309
+ $help_text .= '<h4>' . __( 'This plugin, and all support, is supplied for free, but <a title="Donate" href="http://artiss.co.uk/donate" target="_blank">donations</a> are always welcome.', 'youtube-embed' ) . '</h4>';
310
 
311
  return $help_text;
312
  }
328
 
329
  if ( $screen->id != $aye_lists_hook ) { return; }
330
 
331
+ $screen -> add_help_tab( array( 'id' => 'aye-lists-help-tab', 'title' => __( 'Help', 'youtube-embed' ), 'content' => aye_lists_help() ) );
332
  }
333
 
334
  /**
343
 
344
  function aye_lists_help() {
345
 
346
+ $help_text = '<p>' . __( 'This screen allows you to create lists of YouTube videos, which may be named. These lists can then be used in preference to a single video ID.', 'youtube-embed' ) . '</p>';
347
+ $help_text .= '<p>' . __( 'Remember to click the Save Settings button at the bottom of the screen for new settings to take effect.', 'youtube-embed' ) . '</p>';
348
+ $help_text .= '<p><strong>' . __( 'For more information:', 'youtube-embed' ) . '</strong></p>';
349
+ $help_text .= '<p><a href="http://www.artiss.co.uk/artiss-youtube-embed">' . __( 'Artiss YouTube Embed Plugin Documentation', 'youtube-embed' ) . '</a></p>';
350
+ $help_text .= '<p><a href="http://code.google.com/apis/youtube/player_parameters.html">' . __( 'YouTube Player Documentation', 'youtube-embed' ) . '</a></p>';
351
+ $help_text .= '<h4>' . __( 'This plugin, and all support, is supplied for free, but <a title="Donate" href="http://artiss.co.uk/donate" target="_blank">donations</a> are always welcome.', 'youtube-embed' ) . '</h4>';
352
 
353
  return $help_text;
354
  }
370
 
371
  if ( $screen->id != $aye_about_hook ) { return; }
372
 
373
+ $screen -> add_help_tab( array( 'id' => 'aye-about-help-tab', 'title' => __( 'Help', 'youtube-embed' ), 'content' => aye_about_help() ) );
374
  }
375
 
376
  /**
385
 
386
  function aye_about_help() {
387
 
388
+ $help_text = '<p>' . __( 'This screen provides useful information about this plugin along with methods of support.', 'youtube-embed' ) . '</p>';
389
+ $help_text .= '<p><strong>' . __( 'For more information:', 'youtube-embed' ) . '</strong></p>';
390
+ $help_text .= '<p><a href="http://www.artiss.co.uk/artiss-youtube-embed">' . __( 'Artiss YouTube Embed Plugin Documentation', 'youtube-embed' ) . '</a></p>';
391
+ $help_text .= '<p><a href="http://code.google.com/apis/youtube/player_parameters.html">' . __( 'YouTube Player Documentation', 'youtube-embed' ) . '</a></p>';
392
+ $help_text .= '<h4>' . __( 'This plugin, and all support, is supplied for free, but <a title="Donate" href="http://artiss.co.uk/donate" target="_blank">donations</a> are always welcome.', 'youtube-embed' ) . '</h4>';
393
 
394
  return $help_text;
395
  }
447
 
448
  function aye_admin_print_footer_scripts() {
449
 
450
+ $pointer_content = '<h3>' . __( 'Welcome to Artiss YouTube Embed', 'youtube-embed' ) . '</h3>';
451
+ $pointer_content .= '<p style="font-style:italic;">' . __( 'Thank you for installing this plugin.', 'youtube-embed' ) . '</p>';
452
+ $pointer_content .= '<p>' . __( 'These new menu options will allow you to configure your videos to just how you want them and provide links for help and support.', 'youtube-embed' ) . '</p>';
453
+ $pointer_content .= '<p>' . __( 'Even if you do nothing else, please visit the Profiles option to check your default video values.', 'youtube-embed' ) . '</p>';
454
  ?>
455
  <script>
456
  jQuery(function () {
includes/aye-deprecated.php CHANGED
@@ -52,7 +52,7 @@ function youtube_playlist_embed( $content, $paras, $style = '' ) {
52
  */
53
 
54
  function get_playlist_download( $id = '' ) {
55
- echo aye_error( __( 'This function does not support playlists' ) );
56
  return;
57
  }
58
  ?>
52
  */
53
 
54
  function get_playlist_download( $id = '' ) {
55
+ echo aye_error( __( 'This function does not support playlists', 'youtube-embed' ) );
56
  return;
57
  }
58
  ?>
includes/aye-display-about.php CHANGED
@@ -11,41 +11,49 @@
11
  <div class="wrap" style="width: 1010px;">
12
  <div class="icon32"><img src="<?php echo plugins_url(); ?>/youtube-embed/images/screen_icon.png" alt="" title="" height="32px" width="32px"/><br /></div>
13
 
14
- <h2><?php _e( 'About Artiss YouTube Embed' ); ?></h2>
15
 
16
- <p><?php echo sprintf( __( 'You are using Artiss YouTube Embed version %s. It was written by David Artiss.' ), youtube_embed_version ); ?></p>
 
 
 
 
 
 
 
 
17
 
18
- <a href="http://www.youtube.com/"><img src="<?php echo plugins_url(); ?>/youtube-embed/images/poweredby.png" alt="<?php _e( 'Powered by YouTube'); ?>" title="<?php _e( 'Powered by YouTube'); ?>" align="right" /></a>
19
 
20
  <?php
21
 
22
- echo '<h3>' . __( 'Copyrights' ) . '</h3>';
23
 
24
- echo '<p>' . __( 'YouTube, and all associated logos, is the copyright of Google Inc.' ) . '</p>';
25
 
26
- echo '<p>' . __( 'EmbedPlus is copyright. Read the <a href="http://embedplus.com/terms.aspx" target="_blank">Terms &amp; Conditions of Use</a>.' ) . '</p>';
27
 
28
- echo '<h3>' . __( 'Acknowledgements' ) . '</h3>';
29
 
30
- echo '<p>' . __( 'Images have been compressed with <a href="http://www.smushit.com/ysmush.it/">Smush.it</a>.' ) . '</p>';
31
 
32
- echo '<p>' . __( 'JavaScript has been compressed with <a href="http://javascriptcompressor.com/">JavaScript Compressor</a>.' ) . '</p>';
33
 
34
- echo '<p>' . __( 'YouTube icons are courtesy of <a href="http://www.youtube.com/t/creators_downloads">YouTube</a>. Other icons are by <a href="http://p.yusukekamiyamane.com/">Yusuke Kamiyamane</a>.' ) . '</p>';
35
 
36
- echo '<h3>' . __( 'Support Information' ) . '</h3>';
37
 
38
- echo '<p>' . __( 'Useful support information and links can be found by clicking on the Help tab at the top of each of the Artiss YouTube Embed administration screens.' ) . '</p>';
39
 
40
- echo '<h4>' . __( 'This plugin, and all support, is supplied for free, but <a title="Donate" href="http://artiss.co.uk/donate" target="_blank">donations</a> are always welcome.' ) . '</h4>';
41
 
42
- echo '<h3>' . __( 'Stay in Touch' ) . '</h3>';
43
 
44
- echo '<p>' . __( '<a href="http://www.artiss.co.uk/wp-plugins">See the full list</a> of Artiss plugins, including beta releases.' ) . '</p>';
45
 
46
- echo '<p>' . __( '<a href="http://www.twitter.com/artiss_tech">Follow Artiss.co.uk</a> on Twitter.' ) . '</p>';
47
 
48
- echo '<p>' . __( '<a href="http://www.artiss.co.uk/feed">Subscribe</a> to the Artiss.co.uk news feed.' ) . '</p>';
49
 
50
  ?>
51
  </div>
11
  <div class="wrap" style="width: 1010px;">
12
  <div class="icon32"><img src="<?php echo plugins_url(); ?>/youtube-embed/images/screen_icon.png" alt="" title="" height="32px" width="32px"/><br /></div>
13
 
14
+ <h2><?php _e( 'About Artiss YouTube Embed', 'youtube-embed' ); ?></h2>
15
 
16
+ <?php
17
+
18
+ // Display ads
19
+
20
+ $options = aye_set_general_defaults();
21
+ if ( $options[ 'donated'] != 1 ) { artiss_plugin_ads( 'youtube-embed', 990 ); }
22
+ ?>
23
+
24
+ <p><?php echo sprintf( __( 'You are using Artiss YouTube Embed version %s. It was written by David Artiss.', 'youtube-embed' ), youtube_embed_version ); ?></p>
25
 
26
+ <a href="http://www.youtube.com/"><img src="<?php echo plugins_url(); ?>/youtube-embed/images/poweredby.png" alt="<?php _e( 'Powered by YouTube', 'youtube-embed' ); ?>" title="<?php _e( 'Powered by YouTube', 'youtube-embed' ); ?>" align="right" /></a>
27
 
28
  <?php
29
 
30
+ echo '<h3>' . __( 'Copyrights', 'youtube-embed' ) . '</h3>';
31
 
32
+ echo '<p>' . __( 'YouTube, and all associated logos, is the copyright of Google Inc.', 'youtube-embed' ) . '</p>';
33
 
34
+ echo '<p>' . __( 'EmbedPlus is copyright. Read the <a href="http://embedplus.com/terms.aspx" target="_blank">Terms &amp; Conditions of Use</a>.', 'youtube-embed' ) . '</p>';
35
 
36
+ echo '<h3>' . __( 'Acknowledgements', 'youtube-embed' ) . '</h3>';
37
 
38
+ echo '<p>' . __( 'Images have been compressed with <a href="http://www.smushit.com/ysmush.it/">Smush.it</a>.', 'youtube-embed' ) . '</p>';
39
 
40
+ echo '<p>' . __( 'JavaScript has been compressed with <a href="http://javascriptcompressor.com/">JavaScript Compressor</a>.', 'youtube-embed' ) . '</p>';
41
 
42
+ echo '<p>' . __( 'YouTube icons are courtesy of <a href="http://www.youtube.com/t/creators_downloads">YouTube</a>. Other icons are by <a href="http://p.yusukekamiyamane.com/">Yusuke Kamiyamane</a>.', 'youtube-embed' ) . '</p>';
43
 
44
+ echo '<h3>' . __( 'Support Information', 'youtube-embed' ) . '</h3>';
45
 
46
+ echo '<p>' . __( 'Useful support information and links can be found by clicking on the Help tab at the top of each of the Artiss YouTube Embed administration screens.', 'youtube-embed' ) . '</p>';
47
 
48
+ echo '<h4>' . __( 'This plugin, and all support, is supplied for free, but <a title="Donate" href="http://artiss.co.uk/donate" target="_blank">donations</a> are always welcome.', 'youtube-embed' ) . '</h4>';
49
 
50
+ echo '<h3>' . __( 'Stay in Touch', 'youtube-embed' ) . '</h3>';
51
 
52
+ echo '<p>' . __( '<a href="http://www.artiss.co.uk/wp-plugins">See the full list</a> of Artiss plugins, including beta releases.', 'youtube-embed' ) . '</p>';
53
 
54
+ echo '<p>' . __( '<a href="http://www.twitter.com/artiss_tech">Follow Artiss.co.uk</a> on Twitter.', 'youtube-embed' ) . '</p>';
55
 
56
+ echo '<p>' . __( '<a href="http://www.artiss.co.uk/feed">Subscribe</a> to the Artiss.co.uk news feed.', 'youtube-embed' ) . '</p>';
57
 
58
  ?>
59
  </div>
includes/aye-display-readme.php CHANGED
@@ -8,14 +8,15 @@
8
  * @since 2.4
9
  */
10
  ?>
11
- <div class="wrap" style="width: 1010px;">
12
  <div class="icon32" id="icon-edit-pages"></div>
13
 
14
- <?php $plugin = 'Artiss YouTube Embed'; ?>
15
-
16
- <h2><?php _e( $plugin . ' README' ); ?></h2>
17
 
18
  <?php
 
 
 
19
  if ( !function_exists( 'wp_readme_parser' ) ) {
20
  echo '<p>You shouldn\'t be able to see this but I guess that odd things can happen!<p>';
21
  echo '<p>To display the README you must install the <a href="http://wordpress.org/extend/plugins/wp-readme-parser/">README Parser plugin</a>.</p>';
8
  * @since 2.4
9
  */
10
  ?>
11
+ <div class="wrap">
12
  <div class="icon32" id="icon-edit-pages"></div>
13
 
14
+ <h2><?php _e( 'Artiss YouTube Embed README', 'youtube-embed' ); ?></h2>
 
 
15
 
16
  <?php
17
+ $options = aye_set_general_defaults();
18
+ if ( $options[ 'donated'] != 1 ) { artiss_plugin_ads( 'youtube-embed', 990 ); }
19
+
20
  if ( !function_exists( 'wp_readme_parser' ) ) {
21
  echo '<p>You shouldn\'t be able to see this but I guess that odd things can happen!<p>';
22
  echo '<p>To display the README you must install the <a href="http://wordpress.org/extend/plugins/wp-readme-parser/">README Parser plugin</a>.</p>';
includes/aye-function-calls.php CHANGED
@@ -159,7 +159,7 @@ function get_youtube_transcript_xml ( $id ) {
159
  if ( strlen( $embed_type ) > 1 ) {
160
  echo aye_error( $embed_type );
161
  } else {
162
- echo aye_error( sprintf( __( 'The YouTube ID of %s is invalid.' ), $id ) );
163
  }
164
  return;
165
  }
@@ -170,7 +170,7 @@ function get_youtube_transcript_xml ( $id ) {
170
 
171
  // Check success and return appropriate output
172
  if ( $xml[ 'rc' ] > 0 ) {
173
- echo aye_error( sprintf( __( 'Could not fetch the transcript file %s.' ), $id ) );
174
  return;
175
  } else {
176
  return $xml;
@@ -220,7 +220,7 @@ function get_youtube_name( $id ) {
220
  if ( strlen( $embed_type ) > 1 ) {
221
  echo aye_error( $embed_type );
222
  } else {
223
- echo aye_error( sprintf( __ ( 'The YouTube ID of %s is invalid.' ), $id ) );
224
  }
225
 
226
  // Return the video title
159
  if ( strlen( $embed_type ) > 1 ) {
160
  echo aye_error( $embed_type );
161
  } else {
162
+ echo aye_error( sprintf( __( 'The YouTube ID of %s is invalid.', 'youtube-embed' ), $id ) );
163
  }
164
  return;
165
  }
170
 
171
  // Check success and return appropriate output
172
  if ( $xml[ 'rc' ] > 0 ) {
173
+ echo aye_error( sprintf( __( 'Could not fetch the transcript file %s.', 'youtube-embed' ), $id ) );
174
  return;
175
  } else {
176
  return $xml;
220
  if ( strlen( $embed_type ) > 1 ) {
221
  echo aye_error( $embed_type );
222
  } else {
223
+ echo aye_error( sprintf( __ ( 'The YouTube ID of %s is invalid.', 'youtube-embed' ), $id ) );
224
  }
225
 
226
  // Return the video title
includes/aye-generate-download-code.php CHANGED
@@ -20,7 +20,7 @@
20
 
21
  function aye_generate_download_code( $id ) {
22
 
23
- if ( $id == '' ) { return aye_error( __ ( 'No YouTube ID was found.' ) ); }
24
 
25
  // Extract the ID if a full URL has been specified
26
  $id = aye_extract_id( $id );
@@ -31,7 +31,7 @@ function aye_generate_download_code( $id ) {
31
  if ( strlen( $embed_type ) > 1 ) {
32
  return aye_error( $embed_type );
33
  } else {
34
- return aye_error( sprintf( __( 'The YouTube ID of %s is invalid.' ), $id ) );
35
  }
36
  }
37
 
20
 
21
  function aye_generate_download_code( $id ) {
22
 
23
+ if ( $id == '' ) { return aye_error( __ ( 'No YouTube ID was found.', 'youtube-embed' ) ); }
24
 
25
  // Extract the ID if a full URL has been specified
26
  $id = aye_extract_id( $id );
31
  if ( strlen( $embed_type ) > 1 ) {
32
  return aye_error( $embed_type );
33
  } else {
34
+ return aye_error( sprintf( __( 'The YouTube ID of %s is invalid.', 'youtube-embed' ), $id ) );
35
  }
36
  }
37
 
includes/aye-generate-embed-code.php CHANGED
@@ -62,7 +62,7 @@ function aye_generate_youtube_code( $id = '', $type = '', $width = '', $height =
62
 
63
  // Ensure an ID is passed
64
 
65
- if ( $id == '' ) { return aye_error( __( 'No video/playlist ID has been supplied' ) ); }
66
 
67
  // Get general options
68
 
@@ -113,7 +113,7 @@ function aye_generate_youtube_code( $id = '', $type = '', $width = '', $height =
113
 
114
  if ( ( $embed_type == '' ) or ( strlen ( $embed_type ) != 1 ) ) {
115
  if ( $embed_type == '' ) {
116
- $error = 'The YouTube ID of ' . $id . ' is invalid.';
117
  } else {
118
  $error = $embed_type;
119
  }
@@ -159,7 +159,7 @@ function aye_generate_youtube_code( $id = '', $type = '', $width = '', $height =
159
 
160
  // Generate a cache key for the above passed parameters
161
 
162
- $cache_key = 'aye_video_' . base64_encode( sha1( $id . $type . $width . $height . $fullscreen . $related . $autoplay . $loop . $start . $info . $annotation . $cc . $style . $link . $react . $stop . $sweetspot . $disablekb . $ratio . $autohide . $controls . $profile . $list_style . $audio . $template . $hd . $color . $theme . $https . $dynamic . $search . $user . $title . print_r( $general, true ) . print_r( $options, true ) . print_r( $list, true ) ) );
163
 
164
  // Try and get the output from cache. If it exists, return the code
165
 
@@ -180,11 +180,11 @@ function aye_generate_youtube_code( $id = '', $type = '', $width = '', $height =
180
  if ( is_feed () ) {
181
  $result = '';
182
  if ( $playlist_ids != '' ) {
183
- $result .= '<p>'.__('A video list cannot be viewed within this feed - please view the original content').".</p>\n";
184
  } else {
185
  $youtube_url = 'http' . $https . '://www.youtube.com/watch?' . $embed_type . '=' . $id;
186
  if ( ( $embed_type == 'v' ) && ( $general[ 'feed' ] != 't' ) ) { $result .= '<p><a href="' . $youtube_url . '"><img src="http://img.youtube.com/vi/' . $id . '/' . $general[ 'thumbnail' ] . ".jpg\"></a></p>\n"; }
187
- if ( ( $general ['feed'] != 'v' ) or ( $embed_type != 'v' ) ) { $result .= '<p><a href="' . $youtube_url . '">' . __( 'Click here to view the video on YouTube' ) . "</a>.</p>\n"; }
188
  }
189
  return $result;
190
  }
@@ -293,7 +293,8 @@ function aye_generate_youtube_code( $id = '', $type = '', $width = '', $height =
293
 
294
  // Set Frameborder output
295
 
296
- if ( isset( $general[ 'frameborder' ] ) ) { if ( $general[ 'frameborder' ] == 1 ) { $frameborder = 'frameborder="0" '; } else { $frameborder = ''; } }
 
297
 
298
  // If audio playback option is set, restrict the height to just show the player toolbar
299
 
@@ -438,7 +439,7 @@ function aye_generate_youtube_code( $id = '', $type = '', $width = '', $height =
438
 
439
  if ( $metadata != 0 ) { $result .= " rel=\"media:video\" resource=\"http" . $https . "://www.youtube.com/" . $embed_type . "/" . $id ."\" xmlns:media=\"http://search.yahoo.com/searchmonkey/media/\""; }
440
  $result .= " >\n";
441
- if ( $metadata != 0 ) { $result .= $tab . "\t<a rel=\"media:thumbnail\" href=\"http://img.youtube.com/vi/" . $id . "/default.jpg\" />\n"; }
442
  $result .= $tab . "\t<param name=\"movie\" value=\"" . $embed_url . "\" />\n";
443
  $result .= $tab . "\t<param name=\"wmode\" value=\"" . $wmode . "\" />\n";
444
  if ( $fullscreen == 1 ) { $result .= $tab . "\t<param name=\"allowFullScreen\" value=\"true\" />\n"; }
62
 
63
  // Ensure an ID is passed
64
 
65
+ if ( $id == '' ) { return aye_error( __( 'No video/playlist ID has been supplied', 'youtube-embed' ) ); }
66
 
67
  // Get general options
68
 
113
 
114
  if ( ( $embed_type == '' ) or ( strlen ( $embed_type ) != 1 ) ) {
115
  if ( $embed_type == '' ) {
116
+ $error = sprintf( __( 'The YouTube ID of %s is invalid.', 'youtube-embed' ), $id );
117
  } else {
118
  $error = $embed_type;
119
  }
159
 
160
  // Generate a cache key for the above passed parameters
161
 
162
+ $cache_key = 'aye_video_' . md5( $id . $type . $width . $height . $fullscreen . $related . $autoplay . $loop . $start . $info . $annotation . $cc . $style . $link . $react . $stop . $sweetspot . $disablekb . $ratio . $autohide . $controls . $profile . $list_style . $audio . $template . $hd . $color . $theme . $https . $dynamic . $search . $user . $title . print_r( $general, true ) . print_r( $options, true ) . print_r( $list, true ) );
163
 
164
  // Try and get the output from cache. If it exists, return the code
165
 
180
  if ( is_feed () ) {
181
  $result = '';
182
  if ( $playlist_ids != '' ) {
183
+ $result .= '<p>'.__( 'A video list cannot be viewed within this feed - please view the original content', 'youtube-embed' ).".</p>\n";
184
  } else {
185
  $youtube_url = 'http' . $https . '://www.youtube.com/watch?' . $embed_type . '=' . $id;
186
  if ( ( $embed_type == 'v' ) && ( $general[ 'feed' ] != 't' ) ) { $result .= '<p><a href="' . $youtube_url . '"><img src="http://img.youtube.com/vi/' . $id . '/' . $general[ 'thumbnail' ] . ".jpg\"></a></p>\n"; }
187
+ if ( ( $general ['feed'] != 'v' ) or ( $embed_type != 'v' ) ) { $result .= '<p><a href="' . $youtube_url . '">' . __( 'Click here to view the video on YouTube', 'youtube-embed' ) . "</a>.</p>\n"; }
188
  }
189
  return $result;
190
  }
293
 
294
  // Set Frameborder output
295
 
296
+ $frameborder = '';
297
+ if ( isset( $general[ 'frameborder' ] ) ) { if ( $general[ 'frameborder' ] == 1 ) { $frameborder = 'frameborder="0" '; } }
298
 
299
  // If audio playback option is set, restrict the height to just show the player toolbar
300
 
439
 
440
  if ( $metadata != 0 ) { $result .= " rel=\"media:video\" resource=\"http" . $https . "://www.youtube.com/" . $embed_type . "/" . $id ."\" xmlns:media=\"http://search.yahoo.com/searchmonkey/media/\""; }
441
  $result .= " >\n";
442
+ if ( $metadata != 0 ) { $result .= $tab . "\t<a rel=\"media:thumbnail\" href=\"http://img.youtube.com/vi/" . $id . "/default.jpg\" /></a>\n"; }
443
  $result .= $tab . "\t<param name=\"movie\" value=\"" . $embed_url . "\" />\n";
444
  $result .= $tab . "\t<param name=\"wmode\" value=\"" . $wmode . "\" />\n";
445
  if ( $fullscreen == 1 ) { $result .= $tab . "\t<param name=\"allowFullScreen\" value=\"true\" />\n"; }
includes/aye-generate-shorturl-code.php CHANGED
@@ -19,7 +19,7 @@ function aye_generate_shorturl_code( $id ) {
19
 
20
  // Check that an ID has been specified
21
  if ( $id == '' ) {
22
- return aye_error( __( 'No video ID has been supplied' ) );
23
  } else {
24
 
25
  // Extract the ID if a full URL has been specified
@@ -31,7 +31,7 @@ function aye_generate_shorturl_code( $id ) {
31
  if ( strlen( $embed_type ) > 1 ) {
32
  return aye_error( $embed_type );
33
  } else {
34
- return aye_error( sprintf( __( 'The YouTube ID of %s is invalid.' ), $id ) );
35
  }
36
  }
37
 
19
 
20
  // Check that an ID has been specified
21
  if ( $id == '' ) {
22
+ return aye_error( __( 'No video ID has been supplied', 'youtube-embed' ) );
23
  } else {
24
 
25
  // Extract the ID if a full URL has been specified
31
  if ( strlen( $embed_type ) > 1 ) {
32
  return aye_error( $embed_type );
33
  } else {
34
+ return aye_error( sprintf( __( 'The YouTube ID of %s is invalid.', 'youtube-embed' ), $id ) );
35
  }
36
  }
37
 
includes/aye-generate-thumbnail-code.php CHANGED
@@ -34,7 +34,7 @@ function aye_generate_thumbnail_code( $id, $style, $class, $rel, $target, $width
34
  if ( strlen( $embed_type ) > 1 ) {
35
  return aye_error( $embed_type );
36
  } else {
37
- return aye_error( sprintf( __( 'The YouTube ID of %s is invalid.' ), $id ) );
38
  }
39
  }
40
 
34
  if ( strlen( $embed_type ) > 1 ) {
35
  return aye_error( $embed_type );
36
  } else {
37
+ return aye_error( sprintf( __( 'The YouTube ID of %s is invalid.', 'youtube-embed' ), $id ) );
38
  }
39
  }
40
 
includes/aye-generate-transcript-code.php CHANGED
@@ -35,7 +35,7 @@ function aye_generate_transcript( $id ) {
35
  if ( strlen( $embed_type ) > 1 ) {
36
  return aye_error( $embed_type );
37
  } else {
38
- return aye_error( sprintf( __( 'The YouTube ID of %s is invalid.' ), $id ) );
39
  }
40
  }
41
 
35
  if ( strlen( $embed_type ) > 1 ) {
36
  return aye_error( $embed_type );
37
  } else {
38
+ return aye_error( sprintf( __( 'The YouTube ID of %s is invalid.', 'youtube-embed' ), $id ) );
39
  }
40
  }
41
 
includes/aye-generate-widgets.php CHANGED
@@ -21,8 +21,8 @@ class YouTubeEmbedWidget extends WP_Widget {
21
 
22
  function YouTubeEmbedWidget() {
23
  parent::WP_Widget( 'youtube_embed_widget',
24
- 'YouTube Embed',
25
- array( 'description' => __( 'Embed YouTube Widget.' ), 'class' => 'my-widget-class' )
26
  );
27
  }
28
 
@@ -85,7 +85,7 @@ class YouTubeEmbedWidget extends WP_Widget {
85
  '',
86
  '',
87
  '',
88
- $instance[ 'video_title' ], // Gone wrong by this point
89
  $instance[ 'dynamic' ],
90
  $search,
91
  $user );
21
 
22
  function YouTubeEmbedWidget() {
23
  parent::WP_Widget( 'youtube_embed_widget',
24
+ __( 'YouTube Embed', 'youtube-embed' ),
25
+ array( 'description' => __( 'Embed YouTube Widget.', 'youtube-embed' ), 'class' => 'my-widget-class' )
26
  );
27
  }
28
 
85
  '',
86
  '',
87
  '',
88
+ $instance[ 'video_title' ], // Gone wrong by this point
89
  $instance[ 'dynamic' ],
90
  $search,
91
  $user );
includes/aye-options-general.php CHANGED
@@ -11,13 +11,14 @@
11
  ?>
12
  <div class="wrap" style="width: 1010px;">
13
  <div class="icon32"><img src="<?php echo plugins_url(); ?>/youtube-embed/images/screen_icon.png" alt="" title="" height="32px" width="32px"/><br /></div>
14
- <h2><?php _e( 'Artiss YouTube Embed Options' ); ?></h2>
15
 
16
  <?php
17
  // If options have been updated on screen, update the database
18
 
19
  if ( ( !empty( $_POST ) ) && ( check_admin_referer( 'youtube-embed-general', 'youtube_embed_general_nonce' ) ) ) {
20
 
 
21
  $options[ 'editor_button' ] = $_POST[ 'youtube_embed_editor_button' ];
22
  $options[ 'admin_bar' ] = $_POST[ 'youtube_embed_admin_bar' ];
23
  $options[ 'profile_no' ] = $_POST[ 'youtube_embed_profile_no' ];
@@ -54,7 +55,7 @@ if ( ( !empty( $_POST ) ) && ( check_admin_referer( 'youtube-embed-general', 'yo
54
  // Update the options
55
 
56
  update_option( 'youtube_embed_general', $options );
57
- $update_message = __( 'Settings Saved.' );
58
 
59
  // Update the alternative shortcodes
60
 
@@ -71,7 +72,7 @@ if ( ( !empty( $_POST ) ) && ( check_admin_referer( 'youtube-embed-general', 'yo
71
  if ( !empty( $_POST[ 'youtube_embed_clear_cache' ] ) ) {
72
  global $wpdb;
73
  $wpdb -> query( "DELETE FROM $wpdb->options WHERE option_name LIKE '_transient_%ye_video_%'" );
74
- $update_message .= ' ' . __( 'Cache cleared.' );
75
  }
76
 
77
  echo '<div class="updated fade"><p><strong>' . $update_message . "</strong></p></div>\n";
@@ -82,146 +83,159 @@ if ( ( !empty( $_POST ) ) && ( check_admin_referer( 'youtube-embed-general', 'yo
82
  $options = aye_set_general_defaults();
83
  $shortcode = aye_set_shortcode_option();
84
  $url = aye_set_url_option();
 
 
 
 
85
  ?>
86
 
87
- <p><?php _e( 'These are the general settings for Artiss YouTube Embed. Please select <a href="admin.php?page=aye-profile-options">Profiles</a> for default embedding settings.' ); ?></p>
88
 
89
  <form method="post" action="<?php echo get_bloginfo( 'wpurl' ).'/wp-admin/admin.php?page=aye-general-options' ?>">
90
 
91
- <span class="yt_heading"><?php _e( 'Embedding' ); ?></span>
 
 
 
 
 
 
 
 
 
92
 
93
  <table class="form-table">
94
  <tr>
95
- <th scope="row"><?php _e( 'Add Metadata' ); ?></th>
96
- <td><input type="checkbox" name="youtube_embed_metadata" value="1"<?php if ( $options[ 'metadata' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Allow rich metadata to be added to code. <a href="http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-metadata">Learn more</a>' ); ?></span></td>
97
  </tr>
98
 
99
  <tr>
100
- <th scope="row"><?php _e( 'Comment Embedding' ); ?></th>
101
- <td><input type="checkbox" name="youtube_embed_comments" value="1"<?php if ( $options[ 'comments' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Allow YouTube URLs in comments - will display as embedded videos. <a href="http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-comments">Learn more</a>' ); ?></span></td>
102
  </tr>
103
 
104
  <tr>
105
- <th scope="row">&nbsp;&nbsp;&nbsp;&nbsp;<?php _e( 'Profile to use' ); ?></th>
106
  <td><select name="youtube_embed_comments_profile">
107
  <?php aye_generate_profile_list( $options[ 'comments_profile' ], $options[ 'profile_no' ] ) ?>
108
  </select></td>
109
  </tr>
110
 
111
  <tr>
112
- <th scope="row"><?php _e( 'Feed' ); ?></th>
113
  <td><select name="youtube_embed_feed">
114
- <option value="t"<?php if ( $options[ 'feed' ] == "t" ) { echo " selected='selected'"; } ?>><?php _e ( 'Text link' ); ?></option>
115
- <option value="v"<?php if ( $options[ 'feed' ] == "v" ) { echo " selected='selected'"; } ?>><?php _e ( 'Thumbnail' ); ?></option>
116
- <option value="b"<?php if ( $options[ 'feed' ] == "b" ) { echo " selected='selected'"; } ?>><?php _e ( 'Thumbnail &amp; Text Link' ); ?></option>
117
- </select>&nbsp;<span class="description"><?php _e( 'Videos cannot be embedded in feeds. Select how you wish them to be shown instead' ); ?></span></td>
118
  </tr>
119
 
120
  <tr>
121
- <th scope="row">&nbsp;&nbsp;&nbsp;&nbsp;<?php _e( 'Thumbnail to use' ); ?></th>
122
  <td><select name="youtube_embed_thumbnail">
123
- <option value="default"<?php if ( $options[ 'thumbnail' ] == "default" ) { echo " selected='selected'"; } ?>><?php _e ( 'Default' ); ?></option>
124
- <option value="hqdefault"<?php if ( $options[ 'thumbnail' ] == "hqdefault" ) { echo " selected='selected'"; } ?>><?php _e ( 'Default (HQ)' ); ?></option>
125
- <option value="1"<?php if ( $options[ 'thumbnail' ] == "1" ) { echo " selected='selected'"; } ?>><?php _e ( 'Start' ); ?></option>
126
- <option value="2"<?php if ( $options[ 'thumbnail' ] == "2" ) { echo " selected='selected'"; } ?>><?php _e ( 'Middle' ); ?></option>
127
- <option value="3"<?php if ( $options[ 'thumbnail' ] == "3" ) { echo " selected='selected'"; } ?>><?php _e ( 'End' ); ?></option>
128
- </select>&nbsp;<span class="description"><?php _e( 'Which thumbnail to use' ); ?></span></td>
129
  </tr>
130
  </table>
131
 
132
- <br/><span class="yt_heading"><?php _e( 'Alternative Shortcodes' ); ?></span><br/><br/>Specify up to 2 alternative shortcodes to compliment the standard <code>youtube</code> shortcode. <strong>NB: These should be specified without the surrounding square brackets.</strong>
133
 
134
  <table class="form-table">
135
  <tr>
136
- <th scope="row"><?php _e( 'Alternative Shortcode 1' ); ?></th>
137
  <td><input type="text" size="30" name="youtube_embed_shortcode" value="<?php echo $shortcode[ 1 ]; ?>"/></td>
138
  </tr>
139
 
140
  <tr>
141
- <th scope="row">&nbsp;&nbsp;&nbsp;&nbsp;<?php _e( 'Profile to use' ); ?></th>
142
  <td><select name="youtube_embed_alt_profile">
143
  <?php aye_generate_profile_list( $options[ 'alt_profile' ], $options[ 'profile_no' ] ) ?>
144
  </select></td>
145
  </tr>
146
 
147
  <tr>
148
- <th scope="row"><?php _e( 'Alternative Shortcode 2' ); ?></th>
149
  <td><input type="text" size="30" name="youtube_embed_shortcode2" value="<?php echo $shortcode[ 2 ]; ?>"/></td>
150
  </tr>
151
 
152
  <tr>
153
- <th scope="row">&nbsp;&nbsp;&nbsp;&nbsp;<?php _e( 'Profile to use' ); ?></th>
154
  <td><select name="youtube_embed_alt_profile2">
155
  <?php aye_generate_profile_list( $options[ 'alt_profile2' ], $options[ 'profile_no' ] ) ?>
156
  </select></td>
157
  </tr>
158
  </table>
159
 
160
- <br/><span class="yt_heading"><?php _e( 'Migration' ); ?></span><br/><br/>Switch on compatibility with other embedding plugins. For more details on migrating from another plugin, please <a href="http://www.artiss.co.uk/artiss-youtube-embed/compatibility">click here</a>.
161
 
162
  <table class="form-table">
163
  <tr>
164
- <th scope="row"><?php _e( 'Bracket Embedding' ); ?></th>
165
- <td><input type="checkbox" name="youtube_embed_bracket" value="1"<?php if ( $options[ 'bracket' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Allow embedding using URLs within brackets. Activating impacts performance' ); ?></span></td>
166
  </tr>
167
 
168
  <tr>
169
- <th scope="row"><?php _e( 'Alternative Embedding' ); ?></th>
170
- <td><input type="checkbox" name="youtube_embed_alt" value="1"<?php if ( $options[ 'alt' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Allow all other types of embedding. Activating impacts performance' ); ?></span></td>
171
  </tr>
172
 
173
  <tr>
174
- <th scope="row">&nbsp;&nbsp;&nbsp;&nbsp;<?php _e( 'Profile to use' ); ?></th>
175
  <td><select name="youtube_embed_other_profile">
176
  <?php aye_generate_profile_list( $options[ 'other_profile' ], $options[ 'profile_no' ] ) ?>
177
- </select>&nbsp;<span class="description"><?php _e( 'For above 2 options' ); ?></span></td>
178
  </tr>
179
  </table>
180
 
181
- <br/><span class="yt_heading"><?php _e( 'Admin Options' ); ?></span>
182
 
183
  <table class="form-table">
184
  <tr>
185
- <th scope="row"><?php _e( 'Show YouTube Button' ); ?></th>
186
- <td><input type="checkbox" name="youtube_embed_editor_button" value="1"<?php if ( $options[ 'editor_button' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Show the YouTube button on the post editor' ); ?></span></td>
187
  </tr>
188
 
189
  <tr>
190
- <th scope="row"><?php _e( 'Add to Admin Bar' ); ?></th>
191
- <td><input type="checkbox" name="youtube_embed_admin_bar" value="1"<?php if ( $options[ 'admin_bar' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Add link to options screen to Admin Bar' ); ?></span></td>
192
  </tr>
193
  </table>
194
 
195
- <br/><span class="yt_heading"><?php _e( 'Profile &amp; List Sizes' ); ?></span>
196
 
197
  <table class="form-table">
198
  <tr>
199
- <th scope="row"><?php _e( 'Number of Profiles' ); ?></th>
200
- <td><input type="text" size="2" maxlength="2" name="youtube_embed_profile_no" value="<?php echo $options[ 'profile_no' ]; ?>"/>&nbsp;<span class="description"><?php _e( 'Maximum number of profiles' ); ?></span></td>
201
  </tr>
202
 
203
  <tr>
204
- <th scope="row"><?php _e( 'Number of Lists' ); ?></th>
205
- <td><input type="text" size="2" maxlength="2" name="youtube_embed_list_no" value="<?php echo $options[ 'list_no' ]; ?>"/>&nbsp;<span class="description"><?php _e( 'Maximum number of lists' ); ?></span></td>
206
  </tr>
207
  </table>
208
 
209
- <br/><span class="yt_heading"><?php _e( 'Performance' ); ?></span>
210
 
211
  <table class="form-table">
212
  <tr>
213
- <th scope="row"><?php _e( 'Embed Cache' ); ?></th>
214
- <td><input type="text" size="3" maxlength="3" name="youtube_embed_embed_cache" value="<?php echo $options[ 'embed_cache' ]; ?>"/>&nbsp;<span class="description"><?php _e( 'How many hours to retain embed output. 0 to switch off' ); ?></span></td>
215
  </tr>
216
 
217
  <tr>
218
- <th scope="row"><?php _e( 'Video Information Cache' ); ?></th>
219
- <td><input type="text" size="3" maxlength="3" name="youtube_embed_info_cache" value="<?php echo $options[ 'info_cache' ]; ?>"/>&nbsp;<span class="description"><?php _e( 'How many hours to retain video information, including it\'s validity. 0 to switch off' ); ?></span></td>
220
  </tr>
221
 
222
  <tr>
223
- <th scope="row"><?php _e( 'Transcript Cache' ); ?></th>
224
- <td><input type="text" size="3" maxlength="3" name="youtube_embed_transcript_cache" value="<?php echo $options[ 'transcript_cache' ]; ?>"/>&nbsp;<span class="description"><?php _e( 'How many hours to store transcripts for in cache. 0 to switch off' ); ?></span></td>
225
  </tr>
226
 
227
  <?php
@@ -230,54 +244,54 @@ $numposts = $wpdb -> get_var( "SELECT COUNT(*) FROM $wpdb->options WHERE option_
230
  ?>
231
 
232
  <tr>
233
- <th scope="row"><?php _e( 'Clear Cache' ); ?></th>
234
- <td><input type="checkbox" name="youtube_embed_clear_cache" value="1">&nbsp;<span class="description"><?php echo sprintf ( __( 'Select this option to remove all YouTube Embed cache. You currently have %d cached video(s)' ), number_format( $numposts ) ); ?></span></td>
235
  </tr>
236
  </table>
237
 
238
- <br/><span class="yt_heading"><?php _e( 'YouTube API' ); ?></span>
239
 
240
- <p><?php _e( 'The YouTube API is used to validate video IDs and to determine if it is a video or playlist.' ); ?></p>
241
 
242
  <table class="form-table">
243
  <tr>
244
- <th scope="row"><?php _e( 'API State' ); ?></th>
245
  <td><select name="youtube_embed_api">
246
- <option value="0"<?php if ( $options[ 'api' ] == "0" ) { echo " selected='selected'"; } ?>><?php _e ( 'API should not be used' ); ?></option>
247
- <option value="1"<?php if ( $options[ 'api' ] == "1" ) { echo " selected='selected'"; } ?>><?php _e ( 'HTTP API used and errors are reported' ); ?></option>
248
- <option value="2"<?php if ( $options[ 'api' ] == "2" ) { echo " selected='selected'"; } ?>><?php _e ( 'HTTPS API used and errors are reported' ); ?></option>
249
- <option value="3"<?php if ( $options[ 'api' ] == "3" ) { echo " selected='selected'"; } ?>><?php _e ( 'HTTP API used and no errors are reported' ); ?></option>
250
- <option value="4"<?php if ( $options[ 'api' ] == "4" ) { echo " selected='selected'"; } ?>><?php _e ( 'HTTPS API used and no errors are reported' ); ?></option>
251
  </select></td>
252
  </tr>
253
  </table>
254
 
255
- <br/><span class="yt_heading"><?php _e( 'Error Reporting' ); ?></span>
256
 
257
- <p><?php _e( 'Playback errors are within the XHTML source code as comments - parameter errors and other types are displayed on the post output.' ); ?></p>
258
 
259
  <table class="form-table"><tr>
260
- <th scope="row"><?php _e( 'Video Playback Error Message' ); ?></th>
261
- <td><input type="text" size="60" name="youtube_embed_error_message" value="<?php echo $options[ 'error_message' ]; ?>"/>&nbsp;<span class="description"><?php _e( 'This is the message that will be shown on the post' ); ?></span></td>
262
  </tr></table>
263
 
264
- <br/><span class="yt_heading"><?php _e( 'Security' ); ?></span>
265
 
266
  <table class="form-table"><tr>
267
- <th scope="row"><?php _e( 'Privacy-Enhanced Mode' ); ?></th>
268
- <td><input type="checkbox" name="youtube_embed_privacy" value="1"<?php if ( $options[ 'privacy' ] == '1' ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'When on, the player on this site will not store cookies' ); ?></span></td>
269
  </tr></table>
270
 
271
- <br/><span class="yt_heading"><?php _e( 'Compatability' ); ?></span>
272
 
273
  <table class="form-table"><tr>
274
- <th scope="row"><?php _e( 'Allow Frame Border on IFRAME' ); ?></th>
275
- <td><input type="checkbox" name="youtube_embed_frameborder" value="1"<?php if ( $options[ 'frameborder' ] == '1' ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'FRAMEBORDER is not HTML5 compliant' ); ?></span></td>
276
  </tr></table>
277
 
278
  <?php wp_nonce_field( 'youtube-embed-general','youtube_embed_general_nonce', true, true ); ?>
279
 
280
- <p class="submit"><input type="submit" name="Submit" class="button-primary" value="<?php _e( 'Save Settings' ); ?>"/></p>
281
 
282
  </form>
283
 
11
  ?>
12
  <div class="wrap" style="width: 1010px;">
13
  <div class="icon32"><img src="<?php echo plugins_url(); ?>/youtube-embed/images/screen_icon.png" alt="" title="" height="32px" width="32px"/><br /></div>
14
+ <h2><?php _e( 'Artiss YouTube Embed Options', 'youtube-embed' ); ?></h2>
15
 
16
  <?php
17
  // If options have been updated on screen, update the database
18
 
19
  if ( ( !empty( $_POST ) ) && ( check_admin_referer( 'youtube-embed-general', 'youtube_embed_general_nonce' ) ) ) {
20
 
21
+ $options[ 'donated' ] = $_POST[ 'youtube_embed_donated' ];
22
  $options[ 'editor_button' ] = $_POST[ 'youtube_embed_editor_button' ];
23
  $options[ 'admin_bar' ] = $_POST[ 'youtube_embed_admin_bar' ];
24
  $options[ 'profile_no' ] = $_POST[ 'youtube_embed_profile_no' ];
55
  // Update the options
56
 
57
  update_option( 'youtube_embed_general', $options );
58
+ $update_message = __( 'Settings Saved.', 'youtube-embed' );
59
 
60
  // Update the alternative shortcodes
61
 
72
  if ( !empty( $_POST[ 'youtube_embed_clear_cache' ] ) ) {
73
  global $wpdb;
74
  $wpdb -> query( "DELETE FROM $wpdb->options WHERE option_name LIKE '_transient_%ye_video_%'" );
75
+ $update_message .= ' ' . __( 'Cache cleared.', 'youtube-embed' );
76
  }
77
 
78
  echo '<div class="updated fade"><p><strong>' . $update_message . "</strong></p></div>\n";
83
  $options = aye_set_general_defaults();
84
  $shortcode = aye_set_shortcode_option();
85
  $url = aye_set_url_option();
86
+
87
+ // Display ads
88
+
89
+ if ( $options[ 'donated'] != 1 ) { artiss_plugin_ads( 'youtube-embed', 990 ); }
90
  ?>
91
 
92
+ <p><?php _e( 'These are the general settings for Artiss YouTube Embed. Please select <a href="admin.php?page=aye-profile-options">Profiles</a> for default embedding settings.', 'youtube-embed' ); ?></p>
93
 
94
  <form method="post" action="<?php echo get_bloginfo( 'wpurl' ).'/wp-admin/admin.php?page=aye-general-options' ?>">
95
 
96
+ <table class="form-table">
97
+
98
+ <tr>
99
+ <th scope="row"><?php _e( 'Remove Adverts', 'youtube-embed' ); ?></th>
100
+ <td><input type="checkbox" name="youtube_embed_donated" value="1"<?php if ( $options[ 'donated' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( "If you've <a href=\"http://www.artiss.co.uk/donate\">donated</a>, tick here to remove the adverts.", 'youtube-embed' ); ?></span></td>
101
+ </tr>
102
+
103
+ </table></br>
104
+
105
+ <span class="yt_heading"><?php _e( 'Embedding', 'youtube-embed' ); ?></span>
106
 
107
  <table class="form-table">
108
  <tr>
109
+ <th scope="row"><?php _e( 'Add Metadata', 'youtube-embed' ); ?></th>
110
+ <td><input type="checkbox" name="youtube_embed_metadata" value="1"<?php if ( $options[ 'metadata' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Allow rich metadata to be added to code. <a href="http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-metadata">Learn more</a>', 'youtube-embed' ); ?></span></td>
111
  </tr>
112
 
113
  <tr>
114
+ <th scope="row"><?php _e( 'Comment Embedding', 'youtube-embed' ); ?></th>
115
+ <td><input type="checkbox" name="youtube_embed_comments" value="1"<?php if ( $options[ 'comments' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Allow YouTube URLs in comments - will display as embedded videos. <a href="http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-comments">Learn more</a>', 'youtube-embed' ); ?></span></td>
116
  </tr>
117
 
118
  <tr>
119
+ <th scope="row">&nbsp;&nbsp;&nbsp;&nbsp;<?php _e( 'Profile to use', 'youtube-embed' ); ?></th>
120
  <td><select name="youtube_embed_comments_profile">
121
  <?php aye_generate_profile_list( $options[ 'comments_profile' ], $options[ 'profile_no' ] ) ?>
122
  </select></td>
123
  </tr>
124
 
125
  <tr>
126
+ <th scope="row"><?php _e( 'Feed', 'youtube-embed' ); ?></th>
127
  <td><select name="youtube_embed_feed">
128
+ <option value="t"<?php if ( $options[ 'feed' ] == "t" ) { echo " selected='selected'"; } ?>><?php _e ( 'Text link', 'youtube-embed' ); ?></option>
129
+ <option value="v"<?php if ( $options[ 'feed' ] == "v" ) { echo " selected='selected'"; } ?>><?php _e ( 'Thumbnail', 'youtube-embed' ); ?></option>
130
+ <option value="b"<?php if ( $options[ 'feed' ] == "b" ) { echo " selected='selected'"; } ?>><?php _e ( 'Thumbnail &amp; Text Link', 'youtube-embed' ); ?></option>
131
+ </select>&nbsp;<span class="description"><?php _e( 'Videos cannot be embedded in feeds. Select how you wish them to be shown instead', 'youtube-embed' ); ?></span></td>
132
  </tr>
133
 
134
  <tr>
135
+ <th scope="row">&nbsp;&nbsp;&nbsp;&nbsp;<?php _e( 'Thumbnail to use', 'youtube-embed' ); ?></th>
136
  <td><select name="youtube_embed_thumbnail">
137
+ <option value="default"<?php if ( $options[ 'thumbnail' ] == "default" ) { echo " selected='selected'"; } ?>><?php _e ( 'Default', 'youtube-embed' ); ?></option>
138
+ <option value="hqdefault"<?php if ( $options[ 'thumbnail' ] == "hqdefault" ) { echo " selected='selected'"; } ?>><?php _e ( 'Default (HQ)', 'youtube-embed' ); ?></option>
139
+ <option value="1"<?php if ( $options[ 'thumbnail' ] == "1" ) { echo " selected='selected'"; } ?>><?php _e ( 'Start', 'youtube-embed' ); ?></option>
140
+ <option value="2"<?php if ( $options[ 'thumbnail' ] == "2" ) { echo " selected='selected'"; } ?>><?php _e ( 'Middle', 'youtube-embed' ); ?></option>
141
+ <option value="3"<?php if ( $options[ 'thumbnail' ] == "3" ) { echo " selected='selected'"; } ?>><?php _e ( 'End', 'youtube-embed' ); ?></option>
142
+ </select>&nbsp;<span class="description"><?php _e( 'Which thumbnail to use', 'youtube-embed' ); ?></span></td>
143
  </tr>
144
  </table>
145
 
146
+ <br/><span class="yt_heading"><?php _e( 'Alternative Shortcodes', 'youtube-embed' ); ?></span><br/><br/><?php _e( 'Specify up to 2 alternative shortcodes to compliment the standard <code>youtube</code> shortcode. <strong>NB: These should be specified without the surrounding square brackets.</strong>', 'youtube-embed' ); ?>
147
 
148
  <table class="form-table">
149
  <tr>
150
+ <th scope="row"><?php _e( 'Alternative Shortcode 1', 'youtube-embed' ); ?></th>
151
  <td><input type="text" size="30" name="youtube_embed_shortcode" value="<?php echo $shortcode[ 1 ]; ?>"/></td>
152
  </tr>
153
 
154
  <tr>
155
+ <th scope="row">&nbsp;&nbsp;&nbsp;&nbsp;<?php _e( 'Profile to use', 'youtube-embed' ); ?></th>
156
  <td><select name="youtube_embed_alt_profile">
157
  <?php aye_generate_profile_list( $options[ 'alt_profile' ], $options[ 'profile_no' ] ) ?>
158
  </select></td>
159
  </tr>
160
 
161
  <tr>
162
+ <th scope="row"><?php _e( 'Alternative Shortcode 2', 'youtube-embed' ); ?></th>
163
  <td><input type="text" size="30" name="youtube_embed_shortcode2" value="<?php echo $shortcode[ 2 ]; ?>"/></td>
164
  </tr>
165
 
166
  <tr>
167
+ <th scope="row">&nbsp;&nbsp;&nbsp;&nbsp;<?php _e( 'Profile to use', 'youtube-embed' ); ?></th>
168
  <td><select name="youtube_embed_alt_profile2">
169
  <?php aye_generate_profile_list( $options[ 'alt_profile2' ], $options[ 'profile_no' ] ) ?>
170
  </select></td>
171
  </tr>
172
  </table>
173
 
174
+ <br/><span class="yt_heading"><?php _e( 'Migration', 'youtube-embed' ); ?></span><br/><br/><?php _e( 'Switch on compatibility with other embedding plugins. For more details on migrating from another plugin, please <a href="http://www.artiss.co.uk/artiss-youtube-embed/compatibility">click here</a>.', 'youtube-embed' ); ?>
175
 
176
  <table class="form-table">
177
  <tr>
178
+ <th scope="row"><?php _e( 'Bracket Embedding', 'youtube-embed' ); ?></th>
179
+ <td><input type="checkbox" name="youtube_embed_bracket" value="1"<?php if ( $options[ 'bracket' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Allow embedding using URLs within brackets. Activating impacts performance', 'youtube-embed' ); ?></span></td>
180
  </tr>
181
 
182
  <tr>
183
+ <th scope="row"><?php _e( 'Alternative Embedding', 'youtube-embed' ); ?></th>
184
+ <td><input type="checkbox" name="youtube_embed_alt" value="1"<?php if ( $options[ 'alt' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Allow all other types of embedding. Activating impacts performance', 'youtube-embed' ); ?></span></td>
185
  </tr>
186
 
187
  <tr>
188
+ <th scope="row">&nbsp;&nbsp;&nbsp;&nbsp;<?php _e( 'Profile to use', 'youtube-embed' ); ?></th>
189
  <td><select name="youtube_embed_other_profile">
190
  <?php aye_generate_profile_list( $options[ 'other_profile' ], $options[ 'profile_no' ] ) ?>
191
+ </select>&nbsp;<span class="description"><?php _e( 'For above 2 options', 'youtube-embed' ); ?></span></td>
192
  </tr>
193
  </table>
194
 
195
+ <br/><span class="yt_heading"><?php _e( 'Admin Options', 'youtube-embed' ); ?></span>
196
 
197
  <table class="form-table">
198
  <tr>
199
+ <th scope="row"><?php _e( 'Show YouTube Button', 'youtube-embed' ); ?></th>
200
+ <td><input type="checkbox" name="youtube_embed_editor_button" value="1"<?php if ( $options[ 'editor_button' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Show the YouTube button on the post editor', 'youtube-embed' ); ?></span></td>
201
  </tr>
202
 
203
  <tr>
204
+ <th scope="row"><?php _e( 'Add to Admin Bar', 'youtube-embed' ); ?></th>
205
+ <td><input type="checkbox" name="youtube_embed_admin_bar" value="1"<?php if ( $options[ 'admin_bar' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Add link to options screen to Admin Bar', 'youtube-embed' ); ?></span></td>
206
  </tr>
207
  </table>
208
 
209
+ <br/><span class="yt_heading"><?php _e( 'Profile &amp; List Sizes', 'youtube-embed' ); ?></span>
210
 
211
  <table class="form-table">
212
  <tr>
213
+ <th scope="row"><?php _e( 'Number of Profiles', 'youtube-embed' ); ?></th>
214
+ <td><input type="text" size="2" maxlength="2" name="youtube_embed_profile_no" value="<?php echo $options[ 'profile_no' ]; ?>"/>&nbsp;<span class="description"><?php _e( 'Maximum number of profiles', 'youtube-embed' ); ?></span></td>
215
  </tr>
216
 
217
  <tr>
218
+ <th scope="row"><?php _e( 'Number of Lists', 'youtube-embed' ); ?></th>
219
+ <td><input type="text" size="2" maxlength="2" name="youtube_embed_list_no" value="<?php echo $options[ 'list_no' ]; ?>"/>&nbsp;<span class="description"><?php _e( 'Maximum number of lists', 'youtube-embed' ); ?></span></td>
220
  </tr>
221
  </table>
222
 
223
+ <br/><span class="yt_heading"><?php _e( 'Performance', 'youtube-embed' ); ?></span>
224
 
225
  <table class="form-table">
226
  <tr>
227
+ <th scope="row"><?php _e( 'Embed Cache', 'youtube-embed' ); ?></th>
228
+ <td><input type="text" size="3" maxlength="3" name="youtube_embed_embed_cache" value="<?php echo $options[ 'embed_cache' ]; ?>"/>&nbsp;<span class="description"><?php _e( 'How many hours to retain embed output. 0 to switch off', 'youtube-embed' ); ?></span></td>
229
  </tr>
230
 
231
  <tr>
232
+ <th scope="row"><?php _e( 'Video Information Cache', 'youtube-embed' ); ?></th>
233
+ <td><input type="text" size="3" maxlength="3" name="youtube_embed_info_cache" value="<?php echo $options[ 'info_cache' ]; ?>"/>&nbsp;<span class="description"><?php _e( 'How many hours to retain video information, including it\'s validity. 0 to switch off', 'youtube-embed' ); ?></span></td>
234
  </tr>
235
 
236
  <tr>
237
+ <th scope="row"><?php _e( 'Transcript Cache', 'youtube-embed' ); ?></th>
238
+ <td><input type="text" size="3" maxlength="3" name="youtube_embed_transcript_cache" value="<?php echo $options[ 'transcript_cache' ]; ?>"/>&nbsp;<span class="description"><?php _e( 'How many hours to store transcripts for in cache. 0 to switch off', 'youtube-embed' ); ?></span></td>
239
  </tr>
240
 
241
  <?php
244
  ?>
245
 
246
  <tr>
247
+ <th scope="row"><?php _e( 'Clear Cache', 'youtube-embed' ); ?></th>
248
+ <td><input type="checkbox" name="youtube_embed_clear_cache" value="1">&nbsp;<span class="description"><?php echo sprintf ( __( 'Select this option to remove all YouTube Embed cache. You currently have %d cached video(s)', 'youtube-embed' ), number_format( $numposts ) ); ?></span></td>
249
  </tr>
250
  </table>
251
 
252
+ <br/><span class="yt_heading"><?php _e( 'YouTube API', 'youtube-embed' ); ?></span>
253
 
254
+ <p><?php _e( 'The YouTube API is used to validate video IDs and to determine if it is a video or playlist.', 'youtube-embed' ); ?></p>
255
 
256
  <table class="form-table">
257
  <tr>
258
+ <th scope="row"><?php _e( 'API State', 'youtube-embed' ); ?></th>
259
  <td><select name="youtube_embed_api">
260
+ <option value="0"<?php if ( $options[ 'api' ] == "0" ) { echo " selected='selected'"; } ?>><?php _e ( 'API should not be used', 'youtube-embed' ); ?></option>
261
+ <option value="1"<?php if ( $options[ 'api' ] == "1" ) { echo " selected='selected'"; } ?>><?php _e ( 'HTTP API used and errors are reported', 'youtube-embed' ); ?></option>
262
+ <option value="2"<?php if ( $options[ 'api' ] == "2" ) { echo " selected='selected'"; } ?>><?php _e ( 'HTTPS API used and errors are reported', 'youtube-embed' ); ?></option>
263
+ <option value="3"<?php if ( $options[ 'api' ] == "3" ) { echo " selected='selected'"; } ?>><?php _e ( 'HTTP API used and no errors are reported', 'youtube-embed' ); ?></option>
264
+ <option value="4"<?php if ( $options[ 'api' ] == "4" ) { echo " selected='selected'"; } ?>><?php _e ( 'HTTPS API used and no errors are reported', 'youtube-embed' ); ?></option>
265
  </select></td>
266
  </tr>
267
  </table>
268
 
269
+ <br/><span class="yt_heading"><?php _e( 'Error Reporting', 'youtube-embed' ); ?></span>
270
 
271
+ <p><?php _e( 'Playback errors are within the XHTML source code as comments - parameter errors and other types are displayed on the post output.', 'youtube-embed' ); ?></p>
272
 
273
  <table class="form-table"><tr>
274
+ <th scope="row"><?php _e( 'Video Playback Error Message', 'youtube-embed' ); ?></th>
275
+ <td><input type="text" size="60" name="youtube_embed_error_message" value="<?php echo $options[ 'error_message' ]; ?>"/>&nbsp;<span class="description"><?php _e( 'This is the message that will be shown on the post', 'youtube-embed' ); ?></span></td>
276
  </tr></table>
277
 
278
+ <br/><span class="yt_heading"><?php _e( 'Security', 'youtube-embed' ); ?></span>
279
 
280
  <table class="form-table"><tr>
281
+ <th scope="row"><?php _e( 'Privacy-Enhanced Mode', 'youtube-embed' ); ?></th>
282
+ <td><input type="checkbox" name="youtube_embed_privacy" value="1"<?php if ( $options[ 'privacy' ] == '1' ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'When on, the player on this site will not store cookies', 'youtube-embed' ); ?></span></td>
283
  </tr></table>
284
 
285
+ <br/><span class="yt_heading"><?php _e( 'Compatability', 'youtube-embed' ); ?></span>
286
 
287
  <table class="form-table"><tr>
288
+ <th scope="row"><?php _e( 'Allow Frame Border on IFRAME', 'youtube-embed' ); ?></th>
289
+ <td><input type="checkbox" name="youtube_embed_frameborder" value="1"<?php if ( $options[ 'frameborder' ] == '1' ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'FRAMEBORDER is not HTML5 compliant', 'youtube-embed' ); ?></span></td>
290
  </tr></table>
291
 
292
  <?php wp_nonce_field( 'youtube-embed-general','youtube_embed_general_nonce', true, true ); ?>
293
 
294
+ <p class="submit"><input type="submit" name="Submit" class="button-primary" value="<?php _e( 'Save Settings', 'youtube-embed' ); ?>"/></p>
295
 
296
  </form>
297
 
includes/aye-options-lists.php CHANGED
@@ -12,7 +12,7 @@
12
 
13
  <div class="icon32"><img src="<?php echo plugins_url(); ?>/youtube-embed/images/screen_icon.png" alt="" title="" height="32px" width="32px"/><br /></div>
14
 
15
- <h2><?php _e( 'Artiss YouTube Embed Lists' ); ?></h2>
16
 
17
  <?php
18
  // Set current list number
@@ -23,12 +23,12 @@ if ( $list_no == '' ) { $list_no = 1; }
23
  if ( ( !empty( $_POST[ 'Submit' ] ) ) && ( check_admin_referer( 'youtube-embed-general', 'youtube_embed_general_nonce' ) ) ) {
24
 
25
  $class = 'updated fade';
26
- $message = __( 'Settings Saved.' );
27
  $new_id_list = '';
28
 
29
  if ( ( $_POST[ 'youtube_embed_video_list' ] == '' ) or ( $_POST[ 'youtube_embed_name' ] == '' ) ) {
30
  $class = 'error';
31
- $message = __( 'All fields must be completed.' );
32
  } else {
33
  $id_array = explode( "\n", $_POST[ 'youtube_embed_video_list' ] );
34
  $loop = 0;
@@ -50,7 +50,7 @@ if ( ( !empty( $_POST[ 'Submit' ] ) ) && ( check_admin_referer( 'youtube-embed-g
50
  // If one or more IDs weren't valid, output an error
51
  if (!$valid) {
52
  $class = 'error';
53
- $message = __( 'Errors were found with your video list. See the list below for details.' );
54
  }
55
  }
56
 
@@ -64,7 +64,7 @@ if ( ( !empty( $_POST[ 'Submit' ] ) ) && ( check_admin_referer( 'youtube-embed-g
64
  }
65
 
66
  if ( substr( $class, 0, 7 ) == 'updated' ) { update_option( 'youtube_embed_list' . $list_no, $options ); }
67
- echo '<div class="' . $class.'"><p><strong>' . __( $message ) . "</strong></p></div>\n";
68
  } else {
69
  $class = '';
70
  }
@@ -72,6 +72,10 @@ if ( ( !empty( $_POST[ 'Submit' ] ) ) && ( check_admin_referer( 'youtube-embed-g
72
  // Fetch options into an array
73
  if ( $class != "error" ) { $options = aye_set_list_defaults( $list_no ); }
74
  $general = aye_set_general_defaults();
 
 
 
 
75
  ?>
76
 
77
  <form method="post" action="<?php echo get_bloginfo( 'wpurl' ) . '/wp-admin/admin.php?page=aye-list-options'; ?>">
@@ -85,11 +89,11 @@ while ( $loop <= $general[ 'list_no' ] ) {
85
  $listfiles = get_option( 'youtube_embed_list' . $loop );
86
  $listname = $listfiles[ 'name' ];
87
 
88
- if ( $listname == '' ) { $listname = __( 'List' ) . ' ' . $loop; }
89
  if ( strlen( $listname ) > 30 ) { $listname = substr( $listname, 0, 30 ) . '&#8230;'; }
90
  echo '<option value="' . $loop . '"';
91
  if ( $list_no == $loop ) { echo " selected='selected'"; }
92
- echo '>' . __( $listname ) . "</option>\n";
93
 
94
  $loop ++;
95
  }
@@ -98,25 +102,25 @@ while ( $loop <= $general[ 'list_no' ] ) {
98
  <input type="submit" name="List" class="button-secondary" value="<?php _e( 'Change list' ); ?>"/>
99
  </span><br/>
100
 
101
- <?php echo sprintf( __( 'These are the options for list ' ), $list_no) . '<br/>' . __( 'Update the name, if required, and specify a list of YouTube video IDs. Use the drop-down on the right hand side to swap between lists.' ); ?>
102
 
103
  <table class="form-table">
104
 
105
  <tr>
106
- <th scope="row"><?php _e( 'List name' ); ?></th><td>
107
  <input type="text" size="20" name="youtube_embed_name" value="<?php echo $options[ 'name' ]; ?>"/>
108
- <?php echo '&nbsp;<span class="description">' . __( 'The name you wish to give this list' ) . '</span>'; ?>
109
  </td></tr>
110
 
111
  <tr>
112
- <th scope="row"><?php _e( 'Video IDs (one per line)' ); ?></th><td>
113
  <textarea name="youtube_embed_video_list" id="youtube_embed_video_list" cols="12" rows="10" class="widefat"><?php echo $options[ 'list' ]; ?></textarea>
114
  </td></tr>
115
  </table>
116
 
117
  <?php wp_nonce_field( 'youtube-embed-general','youtube_embed_general_nonce', true, true ); ?>
118
 
119
- <p class="submit"><input type="submit" name="Submit" class="button-primary" value="<?php _e( 'Save Settings' ); ?>"/></p>
120
 
121
  </form>
122
 
@@ -127,7 +131,7 @@ if ( $options[ 'list' ] != '' ) {
127
 
128
  $id_array = explode( "\n", $options[ 'list' ] );
129
 
130
- echo '<table class=\"widefat\">\n<thead>\n\t<tr>\n\t\t<th>' . __( 'Video ID' ) . '</th>\n\t\t<th>' . __( 'Video Title' ) . '</th>\n\t\t<th>' . __( 'Status' ) . "</th>\n\t</tr>\n</thead>\n<tbody>\n";
131
  $loop = 0;
132
 
133
  while ( $loop < count( $id_array ) ) {
@@ -143,18 +147,18 @@ if ( $options[ 'list' ] != '' ) {
143
  $type = $video_info[ 'type' ];
144
 
145
  if ( $type == 'p' ) {
146
- $text = __( 'This is a playlist' );
147
  $status = '-1';
148
  } else {
149
  if ( $type == '' ) {
150
- $text = __( 'Invalid video ID' );
151
  $status = '-2';
152
  } else {
153
  if ( strlen( $type ) != 1 ) {
154
- $text = __( 'YouTube API error' );
155
  $status = '-3';
156
  } else {
157
- $text = __( 'Valid video' );
158
  $status = '0';
159
  }
160
  }
@@ -172,10 +176,10 @@ if ( $options[ 'list' ] != '' ) {
172
 
173
  echo '"><img src="' . plugins_url() . '/youtube-embed/images/';
174
  if ( $status == 0 ) {
175
- $alt_text = __( 'The video ID is valid' );
176
  echo 'tick.png" alt="' . $alt_text . '" title="' . $alt_text . '" ';
177
  } else {
178
- $alt_text = __( 'The video ID is invalid' );
179
  echo 'cross.png" alt="' . $alt_text . '" title="' . $alt_text . '" ';
180
  }
181
 
12
 
13
  <div class="icon32"><img src="<?php echo plugins_url(); ?>/youtube-embed/images/screen_icon.png" alt="" title="" height="32px" width="32px"/><br /></div>
14
 
15
+ <h2><?php _e( 'Artiss YouTube Embed Lists', 'youtube-embed' ); ?></h2>
16
 
17
  <?php
18
  // Set current list number
23
  if ( ( !empty( $_POST[ 'Submit' ] ) ) && ( check_admin_referer( 'youtube-embed-general', 'youtube_embed_general_nonce' ) ) ) {
24
 
25
  $class = 'updated fade';
26
+ $message = __( 'Settings Saved.', 'youtube-embed' );
27
  $new_id_list = '';
28
 
29
  if ( ( $_POST[ 'youtube_embed_video_list' ] == '' ) or ( $_POST[ 'youtube_embed_name' ] == '' ) ) {
30
  $class = 'error';
31
+ $message = __( 'All fields must be completed.', 'youtube-embed' );
32
  } else {
33
  $id_array = explode( "\n", $_POST[ 'youtube_embed_video_list' ] );
34
  $loop = 0;
50
  // If one or more IDs weren't valid, output an error
51
  if (!$valid) {
52
  $class = 'error';
53
+ $message = __( 'Errors were found with your video list. See the list below for details.', 'youtube-embed' );
54
  }
55
  }
56
 
64
  }
65
 
66
  if ( substr( $class, 0, 7 ) == 'updated' ) { update_option( 'youtube_embed_list' . $list_no, $options ); }
67
+ echo '<div class="' . $class . '"><p><strong>' . $message . "</strong></p></div>\n";
68
  } else {
69
  $class = '';
70
  }
72
  // Fetch options into an array
73
  if ( $class != "error" ) { $options = aye_set_list_defaults( $list_no ); }
74
  $general = aye_set_general_defaults();
75
+
76
+ // Display ads
77
+
78
+ if ( $general[ 'donated'] != 1 ) { artiss_plugin_ads( 'youtube-embed', 990 ); }
79
  ?>
80
 
81
  <form method="post" action="<?php echo get_bloginfo( 'wpurl' ) . '/wp-admin/admin.php?page=aye-list-options'; ?>">
89
  $listfiles = get_option( 'youtube_embed_list' . $loop );
90
  $listname = $listfiles[ 'name' ];
91
 
92
+ if ( $listname == '' ) { $listname = __( 'List', 'youtube-embed' ) . ' ' . $loop; }
93
  if ( strlen( $listname ) > 30 ) { $listname = substr( $listname, 0, 30 ) . '&#8230;'; }
94
  echo '<option value="' . $loop . '"';
95
  if ( $list_no == $loop ) { echo " selected='selected'"; }
96
+ echo '>' . $listname . "</option>\n";
97
 
98
  $loop ++;
99
  }
102
  <input type="submit" name="List" class="button-secondary" value="<?php _e( 'Change list' ); ?>"/>
103
  </span><br/>
104
 
105
+ <?php echo sprintf( __( 'These are the options for list ', 'youtube-embed' ), $list_no) . '<br/>' . __( 'Update the name, if required, and specify a list of YouTube video IDs. Use the drop-down on the right hand side to swap between lists.', 'youtube-embed' ); ?>
106
 
107
  <table class="form-table">
108
 
109
  <tr>
110
+ <th scope="row"><?php _e( 'List name', 'youtube-embed' ); ?></th><td>
111
  <input type="text" size="20" name="youtube_embed_name" value="<?php echo $options[ 'name' ]; ?>"/>
112
+ <?php echo '&nbsp;<span class="description">' . __( 'The name you wish to give this list', 'youtube-embed' ) . '</span>'; ?>
113
  </td></tr>
114
 
115
  <tr>
116
+ <th scope="row"><?php _e( 'Video IDs (one per line)', 'youtube-embed' ); ?></th><td>
117
  <textarea name="youtube_embed_video_list" id="youtube_embed_video_list" cols="12" rows="10" class="widefat"><?php echo $options[ 'list' ]; ?></textarea>
118
  </td></tr>
119
  </table>
120
 
121
  <?php wp_nonce_field( 'youtube-embed-general','youtube_embed_general_nonce', true, true ); ?>
122
 
123
+ <p class="submit"><input type="submit" name="Submit" class="button-primary" value="<?php _e( 'Save Settings', 'youtube-embed' ); ?>"/></p>
124
 
125
  </form>
126
 
131
 
132
  $id_array = explode( "\n", $options[ 'list' ] );
133
 
134
+ echo "<table class=\"widefat\">\n<thead>\n\t<tr>\n\t\t<th>" . __( 'Video ID', 'youtube-embed' ) . "</th>\n\t\t<th>" . __( 'Video Title', 'youtube-embed' ) . "</th>\n\t\t<th>" . __( 'Status', 'youtube-embed' ) . "</th>\n\t</tr>\n</thead>\n<tbody>\n";
135
  $loop = 0;
136
 
137
  while ( $loop < count( $id_array ) ) {
147
  $type = $video_info[ 'type' ];
148
 
149
  if ( $type == 'p' ) {
150
+ $text = __( 'This is a playlist', 'youtube-embed' );
151
  $status = '-1';
152
  } else {
153
  if ( $type == '' ) {
154
+ $text = __( 'Invalid video ID', 'youtube-embed' );
155
  $status = '-2';
156
  } else {
157
  if ( strlen( $type ) != 1 ) {
158
+ $text = __( 'YouTube API error', 'youtube-embed' );
159
  $status = '-3';
160
  } else {
161
+ $text = __( 'Valid video', 'youtube-embed' );
162
  $status = '0';
163
  }
164
  }
176
 
177
  echo '"><img src="' . plugins_url() . '/youtube-embed/images/';
178
  if ( $status == 0 ) {
179
+ $alt_text = __( 'The video ID is valid', 'youtube-embed' );
180
  echo 'tick.png" alt="' . $alt_text . '" title="' . $alt_text . '" ';
181
  } else {
182
+ $alt_text = __( 'The video ID is invalid', 'youtube-embed' );
183
  echo 'cross.png" alt="' . $alt_text . '" title="' . $alt_text . '" ';
184
  }
185
 
includes/aye-options-profiles.php CHANGED
@@ -8,32 +8,23 @@
8
  * @since 2.0
9
  */
10
  ?>
11
- <div class="wrap" style="width: 1010px;">
 
 
12
 
13
  <div class="icon32"><img src="<?php echo plugins_url(); ?>/youtube-embed/images/screen_icon.png" alt="" title="" height="32px" width="32px"/><br /></div>
14
 
15
- <h2><?php _e( 'Artiss YouTube Embed Profiles' ); ?></h2><br/>
16
-
17
- <div style="width: 990px; height: 220px; border: 1px solid #ddd; padding: 10px;">
18
- <a href="http://themefuse.com/wp-themes-shop/?plugin=youtube-embed" target="_blank"><img src="<?php echo plugins_url(); ?>/youtube-embed/images/themefuse_banner.jpg" alt="ThemeFuse.com - Premium WordPress Themes" title="ThemeFuse.com - Premium WordPress Themes" style="float: left; padding-right: 10px;"></a>
19
- <h3>Donate</h3>
20
- <p>If you like this plugin and appreciate the effort being put into it, <a href="http://www.artiss.co.uk/donate">please consider donating</a>. You can donate via PayPal or purchase something from my Amazon Wish List.</p>
21
- <h3>Follow Me</h3>
22
- <p>Please stay in touch with the latest news via one of the following social streams...</p>
23
- <p align="center">
24
- <a href="http://www.twitter.com/artiss_tech"><img src="<?php echo plugins_url(); ?>/youtube-embed/images/Twitter.png" alt="<?php _e( 'Follow Artiss.co.uk on Twitter' ); ?>" title="<?php _e( 'Follow Artiss.co.uk on Twitter' ); ?>" style="margin-right: 20px;"></a>
25
- <a href="http://www.facebook.com/artiss.co.uk"><img src="<?php echo plugins_url(); ?>/youtube-embed/images/Facebook.png" alt="<?php _e( 'Follow Artiss.co.uk on Facebook' ); ?>" title="<?php _e( 'Follow Artiss.co.uk on Facebook' ); ?>" style="margin-right: 20px;"></a>
26
- <a href="https://plus.google.com/108446415028687420620?rel=author"><img src="<?php echo plugins_url(); ?>/youtube-embed/images/Google+.png" alt="<?php _e( 'Follow Artiss.co.uk on Google+' ); ?>" title="<?php _e( 'Follow Artiss.co.uk on Google+' ); ?>" style="margin-right: 20px;"></a>
27
- <a href="http://www.artiss.co.uk/feed"><img src="<?php echo plugins_url(); ?>/youtube-embed/images/RSS.png" alt="<?php _e( 'Follow Artiss.co.uk on RSS feed' ); ?>" title="<?php _e( 'Follow Artiss.co.uk on RSS feed' ); ?>"></a>
28
- </p>
29
- </div><br/>
30
 
31
  <?php
 
32
  // Set current profile number
 
33
  if ( isset( $_POST[ 'youtube_embed_profile_no' ] ) ) { $profile_no = $_POST[ 'youtube_embed_profile_no' ]; } else { $profile_no = 0; }
34
  if ( $profile_no == '' ) { $profile_no = 0; }
35
 
36
  // If options have been updated on screen, update the database
 
37
  if ( ( !empty( $_POST[ 'Submit' ] ) ) && ( check_admin_referer( 'youtube-embed-profile' , 'youtube_embed_profile_nonce' ) ) ) {
38
 
39
  $options[ 'name' ] = $_POST[ 'youtube_embed_name' ];
@@ -66,6 +57,7 @@ if ( ( !empty( $_POST[ 'Submit' ] ) ) && ( check_admin_referer( 'youtube-embed-p
66
  $options[ 'color' ] = $_POST[ 'youtube_embed_color' ];
67
  $options[ 'theme' ] = $_POST[ 'youtube_embed_theme' ];
68
  $options[ 'https' ] = $_POST[ 'youtube_embed_https' ];
 
69
  $options[ 'modest' ] = $_POST[ 'youtube_embed_modest' ];
70
  $options[ 'dynamic' ] = $_POST[ 'youtube_embed_dynamic' ];
71
  $options[ 'fixed' ] = $_POST[ 'youtube_embed_fixed' ];
@@ -101,11 +93,17 @@ if ( ( !empty( $_POST[ 'Submit' ] ) ) && ( check_admin_referer( 'youtube-embed-p
101
  }
102
 
103
  // Video option button has been pressed
 
104
  if ( !empty( $_POST[ 'Video' ] ) ) { $video_type = $_POST[ 'youtube_embed_video_type' ]; } else { $video_type = 'd'; }
105
 
106
  // Fetch options into an array
 
107
  $options = aye_set_profile_defaults( $profile_no );
108
  $general = aye_set_general_defaults();
 
 
 
 
109
  ?>
110
 
111
  <form method="post" action="<?php echo get_bloginfo( 'wpurl' ) . '/wp-admin/admin.php?page=aye-profile-options' ?>">
@@ -114,254 +112,258 @@ $general = aye_set_general_defaults();
114
  <select name="youtube_embed_profile_no">
115
  <?php aye_generate_profile_list( $profile_no, $general[ 'profile_no' ] ) ?>
116
  </select>
117
- <input type="submit" name="Profile" class="button-secondary" value="<?php _e('Change profile'); ?>"/>
118
  </span><br/>
119
 
120
  <?php
121
  if ( $profile_no == '0' ) {
122
- _e( 'These are the options for the default profile.' );
123
  } else {
124
- sprintf( _e( 'These are the options for profile %s.' ), $profile_no );
125
  }
126
- echo ' ' . __( 'Use the drop-down on the right hand side to swap between profiles.' );
127
  ?>
128
 
129
  <table class="form-table">
130
 
131
  <tr>
132
- <th scope="row"><?php _e( 'Profile name' ); ?></th><td>
133
  <input type="text" size="20" name="youtube_embed_name" value="<?php echo $options[ 'name' ]; ?>"<?php if ( $profile_no == 0 ) { echo ' readonly="readonly"'; } ?>/>
134
- <?php if ( $profile_no != 0 ) { echo '&nbsp;<span class="description">' . __( 'The name you wish to give this profile' ) . '</span>'; } ?>
135
  </td></tr>
136
 
137
  <tr valign="top">
138
- <th scope="row"><?php _e( 'Video Embed Type' ); ?></th>
139
- <td><span class="description"><?php _e( 'The type of player to use for videos.' ); ?></span><br/>
140
- <input type="radio" name="youtube_embed_type" value="v"<?php if ( $options[ 'type' ] == "v" ) { echo ' checked="checked"'; } ?>/><?php echo '&nbsp;' . __( 'IFRAME' ); ?><span class="description"><?php echo '&nbsp;' . __( 'Uses HTML5, if available. Alternatively, uses AS3 Flash player. This is the current YouTube default..' ); ?></span><br/>
141
- <input type="radio" name="youtube_embed_type" value="p"<?php if ( $options[ 'type' ] == "p" ) { echo ' checked="checked"'; } ?>/><?php echo '&nbsp;' . __( 'OBJECT' ); ?><span class="description"><?php echo '&nbsp;' . __( 'Use the AS3 Flash player.' ); ?></span><br/>
142
- <input type="radio" name="youtube_embed_type" value="c"<?php if ( $options[ 'type' ] == "c" ) { echo ' checked="checked"'; } ?>/><?php echo '&nbsp;' . __( 'Chromeless' ); ?><span class="description"><?php echo '&nbsp;' . __( 'Use the <a href="http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-chromeless">Chromeless</a> version of the AS3 Flash Player.' ); ?></span><br/>
143
- <input type="radio" name="youtube_embed_type" value="m"<?php if ( $options[ 'type' ] == "m" ) { echo ' checked="checked"'; } ?>/><?php echo '&nbsp;' . __( 'EmbedPlus' ); ?><span class="description"><?php echo '&nbsp;' . __( 'Use <a href="http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-embedplus">EmbedPlus</a>, if Flash is available.' ); ?></span>
144
  </td>
145
  </tr>
146
 
147
  <tr valign="top">
148
- <th scope="row"><?php _e( 'Playlist Embed Type' ); ?></th>
149
- <td><span class="description"><?php _e( 'The type of player to use when showing playlists.' ); ?></span><br/>
150
- <input type="radio" name="youtube_embed_playlist" value="v"<?php if ( $options[ 'playlist' ] == "v" ) { echo ' checked="checked"'; } ?>/><?php echo '&nbsp;' . __( 'IFRAME' ); ?><br/>
151
- <input type="radio" name="youtube_embed_playlist" value="o"<?php if ( $options[ 'playlist' ] == "o" ) { echo ' checked="checked"'; } ?>/><?php echo '&nbsp;' . __( 'OBJECT' ); ?><br/>
152
  </td>
153
  </tr>
154
  </table>
155
 
156
- <br/><span class="yt_heading"><?php _e( 'Options For All Player Types' ); ?></span>
157
 
158
  <table class="form-table">
159
  <tr>
160
- <th scope="row"><?php _e( 'Template' ); ?></th>
161
- <td><input type="text" size="40" name="youtube_embed_template" value="<?php echo htmlspecialchars( $options[ 'template' ] ); ?>"/>&nbsp;<span class="description">Wrapper for video output. Must include <code>%video%</code> tag to show video position</span></td>
162
  </tr>
163
 
164
  <tr>
165
- <th scope="row"><?php _e( 'Style' ); ?></th>
166
- <td><input type="text" size="40" name="youtube_embed_style" value="<?php echo htmlspecialchars( $options[ 'style' ] ); ?>"/>&nbsp;<span class="description">CSS elements to apply to video</span></td>
167
  </tr>
168
  </table>
169
 
170
  <table class="form-table ytbox_grey">
171
  <tr>
172
- <th scope="row"><?php _e( 'Video size' ); ?></th>
173
- <td><input type="text" size="3" maxlength="3" name="youtube_embed_width" value="<?php echo $options[ 'width' ]; ?>"/>&nbsp;x&nbsp;<input type="text" size="3" maxlength="3" name="youtube_embed_height" value="<?php echo $options[ 'height' ]; ?>"/>&nbsp;<span class="description"><?php _e( 'The width x height of the video, in pixels' ); ?></span></td>
174
  </tr>
175
 
176
  <tr valign="top">
177
- <th scope="row"><?php _e( 'Default Sizes' ); ?></th>
178
  <td><select name="youtube_embed_size">
179
- <option value=""<?php if ( $default_size == '' ) { echo " selected='selected'"; } ?>><?php _e( 'Use above sizes' ); ?></option>
180
  <option value="04800385"<?php if ( $default_size == "04800385" ) { echo " selected='selected'"; } ?>><?php echo '480x385 4:3'; ?></option>
181
  <option value="05600340"<?php if ( $default_size == "05600340" ) { echo " selected='selected'"; } ?>><?php echo '560x340 16:9'; ?></option>
182
  <option value="06400385"<?php if ( $default_size == "06400385" ) { echo " selected='selected'"; } ?>><?php echo '640x385 16:9'; ?></option>
183
  <option value="08530505"<?php if ( $default_size == "08530505" ) { echo " selected='selected'"; } ?>><?php echo '853x505 16:9'; ?></option>
184
  <option value="12800745"<?php if ( $default_size == "12800745" ) { echo " selected='selected'"; } ?>><?php echo '1280x745 16:9'; ?></option>
185
- </select>&nbsp;<span class="description"><?php _e( 'Select one of these default sizes to override the above video sizes' ); ?></span></td>
186
  </tr>
187
 
188
  <tr>
189
- <th scope="row"><?php _e( 'Dynamically Resize' ); ?></th>
190
- <td><input type="checkbox" name="youtube_embed_dynamic" value="1"<?php if ( $options[ 'dynamic' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Show full width and resize with the browser' ); ?></span></td>
191
  </tr>
192
 
193
  <tr>
194
- <th scope="row">&nbsp;&nbsp;&nbsp;&nbsp;<?php _e( 'Set Maximum Size' ); ?></th>
195
- <td><input type="checkbox" name="youtube_embed_fixed" value="1"<?php if ( $options[ 'fixed' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Use above width to define maximum size' ); ?></span></td>
196
  </tr>
197
  </table>
198
 
199
  <table class="form-table">
200
 
201
  <tr>
202
- <th scope="row"><?php _e( 'Audio Only' ); ?></th>
203
- <td><input type="checkbox" name="youtube_embed_audio" value="1"<?php if ( $options[ 'audio' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Only show the toolbar for audio only playback' ); ?></span></td>
204
  </tr>
205
 
206
  <tr>
207
- <th scope="row"><?php _e( 'Autoplay' ); ?></th>
208
- <td><input type="checkbox" name="youtube_embed_autoplay" value="1"<?php if ( $options[ 'autoplay' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'The video will start playing when the player loads' ); ?></span></td>
209
  </tr>
210
 
211
  </table>
212
 
213
- <br/><span class="yt_heading"><?php _e( 'Options Not Supported by EmbedPlus' ); ?></span>
214
 
215
  <table class="form-table">
216
 
217
  <tr>
218
- <th scope="row"><?php _e( 'Auto hide' ); ?></th>
219
  <td><select name="youtube_embed_autohide">
220
- <option value="0"<?php if ( $options[ 'autohide' ] == "0" ) { echo " selected='selected'"; } ?>><?php _e( 'Controls &amp; progress bar remain visible' ); ?></option>
221
- <option value="1"<?php if ( $options[ 'autohide' ] == "1" ) { echo " selected='selected'"; } ?>><?php _e( 'Controls &amp; progress bar fade out' ); ?></option>
222
- <option value="2"<?php if ( $options[ 'autohide' ] == "2" ) { echo " selected='selected'"; } ?>><?php _e( 'Progress bar fades' ); ?></option>
223
- </select>&nbsp;<span class="description"><?php _e( 'Video controls will automatically hide after a video begins playing' ); ?></span></td>
224
  </tr>
225
 
226
  <tr>
227
- <th scope="row"><?php _e( 'Controls' ); ?></th>
228
- <td><input type="checkbox" name="youtube_embed_controls" value="1"<?php if ( $options[ 'controls' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Video player controls will display' ); ?></span></td>
229
  </tr>
230
 
231
  <tr>
232
- <th scope="row"><?php _e( 'SSL' ); ?></th>
233
- <td><input type="checkbox" name="youtube_embed_https" value="1"<?php if ( $options[ 'https' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Use SSL? <a href="http://www.google.com/support/youtube/bin/answer.py?answer=171780&expand=UseHTTPS#HTTPS">Read more</a>' ); ?></span></td>
234
  </tr>
235
 
236
  <tr>
237
- <th scope="row"><?php _e( 'Loop Video' ); ?></th>
238
- <td><input type="checkbox" name="youtube_embed_loop" value="1"<?php if ( $options[ 'loop' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Play the initial video again and again. In the case of a playlist, this will play the entire playlist and then start again at the first video' ); ?></span></td>
239
  </tr>
240
 
241
  <tr>
242
- <th scope="row"><?php _e( 'Information' ); ?></th>
243
- <td><input type="checkbox" name="youtube_embed_info" value="1"<?php if ( $options[ 'info' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Display the video title and uploader before the video starts' ); ?></span></td>
244
  </tr>
245
 
246
  <tr>
247
- <th scope="row"><?php _e( 'Theme' ); ?></th>
248
- <td><select name="youtube_embed_theme">
249
- <option value="dark"<?php if ( $options[ 'theme' ] == "dark" ) { echo " selected='selected'"; } ?>><?php _e( 'Dark' ); ?></option>
250
- <option value="light"<?php if ( $options[ 'theme' ] == "light" ) { echo " selected='selected'"; } ?>><?php _e( 'Light' ); ?></option>
251
- </select>&nbsp;<span class="description"><?php _e( 'Display player controls within a dark or light control bar' ); ?></span></td>
252
  </tr>
253
- </table>
254
-
255
- <br/><span class="yt_heading"><?php _e( 'Options for AS3 Player' ); ?></span>
256
- <br/><br/>The following options are not supported if using EmbedPlus or if the IFRAME player uses HTML5.
257
 
258
- <table class="form-table">
259
  <tr>
260
- <th scope="row"><?php _e( 'Annotations' ); ?></th>
261
- <td><input type="checkbox" name="youtube_embed_annotation" value="1"<?php if ( $options[ 'annotation' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Video annotations are shown by default' ); ?></span></td>
 
 
 
262
  </tr>
263
 
264
  <tr>
265
- <th scope="row"><?php _e( 'Closed Captions' ); ?></th>
266
- <td><input type="checkbox" name="youtube_embed_cc" value="1"<?php if ( $options[ 'cc' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Show closed captions (subtitles) by default, even if the user has turned captions off' ); ?></span></td>
 
 
 
267
  </tr>
268
 
 
 
 
 
 
 
269
  <tr>
270
- <th scope="row"><?php _e( 'Disable Keyboard' ); ?></th>
271
- <td><input type="checkbox" name="youtube_embed_disablekb" value="1"<?php if ( $options[ 'disablekb' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Disable the player keyboard controls' ); ?></span></td>
272
  </tr>
273
 
274
  <tr>
275
- <th scope="row"><?php _e( 'Fullscreen' ); ?></th>
276
- <td><input type="checkbox" name="youtube_embed_fullscreen" value="1"<?php if ( $options[ 'fullscreen' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'A button will allow the viewer to watch the video fullscreen' ); ?></span></td>
277
  </tr>
278
 
279
  <tr>
280
- <th scope="row"><?php _e( 'Link to YouTube' ); ?></th>
281
- <td><input type="checkbox" name="youtube_embed_link" value="1"<?php if ( $options[ 'link' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Video links back to YouTube when clicked' ); ?></span></td>
282
  </tr>
283
 
284
  <tr>
285
- <th scope="row"><?php _e( 'Modest Branding' ); ?></th>
286
- <td><input type="checkbox" name="youtube_embed_modest" value="1"<?php if ( $options[ 'modest' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Reduce branding on video.' ); ?></span></td>
287
  </tr>
288
 
289
  <tr>
290
- <th scope="row"><?php _e( 'Progress Bar Colour' ); ?></th>
291
- <td><select name="youtube_embed_color">
292
- <option value="red"<?php if ( $options[ 'color' ] == "red" ) { echo " selected='selected'"; } ?>><?php _e( 'Red' ); ?></option>
293
- <option value="white"<?php if ( $options[ 'color' ] == "white" ) { echo " selected='selected'"; } ?>><?php _e( 'White (desaturated)' ); ?></option>
294
- </select>&nbsp;<span class="description"><?php _e( 'The colour that will be used in the player\'s video progress bar to highlight the amount of the video that\'s already been seen' ); ?></span></td>
295
  </tr>
296
 
297
  <tr>
298
- <th scope="row"><?php _e( 'Related Videos' ); ?></th>
299
- <td><input type="checkbox" name="youtube_embed_related" value="1"<?php if ( $options[ 'related' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Load related videos once playback starts. Also toggles the search option.' ); ?></span></td>
300
  </tr>
 
301
  </table>
302
 
303
- <br/><span class="yt_heading"><?php _e( 'Options Not Supported by HTML5 Player' ); ?></span>
304
 
305
  <table class="form-table">
306
  <tr valign="top">
307
- <th scope="row"><?php _e( 'Window Mode' ); ?></th>
308
  <td><select name="youtube_embed_wmode">
309
- <option value="opaque"<?php if ( $options[ 'wmode' ] == "opaque" ) { echo " selected='selected'"; } ?>><?php _e( 'Opaque' ); ?></option>
310
- <option value="transparent"<?php if ( $options[ 'wmode' ] == "transparent" ) { echo " selected='selected'"; } ?>><?php _e( 'Transparent' ); ?></option>
311
- <option value="window"<?php if ( $options[ 'wmode' ] == "window" ) { echo " selected='selected'"; } ?>><?php _e( 'Window' ); ?></option>
312
- </select><span class="description"><?php _e( 'Sets the Window Mode property of the Flash movie for transparency, layering, and positioning in the browser. <a href="http://www.communitymx.com/content/article.cfm?cid=e5141">Learn more</a>.' ); ?></span></td>
313
  </tr>
314
 
315
  </table>
316
 
317
- <br/><span class="yt_heading"><?php _e( 'Options Only Supported By EmbedPlus' ); ?></span>&nbsp;&nbsp;<span class="description"><?php echo '<a href="http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-embedplus">' . __( 'Learn more about EmbedPlus' ) . '</a>'; ?></span>
318
 
319
  <table class="form-table">
320
  <tr valign="top">
321
- <th scope="row"><?php _e( 'Fallback Embed Type' ); ?></th>
322
- <td><span class="description"><?php _e( 'The type of player to use if Flash is not available and EmbedPlus cannot be used.' ); ?></span><br/>
323
- <input type="radio" name="youtube_embed_fallback" value="v"<?php if ( $options[ 'fallback' ] == "v" ) { echo ' checked="checked"'; } ?>/>&nbsp;<?php _e( 'IFRAME' ); ?><br/>
324
- <input type="radio" name="youtube_embed_fallback" value="p"<?php if ( $options[ 'fallback' ] == "p" ) { echo ' checked="checked"'; } ?>/>&nbsp;<?php _e( 'OBJECT' ); ?></td>
325
  </tr>
326
 
327
  <tr>
328
- <th scope="row"><?php _e( 'Play HD' ); ?></th>
329
- <td><input type="checkbox" name="youtube_embed_hd" value="1"<?php if ( $options[ 'hd' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Play the video in HD if possible' ); ?></span></td>
330
  </tr>
331
 
332
  <tr>
333
- <th scope="row"><?php _e( 'Real-time Reactions' ); ?></th>
334
- <td><input type="checkbox" name="youtube_embed_react" value="1"<?php if ( $options[ 'react' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Show the Real-time Reactions button' ); ?></span></td>
335
  </tr>
336
 
337
  <tr>
338
- <th scope="row"><?php _e( 'Sweet Spots' ); ?></th>
339
- <td><input type="checkbox" name="youtube_embed_sweetspot" value="1"<?php if ( $options[ 'sweetspot' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Find sweet spots for the next and previous buttons' ); ?></span></td>
340
  </tr>
341
  </table>
342
 
343
  <?php wp_nonce_field( 'youtube-embed-profile', 'youtube_embed_profile_nonce', true, true ); ?>
344
 
345
- <p class="submit"><input type="submit" name="Submit" class="button-primary" value="<?php _e( 'Save Settings' ); ?>"/></p>
346
 
347
  </form>
348
 
349
- <div class="updated fade"><p><strong><?php _e( 'Would you like the video below to be yours? <a href="http://www.artiss.co.uk/contact">Contact me</a> for sponsorship information.' ); ?></strong></p></div>
 
 
350
 
351
  <a href="#" name="video"></a>
352
  <form method="post" action="<?php echo get_bloginfo( 'wpurl' ).'/wp-admin/admin.php?page=aye-profile-options#video' ?>">
353
  <div class="ytbox_grey">
354
- <h3><?php _e( 'YouTube Video Sample' ); ?></h3>
355
- <p><?php _e( 'This uses the above settings, once they have been saved. <b>Would you like this to be your video? If so, <a href="http://www.artiss.co.uk/contact">contact me</a>!</b>' ); ?></p>
356
- <p><?php _e( 'Use the drop-down below to change which parameters the video uses - press the Change Video button to update it.' ); ?></p>
357
  <p><select name="youtube_embed_video_type">
358
- <option value="d"<?php if ( $video_type == "d" ) { echo " selected='selected'"; } ?>><?php _e( 'Standard' ); ?></option>
359
- <option value="p"<?php if ( $video_type == "p" ) { echo " selected='selected'"; } ?>><?php _e( 'EmbedPlus' ); ?></option>
360
- <option value="3"<?php if ( $video_type == "3" ) { echo " selected='selected'"; } ?>><?php _e( '3D' ); ?></option>
361
- <option value="l"<?php if ( $video_type == "l" ) { echo " selected='selected'"; } ?>><?php _e( 'Playlist' ); ?></option>
362
  </select>
363
  <?php wp_nonce_field( 'youtube-embed-profile', 'youtube_embed_profile_nonce', true, true ); ?>
364
- <input type="submit" name="Video" class="button-secondary" value="<?php _e( 'Change video' ); ?>"/></p>
365
 
366
  <p><?php
367
  if ( $video_type == "d" ) { $id = '-0Xa4bHcJu8'; $type = ''; }
8
  * @since 2.0
9
  */
10
  ?>
11
+ <div class="wrap">
12
+
13
+ <div style="width: 1010px;">
14
 
15
  <div class="icon32"><img src="<?php echo plugins_url(); ?>/youtube-embed/images/screen_icon.png" alt="" title="" height="32px" width="32px"/><br /></div>
16
 
17
+ <h2><?php _e( 'Artiss YouTube Embed Profiles', 'youtube-embed' ); ?></h2>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
  <?php
20
+
21
  // Set current profile number
22
+
23
  if ( isset( $_POST[ 'youtube_embed_profile_no' ] ) ) { $profile_no = $_POST[ 'youtube_embed_profile_no' ]; } else { $profile_no = 0; }
24
  if ( $profile_no == '' ) { $profile_no = 0; }
25
 
26
  // If options have been updated on screen, update the database
27
+
28
  if ( ( !empty( $_POST[ 'Submit' ] ) ) && ( check_admin_referer( 'youtube-embed-profile' , 'youtube_embed_profile_nonce' ) ) ) {
29
 
30
  $options[ 'name' ] = $_POST[ 'youtube_embed_name' ];
57
  $options[ 'color' ] = $_POST[ 'youtube_embed_color' ];
58
  $options[ 'theme' ] = $_POST[ 'youtube_embed_theme' ];
59
  $options[ 'https' ] = $_POST[ 'youtube_embed_https' ];
60
+ $options[ 'privacy' ] = $_POST[ 'youtube_embed_privacy' ];
61
  $options[ 'modest' ] = $_POST[ 'youtube_embed_modest' ];
62
  $options[ 'dynamic' ] = $_POST[ 'youtube_embed_dynamic' ];
63
  $options[ 'fixed' ] = $_POST[ 'youtube_embed_fixed' ];
93
  }
94
 
95
  // Video option button has been pressed
96
+
97
  if ( !empty( $_POST[ 'Video' ] ) ) { $video_type = $_POST[ 'youtube_embed_video_type' ]; } else { $video_type = 'd'; }
98
 
99
  // Fetch options into an array
100
+
101
  $options = aye_set_profile_defaults( $profile_no );
102
  $general = aye_set_general_defaults();
103
+
104
+ // Display ads
105
+
106
+ if ( $general[ 'donated'] != 1 ) { artiss_plugin_ads( 'youtube-embed', 990 ); }
107
  ?>
108
 
109
  <form method="post" action="<?php echo get_bloginfo( 'wpurl' ) . '/wp-admin/admin.php?page=aye-profile-options' ?>">
112
  <select name="youtube_embed_profile_no">
113
  <?php aye_generate_profile_list( $profile_no, $general[ 'profile_no' ] ) ?>
114
  </select>
115
+ <input type="submit" name="Profile" class="button-secondary" value="<?php _e( 'Change profile', 'youtube-embed' ); ?>"/>
116
  </span><br/>
117
 
118
  <?php
119
  if ( $profile_no == '0' ) {
120
+ _e( 'These are the options for the default profile.', 'youtube-embed' );
121
  } else {
122
+ sprintf( _e( 'These are the options for profile %s.', 'youtube-embed' ), $profile_no );
123
  }
124
+ echo ' ' . __( 'Use the drop-down on the right hand side to swap between profiles.', 'youtube-embed' );
125
  ?>
126
 
127
  <table class="form-table">
128
 
129
  <tr>
130
+ <th scope="row"><?php _e( 'Profile name', 'youtube-embed' ); ?></th><td>
131
  <input type="text" size="20" name="youtube_embed_name" value="<?php echo $options[ 'name' ]; ?>"<?php if ( $profile_no == 0 ) { echo ' readonly="readonly"'; } ?>/>
132
+ <?php if ( $profile_no != 0 ) { echo '&nbsp;<span class="description">' . __( 'The name you wish to give this profile', 'youtube-embed' ) . '</span>'; } ?>
133
  </td></tr>
134
 
135
  <tr valign="top">
136
+ <th scope="row"><?php _e( 'Video Embed Type', 'youtube-embed' ); ?></th>
137
+ <td><span class="description"><?php _e( 'The type of player to use for videos.', 'youtube-embed' ); ?></span><br/>
138
+ <input type="radio" name="youtube_embed_type" value="v"<?php if ( $options[ 'type' ] == "v" ) { echo ' checked="checked"'; } ?>/><?php echo '&nbsp;' . __( 'IFRAME', 'youtube-embed' ); ?><span class="description"><?php echo '&nbsp;' . __( 'Uses AS3 Flash player, if Flash is available. Alternatively, uses HTML5 player. This is the current YouTube default.', 'youtube-embed' ); ?></span><br/>
139
+ <input type="radio" name="youtube_embed_type" value="p"<?php if ( $options[ 'type' ] == "p" ) { echo ' checked="checked"'; } ?>/><?php echo '&nbsp;' . __( 'OBJECT', 'youtube-embed' ); ?><span class="description"><?php echo '&nbsp;' . __( 'Use the AS3 Flash player.', 'youtube-embed' ); ?></span><br/>
140
+ <input type="radio" name="youtube_embed_type" value="c"<?php if ( $options[ 'type' ] == "c" ) { echo ' checked="checked"'; } ?>/><?php echo '&nbsp;' . __( 'Chromeless', 'youtube-embed' ); ?><span class="description"><?php echo '&nbsp;' . __( 'Use the <a href="http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-chromeless">Chromeless</a> version of the AS3 Flash Player.', 'youtube-embed' ); ?></span><br/>
141
+ <input type="radio" name="youtube_embed_type" value="m"<?php if ( $options[ 'type' ] == "m" ) { echo ' checked="checked"'; } ?>/><?php echo '&nbsp;' . __( 'EmbedPlus', 'youtube-embed' ); ?><span class="description"><?php echo '&nbsp;' . __( 'Use <a href="http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-embedplus">EmbedPlus</a>, if Flash is available.', 'youtube-embed' ); ?></span>
142
  </td>
143
  </tr>
144
 
145
  <tr valign="top">
146
+ <th scope="row"><?php _e( 'Playlist Embed Type', 'youtube-embed' ); ?></th>
147
+ <td><span class="description"><?php _e( 'The type of player to use when showing playlists.', 'youtube-embed' ); ?></span><br/>
148
+ <input type="radio" name="youtube_embed_playlist" value="v"<?php if ( $options[ 'playlist' ] == "v" ) { echo ' checked="checked"'; } ?>/><?php echo '&nbsp;' . __( 'IFRAME', 'youtube-embed' ); ?><br/>
149
+ <input type="radio" name="youtube_embed_playlist" value="o"<?php if ( $options[ 'playlist' ] == "o" ) { echo ' checked="checked"'; } ?>/><?php echo '&nbsp;' . __( 'OBJECT', 'youtube-embed' ); ?><br/>
150
  </td>
151
  </tr>
152
  </table>
153
 
154
+ <br/><span class="yt_heading"><?php _e( 'Options For All Player Types', 'youtube-embed' ); ?></span>
155
 
156
  <table class="form-table">
157
  <tr>
158
+ <th scope="row"><?php _e( 'Template', 'youtube-embed' ); ?></th>
159
+ <td><input type="text" size="40" name="youtube_embed_template" value="<?php echo htmlspecialchars( $options[ 'template' ] ); ?>"/>&nbsp;<span class="description"><?php __( 'Wrapper for video output. Must include <code>%video%</code> tag to show video position', 'youtube-embed' ); ?></span></td>
160
  </tr>
161
 
162
  <tr>
163
+ <th scope="row"><?php _e( 'Style', 'youtube-embed' ); ?></th>
164
+ <td><input type="text" size="40" name="youtube_embed_style" value="<?php echo htmlspecialchars( $options[ 'style' ] ); ?>"/>&nbsp;<span class="description"><?php __( 'CSS elements to apply to video', 'youtube-embed' ); ?></span></td>
165
  </tr>
166
  </table>
167
 
168
  <table class="form-table ytbox_grey">
169
  <tr>
170
+ <th scope="row"><?php _e( 'Video size', 'youtube-embed' ); ?></th>
171
+ <td><input type="text" size="3" maxlength="3" name="youtube_embed_width" value="<?php echo $options[ 'width' ]; ?>"/>&nbsp;x&nbsp;<input type="text" size="3" maxlength="3" name="youtube_embed_height" value="<?php echo $options[ 'height' ]; ?>"/>&nbsp;<span class="description"><?php _e( 'The width x height of the video, in pixels', 'youtube-embed' ); ?></span></td>
172
  </tr>
173
 
174
  <tr valign="top">
175
+ <th scope="row"><?php _e( 'Default Sizes', 'youtube-embed' ); ?></th>
176
  <td><select name="youtube_embed_size">
177
+ <option value=""<?php if ( $default_size == '' ) { echo " selected='selected'"; } ?>><?php _e( 'Use above sizes', 'youtube-embed' ); ?></option>
178
  <option value="04800385"<?php if ( $default_size == "04800385" ) { echo " selected='selected'"; } ?>><?php echo '480x385 4:3'; ?></option>
179
  <option value="05600340"<?php if ( $default_size == "05600340" ) { echo " selected='selected'"; } ?>><?php echo '560x340 16:9'; ?></option>
180
  <option value="06400385"<?php if ( $default_size == "06400385" ) { echo " selected='selected'"; } ?>><?php echo '640x385 16:9'; ?></option>
181
  <option value="08530505"<?php if ( $default_size == "08530505" ) { echo " selected='selected'"; } ?>><?php echo '853x505 16:9'; ?></option>
182
  <option value="12800745"<?php if ( $default_size == "12800745" ) { echo " selected='selected'"; } ?>><?php echo '1280x745 16:9'; ?></option>
183
+ </select>&nbsp;<span class="description"><?php _e( 'Select one of these default sizes to override the above video sizes', 'youtube-embed' ); ?></span></td>
184
  </tr>
185
 
186
  <tr>
187
+ <th scope="row"><?php _e( 'Dynamically Resize', 'youtube-embed' ); ?></th>
188
+ <td><input type="checkbox" name="youtube_embed_dynamic" value="1"<?php if ( $options[ 'dynamic' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Show full width and resize with the browser', 'youtube-embed' ); ?></span></td>
189
  </tr>
190
 
191
  <tr>
192
+ <th scope="row">&nbsp;&nbsp;&nbsp;&nbsp;<?php _e( 'Set Maximum Size', 'youtube-embed' ); ?></th>
193
+ <td><input type="checkbox" name="youtube_embed_fixed" value="1"<?php if ( $options[ 'fixed' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Use above width to define maximum size', 'youtube-embed' ); ?></span></td>
194
  </tr>
195
  </table>
196
 
197
  <table class="form-table">
198
 
199
  <tr>
200
+ <th scope="row"><?php _e( 'Audio Only', 'youtube-embed' ); ?></th>
201
+ <td><input type="checkbox" name="youtube_embed_audio" value="1"<?php if ( $options[ 'audio' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Only show the toolbar for audio only playback', 'youtube-embed' ); ?></span></td>
202
  </tr>
203
 
204
  <tr>
205
+ <th scope="row"><?php _e( 'Autoplay', 'youtube-embed' ); ?></th>
206
+ <td><input type="checkbox" name="youtube_embed_autoplay" value="1"<?php if ( $options[ 'autoplay' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'The video will start playing when the player loads', 'youtube-embed' ); ?></span></td>
207
  </tr>
208
 
209
  </table>
210
 
211
+ <br/><span class="yt_heading"><?php _e( 'Options Not Supported by EmbedPlus', 'youtube-embed' ); ?></span>
212
 
213
  <table class="form-table">
214
 
215
  <tr>
216
+ <th scope="row"><?php _e( 'Auto hide', 'youtube-embed' ); ?></th>
217
  <td><select name="youtube_embed_autohide">
218
+ <option value="0"<?php if ( $options[ 'autohide' ] == "0" ) { echo " selected='selected'"; } ?>><?php _e( 'Controls &amp; progress bar remain visible', 'youtube-embed' ); ?></option>
219
+ <option value="1"<?php if ( $options[ 'autohide' ] == "1" ) { echo " selected='selected'"; } ?>><?php _e( 'Controls &amp; progress bar fade out', 'youtube-embed' ); ?></option>
220
+ <option value="2"<?php if ( $options[ 'autohide' ] == "2" ) { echo " selected='selected'"; } ?>><?php _e( 'Progress bar fades', 'youtube-embed' ); ?></option>
221
+ </select>&nbsp;<span class="description"><?php _e( 'Video controls will automatically hide after a video begins playing', 'youtube-embed' ); ?></span></td>
222
  </tr>
223
 
224
  <tr>
225
+ <th scope="row"><?php _e( 'Controls', 'youtube-embed' ); ?></th>
226
+ <td><input type="checkbox" name="youtube_embed_controls" value="1"<?php if ( $options[ 'controls' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Video player controls will display', 'youtube-embed' ); ?></span></td>
227
  </tr>
228
 
229
  <tr>
230
+ <th scope="row">SSL</th>
231
+ <td><input type="checkbox" name="youtube_embed_https" value="1"<?php if ( $options[ 'https' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Use SSL? <a href="http://www.google.com/support/youtube/bin/answer.py?answer=171780&expand=UseHTTPS#HTTPS">Read more</a>', 'youtube-embed' ); ?></span></td>
232
  </tr>
233
 
234
  <tr>
235
+ <th scope="row"><?php _e( 'Loop Video', 'youtube-embed' ); ?></th>
236
+ <td><input type="checkbox" name="youtube_embed_loop" value="1"<?php if ( $options[ 'loop' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Play the initial video again and again. In the case of a playlist, this will play the entire playlist and then start again at the first video', 'youtube-embed' ); ?></span></td>
237
  </tr>
238
 
239
  <tr>
240
+ <th scope="row"><?php _e( 'Information', 'youtube-embed' ); ?></th>
241
+ <td><input type="checkbox" name="youtube_embed_info" value="1"<?php if ( $options[ 'info' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Display the video title and uploader before the video starts. If displaying a playlist this will show video thumbnails', 'youtube-embed' ); ?></span></td>
242
  </tr>
243
 
244
  <tr>
245
+ <th scope="row"><?php _e( 'Related Videos', 'youtube-embed' ); ?></th>
246
+ <td><input type="checkbox" name="youtube_embed_related" value="1"<?php if ( $options[ 'related' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Load related videos once playback starts. Also toggles the search option.', 'youtube-embed' ); ?></span></td>
 
 
 
247
  </tr>
 
 
 
 
248
 
 
249
  <tr>
250
+ <th scope="row"><?php _e( 'Theme', 'youtube-embed' ); ?></th>
251
+ <td><select name="youtube_embed_theme">
252
+ <option value="dark"<?php if ( $options[ 'theme' ] == "dark" ) { echo " selected='selected'"; } ?>><?php _e( 'Dark', 'youtube-embed' ); ?></option>
253
+ <option value="light"<?php if ( $options[ 'theme' ] == "light" ) { echo " selected='selected'"; } ?>><?php _e( 'Light', 'youtube-embed' ); ?></option>
254
+ </select>&nbsp;<span class="description"><?php _e( 'Display player controls within a dark or light control bar', 'youtube-embed' ); ?></span></td>
255
  </tr>
256
 
257
  <tr>
258
+ <th scope="row"><?php _e( 'Progress Bar Colour', 'youtube-embed' ); ?></th>
259
+ <td><select name="youtube_embed_color">
260
+ <option value="red"<?php if ( $options[ 'color' ] == "red" ) { echo " selected='selected'"; } ?>><?php _e( 'Red', 'youtube-embed' ); ?></option>
261
+ <option value="white"<?php if ( $options[ 'color' ] == "white" ) { echo " selected='selected'"; } ?>><?php _e( 'White (desaturated)', 'youtube-embed' ); ?></option>
262
+ </select>&nbsp;<span class="description"><?php _e( 'The colour that will be used in the player\'s video progress bar to highlight the amount of the video that\'s already been seen', 'youtube-embed' ); ?></span></td>
263
  </tr>
264
 
265
+ </table>
266
+
267
+ <br/><span class="yt_heading"><?php _e( 'Options for AS3 Player', 'youtube-embed' ); ?></span>
268
+ <br/><br/><?php __( 'The following options are not supported if using EmbedPlus or if the IFRAME player uses HTML5.' ); ?>
269
+
270
+ <table class="form-table">
271
  <tr>
272
+ <th scope="row"><?php _e( 'Annotations', 'youtube-embed' ); ?></th>
273
+ <td><input type="checkbox" name="youtube_embed_annotation" value="1"<?php if ( $options[ 'annotation' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Video annotations are shown by default', 'youtube-embed' ); ?></span></td>
274
  </tr>
275
 
276
  <tr>
277
+ <th scope="row"><?php _e( 'Closed Captions', 'youtube-embed' ); ?></th>
278
+ <td><input type="checkbox" name="youtube_embed_cc" value="1"<?php if ( $options[ 'cc' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Show closed captions (subtitles) by default, even if the user has turned captions off', 'youtube-embed' ); ?></span></td>
279
  </tr>
280
 
281
  <tr>
282
+ <th scope="row"><?php _e( 'Disable Keyboard', 'youtube-embed' ); ?></th>
283
+ <td><input type="checkbox" name="youtube_embed_disablekb" value="1"<?php if ( $options[ 'disablekb' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Disable the player keyboard controls', 'youtube-embed' ); ?></span></td>
284
  </tr>
285
 
286
  <tr>
287
+ <th scope="row"><?php _e( 'Fullscreen', 'youtube-embed' ); ?></th>
288
+ <td><input type="checkbox" name="youtube_embed_fullscreen" value="1"<?php if ( $options[ 'fullscreen' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'A button will allow the viewer to watch the video fullscreen', 'youtube-embed' ); ?></span></td>
289
  </tr>
290
 
291
  <tr>
292
+ <th scope="row"><?php _e( 'Link to YouTube', 'youtube-embed' ); ?></th>
293
+ <td><input type="checkbox" name="youtube_embed_link" value="1"<?php if ( $options[ 'link' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Video links back to YouTube when clicked', 'youtube-embed' ); ?></span></td>
 
 
 
294
  </tr>
295
 
296
  <tr>
297
+ <th scope="row"><?php _e( 'Modest Branding', 'youtube-embed' ); ?></th>
298
+ <td><input type="checkbox" name="youtube_embed_modest" value="1"<?php if ( $options[ 'modest' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Reduce branding on video.', 'youtube-embed' ); ?></span></td>
299
  </tr>
300
+
301
  </table>
302
 
303
+ <br/><span class="yt_heading"><?php _e( 'Options Not Supported by HTML5 Player', 'youtube-embed' ); ?></span>
304
 
305
  <table class="form-table">
306
  <tr valign="top">
307
+ <th scope="row"><?php _e( 'Window Mode', 'youtube-embed' ); ?></th>
308
  <td><select name="youtube_embed_wmode">
309
+ <option value="opaque"<?php if ( $options[ 'wmode' ] == "opaque" ) { echo " selected='selected'"; } ?>><?php _e( 'Opaque', 'youtube-embed' ); ?></option>
310
+ <option value="transparent"<?php if ( $options[ 'wmode' ] == "transparent" ) { echo " selected='selected'"; } ?>><?php _e( 'Transparent', 'youtube-embed' ); ?></option>
311
+ <option value="window"<?php if ( $options[ 'wmode' ] == "window" ) { echo " selected='selected'"; } ?>><?php _e( 'Window', 'youtube-embed' ); ?></option>
312
+ </select><span class="description"><?php _e( 'Sets the Window Mode property of the Flash movie for transparency, layering, and positioning in the browser. <a href="http://www.communitymx.com/content/article.cfm?cid=e5141">Learn more</a>.', 'youtube-embed' ); ?></span></td>
313
  </tr>
314
 
315
  </table>
316
 
317
+ <br/><span class="yt_heading"><?php _e( 'Options Only Supported By EmbedPlus', 'youtube-embed' ); ?></span>&nbsp;&nbsp;<span class="description"><?php echo '<a href="http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-embedplus">' . __( 'Learn more about EmbedPlus', 'youtube-embed' ) . '</a>'; ?></span>
318
 
319
  <table class="form-table">
320
  <tr valign="top">
321
+ <th scope="row"><?php _e( 'Fallback Embed Type', 'youtube-embed' ); ?></th>
322
+ <td><span class="description"><?php _e( 'The type of player to use if Flash is not available and EmbedPlus cannot be used.', 'youtube-embed' ); ?></span><br/>
323
+ <input type="radio" name="youtube_embed_fallback" value="v"<?php if ( $options[ 'fallback' ] == "v" ) { echo ' checked="checked"'; } ?>/>&nbsp;<?php _e( 'IFRAME', 'youtube-embed' ); ?><br/>
324
+ <input type="radio" name="youtube_embed_fallback" value="p"<?php if ( $options[ 'fallback' ] == "p" ) { echo ' checked="checked"'; } ?>/>&nbsp;<?php _e( 'OBJECT', 'youtube-embed' ); ?></td>
325
  </tr>
326
 
327
  <tr>
328
+ <th scope="row"><?php _e( 'Play HD', 'youtube-embed' ); ?></th>
329
+ <td><input type="checkbox" name="youtube_embed_hd" value="1"<?php if ( $options[ 'hd' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Play the video in HD if possible', 'youtube-embed' ); ?></span></td>
330
  </tr>
331
 
332
  <tr>
333
+ <th scope="row"><?php _e( 'Real-time Reactions', 'youtube-embed' ); ?></th>
334
+ <td><input type="checkbox" name="youtube_embed_react" value="1"<?php if ( $options[ 'react' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Show the Real-time Reactions button', 'youtube-embed' ); ?></span></td>
335
  </tr>
336
 
337
  <tr>
338
+ <th scope="row"><?php _e( 'Sweet Spots', 'youtube-embed' ); ?></th>
339
+ <td><input type="checkbox" name="youtube_embed_sweetspot" value="1"<?php if ( $options[ 'sweetspot' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Find sweet spots for the next and previous buttons', 'youtube-embed' ); ?></span></td>
340
  </tr>
341
  </table>
342
 
343
  <?php wp_nonce_field( 'youtube-embed-profile', 'youtube_embed_profile_nonce', true, true ); ?>
344
 
345
+ <p class="submit"><input type="submit" name="Submit" class="button-primary" value="<?php _e( 'Save Settings', 'youtube-embed' ); ?>"/></p>
346
 
347
  </form>
348
 
349
+ <div class="updated fade"><p><strong><?php _e( 'Would you like the video below to be yours? <a href="http://www.artiss.co.uk/contact">Contact me</a> for sponsorship information.', 'youtube-embed' ); ?></strong></p></div>
350
+
351
+ </div>
352
 
353
  <a href="#" name="video"></a>
354
  <form method="post" action="<?php echo get_bloginfo( 'wpurl' ).'/wp-admin/admin.php?page=aye-profile-options#video' ?>">
355
  <div class="ytbox_grey">
356
+ <h3><?php _e( 'YouTube Video Sample', 'youtube-embed' ); ?></h3>
357
+ <p><?php _e( 'This uses the above settings, once they have been saved. <b>Would you like this to be your video? If so, <a href="http://www.artiss.co.uk/contact">contact me</a>!</b>', 'youtube-embed' ); ?></p>
358
+ <p><?php _e( 'Use the drop-down below to change which parameters the video uses - press the Change Video button to update it.', 'youtube-embed' ); ?></p>
359
  <p><select name="youtube_embed_video_type">
360
+ <option value="d"<?php if ( $video_type == "d" ) { echo " selected='selected'"; } ?>><?php _e( 'Standard', 'youtube-embed' ); ?></option>
361
+ <option value="p"<?php if ( $video_type == "p" ) { echo " selected='selected'"; } ?>><?php _e( 'EmbedPlus', 'youtube-embed' ); ?></option>
362
+ <option value="3"<?php if ( $video_type == "3" ) { echo " selected='selected'"; } ?>><?php _e( '3D', 'youtube-embed' ); ?></option>
363
+ <option value="l"<?php if ( $video_type == "l" ) { echo " selected='selected'"; } ?>><?php _e( 'Playlist', 'youtube-embed' ); ?></option>
364
  </select>
365
  <?php wp_nonce_field( 'youtube-embed-profile', 'youtube_embed_profile_nonce', true, true ); ?>
366
+ <input type="submit" name="Video" class="button-secondary" value="<?php _e( 'Change video', 'youtube-embed' ); ?>"/></p>
367
 
368
  <p><?php
369
  if ( $video_type == "d" ) { $id = '-0Xa4bHcJu8'; $type = ''; }
includes/aye-options-widgets.php CHANGED
@@ -10,19 +10,19 @@ $general = aye_set_general_defaults();
10
 
11
  $field_id = $this -> get_field_id( 'titles' );
12
  $field_name = $this -> get_field_name( 'titles' );
13
- echo "\r\n" . '<p><label for="' . $field_id . '">' . __( 'Widget Title' ) . ': </label><input type="text" class="widefat" id="' . $field_id . '" name="' . $field_name . '" value="' . attribute_escape( $instance[ 'titles' ] ).'" /></p>';
14
 
15
  // Video Title field
16
 
17
  $field_id = $this -> get_field_id( 'video_title' );
18
  $field_name = $this -> get_field_name( 'video_title' );
19
- echo "\r\n" . '<p><label for="' . $field_id . '">' . __( 'Video Title' ) . ': </label><input type="text" class="widefat" id="' . $field_id . '" name="' . $field_name . '" value="' . attribute_escape( $instance[ 'video_title' ] ).'" /></p>';
20
 
21
  // Video ID field
22
 
23
  $field_id = $this -> get_field_id( 'id' );
24
  $field_name = $this -> get_field_name( 'id' );
25
- echo "\r\n" . '<p><label for="' . $field_id . '">' . __( 'Video ID' ) . ': </label><input type="text" class="widefat" id="' . $field_id . '" name="' . $field_name . '" value="' . attribute_escape( $instance[ 'id' ] ) . '" /></p>';
26
 
27
  echo "<table>\n";
28
 
@@ -30,13 +30,13 @@ echo "<table>\n";
30
 
31
  $field_id = $this -> get_field_id( 'id_type' );
32
  $field_name = $this -> get_field_name( 'id_type' );
33
- echo "\r\n" . '<tr><td width="100%">' . __( 'ID Type' ) . '</td><td><select name="' . $field_name . '" id="' . $field_id . '"><option value="v"';
34
  if ( attribute_escape( $instance[ 'id_type' ] ) == 'v' ) { echo " selected='selected'"; }
35
- echo '>' . __( 'Video or Playlist' ) . '</option><option value="s"';
36
  if ( attribute_escape( $instance[ 'id_type' ] ) == 's' ) { echo " selected='selected'"; }
37
- echo '>' . __( 'Search' ) . '</option><option value="u"';
38
  if ( attribute_escape( $instance[ 'id_type' ] ) == 'u' ) { echo " selected='selected'"; }
39
- echo '>' . __( 'User' ) . '</option></select></td></tr>';
40
 
41
  echo "</table>\n";
42
 
@@ -44,7 +44,7 @@ echo "</table>\n";
44
 
45
  $field_id = $this -> get_field_id( 'profile' );
46
  $field_name = $this -> get_field_name( 'profile' );
47
- echo "\r\n" . '<p><label for="' . $field_id . '">' . __( 'Profile' ) . ': </label><select name="' . $field_name . '" class="widefat" id="' . $field_id . '">';
48
  aye_generate_profile_list( attribute_escape( $instance[ 'profile' ] ), $general[ 'profile_no' ] );
49
  echo '</select></p>';
50
 
@@ -52,19 +52,19 @@ echo '</select></p>';
52
 
53
  $field_id = $this -> get_field_id( 'template' );
54
  $field_name = $this -> get_field_name( 'template' );
55
- echo "\r\n" . '<p><label for="' . $field_id . '">'.__( 'Template' ).': </label><input type="text" class="widefat" id="' . $field_id . '" name="' . $field_name . '" value="' . attribute_escape( $instance[ 'template' ] ) . '" /></p>';
56
 
57
  // Style
58
 
59
  $field_id = $this -> get_field_id( 'style' );
60
  $field_name = $this -> get_field_name( 'style' );
61
- echo "\r\n" . '<p><label for="' . $field_id . '">'.__( 'Style' ).': </label><input type="text" class="widefat" id="' . $field_id . '" name="' . $field_name . '" value="' . attribute_escape( $instance[ 'style' ] ) . '" /></p>';
62
 
63
  // Size fields
64
 
65
  $field_id = $this -> get_field_id( 'width' );
66
  $field_name = $this -> get_field_name( 'width' );
67
- echo "\r\n" . '<p><label for="' . $field_id . '">' . __( 'Size' ) . ': </label><input type="text" size="3" maxlength="3" id="' . $field_id . '" name="' . $field_name . '" value="' . attribute_escape( $instance[ 'width' ] ) . '" />&nbsp;x&nbsp;';
68
 
69
  $field_id = $this -> get_field_id( 'height' );
70
  $field_name = $this -> get_field_name( 'height' );
@@ -76,58 +76,58 @@ echo "<table>\n";
76
 
77
  $field_id = $this -> get_field_id( 'dynamic' );
78
  $field_name = $this -> get_field_name( 'dynamic' );
79
- echo "\r\n" . '<tr><td width="100%">' . __( 'Dynamically Resize' ) . '</td><td><select name="' . $field_name . '" id="' . $field_id . '"><option value=""';
80
  if ( attribute_escape( $instance[ 'dynamic' ] ) == '' ) { echo " selected='selected'"; }
81
- echo '>' . __( 'Profile default' ) . '</option><option value="0"';
82
  if ( attribute_escape( $instance[ 'dynamic' ] ) == '0' ) { echo " selected='selected'"; }
83
- echo '>' . __( 'No' ) . '</option><option value="1"';
84
  if ( attribute_escape( $instance[ 'dynamic' ] ) == '1' ) { echo " selected='selected'"; }
85
- echo '>' . __( 'Yes' ) . '</option></select></td></tr>';
86
 
87
  // Embed type field
88
 
89
  $field_id = $this -> get_field_id( 'type' );
90
  $field_name = $this -> get_field_name( 'type' );
91
- echo "\r\n" . '<tr><td width="100%">' . __( 'Embed Type' ) . '</td><td><select name="' . $field_name . '" id="' . $field_id . '"><option value=""';
92
  if ( attribute_escape( $instance[ 'type' ] ) == '' ) { echo " selected='selected'"; }
93
- echo '>' . __( 'Profile default' ) . '</option><option value="v"';
94
  if ( attribute_escape( $instance[ 'type' ] ) == 'v' ) { echo " selected='selected'"; }
95
- echo '>' . __( 'IFRAME' ) . '</option><option value="p"';
96
  if ( attribute_escape( $instance[ 'type' ] ) == 'p' ) { echo " selected='selected'"; }
97
- echo '>' . __( 'OBJECT' ) . '</option><option value="m"';
98
  if ( attribute_escape( $instance[ 'type' ] ) == 'c' ) { echo " selected='selected'"; }
99
- echo '>' . __( 'Chromeless' ) . '</option><option value="c"';
100
  if ( attribute_escape( $instance[ 'type' ] ) == 'm' ) { echo " selected='selected'"; }
101
- echo '>' . __( 'EmbedPlus' ) . '</option></select></td></tr>';
102
 
103
  // Autoplay field
104
 
105
  $field_id = $this -> get_field_id( 'autoplay' );
106
  $field_name = $this -> get_field_name( 'autoplay' );
107
- echo "\r\n" . '<tr><td width="100%">' . __( 'Autoplay' ) . '</td><td><select name="' . $field_name . '" id="' . $field_id . '"><option value=""';
108
  if ( attribute_escape( $instance[ 'autoplay' ] ) == '' ) { echo " selected='selected'"; }
109
- echo '>' . __( 'Profile default' ) . '</option><option value="0"';
110
  if ( attribute_escape( $instance[ 'autoplay' ] ) == '0' ) { echo " selected='selected'"; }
111
- echo '>' . __( 'No' ) . '</option><option value="1"';
112
  if ( attribute_escape( $instance[ 'autoplay' ] ) == '1' ) { echo " selected='selected'"; }
113
- echo '>' . __( 'Yes' ) . '</option></select></td></tr>';
114
 
115
  // Start field
116
 
117
  $field_id = $this -> get_field_id( 'start' );
118
  $field_name = $this -> get_field_name( 'start' );
119
- echo "\r\n" . '<tr><td width="100%">' . __( 'Start (seconds)' ) . '</td><td><input type="text" size="3" maxlength="3" id="' . $field_id . '" name="' . $field_name . '" value="' . attribute_escape( $instance[ 'start' ] ) . '" /></td></tr>';
120
 
121
  // Stop field
122
 
123
  $field_id = $this -> get_field_id( 'stop' );
124
  $field_name = $this -> get_field_name( 'stop' );
125
- echo "\r\n" . '<tr><td width="100%">' . __( 'Stop (seconds)' ) . '</td><td><input type="text" size="3" maxlength="3" id="' . $field_id . '" name="' . $field_name . '" value="' . attribute_escape( $instance[ 'stop' ] ) . '" /></td></tr>';
126
 
127
  echo "</table>\n";
128
 
129
  ?>
130
- <h4><?php _e( 'Non-EmbedPlus Options' ); ?></h4>
131
  <?php
132
 
133
  echo "<table>\n";
@@ -136,27 +136,27 @@ echo "<table>\n";
136
 
137
  $field_id = $this -> get_field_id( 'list' );
138
  $field_name = $this -> get_field_name( 'list' );
139
- echo "\r\n" . '<tr><td width="100%">' . __( 'List Playback' ) . '</td><td><select name="' . $field_name . '" id="' . $field_id . '"><option value=""';
140
  if ( attribute_escape( $instance[ 'list' ] ) == '' ) { echo " selected='selected'"; }
141
- echo '>' . __( 'Profile default' ) . '</option><option value="order"';
142
  if ( attribute_escape( $instance[ 'list' ] ) == 'order' ) { echo " selected='selected'"; }
143
- echo '>' . __( 'Play each video in order' ) . '</option><option value="random"';
144
  if ( attribute_escape( $instance[ 'list' ] ) == 'random' ) { echo " selected='selected'"; }
145
- echo '>' . __( 'Play videos randomly' ) . '</option><option value="single"';
146
  if ( attribute_escape( $instance[ 'list' ] ) == 'single' ) { echo " selected='selected'"; }
147
- echo '>' . __( 'Play one random video' ) . '</option></select></td></tr>';
148
 
149
  // Loop video field
150
 
151
  $field_id = $this -> get_field_id( 'loop' );
152
  $field_name = $this -> get_field_name( 'loop' );
153
- echo "\r\n" . '<tr><td width="100%">' . __( 'Loop Video' ) . '</td><td><select name="' . $field_name . '" id="' . $field_id . '"><option value=""';
154
  if ( attribute_escape( $instance[ 'loop' ] ) == '' ) { echo " selected='selected'"; }
155
- echo '>' . __( 'Profile default' ) . '</option><option value="0"';
156
  if ( attribute_escape( $instance[ 'loop' ] ) == '0' ) { echo " selected='selected'"; }
157
- echo '>' . __( 'No' ) . '</option><option value="1"';
158
  if ( attribute_escape( $instance[ 'loop' ] ) == '1' ) { echo " selected='selected'"; }
159
- echo '>' . __( 'Yes' ) . '</option></select></td></tr>';
160
 
161
  echo "</table>\n";
162
  ?>
10
 
11
  $field_id = $this -> get_field_id( 'titles' );
12
  $field_name = $this -> get_field_name( 'titles' );
13
+ echo "\r\n" . '<p><label for="' . $field_id . '">' . __( 'Widget Title', 'youtube-embed' ) . ': </label><input type="text" class="widefat" id="' . $field_id . '" name="' . $field_name . '" value="' . attribute_escape( $instance[ 'titles' ] ).'" /></p>';
14
 
15
  // Video Title field
16
 
17
  $field_id = $this -> get_field_id( 'video_title' );
18
  $field_name = $this -> get_field_name( 'video_title' );
19
+ echo "\r\n" . '<p><label for="' . $field_id . '">' . __( 'Video Title', 'youtube-embed' ) . ': </label><input type="text" class="widefat" id="' . $field_id . '" name="' . $field_name . '" value="' . attribute_escape( $instance[ 'video_title' ] ).'" /></p>';
20
 
21
  // Video ID field
22
 
23
  $field_id = $this -> get_field_id( 'id' );
24
  $field_name = $this -> get_field_name( 'id' );
25
+ echo "\r\n" . '<p><label for="' . $field_id . '">' . __( 'Video ID', 'youtube-embed' ) . ': </label><input type="text" class="widefat" id="' . $field_id . '" name="' . $field_name . '" value="' . attribute_escape( $instance[ 'id' ] ) . '" /></p>';
26
 
27
  echo "<table>\n";
28
 
30
 
31
  $field_id = $this -> get_field_id( 'id_type' );
32
  $field_name = $this -> get_field_name( 'id_type' );
33
+ echo "\r\n" . '<tr><td width="100%">' . __( 'ID Type', 'youtube-embed' ) . '</td><td><select name="' . $field_name . '" id="' . $field_id . '"><option value="v"';
34
  if ( attribute_escape( $instance[ 'id_type' ] ) == 'v' ) { echo " selected='selected'"; }
35
+ echo '>' . __( 'Video or Playlist', 'youtube-embed' ) . '</option><option value="s"';
36
  if ( attribute_escape( $instance[ 'id_type' ] ) == 's' ) { echo " selected='selected'"; }
37
+ echo '>' . __( 'Search', 'youtube-embed' ) . '</option><option value="u"';
38
  if ( attribute_escape( $instance[ 'id_type' ] ) == 'u' ) { echo " selected='selected'"; }
39
+ echo '>' . __( 'User', 'youtube-embed' ) . '</option></select></td></tr>';
40
 
41
  echo "</table>\n";
42
 
44
 
45
  $field_id = $this -> get_field_id( 'profile' );
46
  $field_name = $this -> get_field_name( 'profile' );
47
+ echo "\r\n" . '<p><label for="' . $field_id . '">' . __( 'Profile', 'youtube-embed' ) . ': </label><select name="' . $field_name . '" class="widefat" id="' . $field_id . '">';
48
  aye_generate_profile_list( attribute_escape( $instance[ 'profile' ] ), $general[ 'profile_no' ] );
49
  echo '</select></p>';
50
 
52
 
53
  $field_id = $this -> get_field_id( 'template' );
54
  $field_name = $this -> get_field_name( 'template' );
55
+ echo "\r\n" . '<p><label for="' . $field_id . '">'.__( 'Template', 'youtube-embed' ).': </label><input type="text" class="widefat" id="' . $field_id . '" name="' . $field_name . '" value="' . attribute_escape( $instance[ 'template' ] ) . '" /></p>';
56
 
57
  // Style
58
 
59
  $field_id = $this -> get_field_id( 'style' );
60
  $field_name = $this -> get_field_name( 'style' );
61
+ echo "\r\n" . '<p><label for="' . $field_id . '">'.__( 'Style', 'youtube-embed' ).': </label><input type="text" class="widefat" id="' . $field_id . '" name="' . $field_name . '" value="' . attribute_escape( $instance[ 'style' ] ) . '" /></p>';
62
 
63
  // Size fields
64
 
65
  $field_id = $this -> get_field_id( 'width' );
66
  $field_name = $this -> get_field_name( 'width' );
67
+ echo "\r\n" . '<p><label for="' . $field_id . '">' . __( 'Size', 'youtube-embed' ) . ': </label><input type="text" size="3" maxlength="3" id="' . $field_id . '" name="' . $field_name . '" value="' . attribute_escape( $instance[ 'width' ] ) . '" />&nbsp;x&nbsp;';
68
 
69
  $field_id = $this -> get_field_id( 'height' );
70
  $field_name = $this -> get_field_name( 'height' );
76
 
77
  $field_id = $this -> get_field_id( 'dynamic' );
78
  $field_name = $this -> get_field_name( 'dynamic' );
79
+ echo "\r\n" . '<tr><td width="100%">' . __( 'Dynamically Resize', 'youtube-embed' ) . '</td><td><select name="' . $field_name . '" id="' . $field_id . '"><option value=""';
80
  if ( attribute_escape( $instance[ 'dynamic' ] ) == '' ) { echo " selected='selected'"; }
81
+ echo '>' . __( 'Profile default', 'youtube-embed' ) . '</option><option value="0"';
82
  if ( attribute_escape( $instance[ 'dynamic' ] ) == '0' ) { echo " selected='selected'"; }
83
+ echo '>' . __( 'No', 'youtube-embed' ) . '</option><option value="1"';
84
  if ( attribute_escape( $instance[ 'dynamic' ] ) == '1' ) { echo " selected='selected'"; }
85
+ echo '>' . __( 'Yes', 'youtube-embed' ) . '</option></select></td></tr>';
86
 
87
  // Embed type field
88
 
89
  $field_id = $this -> get_field_id( 'type' );
90
  $field_name = $this -> get_field_name( 'type' );
91
+ echo "\r\n" . '<tr><td width="100%">' . __( 'Embed Type', 'youtube-embed' ) . '</td><td><select name="' . $field_name . '" id="' . $field_id . '"><option value=""';
92
  if ( attribute_escape( $instance[ 'type' ] ) == '' ) { echo " selected='selected'"; }
93
+ echo '>' . __( 'Profile default', 'youtube-embed' ) . '</option><option value="v"';
94
  if ( attribute_escape( $instance[ 'type' ] ) == 'v' ) { echo " selected='selected'"; }
95
+ echo '>' . __( 'IFRAME', 'youtube-embed' ) . '</option><option value="p"';
96
  if ( attribute_escape( $instance[ 'type' ] ) == 'p' ) { echo " selected='selected'"; }
97
+ echo '>' . __( 'OBJECT', 'youtube-embed' ) . '</option><option value="m"';
98
  if ( attribute_escape( $instance[ 'type' ] ) == 'c' ) { echo " selected='selected'"; }
99
+ echo '>' . __( 'Chromeless', 'youtube-embed' ) . '</option><option value="c"';
100
  if ( attribute_escape( $instance[ 'type' ] ) == 'm' ) { echo " selected='selected'"; }
101
+ echo '>' . __( 'EmbedPlus', 'youtube-embed' ) . '</option></select></td></tr>';
102
 
103
  // Autoplay field
104
 
105
  $field_id = $this -> get_field_id( 'autoplay' );
106
  $field_name = $this -> get_field_name( 'autoplay' );
107
+ echo "\r\n" . '<tr><td width="100%">' . __( 'Autoplay', 'youtube-embed' ) . '</td><td><select name="' . $field_name . '" id="' . $field_id . '"><option value=""';
108
  if ( attribute_escape( $instance[ 'autoplay' ] ) == '' ) { echo " selected='selected'"; }
109
+ echo '>' . __( 'Profile default', 'youtube-embed' ) . '</option><option value="0"';
110
  if ( attribute_escape( $instance[ 'autoplay' ] ) == '0' ) { echo " selected='selected'"; }
111
+ echo '>' . __( 'No', 'youtube-embed' ) . '</option><option value="1"';
112
  if ( attribute_escape( $instance[ 'autoplay' ] ) == '1' ) { echo " selected='selected'"; }
113
+ echo '>' . __( 'Yes', 'youtube-embed' ) . '</option></select></td></tr>';
114
 
115
  // Start field
116
 
117
  $field_id = $this -> get_field_id( 'start' );
118
  $field_name = $this -> get_field_name( 'start' );
119
+ echo "\r\n" . '<tr><td width="100%">' . __( 'Start (seconds)', 'youtube-embed' ) . '</td><td><input type="text" size="3" maxlength="3" id="' . $field_id . '" name="' . $field_name . '" value="' . attribute_escape( $instance[ 'start' ] ) . '" /></td></tr>';
120
 
121
  // Stop field
122
 
123
  $field_id = $this -> get_field_id( 'stop' );
124
  $field_name = $this -> get_field_name( 'stop' );
125
+ echo "\r\n" . '<tr><td width="100%">' . __( 'Stop (seconds)', 'youtube-embed' ) . '</td><td><input type="text" size="3" maxlength="3" id="' . $field_id . '" name="' . $field_name . '" value="' . attribute_escape( $instance[ 'stop' ] ) . '" /></td></tr>';
126
 
127
  echo "</table>\n";
128
 
129
  ?>
130
+ <h4><?php _e( 'Non-EmbedPlus Options', 'youtube-embed' ); ?></h4>
131
  <?php
132
 
133
  echo "<table>\n";
136
 
137
  $field_id = $this -> get_field_id( 'list' );
138
  $field_name = $this -> get_field_name( 'list' );
139
+ echo "\r\n" . '<tr><td width="100%">' . __( 'List Playback', 'youtube-embed' ) . '</td><td><select name="' . $field_name . '" id="' . $field_id . '"><option value=""';
140
  if ( attribute_escape( $instance[ 'list' ] ) == '' ) { echo " selected='selected'"; }
141
+ echo '>' . __( 'Profile default', 'youtube-embed' ) . '</option><option value="order"';
142
  if ( attribute_escape( $instance[ 'list' ] ) == 'order' ) { echo " selected='selected'"; }
143
+ echo '>' . __( 'Play each video in order', 'youtube-embed' ) . '</option><option value="random"';
144
  if ( attribute_escape( $instance[ 'list' ] ) == 'random' ) { echo " selected='selected'"; }
145
+ echo '>' . __( 'Play videos randomly', 'youtube-embed' ) . '</option><option value="single"';
146
  if ( attribute_escape( $instance[ 'list' ] ) == 'single' ) { echo " selected='selected'"; }
147
+ echo '>' . __( 'Play one random video', 'youtube-embed' ) . '</option></select></td></tr>';
148
 
149
  // Loop video field
150
 
151
  $field_id = $this -> get_field_id( 'loop' );
152
  $field_name = $this -> get_field_name( 'loop' );
153
+ echo "\r\n" . '<tr><td width="100%">' . __( 'Loop Video', 'youtube-embed' ) . '</td><td><select name="' . $field_name . '" id="' . $field_id . '"><option value=""';
154
  if ( attribute_escape( $instance[ 'loop' ] ) == '' ) { echo " selected='selected'"; }
155
+ echo '>' . __( 'Profile default', 'youtube-embed' ) . '</option><option value="0"';
156
  if ( attribute_escape( $instance[ 'loop' ] ) == '0' ) { echo " selected='selected'"; }
157
+ echo '>' . __( 'No', 'youtube-embed' ) . '</option><option value="1"';
158
  if ( attribute_escape( $instance[ 'loop' ] ) == '1' ) { echo " selected='selected'"; }
159
+ echo '>' . __( 'Yes', 'youtube-embed' ) . '</option></select></td></tr>';
160
 
161
  echo "</table>\n";
162
  ?>
includes/aye-set-defaults.php CHANGED
@@ -66,30 +66,28 @@ function aye_set_url_option() {
66
  function aye_set_general_defaults() {
67
  $options = get_option( 'youtube_embed_general' );
68
  $changed = false;
69
- $default_error = htmlspecialchars( '<p>The video cannot be shown at the moment. Please try again later.</p>' );
 
 
70
 
71
  if ( !is_array( $options ) ) {
72
  if ( get_option( 'youtube_embed_editor' ) ) {
73
- // If the old options exist, import them and then delete them
74
  $old_opts = get_option( 'youtube_embed_editor' );
75
  $options[ 'editor_button' ] = $old_opts[ 'youtube' ];
76
  delete_option( 'youtube_embed_editor' );
77
  $changed = true;
78
- } else {
79
- // If array doesn't exist, set defaults
80
- $options = array( 'editor_button' => 1, 'admin_bar' => 1, 'profile_no' => 5, 'list_no' => 5, 'info_cache' => 1, 'embed_cache' => 24, 'transcript_cache' => 24, 'alt_profile' => 0, 'alt_profile2' => 0, 'bracket' => '', 'alt' => 0, 'other_profile' => 0, 'comments' => '', 'comments_profile' => 0, 'metadata' => 1, 'feed' => 'b', 'api' => 1, 'error_message' => $default_error, 'thumbnail' => 2, 'privacy' => 0, 'frameborder' => 1 );
81
- $changed = true;
82
  }
83
  }
84
 
85
- // Set current version level. Because this can be used to detect version changes (and to what extent), this
86
- // information may be useful in future upgrades
87
  if ( $options[ 'current_version' ] != youtube_embed_version ) {
88
  $options[ 'current_version' ] = youtube_embed_version;
89
  $changed = true;
90
  }
91
 
92
  // Because of upgrading, check each option - if not set, apply default
 
93
  if ( !array_key_exists( 'editor_button', $options ) ) { $options[ 'editor_button' ] = 1; $changed = true; }
94
  if ( !array_key_exists( 'admin_bar', $options ) ) { $options[ 'admin_bar' ] = 1; $changed = true; }
95
  if ( !array_key_exists( 'profile_no', $options ) ) { $options[ 'profile_no' ] = 5; $changed = true; }
@@ -99,13 +97,17 @@ function aye_set_general_defaults() {
99
  if ( !array_key_exists( 'transcript_cache', $options ) ) { $options[ 'transcript_cache' ] = 24; $changed = true; }
100
  if ( !array_key_exists( 'alt_profile', $options ) ) { $options[ 'alt_profile' ] = 0; $changed = true; }
101
  if ( !array_key_exists( 'alt_profile2', $options ) ) { $options[ 'alt_profile2' ] = 0; $changed = true; }
 
 
102
  if ( !array_key_exists( 'other_profile', $options ) ) { $options[ 'other_profile' ] = 0; $changed = true; }
 
103
  if ( !array_key_exists( 'comments_profile', $options ) ) { $options[ 'comments_profile' ] = 0; $changed = true; }
104
  if ( !array_key_exists( 'metadata', $options ) ) { $options[ 'metadata' ] = 1; $changed = true; }
105
  if ( !array_key_exists( 'feed', $options ) ) { $options[ 'feed' ] = 'b'; $changed = true; }
106
  if ( !array_key_exists( 'api', $options ) ) { $options[ 'api' ] = 1; $changed = true; }
107
  if ( !array_key_exists( 'error_message', $options ) ) { $options[ 'error_message' ] = $default_error; $changed = true; }
108
  if ( !array_key_exists( 'thumbnail', $options ) ) { $options[ 'thumbnail' ] = 2; $changed = true; }
 
109
  if ( !array_key_exists( 'frameborder', $options ) ) { $options[ 'frameborder' ] = 1; $changed = true; }
110
 
111
  // Update the options, if changed, and return the result
@@ -126,16 +128,19 @@ function aye_set_general_defaults() {
126
  */
127
 
128
  function aye_set_profile_defaults( $profile ) {
 
129
  if ( $profile == 0 ) {
130
  $profname = 'Default';
131
  } else {
132
  $profname = 'Profile ' . $profile;
133
  }
134
  $options = get_option( 'youtube_embed_profile' . $profile );
 
135
  $changed = false;
136
  $new_user = false;
137
 
138
  // Work out default dimensions
 
139
  if ( isset( $GLOBALS[ 'content_width' ] ) ) {
140
  $width = $GLOBALS[ 'content_width' ];
141
  } else {
@@ -143,47 +148,57 @@ function aye_set_profile_defaults( $profile ) {
143
  }
144
  $height = 27 + round( ( $width / 16 ) * 9, 0 );
145
 
 
 
146
  if ( !is_array( $options ) ) {
147
  if ( ( $profile == 0 ) && ( get_option( 'youtube_embed' ) ) ) {
148
- // If the old options exist, import them and then delete them
149
  $old_opts = get_option( 'youtube_embed' );
150
  $options = $old_opts;
151
  delete_option( 'youtube_embed' );
152
  $changed = true;
153
- } else {
154
- // If array doesn't exist, set defaults
155
- $options = array( 'width' => $width, 'height' => $height, 'fullscreen' => '', 'template' => '%video%', 'autoplay' => '', 'start' => '0', 'loop' => '', 'cc' => '', 'annotation' => '1', 'related' => '', 'info' => '1', 'link' => '1', 'react' => '1', 'stop' => '0', 'sweetspot' => '1', 'type' => 'v', 'disablekb' => '', 'autohide' => '2', 'controls' => '1', 'playlist' => 'v', 'fallback' => 'v', 'wmode' => 'window', 'audio' => '', 'hd' => '1', 'style' => '', 'color' => 'red', 'theme' => 'dark', 'https' => '0', 'modest' => '1', 'dynamic' => '', 'fixed' => '' );
156
- $changed = true;
157
- }
158
  }
159
 
160
  // Because of upgrading, check each option - if not set, apply default
 
161
  if ( !array_key_exists( 'name', $options ) ) { $options[ 'name' ] = $profname; $changed = true; }
 
162
  if ( !array_key_exists( 'width', $options ) ) {
163
  $option[ 'width' ] = $width;
164
  $options[ 'height' ] = $height;
165
  $changed = true;
166
  }
167
- if ( !array_key_exists( 'height', $options ) ) { $options[ 'height' ] = '340'; $changed = true; }
168
- if ( !array_key_exists( 'annotation', $options ) ) { $options[ 'annotation' ] = '1'; $changed = true; }
169
- if ( !array_key_exists( 'info', $options ) ) { $options[ 'info' ] = '1'; $changed = true; }
170
- if ( !array_key_exists( 'link', $options ) ) { $options[ 'link' ] = '1'; $changed = true; }
171
- if ( !array_key_exists( 'react', $options ) ) { $options[ 'react' ] = '1'; $changed = true; }
172
- if ( !array_key_exists( 'sweetspot', $options ) ) { $options[ 'sweetspot' ] = '1'; $changed = true; }
 
 
 
 
 
 
 
 
173
  if ( !array_key_exists( 'type', $options ) ) { $options[ 'type' ] = 'v'; $changed = true; }
174
- if ( !array_key_exists( 'link', $options ) ) { $options[ 'link' ] = '1'; $changed = true; }
175
- if ( !array_key_exists( 'react', $options ) ) { $options[ 'react' ] = '1'; $changed = true; }
176
- if ( !array_key_exists( 'sweetspot', $options ) ) { $options[ 'sweetspot' ] = '1'; $changed = true; }
177
- if ( !array_key_exists( 'autohide', $options ) ) { $options[ 'autohide' ] = '2'; $changed = true; }
178
- if ( !array_key_exists( 'controls', $options ) ) { $options[ 'controls' ] = '1'; $changed = true; }
179
  if ( !array_key_exists( 'playlist', $options ) ) { $options[ 'playlist' ] = 'v'; $changed = true; }
180
  if ( !array_key_exists( 'fallback', $options ) ) { $options[ 'fallback' ] = 'v'; $changed = true; }
181
  if ( !array_key_exists( 'wmode', $options ) ) { $options[ 'wmode' ] = 'window'; $changed = true; }
182
- if ( !array_key_exists( 'template', $options ) ) { $options[ 'template' ] = '%video%'; $changed = true; }
183
- if ( !array_key_exists( 'hd', $options ) ) { $options[ 'hd' ] = '1'; $changed = true; }
 
 
184
  if ( !array_key_exists( 'color', $options ) ) { $options[ 'color' ] = 'red'; $changed = true; }
185
  if ( !array_key_exists( 'theme', $options ) ) { $options[ 'theme' ] = 'dark'; $changed = true; }
186
- if ( !array_key_exists( 'modest', $options ) ) { $options[ 'modest' ] = 1; $changed = true; }
 
 
 
187
 
188
  // Update the options, if changed, and return the result
189
  if ( $changed ) { update_option( 'youtube_embed_profile' . $profile, $options ); }
@@ -210,12 +225,6 @@ function aye_set_list_defaults( $list ) {
210
  $options = get_option( 'youtube_embed_list' . $list );
211
  $changed = false;
212
 
213
- // If array doesn't exist, set defaults
214
- if ( !is_array( $options ) ) {
215
- $options = array( 'name' => 'List ' . $list, 'list' => '' );
216
- $changed = true;
217
- }
218
-
219
  // Because of upgrading, check each option - if not set, apply default
220
  if ( !array_key_exists( 'name',$options ) ) { $options[ 'name' ] = 'List ' . $list; $changed = true; }
221
  if ( !array_key_exists( 'list',$options ) ) { $options[ 'list' ] = ''; $changed = true; }
66
  function aye_set_general_defaults() {
67
  $options = get_option( 'youtube_embed_general' );
68
  $changed = false;
69
+ $default_error = htmlspecialchars( '<p>' . __( 'The video cannot be shown at the moment. Please try again later.', 'youtube-embed' ) . '</p>' );
70
+
71
+ // If the old options exist, import them and then delete them
72
 
73
  if ( !is_array( $options ) ) {
74
  if ( get_option( 'youtube_embed_editor' ) ) {
 
75
  $old_opts = get_option( 'youtube_embed_editor' );
76
  $options[ 'editor_button' ] = $old_opts[ 'youtube' ];
77
  delete_option( 'youtube_embed_editor' );
78
  $changed = true;
 
 
 
 
79
  }
80
  }
81
 
82
+ // Set current version level. Because this can be used to detect version changes (and to what extent), this information may be useful in future upgrades
83
+
84
  if ( $options[ 'current_version' ] != youtube_embed_version ) {
85
  $options[ 'current_version' ] = youtube_embed_version;
86
  $changed = true;
87
  }
88
 
89
  // Because of upgrading, check each option - if not set, apply default
90
+ if ( !array_key_exists( 'donated', $options ) ) { $options[ 'donated' ] = ''; $changed = true; }
91
  if ( !array_key_exists( 'editor_button', $options ) ) { $options[ 'editor_button' ] = 1; $changed = true; }
92
  if ( !array_key_exists( 'admin_bar', $options ) ) { $options[ 'admin_bar' ] = 1; $changed = true; }
93
  if ( !array_key_exists( 'profile_no', $options ) ) { $options[ 'profile_no' ] = 5; $changed = true; }
97
  if ( !array_key_exists( 'transcript_cache', $options ) ) { $options[ 'transcript_cache' ] = 24; $changed = true; }
98
  if ( !array_key_exists( 'alt_profile', $options ) ) { $options[ 'alt_profile' ] = 0; $changed = true; }
99
  if ( !array_key_exists( 'alt_profile2', $options ) ) { $options[ 'alt_profile2' ] = 0; $changed = true; }
100
+ if ( !array_key_exists( 'bracket', $options ) ) { $options[ 'bracket' ] = ''; $changed = true; }
101
+ if ( !array_key_exists( 'alt', $options ) ) { $options[ 'alt' ] = 0; $changed = true; }
102
  if ( !array_key_exists( 'other_profile', $options ) ) { $options[ 'other_profile' ] = 0; $changed = true; }
103
+ if ( !array_key_exists( 'comments', $options ) ) { $options[ 'comments' ] = ''; $changed = true; }
104
  if ( !array_key_exists( 'comments_profile', $options ) ) { $options[ 'comments_profile' ] = 0; $changed = true; }
105
  if ( !array_key_exists( 'metadata', $options ) ) { $options[ 'metadata' ] = 1; $changed = true; }
106
  if ( !array_key_exists( 'feed', $options ) ) { $options[ 'feed' ] = 'b'; $changed = true; }
107
  if ( !array_key_exists( 'api', $options ) ) { $options[ 'api' ] = 1; $changed = true; }
108
  if ( !array_key_exists( 'error_message', $options ) ) { $options[ 'error_message' ] = $default_error; $changed = true; }
109
  if ( !array_key_exists( 'thumbnail', $options ) ) { $options[ 'thumbnail' ] = 2; $changed = true; }
110
+ if ( !array_key_exists( 'privacy', $options ) ) { $options[ 'privacy' ] = 0; $changed = true; }
111
  if ( !array_key_exists( 'frameborder', $options ) ) { $options[ 'frameborder' ] = 1; $changed = true; }
112
 
113
  // Update the options, if changed, and return the result
128
  */
129
 
130
  function aye_set_profile_defaults( $profile ) {
131
+
132
  if ( $profile == 0 ) {
133
  $profname = 'Default';
134
  } else {
135
  $profname = 'Profile ' . $profile;
136
  }
137
  $options = get_option( 'youtube_embed_profile' . $profile );
138
+
139
  $changed = false;
140
  $new_user = false;
141
 
142
  // Work out default dimensions
143
+
144
  if ( isset( $GLOBALS[ 'content_width' ] ) ) {
145
  $width = $GLOBALS[ 'content_width' ];
146
  } else {
148
  }
149
  $height = 27 + round( ( $width / 16 ) * 9, 0 );
150
 
151
+ // If the old options exist, import them and then delete them
152
+
153
  if ( !is_array( $options ) ) {
154
  if ( ( $profile == 0 ) && ( get_option( 'youtube_embed' ) ) ) {
 
155
  $old_opts = get_option( 'youtube_embed' );
156
  $options = $old_opts;
157
  delete_option( 'youtube_embed' );
158
  $changed = true;
159
+ }
 
 
 
 
160
  }
161
 
162
  // Because of upgrading, check each option - if not set, apply default
163
+
164
  if ( !array_key_exists( 'name', $options ) ) { $options[ 'name' ] = $profname; $changed = true; }
165
+
166
  if ( !array_key_exists( 'width', $options ) ) {
167
  $option[ 'width' ] = $width;
168
  $options[ 'height' ] = $height;
169
  $changed = true;
170
  }
171
+ if ( !array_key_exists( 'height', $options ) ) { $options[ 'height' ] = 340; $changed = true; }
172
+ if ( !array_key_exists( 'fullscreen', $options ) ) { $options[ 'fullscreen' ] = ''; $changed = true; }
173
+ if ( !array_key_exists( 'template', $options ) ) { $options[ 'template' ] = '%video%'; $changed = true; }
174
+ if ( !array_key_exists( 'autoplay', $options ) ) { $options[ 'autoplay' ] = ''; $changed = true; }
175
+ if ( !array_key_exists( 'start', $options ) ) { $options[ 'start' ] = 0; $changed = true; }
176
+ if ( !array_key_exists( 'loop', $options ) ) { $options[ 'loop' ] = ''; $changed = true; }
177
+ if ( !array_key_exists( 'cc', $options ) ) { $options[ 'cc' ] = ''; $changed = true; }
178
+ if ( !array_key_exists( 'annotation', $options ) ) { $options[ 'annotation' ] = 1; $changed = true; }
179
+ if ( !array_key_exists( 'related', $options ) ) { $options[ 'related' ] = ''; $changed = true; }
180
+ if ( !array_key_exists( 'info', $options ) ) { $options[ 'info' ] = 1; $changed = true; }
181
+ if ( !array_key_exists( 'link', $options ) ) { $options[ 'link' ] = 1; $changed = true; }
182
+ if ( !array_key_exists( 'react', $options ) ) { $options[ 'react' ] = 1; $changed = true; }
183
+ if ( !array_key_exists( 'stop', $options ) ) { $options[ 'stop' ] = 0; $changed = true; }
184
+ if ( !array_key_exists( 'sweetspot', $options ) ) { $options[ 'sweetspot' ] = 1; $changed = true; }
185
  if ( !array_key_exists( 'type', $options ) ) { $options[ 'type' ] = 'v'; $changed = true; }
186
+ if ( !array_key_exists( 'disablekb', $options ) ) { $options[ 'disablekb' ] = ''; $changed = true; }
187
+ if ( !array_key_exists( 'autohide', $options ) ) { $options[ 'autohide' ] = 2; $changed = true; }
188
+ if ( !array_key_exists( 'controls', $options ) ) { $options[ 'controls' ] = 1; $changed = true; }
 
 
189
  if ( !array_key_exists( 'playlist', $options ) ) { $options[ 'playlist' ] = 'v'; $changed = true; }
190
  if ( !array_key_exists( 'fallback', $options ) ) { $options[ 'fallback' ] = 'v'; $changed = true; }
191
  if ( !array_key_exists( 'wmode', $options ) ) { $options[ 'wmode' ] = 'window'; $changed = true; }
192
+ if ( !array_key_exists( 'audio', $options ) ) { $options[ 'audio' ] = ''; $changed = true; }
193
+
194
+ if ( !array_key_exists( 'hd', $options ) ) { $options[ 'hd' ] = 1; $changed = true; }
195
+ if ( !array_key_exists( 'style', $options ) ) { $options[ 'style' ] = ''; $changed = true; }
196
  if ( !array_key_exists( 'color', $options ) ) { $options[ 'color' ] = 'red'; $changed = true; }
197
  if ( !array_key_exists( 'theme', $options ) ) { $options[ 'theme' ] = 'dark'; $changed = true; }
198
+ if ( !array_key_exists( 'https', $options ) ) { $options[ 'https' ] = 0; $changed = true; }
199
+ if ( !array_key_exists( 'modest', $options ) ) { $options[ 'modest' ] = 1; $changed = true; }
200
+ if ( !array_key_exists( 'dynamic', $options ) ) { $options[ 'dynamic' ] = ''; $changed = true; }
201
+ if ( !array_key_exists( 'fixed', $options ) ) { $options[ 'fixed' ] = ''; $changed = true; }
202
 
203
  // Update the options, if changed, and return the result
204
  if ( $changed ) { update_option( 'youtube_embed_profile' . $profile, $options ); }
225
  $options = get_option( 'youtube_embed_list' . $list );
226
  $changed = false;
227
 
 
 
 
 
 
 
228
  // Because of upgrading, check each option - if not set, apply default
229
  if ( !array_key_exists( 'name',$options ) ) { $options[ 'name' ] = 'List ' . $list; $changed = true; }
230
  if ( !array_key_exists( 'list',$options ) ) { $options[ 'list' ] = ''; $changed = true; }
includes/aye-shared-functions.php CHANGED
@@ -181,7 +181,7 @@ function aye_validate_id( $id, $title_needed = false ) {
181
 
182
  // If reporting API errors, output it
183
 
184
- $type = sprintf( __('An error occurred accessing the YouTube API for video ID %s - %s' ), $id, $id_check[ 'error' ] );
185
 
186
  } else {
187
 
181
 
182
  // If reporting API errors, output it
183
 
184
+ $type = sprintf( __('An error occurred accessing the YouTube API for video ID %s - %s', 'youtube-embed' ), $id, $id_check[ 'error' ] );
185
 
186
  } else {
187
 
includes/aye-shortcodes.php CHANGED
@@ -265,7 +265,7 @@ function aye_video_name_shortcode( $paras = '', $content = '' ) {
265
  // Check what type of video it is and whether it's valid
266
 
267
  $return = aye_validate_id( $id, true );
268
- if ( !$return[ 'type' ] ) { return aye_error( sprintf( __( 'The YouTube ID of %s is invalid.' ), $id ) ); }
269
  if ( strlen( $return[ 'type' ] ) != 1 ) { return aye_error( $return[ 'type' ] ); }
270
 
271
  // Return the video title
265
  // Check what type of video it is and whether it's valid
266
 
267
  $return = aye_validate_id( $id, true );
268
+ if ( !$return[ 'type' ] ) { return aye_error( sprintf( __( 'The YouTube ID of %s is invalid.', 'youtube-embed' ), $id ) ); }
269
  if ( strlen( $return[ 'type' ] ) != 1 ) { return aye_error( $return[ 'type' ] ); }
270
 
271
  // Return the video title
js/aye-ga-tracker UNCOMPRESSED.js DELETED
@@ -1,3 +0,0 @@
1
- function recordOutboundLink(category, action, label) {
2
- _gaq.push(['_trackEvent', category, action, label]);
3
- }
 
 
 
js/aye-ga-tracker.js DELETED
@@ -1 +0,0 @@
1
- function recordOutboundLink(category,action,label){_gaq.push(['_trackEvent',category,action,label])}
 
languages/youtube-embed.mo CHANGED
Binary file
languages/youtube-embed.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Artiss Currency Converter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-05-23 20:53-0000\n"
6
- "PO-Revision-Date: 2012-05-23 20:53-0000\n"
7
  "Last-Translator: David Artiss <david.artiss@artiss.co.uk>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -13,6 +13,39 @@ msgstr ""
13
  "X-Poedit-Basepath: ../\n"
14
  "X-Poedit-SearchPath-0: .\n"
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  #: includes/aye-add-to-admin-bar.php:36
17
  #: includes/aye-add-to-admin-bar.php:73
18
  msgid "YouTube Embed"
@@ -46,10 +79,6 @@ msgstr ""
46
  msgid "Support"
47
  msgstr ""
48
 
49
- #: includes/aye-admin-config.php:56
50
- msgid "Donate"
51
- msgstr ""
52
-
53
  #: includes/aye-admin-config.php:82
54
  msgid "Artiss YouTube Embed Settings"
55
  msgstr ""
@@ -71,6 +100,7 @@ msgid "Artiss YouTube Embed Lists"
71
  msgstr ""
72
 
73
  #: includes/aye-admin-config.php:117
 
74
  msgid "Artiss YouTube Embed README"
75
  msgstr ""
76
 
@@ -125,7 +155,7 @@ msgstr ""
125
  #: includes/aye-admin-config.php:309
126
  #: includes/aye-admin-config.php:351
127
  #: includes/aye-admin-config.php:392
128
- #: includes/aye-display-about.php:40
129
  msgid "This plugin, and all support, is supplied for free, but <a title=\"Donate\" href=\"http://artiss.co.uk/donate\" target=\"_blank\">donations</a> are always welcome."
130
  msgstr ""
131
 
@@ -165,74 +195,71 @@ msgstr ""
165
  msgid "This function does not support playlists"
166
  msgstr ""
167
 
168
- #: includes/aye-display-about.php:16
169
  #, php-format
170
  msgid "You are using Artiss YouTube Embed version %s. It was written by David Artiss."
171
  msgstr ""
172
 
173
- #: includes/aye-display-about.php:18
174
  msgid "Powered by YouTube"
175
  msgstr ""
176
 
177
- #: includes/aye-display-about.php:22
178
  msgid "Copyrights"
179
  msgstr ""
180
 
181
- #: includes/aye-display-about.php:24
182
  msgid "YouTube, and all associated logos, is the copyright of Google Inc."
183
  msgstr ""
184
 
185
- #: includes/aye-display-about.php:26
186
  msgid "EmbedPlus is copyright. Read the <a href=\"http://embedplus.com/terms.aspx\" target=\"_blank\">Terms &amp; Conditions of Use</a>."
187
  msgstr ""
188
 
189
- #: includes/aye-display-about.php:28
190
  msgid "Acknowledgements"
191
  msgstr ""
192
 
193
- #: includes/aye-display-about.php:30
194
  msgid "Images have been compressed with <a href=\"http://www.smushit.com/ysmush.it/\">Smush.it</a>."
195
  msgstr ""
196
 
197
- #: includes/aye-display-about.php:32
198
  msgid "JavaScript has been compressed with <a href=\"http://javascriptcompressor.com/\">JavaScript Compressor</a>."
199
  msgstr ""
200
 
201
- #: includes/aye-display-about.php:34
202
  msgid "YouTube icons are courtesy of <a href=\"http://www.youtube.com/t/creators_downloads\">YouTube</a>. Other icons are by <a href=\"http://p.yusukekamiyamane.com/\">Yusuke Kamiyamane</a>."
203
  msgstr ""
204
 
205
- #: includes/aye-display-about.php:36
206
  msgid "Support Information"
207
  msgstr ""
208
 
209
- #: includes/aye-display-about.php:38
210
  msgid "Useful support information and links can be found by clicking on the Help tab at the top of each of the Artiss YouTube Embed administration screens."
211
  msgstr ""
212
 
213
- #: includes/aye-display-about.php:42
214
  msgid "Stay in Touch"
215
  msgstr ""
216
 
217
- #: includes/aye-display-about.php:44
218
  msgid "<a href=\"http://www.artiss.co.uk/wp-plugins\">See the full list</a> of Artiss plugins, including beta releases."
219
  msgstr ""
220
 
221
- #: includes/aye-display-about.php:46
222
  msgid "<a href=\"http://www.twitter.com/artiss_tech\">Follow Artiss.co.uk</a> on Twitter."
223
  msgstr ""
224
 
225
- #: includes/aye-display-about.php:48
226
  msgid "<a href=\"http://www.artiss.co.uk/feed\">Subscribe</a> to the Artiss.co.uk news feed."
227
  msgstr ""
228
 
229
- #: includes/aye-display-readme.php:16
230
- msgid " README"
231
- msgstr ""
232
-
233
  #: includes/aye-function-calls.php:162
234
  #: includes/aye-function-calls.php:223
235
  #: includes/aye-generate-download-code.php:34
 
236
  #: includes/aye-generate-shorturl-code.php:34
237
  #: includes/aye-generate-thumbnail-code.php:37
238
  #: includes/aye-generate-transcript-code.php:38
@@ -274,282 +301,298 @@ msgstr ""
274
  msgid "Embed YouTube Widget."
275
  msgstr ""
276
 
277
- #: includes/aye-options-general.php:57
278
  #: includes/aye-options-lists.php:26
279
  msgid "Settings Saved."
280
  msgstr ""
281
 
282
- #: includes/aye-options-general.php:74
283
  msgid "Cache cleared."
284
  msgstr ""
285
 
286
- #: includes/aye-options-general.php:87
287
  msgid "These are the general settings for Artiss YouTube Embed. Please select <a href=\"admin.php?page=aye-profile-options\">Profiles</a> for default embedding settings."
288
  msgstr ""
289
 
290
- #: includes/aye-options-general.php:91
 
 
 
 
 
 
 
 
291
  msgid "Embedding"
292
  msgstr ""
293
 
294
- #: includes/aye-options-general.php:95
295
  msgid "Add Metadata"
296
  msgstr ""
297
 
298
- #: includes/aye-options-general.php:96
299
  msgid "Allow rich metadata to be added to code. <a href=\"http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-metadata\">Learn more</a>"
300
  msgstr ""
301
 
302
- #: includes/aye-options-general.php:100
303
  msgid "Comment Embedding"
304
  msgstr ""
305
 
306
- #: includes/aye-options-general.php:101
307
  msgid "Allow YouTube URLs in comments - will display as embedded videos. <a href=\"http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-comments\">Learn more</a>"
308
  msgstr ""
309
 
310
- #: includes/aye-options-general.php:105
311
- #: includes/aye-options-general.php:141
312
- #: includes/aye-options-general.php:153
313
- #: includes/aye-options-general.php:174
314
  msgid "Profile to use"
315
  msgstr ""
316
 
317
- #: includes/aye-options-general.php:112
318
  msgid "Feed"
319
  msgstr ""
320
 
321
- #: includes/aye-options-general.php:114
322
  msgid "Text link"
323
  msgstr ""
324
 
325
- #: includes/aye-options-general.php:115
326
  msgid "Thumbnail"
327
  msgstr ""
328
 
329
- #: includes/aye-options-general.php:116
330
  msgid "Thumbnail &amp; Text Link"
331
  msgstr ""
332
 
333
- #: includes/aye-options-general.php:117
334
  msgid "Videos cannot be embedded in feeds. Select how you wish them to be shown instead"
335
  msgstr ""
336
 
337
- #: includes/aye-options-general.php:121
338
  msgid "Thumbnail to use"
339
  msgstr ""
340
 
341
- #: includes/aye-options-general.php:123
342
  #: includes/aye-shared-functions.php:425
343
  msgid "Default"
344
  msgstr ""
345
 
346
- #: includes/aye-options-general.php:124
347
  msgid "Default (HQ)"
348
  msgstr ""
349
 
350
- #: includes/aye-options-general.php:125
351
  msgid "Start"
352
  msgstr ""
353
 
354
- #: includes/aye-options-general.php:126
355
  msgid "Middle"
356
  msgstr ""
357
 
358
- #: includes/aye-options-general.php:127
359
  msgid "End"
360
  msgstr ""
361
 
362
- #: includes/aye-options-general.php:128
363
  msgid "Which thumbnail to use"
364
  msgstr ""
365
 
366
- #: includes/aye-options-general.php:132
367
  msgid "Alternative Shortcodes"
368
  msgstr ""
369
 
370
- #: includes/aye-options-general.php:136
 
 
 
 
371
  msgid "Alternative Shortcode 1"
372
  msgstr ""
373
 
374
- #: includes/aye-options-general.php:148
375
  msgid "Alternative Shortcode 2"
376
  msgstr ""
377
 
378
- #: includes/aye-options-general.php:160
379
  msgid "Migration"
380
  msgstr ""
381
 
382
- #: includes/aye-options-general.php:164
 
 
 
 
383
  msgid "Bracket Embedding"
384
  msgstr ""
385
 
386
- #: includes/aye-options-general.php:165
387
  msgid "Allow embedding using URLs within brackets. Activating impacts performance"
388
  msgstr ""
389
 
390
- #: includes/aye-options-general.php:169
391
  msgid "Alternative Embedding"
392
  msgstr ""
393
 
394
- #: includes/aye-options-general.php:170
395
  msgid "Allow all other types of embedding. Activating impacts performance"
396
  msgstr ""
397
 
398
- #: includes/aye-options-general.php:177
399
  msgid "For above 2 options"
400
  msgstr ""
401
 
402
- #: includes/aye-options-general.php:181
403
  msgid "Admin Options"
404
  msgstr ""
405
 
406
- #: includes/aye-options-general.php:185
407
  msgid "Show YouTube Button"
408
  msgstr ""
409
 
410
- #: includes/aye-options-general.php:186
411
  msgid "Show the YouTube button on the post editor"
412
  msgstr ""
413
 
414
- #: includes/aye-options-general.php:190
415
  msgid "Add to Admin Bar"
416
  msgstr ""
417
 
418
- #: includes/aye-options-general.php:191
419
  msgid "Add link to options screen to Admin Bar"
420
  msgstr ""
421
 
422
- #: includes/aye-options-general.php:195
423
  msgid "Profile &amp; List Sizes"
424
  msgstr ""
425
 
426
- #: includes/aye-options-general.php:199
427
  msgid "Number of Profiles"
428
  msgstr ""
429
 
430
- #: includes/aye-options-general.php:200
431
  msgid "Maximum number of profiles"
432
  msgstr ""
433
 
434
- #: includes/aye-options-general.php:204
435
  msgid "Number of Lists"
436
  msgstr ""
437
 
438
- #: includes/aye-options-general.php:205
439
  msgid "Maximum number of lists"
440
  msgstr ""
441
 
442
- #: includes/aye-options-general.php:209
443
  msgid "Performance"
444
  msgstr ""
445
 
446
- #: includes/aye-options-general.php:213
447
  msgid "Embed Cache"
448
  msgstr ""
449
 
450
- #: includes/aye-options-general.php:214
451
  msgid "How many hours to retain embed output. 0 to switch off"
452
  msgstr ""
453
 
454
- #: includes/aye-options-general.php:218
455
  msgid "Video Information Cache"
456
  msgstr ""
457
 
458
- #: includes/aye-options-general.php:219
459
  msgid "How many hours to retain video information, including it's validity. 0 to switch off"
460
  msgstr ""
461
 
462
- #: includes/aye-options-general.php:223
463
  msgid "Transcript Cache"
464
  msgstr ""
465
 
466
- #: includes/aye-options-general.php:224
467
  msgid "How many hours to store transcripts for in cache. 0 to switch off"
468
  msgstr ""
469
 
470
- #: includes/aye-options-general.php:233
471
  msgid "Clear Cache"
472
  msgstr ""
473
 
474
- #: includes/aye-options-general.php:234
475
  #, php-format
476
  msgid "Select this option to remove all YouTube Embed cache. You currently have %d cached video(s)"
477
  msgstr ""
478
 
479
- #: includes/aye-options-general.php:238
480
  msgid "YouTube API"
481
  msgstr ""
482
 
483
- #: includes/aye-options-general.php:240
484
  msgid "The YouTube API is used to validate video IDs and to determine if it is a video or playlist."
485
  msgstr ""
486
 
487
- #: includes/aye-options-general.php:244
488
  msgid "API State"
489
  msgstr ""
490
 
491
- #: includes/aye-options-general.php:246
492
  msgid "API should not be used"
493
  msgstr ""
494
 
495
- #: includes/aye-options-general.php:247
496
  msgid "HTTP API used and errors are reported"
497
  msgstr ""
498
 
499
- #: includes/aye-options-general.php:248
500
  msgid "HTTPS API used and errors are reported"
501
  msgstr ""
502
 
503
- #: includes/aye-options-general.php:249
504
  msgid "HTTP API used and no errors are reported"
505
  msgstr ""
506
 
507
- #: includes/aye-options-general.php:250
508
  msgid "HTTPS API used and no errors are reported"
509
  msgstr ""
510
 
511
- #: includes/aye-options-general.php:255
512
  msgid "Error Reporting"
513
  msgstr ""
514
 
515
- #: includes/aye-options-general.php:257
516
  msgid "Playback errors are within the XHTML source code as comments - parameter errors and other types are displayed on the post output."
517
  msgstr ""
518
 
519
- #: includes/aye-options-general.php:260
520
  msgid "Video Playback Error Message"
521
  msgstr ""
522
 
523
- #: includes/aye-options-general.php:261
524
  msgid "This is the message that will be shown on the post"
525
  msgstr ""
526
 
527
- #: includes/aye-options-general.php:264
528
  msgid "Security"
529
  msgstr ""
530
 
531
- #: includes/aye-options-general.php:267
532
  msgid "Privacy-Enhanced Mode"
533
  msgstr ""
534
 
535
- #: includes/aye-options-general.php:268
536
  msgid "When on, the player on this site will not store cookies"
537
  msgstr ""
538
 
539
- #: includes/aye-options-general.php:271
540
  msgid "Compatability"
541
  msgstr ""
542
 
543
- #: includes/aye-options-general.php:274
544
  msgid "Allow Frame Border on IFRAME"
545
  msgstr ""
546
 
547
- #: includes/aye-options-general.php:275
548
  msgid "FRAMEBORDER is not HTML5 compliant"
549
  msgstr ""
550
 
551
- #: includes/aye-options-general.php:280
552
- #: includes/aye-options-lists.php:119
553
  #: includes/aye-options-profiles.php:345
554
  msgid "Save Settings"
555
  msgstr ""
@@ -562,389 +605,381 @@ msgstr ""
562
  msgid "Errors were found with your video list. See the list below for details."
563
  msgstr ""
564
 
565
- #: includes/aye-options-lists.php:88
566
  msgid "List"
567
  msgstr ""
568
 
569
- #: includes/aye-options-lists.php:98
570
  msgid "Change list"
571
  msgstr ""
572
 
573
- #: includes/aye-options-lists.php:101
574
  msgid "These are the options for list "
575
  msgstr ""
576
 
577
- #: includes/aye-options-lists.php:101
578
  msgid "Update the name, if required, and specify a list of YouTube video IDs. Use the drop-down on the right hand side to swap between lists."
579
  msgstr ""
580
 
581
- #: includes/aye-options-lists.php:106
582
  msgid "List name"
583
  msgstr ""
584
 
585
- #: includes/aye-options-lists.php:108
586
  msgid "The name you wish to give this list"
587
  msgstr ""
588
 
589
- #: includes/aye-options-lists.php:112
590
  msgid "Video IDs (one per line)"
591
  msgstr ""
592
 
593
- #: includes/aye-options-lists.php:130
594
  #: includes/aye-options-widgets.php:25
595
  msgid "Video ID"
596
  msgstr ""
597
 
598
- #: includes/aye-options-lists.php:130
599
  #: includes/aye-options-widgets.php:19
600
  msgid "Video Title"
601
  msgstr ""
602
 
603
- #: includes/aye-options-lists.php:130
604
  msgid "Status"
605
  msgstr ""
606
 
607
- #: includes/aye-options-lists.php:146
608
  msgid "This is a playlist"
609
  msgstr ""
610
 
611
- #: includes/aye-options-lists.php:150
612
  msgid "Invalid video ID"
613
  msgstr ""
614
 
615
- #: includes/aye-options-lists.php:154
616
  msgid "YouTube API error"
617
  msgstr ""
618
 
619
- #: includes/aye-options-lists.php:157
620
  msgid "Valid video"
621
  msgstr ""
622
 
623
- #: includes/aye-options-lists.php:175
624
  msgid "The video ID is valid"
625
  msgstr ""
626
 
627
- #: includes/aye-options-lists.php:178
628
  msgid "The video ID is invalid"
629
  msgstr ""
630
 
631
- #: includes/aye-options-profiles.php:24
632
- msgid "Follow Artiss.co.uk on Twitter"
633
- msgstr ""
634
-
635
- #: includes/aye-options-profiles.php:25
636
- msgid "Follow Artiss.co.uk on Facebook"
637
- msgstr ""
638
-
639
- #: includes/aye-options-profiles.php:26
640
- msgid "Follow Artiss.co.uk on Google+"
641
- msgstr ""
642
-
643
- #: includes/aye-options-profiles.php:27
644
- msgid "Follow Artiss.co.uk on RSS feed"
645
- msgstr ""
646
-
647
- #: includes/aye-options-profiles.php:98
648
  msgid " Profile Saved."
649
  msgstr ""
650
 
651
- #: includes/aye-options-profiles.php:117
652
  msgid "Change profile"
653
  msgstr ""
654
 
655
- #: includes/aye-options-profiles.php:122
656
  msgid "These are the options for the default profile."
657
  msgstr ""
658
 
659
- #: includes/aye-options-profiles.php:124
660
  #, php-format
661
  msgid "These are the options for profile %s."
662
  msgstr ""
663
 
664
- #: includes/aye-options-profiles.php:126
665
  msgid "Use the drop-down on the right hand side to swap between profiles."
666
  msgstr ""
667
 
668
- #: includes/aye-options-profiles.php:132
669
  msgid "Profile name"
670
  msgstr ""
671
 
672
- #: includes/aye-options-profiles.php:134
673
  msgid "The name you wish to give this profile"
674
  msgstr ""
675
 
676
- #: includes/aye-options-profiles.php:138
677
  msgid "Video Embed Type"
678
  msgstr ""
679
 
680
- #: includes/aye-options-profiles.php:139
681
  msgid "The type of player to use for videos."
682
  msgstr ""
683
 
684
- #: includes/aye-options-profiles.php:140
685
- #: includes/aye-options-profiles.php:150
686
  #: includes/aye-options-profiles.php:323
687
  #: includes/aye-options-widgets.php:95
688
  msgid "IFRAME"
689
  msgstr ""
690
 
691
- #: includes/aye-options-profiles.php:140
692
- msgid "Uses HTML5, if available. Alternatively, uses AS3 Flash player. This is the current YouTube default.."
693
  msgstr ""
694
 
695
- #: includes/aye-options-profiles.php:141
696
- #: includes/aye-options-profiles.php:151
697
  #: includes/aye-options-profiles.php:324
698
  #: includes/aye-options-widgets.php:97
699
  msgid "OBJECT"
700
  msgstr ""
701
 
702
- #: includes/aye-options-profiles.php:141
703
  msgid "Use the AS3 Flash player."
704
  msgstr ""
705
 
706
- #: includes/aye-options-profiles.php:142
707
  #: includes/aye-options-widgets.php:99
708
  msgid "Chromeless"
709
  msgstr ""
710
 
711
- #: includes/aye-options-profiles.php:142
712
  msgid "Use the <a href=\"http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-chromeless\">Chromeless</a> version of the AS3 Flash Player."
713
  msgstr ""
714
 
715
- #: includes/aye-options-profiles.php:143
716
- #: includes/aye-options-profiles.php:359
717
  #: includes/aye-options-widgets.php:101
718
  msgid "EmbedPlus"
719
  msgstr ""
720
 
721
- #: includes/aye-options-profiles.php:143
722
  msgid "Use <a href=\"http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-embedplus\">EmbedPlus</a>, if Flash is available."
723
  msgstr ""
724
 
725
- #: includes/aye-options-profiles.php:148
726
  msgid "Playlist Embed Type"
727
  msgstr ""
728
 
729
- #: includes/aye-options-profiles.php:149
730
  msgid "The type of player to use when showing playlists."
731
  msgstr ""
732
 
733
- #: includes/aye-options-profiles.php:156
734
  msgid "Options For All Player Types"
735
  msgstr ""
736
 
737
- #: includes/aye-options-profiles.php:160
738
  #: includes/aye-options-widgets.php:55
739
  msgid "Template"
740
  msgstr ""
741
 
742
- #: includes/aye-options-profiles.php:165
 
 
 
 
743
  #: includes/aye-options-widgets.php:61
744
  msgid "Style"
745
  msgstr ""
746
 
747
- #: includes/aye-options-profiles.php:172
 
 
 
 
748
  msgid "Video size"
749
  msgstr ""
750
 
751
- #: includes/aye-options-profiles.php:173
752
  msgid "The width x height of the video, in pixels"
753
  msgstr ""
754
 
755
- #: includes/aye-options-profiles.php:177
756
  msgid "Default Sizes"
757
  msgstr ""
758
 
759
- #: includes/aye-options-profiles.php:179
760
  msgid "Use above sizes"
761
  msgstr ""
762
 
763
- #: includes/aye-options-profiles.php:185
764
  msgid "Select one of these default sizes to override the above video sizes"
765
  msgstr ""
766
 
767
- #: includes/aye-options-profiles.php:189
768
  #: includes/aye-options-widgets.php:79
769
  msgid "Dynamically Resize"
770
  msgstr ""
771
 
772
- #: includes/aye-options-profiles.php:190
773
  msgid "Show full width and resize with the browser"
774
  msgstr ""
775
 
776
- #: includes/aye-options-profiles.php:194
777
  msgid "Set Maximum Size"
778
  msgstr ""
779
 
780
- #: includes/aye-options-profiles.php:195
781
  msgid "Use above width to define maximum size"
782
  msgstr ""
783
 
784
- #: includes/aye-options-profiles.php:202
785
  msgid "Audio Only"
786
  msgstr ""
787
 
788
- #: includes/aye-options-profiles.php:203
789
  msgid "Only show the toolbar for audio only playback"
790
  msgstr ""
791
 
792
- #: includes/aye-options-profiles.php:207
793
  #: includes/aye-options-widgets.php:107
794
  msgid "Autoplay"
795
  msgstr ""
796
 
797
- #: includes/aye-options-profiles.php:208
798
  msgid "The video will start playing when the player loads"
799
  msgstr ""
800
 
801
- #: includes/aye-options-profiles.php:213
802
  msgid "Options Not Supported by EmbedPlus"
803
  msgstr ""
804
 
805
- #: includes/aye-options-profiles.php:218
806
  msgid "Auto hide"
807
  msgstr ""
808
 
809
- #: includes/aye-options-profiles.php:220
810
  msgid "Controls &amp; progress bar remain visible"
811
  msgstr ""
812
 
813
- #: includes/aye-options-profiles.php:221
814
  msgid "Controls &amp; progress bar fade out"
815
  msgstr ""
816
 
817
- #: includes/aye-options-profiles.php:222
818
  msgid "Progress bar fades"
819
  msgstr ""
820
 
821
- #: includes/aye-options-profiles.php:223
822
  msgid "Video controls will automatically hide after a video begins playing"
823
  msgstr ""
824
 
825
- #: includes/aye-options-profiles.php:227
826
  msgid "Controls"
827
  msgstr ""
828
 
829
- #: includes/aye-options-profiles.php:228
830
  msgid "Video player controls will display"
831
  msgstr ""
832
 
833
- #: includes/aye-options-profiles.php:232
834
- msgid "SSL"
835
- msgstr ""
836
-
837
- #: includes/aye-options-profiles.php:233
838
  msgid "Use SSL? <a href=\"http://www.google.com/support/youtube/bin/answer.py?answer=171780&expand=UseHTTPS#HTTPS\">Read more</a>"
839
  msgstr ""
840
 
841
- #: includes/aye-options-profiles.php:237
842
  #: includes/aye-options-widgets.php:153
843
  msgid "Loop Video"
844
  msgstr ""
845
 
846
- #: includes/aye-options-profiles.php:238
847
  msgid "Play the initial video again and again. In the case of a playlist, this will play the entire playlist and then start again at the first video"
848
  msgstr ""
849
 
850
- #: includes/aye-options-profiles.php:242
851
  msgid "Information"
852
  msgstr ""
853
 
854
- #: includes/aye-options-profiles.php:243
855
- msgid "Display the video title and uploader before the video starts"
 
 
 
 
856
  msgstr ""
857
 
858
- #: includes/aye-options-profiles.php:247
 
 
 
 
859
  msgid "Theme"
860
  msgstr ""
861
 
862
- #: includes/aye-options-profiles.php:249
863
  msgid "Dark"
864
  msgstr ""
865
 
866
- #: includes/aye-options-profiles.php:250
867
  msgid "Light"
868
  msgstr ""
869
 
870
- #: includes/aye-options-profiles.php:251
871
  msgid "Display player controls within a dark or light control bar"
872
  msgstr ""
873
 
874
- #: includes/aye-options-profiles.php:255
875
- msgid "Options for AS3 Player"
876
  msgstr ""
877
 
878
  #: includes/aye-options-profiles.php:260
879
- msgid "Annotations"
880
  msgstr ""
881
 
882
  #: includes/aye-options-profiles.php:261
883
- msgid "Video annotations are shown by default"
884
  msgstr ""
885
 
886
- #: includes/aye-options-profiles.php:265
887
- msgid "Closed Captions"
888
  msgstr ""
889
 
890
- #: includes/aye-options-profiles.php:266
891
- msgid "Show closed captions (subtitles) by default, even if the user has turned captions off"
892
  msgstr ""
893
 
894
- #: includes/aye-options-profiles.php:270
895
- msgid "Disable Keyboard"
896
  msgstr ""
897
 
898
- #: includes/aye-options-profiles.php:271
899
- msgid "Disable the player keyboard controls"
900
  msgstr ""
901
 
902
- #: includes/aye-options-profiles.php:275
903
- msgid "Fullscreen"
904
  msgstr ""
905
 
906
- #: includes/aye-options-profiles.php:276
907
- msgid "A button will allow the viewer to watch the video fullscreen"
908
  msgstr ""
909
 
910
- #: includes/aye-options-profiles.php:280
911
- msgid "Link to YouTube"
912
  msgstr ""
913
 
914
- #: includes/aye-options-profiles.php:281
915
- msgid "Video links back to YouTube when clicked"
916
  msgstr ""
917
 
918
- #: includes/aye-options-profiles.php:285
919
- msgid "Modest Branding"
920
  msgstr ""
921
 
922
- #: includes/aye-options-profiles.php:286
923
- msgid "Reduce branding on video."
924
  msgstr ""
925
 
926
- #: includes/aye-options-profiles.php:290
927
- msgid "Progress Bar Colour"
928
  msgstr ""
929
 
930
  #: includes/aye-options-profiles.php:292
931
- msgid "Red"
932
  msgstr ""
933
 
934
  #: includes/aye-options-profiles.php:293
935
- msgid "White (desaturated)"
936
  msgstr ""
937
 
938
- #: includes/aye-options-profiles.php:294
939
- msgid "The colour that will be used in the player's video progress bar to highlight the amount of the video that's already been seen"
940
  msgstr ""
941
 
942
  #: includes/aye-options-profiles.php:298
943
- msgid "Related Videos"
944
- msgstr ""
945
-
946
- #: includes/aye-options-profiles.php:299
947
- msgid "Load related videos once playback starts. Also toggles the search option."
948
  msgstr ""
949
 
950
  #: includes/aye-options-profiles.php:303
@@ -1015,31 +1050,31 @@ msgstr ""
1015
  msgid "Would you like the video below to be yours? <a href=\"http://www.artiss.co.uk/contact\">Contact me</a> for sponsorship information."
1016
  msgstr ""
1017
 
1018
- #: includes/aye-options-profiles.php:354
1019
  msgid "YouTube Video Sample"
1020
  msgstr ""
1021
 
1022
- #: includes/aye-options-profiles.php:355
1023
  msgid "This uses the above settings, once they have been saved. <b>Would you like this to be your video? If so, <a href=\"http://www.artiss.co.uk/contact\">contact me</a>!</b>"
1024
  msgstr ""
1025
 
1026
- #: includes/aye-options-profiles.php:356
1027
  msgid "Use the drop-down below to change which parameters the video uses - press the Change Video button to update it."
1028
  msgstr ""
1029
 
1030
- #: includes/aye-options-profiles.php:358
1031
  msgid "Standard"
1032
  msgstr ""
1033
 
1034
- #: includes/aye-options-profiles.php:360
1035
  msgid "3D"
1036
  msgstr ""
1037
 
1038
- #: includes/aye-options-profiles.php:361
1039
  msgid "Playlist"
1040
  msgstr ""
1041
 
1042
- #: includes/aye-options-profiles.php:364
1043
  msgid "Change video"
1044
  msgstr ""
1045
 
@@ -1124,6 +1159,10 @@ msgstr ""
1124
  msgid "Play one random video"
1125
  msgstr ""
1126
 
 
 
 
 
1127
  #: includes/aye-shared-functions.php:184
1128
  #, php-format
1129
  msgid "An error occurred accessing the YouTube API for video ID %s - %s"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Artiss YouTube Embed\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-07-27 14:33-0000\n"
6
+ "PO-Revision-Date: 2012-07-27 14:33-0000\n"
7
  "Last-Translator: David Artiss <david.artiss@artiss.co.uk>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
13
  "X-Poedit-Basepath: ../\n"
14
  "X-Poedit-SearchPath-0: .\n"
15
 
16
+ #: includes/artiss-plugin-ads.php:45
17
+ #: includes/aye-admin-config.php:56
18
+ msgid "Donate"
19
+ msgstr ""
20
+
21
+ #: includes/artiss-plugin-ads.php:46
22
+ msgid "If you like this plugin and appreciate the effort being put into it, <a href=\"http://www.artiss.co.uk/donate\">please consider donating</a>."
23
+ msgstr ""
24
+
25
+ #: includes/artiss-plugin-ads.php:47
26
+ msgid "Follow Me"
27
+ msgstr ""
28
+
29
+ #: includes/artiss-plugin-ads.php:48
30
+ msgid "Please stay in touch with the latest news via one of the following social streams..."
31
+ msgstr ""
32
+
33
+ #: includes/artiss-plugin-ads.php:50
34
+ msgid "Follow Artiss.co.uk on Twitter"
35
+ msgstr ""
36
+
37
+ #: includes/artiss-plugin-ads.php:51
38
+ msgid "Follow Artiss.co.uk on Facebook"
39
+ msgstr ""
40
+
41
+ #: includes/artiss-plugin-ads.php:52
42
+ msgid "Follow Artiss.co.uk on Google+"
43
+ msgstr ""
44
+
45
+ #: includes/artiss-plugin-ads.php:53
46
+ msgid "Follow Artiss.co.uk on RSS feed"
47
+ msgstr ""
48
+
49
  #: includes/aye-add-to-admin-bar.php:36
50
  #: includes/aye-add-to-admin-bar.php:73
51
  msgid "YouTube Embed"
79
  msgid "Support"
80
  msgstr ""
81
 
 
 
 
 
82
  #: includes/aye-admin-config.php:82
83
  msgid "Artiss YouTube Embed Settings"
84
  msgstr ""
100
  msgstr ""
101
 
102
  #: includes/aye-admin-config.php:117
103
+ #: includes/aye-display-readme.php:14
104
  msgid "Artiss YouTube Embed README"
105
  msgstr ""
106
 
155
  #: includes/aye-admin-config.php:309
156
  #: includes/aye-admin-config.php:351
157
  #: includes/aye-admin-config.php:392
158
+ #: includes/aye-display-about.php:48
159
  msgid "This plugin, and all support, is supplied for free, but <a title=\"Donate\" href=\"http://artiss.co.uk/donate\" target=\"_blank\">donations</a> are always welcome."
160
  msgstr ""
161
 
195
  msgid "This function does not support playlists"
196
  msgstr ""
197
 
198
+ #: includes/aye-display-about.php:24
199
  #, php-format
200
  msgid "You are using Artiss YouTube Embed version %s. It was written by David Artiss."
201
  msgstr ""
202
 
203
+ #: includes/aye-display-about.php:26
204
  msgid "Powered by YouTube"
205
  msgstr ""
206
 
207
+ #: includes/aye-display-about.php:30
208
  msgid "Copyrights"
209
  msgstr ""
210
 
211
+ #: includes/aye-display-about.php:32
212
  msgid "YouTube, and all associated logos, is the copyright of Google Inc."
213
  msgstr ""
214
 
215
+ #: includes/aye-display-about.php:34
216
  msgid "EmbedPlus is copyright. Read the <a href=\"http://embedplus.com/terms.aspx\" target=\"_blank\">Terms &amp; Conditions of Use</a>."
217
  msgstr ""
218
 
219
+ #: includes/aye-display-about.php:36
220
  msgid "Acknowledgements"
221
  msgstr ""
222
 
223
+ #: includes/aye-display-about.php:38
224
  msgid "Images have been compressed with <a href=\"http://www.smushit.com/ysmush.it/\">Smush.it</a>."
225
  msgstr ""
226
 
227
+ #: includes/aye-display-about.php:40
228
  msgid "JavaScript has been compressed with <a href=\"http://javascriptcompressor.com/\">JavaScript Compressor</a>."
229
  msgstr ""
230
 
231
+ #: includes/aye-display-about.php:42
232
  msgid "YouTube icons are courtesy of <a href=\"http://www.youtube.com/t/creators_downloads\">YouTube</a>. Other icons are by <a href=\"http://p.yusukekamiyamane.com/\">Yusuke Kamiyamane</a>."
233
  msgstr ""
234
 
235
+ #: includes/aye-display-about.php:44
236
  msgid "Support Information"
237
  msgstr ""
238
 
239
+ #: includes/aye-display-about.php:46
240
  msgid "Useful support information and links can be found by clicking on the Help tab at the top of each of the Artiss YouTube Embed administration screens."
241
  msgstr ""
242
 
243
+ #: includes/aye-display-about.php:50
244
  msgid "Stay in Touch"
245
  msgstr ""
246
 
247
+ #: includes/aye-display-about.php:52
248
  msgid "<a href=\"http://www.artiss.co.uk/wp-plugins\">See the full list</a> of Artiss plugins, including beta releases."
249
  msgstr ""
250
 
251
+ #: includes/aye-display-about.php:54
252
  msgid "<a href=\"http://www.twitter.com/artiss_tech\">Follow Artiss.co.uk</a> on Twitter."
253
  msgstr ""
254
 
255
+ #: includes/aye-display-about.php:56
256
  msgid "<a href=\"http://www.artiss.co.uk/feed\">Subscribe</a> to the Artiss.co.uk news feed."
257
  msgstr ""
258
 
 
 
 
 
259
  #: includes/aye-function-calls.php:162
260
  #: includes/aye-function-calls.php:223
261
  #: includes/aye-generate-download-code.php:34
262
+ #: includes/aye-generate-embed-code.php:116
263
  #: includes/aye-generate-shorturl-code.php:34
264
  #: includes/aye-generate-thumbnail-code.php:37
265
  #: includes/aye-generate-transcript-code.php:38
301
  msgid "Embed YouTube Widget."
302
  msgstr ""
303
 
304
+ #: includes/aye-options-general.php:58
305
  #: includes/aye-options-lists.php:26
306
  msgid "Settings Saved."
307
  msgstr ""
308
 
309
+ #: includes/aye-options-general.php:75
310
  msgid "Cache cleared."
311
  msgstr ""
312
 
313
+ #: includes/aye-options-general.php:92
314
  msgid "These are the general settings for Artiss YouTube Embed. Please select <a href=\"admin.php?page=aye-profile-options\">Profiles</a> for default embedding settings."
315
  msgstr ""
316
 
317
+ #: includes/aye-options-general.php:99
318
+ msgid "Remove Adverts"
319
+ msgstr ""
320
+
321
+ #: includes/aye-options-general.php:100
322
+ msgid "If you've <a href=\"http://www.artiss.co.uk/donate\">donated</a>, tick here to remove the adverts."
323
+ msgstr ""
324
+
325
+ #: includes/aye-options-general.php:105
326
  msgid "Embedding"
327
  msgstr ""
328
 
329
+ #: includes/aye-options-general.php:109
330
  msgid "Add Metadata"
331
  msgstr ""
332
 
333
+ #: includes/aye-options-general.php:110
334
  msgid "Allow rich metadata to be added to code. <a href=\"http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-metadata\">Learn more</a>"
335
  msgstr ""
336
 
337
+ #: includes/aye-options-general.php:114
338
  msgid "Comment Embedding"
339
  msgstr ""
340
 
341
+ #: includes/aye-options-general.php:115
342
  msgid "Allow YouTube URLs in comments - will display as embedded videos. <a href=\"http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-comments\">Learn more</a>"
343
  msgstr ""
344
 
345
+ #: includes/aye-options-general.php:119
346
+ #: includes/aye-options-general.php:155
347
+ #: includes/aye-options-general.php:167
348
+ #: includes/aye-options-general.php:188
349
  msgid "Profile to use"
350
  msgstr ""
351
 
352
+ #: includes/aye-options-general.php:126
353
  msgid "Feed"
354
  msgstr ""
355
 
356
+ #: includes/aye-options-general.php:128
357
  msgid "Text link"
358
  msgstr ""
359
 
360
+ #: includes/aye-options-general.php:129
361
  msgid "Thumbnail"
362
  msgstr ""
363
 
364
+ #: includes/aye-options-general.php:130
365
  msgid "Thumbnail &amp; Text Link"
366
  msgstr ""
367
 
368
+ #: includes/aye-options-general.php:131
369
  msgid "Videos cannot be embedded in feeds. Select how you wish them to be shown instead"
370
  msgstr ""
371
 
372
+ #: includes/aye-options-general.php:135
373
  msgid "Thumbnail to use"
374
  msgstr ""
375
 
376
+ #: includes/aye-options-general.php:137
377
  #: includes/aye-shared-functions.php:425
378
  msgid "Default"
379
  msgstr ""
380
 
381
+ #: includes/aye-options-general.php:138
382
  msgid "Default (HQ)"
383
  msgstr ""
384
 
385
+ #: includes/aye-options-general.php:139
386
  msgid "Start"
387
  msgstr ""
388
 
389
+ #: includes/aye-options-general.php:140
390
  msgid "Middle"
391
  msgstr ""
392
 
393
+ #: includes/aye-options-general.php:141
394
  msgid "End"
395
  msgstr ""
396
 
397
+ #: includes/aye-options-general.php:142
398
  msgid "Which thumbnail to use"
399
  msgstr ""
400
 
401
+ #: includes/aye-options-general.php:146
402
  msgid "Alternative Shortcodes"
403
  msgstr ""
404
 
405
+ #: includes/aye-options-general.php:146
406
+ msgid "Specify up to 2 alternative shortcodes to compliment the standard <code>youtube</code> shortcode. <strong>NB: These should be specified without the surrounding square brackets.</strong>"
407
+ msgstr ""
408
+
409
+ #: includes/aye-options-general.php:150
410
  msgid "Alternative Shortcode 1"
411
  msgstr ""
412
 
413
+ #: includes/aye-options-general.php:162
414
  msgid "Alternative Shortcode 2"
415
  msgstr ""
416
 
417
+ #: includes/aye-options-general.php:174
418
  msgid "Migration"
419
  msgstr ""
420
 
421
+ #: includes/aye-options-general.php:174
422
+ msgid "Switch on compatibility with other embedding plugins. For more details on migrating from another plugin, please <a href=\"http://www.artiss.co.uk/artiss-youtube-embed/compatibility\">click here</a>."
423
+ msgstr ""
424
+
425
+ #: includes/aye-options-general.php:178
426
  msgid "Bracket Embedding"
427
  msgstr ""
428
 
429
+ #: includes/aye-options-general.php:179
430
  msgid "Allow embedding using URLs within brackets. Activating impacts performance"
431
  msgstr ""
432
 
433
+ #: includes/aye-options-general.php:183
434
  msgid "Alternative Embedding"
435
  msgstr ""
436
 
437
+ #: includes/aye-options-general.php:184
438
  msgid "Allow all other types of embedding. Activating impacts performance"
439
  msgstr ""
440
 
441
+ #: includes/aye-options-general.php:191
442
  msgid "For above 2 options"
443
  msgstr ""
444
 
445
+ #: includes/aye-options-general.php:195
446
  msgid "Admin Options"
447
  msgstr ""
448
 
449
+ #: includes/aye-options-general.php:199
450
  msgid "Show YouTube Button"
451
  msgstr ""
452
 
453
+ #: includes/aye-options-general.php:200
454
  msgid "Show the YouTube button on the post editor"
455
  msgstr ""
456
 
457
+ #: includes/aye-options-general.php:204
458
  msgid "Add to Admin Bar"
459
  msgstr ""
460
 
461
+ #: includes/aye-options-general.php:205
462
  msgid "Add link to options screen to Admin Bar"
463
  msgstr ""
464
 
465
+ #: includes/aye-options-general.php:209
466
  msgid "Profile &amp; List Sizes"
467
  msgstr ""
468
 
469
+ #: includes/aye-options-general.php:213
470
  msgid "Number of Profiles"
471
  msgstr ""
472
 
473
+ #: includes/aye-options-general.php:214
474
  msgid "Maximum number of profiles"
475
  msgstr ""
476
 
477
+ #: includes/aye-options-general.php:218
478
  msgid "Number of Lists"
479
  msgstr ""
480
 
481
+ #: includes/aye-options-general.php:219
482
  msgid "Maximum number of lists"
483
  msgstr ""
484
 
485
+ #: includes/aye-options-general.php:223
486
  msgid "Performance"
487
  msgstr ""
488
 
489
+ #: includes/aye-options-general.php:227
490
  msgid "Embed Cache"
491
  msgstr ""
492
 
493
+ #: includes/aye-options-general.php:228
494
  msgid "How many hours to retain embed output. 0 to switch off"
495
  msgstr ""
496
 
497
+ #: includes/aye-options-general.php:232
498
  msgid "Video Information Cache"
499
  msgstr ""
500
 
501
+ #: includes/aye-options-general.php:233
502
  msgid "How many hours to retain video information, including it's validity. 0 to switch off"
503
  msgstr ""
504
 
505
+ #: includes/aye-options-general.php:237
506
  msgid "Transcript Cache"
507
  msgstr ""
508
 
509
+ #: includes/aye-options-general.php:238
510
  msgid "How many hours to store transcripts for in cache. 0 to switch off"
511
  msgstr ""
512
 
513
+ #: includes/aye-options-general.php:247
514
  msgid "Clear Cache"
515
  msgstr ""
516
 
517
+ #: includes/aye-options-general.php:248
518
  #, php-format
519
  msgid "Select this option to remove all YouTube Embed cache. You currently have %d cached video(s)"
520
  msgstr ""
521
 
522
+ #: includes/aye-options-general.php:252
523
  msgid "YouTube API"
524
  msgstr ""
525
 
526
+ #: includes/aye-options-general.php:254
527
  msgid "The YouTube API is used to validate video IDs and to determine if it is a video or playlist."
528
  msgstr ""
529
 
530
+ #: includes/aye-options-general.php:258
531
  msgid "API State"
532
  msgstr ""
533
 
534
+ #: includes/aye-options-general.php:260
535
  msgid "API should not be used"
536
  msgstr ""
537
 
538
+ #: includes/aye-options-general.php:261
539
  msgid "HTTP API used and errors are reported"
540
  msgstr ""
541
 
542
+ #: includes/aye-options-general.php:262
543
  msgid "HTTPS API used and errors are reported"
544
  msgstr ""
545
 
546
+ #: includes/aye-options-general.php:263
547
  msgid "HTTP API used and no errors are reported"
548
  msgstr ""
549
 
550
+ #: includes/aye-options-general.php:264
551
  msgid "HTTPS API used and no errors are reported"
552
  msgstr ""
553
 
554
+ #: includes/aye-options-general.php:269
555
  msgid "Error Reporting"
556
  msgstr ""
557
 
558
+ #: includes/aye-options-general.php:271
559
  msgid "Playback errors are within the XHTML source code as comments - parameter errors and other types are displayed on the post output."
560
  msgstr ""
561
 
562
+ #: includes/aye-options-general.php:274
563
  msgid "Video Playback Error Message"
564
  msgstr ""
565
 
566
+ #: includes/aye-options-general.php:275
567
  msgid "This is the message that will be shown on the post"
568
  msgstr ""
569
 
570
+ #: includes/aye-options-general.php:278
571
  msgid "Security"
572
  msgstr ""
573
 
574
+ #: includes/aye-options-general.php:281
575
  msgid "Privacy-Enhanced Mode"
576
  msgstr ""
577
 
578
+ #: includes/aye-options-general.php:282
579
  msgid "When on, the player on this site will not store cookies"
580
  msgstr ""
581
 
582
+ #: includes/aye-options-general.php:285
583
  msgid "Compatability"
584
  msgstr ""
585
 
586
+ #: includes/aye-options-general.php:288
587
  msgid "Allow Frame Border on IFRAME"
588
  msgstr ""
589
 
590
+ #: includes/aye-options-general.php:289
591
  msgid "FRAMEBORDER is not HTML5 compliant"
592
  msgstr ""
593
 
594
+ #: includes/aye-options-general.php:294
595
+ #: includes/aye-options-lists.php:123
596
  #: includes/aye-options-profiles.php:345
597
  msgid "Save Settings"
598
  msgstr ""
605
  msgid "Errors were found with your video list. See the list below for details."
606
  msgstr ""
607
 
608
+ #: includes/aye-options-lists.php:92
609
  msgid "List"
610
  msgstr ""
611
 
612
+ #: includes/aye-options-lists.php:102
613
  msgid "Change list"
614
  msgstr ""
615
 
616
+ #: includes/aye-options-lists.php:105
617
  msgid "These are the options for list "
618
  msgstr ""
619
 
620
+ #: includes/aye-options-lists.php:105
621
  msgid "Update the name, if required, and specify a list of YouTube video IDs. Use the drop-down on the right hand side to swap between lists."
622
  msgstr ""
623
 
624
+ #: includes/aye-options-lists.php:110
625
  msgid "List name"
626
  msgstr ""
627
 
628
+ #: includes/aye-options-lists.php:112
629
  msgid "The name you wish to give this list"
630
  msgstr ""
631
 
632
+ #: includes/aye-options-lists.php:116
633
  msgid "Video IDs (one per line)"
634
  msgstr ""
635
 
636
+ #: includes/aye-options-lists.php:134
637
  #: includes/aye-options-widgets.php:25
638
  msgid "Video ID"
639
  msgstr ""
640
 
641
+ #: includes/aye-options-lists.php:134
642
  #: includes/aye-options-widgets.php:19
643
  msgid "Video Title"
644
  msgstr ""
645
 
646
+ #: includes/aye-options-lists.php:134
647
  msgid "Status"
648
  msgstr ""
649
 
650
+ #: includes/aye-options-lists.php:150
651
  msgid "This is a playlist"
652
  msgstr ""
653
 
654
+ #: includes/aye-options-lists.php:154
655
  msgid "Invalid video ID"
656
  msgstr ""
657
 
658
+ #: includes/aye-options-lists.php:158
659
  msgid "YouTube API error"
660
  msgstr ""
661
 
662
+ #: includes/aye-options-lists.php:161
663
  msgid "Valid video"
664
  msgstr ""
665
 
666
+ #: includes/aye-options-lists.php:179
667
  msgid "The video ID is valid"
668
  msgstr ""
669
 
670
+ #: includes/aye-options-lists.php:182
671
  msgid "The video ID is invalid"
672
  msgstr ""
673
 
674
+ #: includes/aye-options-profiles.php:90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
675
  msgid " Profile Saved."
676
  msgstr ""
677
 
678
+ #: includes/aye-options-profiles.php:115
679
  msgid "Change profile"
680
  msgstr ""
681
 
682
+ #: includes/aye-options-profiles.php:120
683
  msgid "These are the options for the default profile."
684
  msgstr ""
685
 
686
+ #: includes/aye-options-profiles.php:122
687
  #, php-format
688
  msgid "These are the options for profile %s."
689
  msgstr ""
690
 
691
+ #: includes/aye-options-profiles.php:124
692
  msgid "Use the drop-down on the right hand side to swap between profiles."
693
  msgstr ""
694
 
695
+ #: includes/aye-options-profiles.php:130
696
  msgid "Profile name"
697
  msgstr ""
698
 
699
+ #: includes/aye-options-profiles.php:132
700
  msgid "The name you wish to give this profile"
701
  msgstr ""
702
 
703
+ #: includes/aye-options-profiles.php:136
704
  msgid "Video Embed Type"
705
  msgstr ""
706
 
707
+ #: includes/aye-options-profiles.php:137
708
  msgid "The type of player to use for videos."
709
  msgstr ""
710
 
711
+ #: includes/aye-options-profiles.php:138
712
+ #: includes/aye-options-profiles.php:148
713
  #: includes/aye-options-profiles.php:323
714
  #: includes/aye-options-widgets.php:95
715
  msgid "IFRAME"
716
  msgstr ""
717
 
718
+ #: includes/aye-options-profiles.php:138
719
+ msgid "Uses AS3 Flash player, if Flash is available. Alternatively, uses HTML5 player. This is the current YouTube default."
720
  msgstr ""
721
 
722
+ #: includes/aye-options-profiles.php:139
723
+ #: includes/aye-options-profiles.php:149
724
  #: includes/aye-options-profiles.php:324
725
  #: includes/aye-options-widgets.php:97
726
  msgid "OBJECT"
727
  msgstr ""
728
 
729
+ #: includes/aye-options-profiles.php:139
730
  msgid "Use the AS3 Flash player."
731
  msgstr ""
732
 
733
+ #: includes/aye-options-profiles.php:140
734
  #: includes/aye-options-widgets.php:99
735
  msgid "Chromeless"
736
  msgstr ""
737
 
738
+ #: includes/aye-options-profiles.php:140
739
  msgid "Use the <a href=\"http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-chromeless\">Chromeless</a> version of the AS3 Flash Player."
740
  msgstr ""
741
 
742
+ #: includes/aye-options-profiles.php:141
743
+ #: includes/aye-options-profiles.php:361
744
  #: includes/aye-options-widgets.php:101
745
  msgid "EmbedPlus"
746
  msgstr ""
747
 
748
+ #: includes/aye-options-profiles.php:141
749
  msgid "Use <a href=\"http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-embedplus\">EmbedPlus</a>, if Flash is available."
750
  msgstr ""
751
 
752
+ #: includes/aye-options-profiles.php:146
753
  msgid "Playlist Embed Type"
754
  msgstr ""
755
 
756
+ #: includes/aye-options-profiles.php:147
757
  msgid "The type of player to use when showing playlists."
758
  msgstr ""
759
 
760
+ #: includes/aye-options-profiles.php:154
761
  msgid "Options For All Player Types"
762
  msgstr ""
763
 
764
+ #: includes/aye-options-profiles.php:158
765
  #: includes/aye-options-widgets.php:55
766
  msgid "Template"
767
  msgstr ""
768
 
769
+ #: includes/aye-options-profiles.php:159
770
+ msgid "Wrapper for video output. Must include <code>%video%</code> tag to show video position"
771
+ msgstr ""
772
+
773
+ #: includes/aye-options-profiles.php:163
774
  #: includes/aye-options-widgets.php:61
775
  msgid "Style"
776
  msgstr ""
777
 
778
+ #: includes/aye-options-profiles.php:164
779
+ msgid "CSS elements to apply to video"
780
+ msgstr ""
781
+
782
+ #: includes/aye-options-profiles.php:170
783
  msgid "Video size"
784
  msgstr ""
785
 
786
+ #: includes/aye-options-profiles.php:171
787
  msgid "The width x height of the video, in pixels"
788
  msgstr ""
789
 
790
+ #: includes/aye-options-profiles.php:175
791
  msgid "Default Sizes"
792
  msgstr ""
793
 
794
+ #: includes/aye-options-profiles.php:177
795
  msgid "Use above sizes"
796
  msgstr ""
797
 
798
+ #: includes/aye-options-profiles.php:183
799
  msgid "Select one of these default sizes to override the above video sizes"
800
  msgstr ""
801
 
802
+ #: includes/aye-options-profiles.php:187
803
  #: includes/aye-options-widgets.php:79
804
  msgid "Dynamically Resize"
805
  msgstr ""
806
 
807
+ #: includes/aye-options-profiles.php:188
808
  msgid "Show full width and resize with the browser"
809
  msgstr ""
810
 
811
+ #: includes/aye-options-profiles.php:192
812
  msgid "Set Maximum Size"
813
  msgstr ""
814
 
815
+ #: includes/aye-options-profiles.php:193
816
  msgid "Use above width to define maximum size"
817
  msgstr ""
818
 
819
+ #: includes/aye-options-profiles.php:200
820
  msgid "Audio Only"
821
  msgstr ""
822
 
823
+ #: includes/aye-options-profiles.php:201
824
  msgid "Only show the toolbar for audio only playback"
825
  msgstr ""
826
 
827
+ #: includes/aye-options-profiles.php:205
828
  #: includes/aye-options-widgets.php:107
829
  msgid "Autoplay"
830
  msgstr ""
831
 
832
+ #: includes/aye-options-profiles.php:206
833
  msgid "The video will start playing when the player loads"
834
  msgstr ""
835
 
836
+ #: includes/aye-options-profiles.php:211
837
  msgid "Options Not Supported by EmbedPlus"
838
  msgstr ""
839
 
840
+ #: includes/aye-options-profiles.php:216
841
  msgid "Auto hide"
842
  msgstr ""
843
 
844
+ #: includes/aye-options-profiles.php:218
845
  msgid "Controls &amp; progress bar remain visible"
846
  msgstr ""
847
 
848
+ #: includes/aye-options-profiles.php:219
849
  msgid "Controls &amp; progress bar fade out"
850
  msgstr ""
851
 
852
+ #: includes/aye-options-profiles.php:220
853
  msgid "Progress bar fades"
854
  msgstr ""
855
 
856
+ #: includes/aye-options-profiles.php:221
857
  msgid "Video controls will automatically hide after a video begins playing"
858
  msgstr ""
859
 
860
+ #: includes/aye-options-profiles.php:225
861
  msgid "Controls"
862
  msgstr ""
863
 
864
+ #: includes/aye-options-profiles.php:226
865
  msgid "Video player controls will display"
866
  msgstr ""
867
 
868
+ #: includes/aye-options-profiles.php:231
 
 
 
 
869
  msgid "Use SSL? <a href=\"http://www.google.com/support/youtube/bin/answer.py?answer=171780&expand=UseHTTPS#HTTPS\">Read more</a>"
870
  msgstr ""
871
 
872
+ #: includes/aye-options-profiles.php:235
873
  #: includes/aye-options-widgets.php:153
874
  msgid "Loop Video"
875
  msgstr ""
876
 
877
+ #: includes/aye-options-profiles.php:236
878
  msgid "Play the initial video again and again. In the case of a playlist, this will play the entire playlist and then start again at the first video"
879
  msgstr ""
880
 
881
+ #: includes/aye-options-profiles.php:240
882
  msgid "Information"
883
  msgstr ""
884
 
885
+ #: includes/aye-options-profiles.php:241
886
+ msgid "Display the video title and uploader before the video starts. If displaying a playlist this will show video thumbnails"
887
+ msgstr ""
888
+
889
+ #: includes/aye-options-profiles.php:245
890
+ msgid "Related Videos"
891
  msgstr ""
892
 
893
+ #: includes/aye-options-profiles.php:246
894
+ msgid "Load related videos once playback starts. Also toggles the search option."
895
+ msgstr ""
896
+
897
+ #: includes/aye-options-profiles.php:250
898
  msgid "Theme"
899
  msgstr ""
900
 
901
+ #: includes/aye-options-profiles.php:252
902
  msgid "Dark"
903
  msgstr ""
904
 
905
+ #: includes/aye-options-profiles.php:253
906
  msgid "Light"
907
  msgstr ""
908
 
909
+ #: includes/aye-options-profiles.php:254
910
  msgid "Display player controls within a dark or light control bar"
911
  msgstr ""
912
 
913
+ #: includes/aye-options-profiles.php:258
914
+ msgid "Progress Bar Colour"
915
  msgstr ""
916
 
917
  #: includes/aye-options-profiles.php:260
918
+ msgid "Red"
919
  msgstr ""
920
 
921
  #: includes/aye-options-profiles.php:261
922
+ msgid "White (desaturated)"
923
  msgstr ""
924
 
925
+ #: includes/aye-options-profiles.php:262
926
+ msgid "The colour that will be used in the player's video progress bar to highlight the amount of the video that's already been seen"
927
  msgstr ""
928
 
929
+ #: includes/aye-options-profiles.php:267
930
+ msgid "Options for AS3 Player"
931
  msgstr ""
932
 
933
+ #: includes/aye-options-profiles.php:268
934
+ msgid "The following options are not supported if using EmbedPlus or if the IFRAME player uses HTML5."
935
  msgstr ""
936
 
937
+ #: includes/aye-options-profiles.php:272
938
+ msgid "Annotations"
939
  msgstr ""
940
 
941
+ #: includes/aye-options-profiles.php:273
942
+ msgid "Video annotations are shown by default"
943
  msgstr ""
944
 
945
+ #: includes/aye-options-profiles.php:277
946
+ msgid "Closed Captions"
947
  msgstr ""
948
 
949
+ #: includes/aye-options-profiles.php:278
950
+ msgid "Show closed captions (subtitles) by default, even if the user has turned captions off"
951
  msgstr ""
952
 
953
+ #: includes/aye-options-profiles.php:282
954
+ msgid "Disable Keyboard"
955
  msgstr ""
956
 
957
+ #: includes/aye-options-profiles.php:283
958
+ msgid "Disable the player keyboard controls"
959
  msgstr ""
960
 
961
+ #: includes/aye-options-profiles.php:287
962
+ msgid "Fullscreen"
963
  msgstr ""
964
 
965
+ #: includes/aye-options-profiles.php:288
966
+ msgid "A button will allow the viewer to watch the video fullscreen"
967
  msgstr ""
968
 
969
  #: includes/aye-options-profiles.php:292
970
+ msgid "Link to YouTube"
971
  msgstr ""
972
 
973
  #: includes/aye-options-profiles.php:293
974
+ msgid "Video links back to YouTube when clicked"
975
  msgstr ""
976
 
977
+ #: includes/aye-options-profiles.php:297
978
+ msgid "Modest Branding"
979
  msgstr ""
980
 
981
  #: includes/aye-options-profiles.php:298
982
+ msgid "Reduce branding on video."
 
 
 
 
983
  msgstr ""
984
 
985
  #: includes/aye-options-profiles.php:303
1050
  msgid "Would you like the video below to be yours? <a href=\"http://www.artiss.co.uk/contact\">Contact me</a> for sponsorship information."
1051
  msgstr ""
1052
 
1053
+ #: includes/aye-options-profiles.php:356
1054
  msgid "YouTube Video Sample"
1055
  msgstr ""
1056
 
1057
+ #: includes/aye-options-profiles.php:357
1058
  msgid "This uses the above settings, once they have been saved. <b>Would you like this to be your video? If so, <a href=\"http://www.artiss.co.uk/contact\">contact me</a>!</b>"
1059
  msgstr ""
1060
 
1061
+ #: includes/aye-options-profiles.php:358
1062
  msgid "Use the drop-down below to change which parameters the video uses - press the Change Video button to update it."
1063
  msgstr ""
1064
 
1065
+ #: includes/aye-options-profiles.php:360
1066
  msgid "Standard"
1067
  msgstr ""
1068
 
1069
+ #: includes/aye-options-profiles.php:362
1070
  msgid "3D"
1071
  msgstr ""
1072
 
1073
+ #: includes/aye-options-profiles.php:363
1074
  msgid "Playlist"
1075
  msgstr ""
1076
 
1077
+ #: includes/aye-options-profiles.php:366
1078
  msgid "Change video"
1079
  msgstr ""
1080
 
1159
  msgid "Play one random video"
1160
  msgstr ""
1161
 
1162
+ #: includes/aye-set-defaults.php:69
1163
+ msgid "The video cannot be shown at the moment. Please try again later."
1164
+ msgstr ""
1165
+
1166
  #: includes/aye-shared-functions.php:184
1167
  #, php-format
1168
  msgid "An error occurred accessing the YouTube API for video ID %s - %s"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://artiss.co.uk/donate
4
  Tags: admin, annotations, artiss, automatic, editor, embed, embedding, embedplus, flash, flv, google, hd, height, iframe, manage, media, plugin, page, play, playlist, post, profile, responsive, search, sidebar, simple, smart, url, user, valid, video, widget, width, xhtml, youtube, youtuber
5
  Requires at least: 2.9
6
  Tested up to: 3.4.1
7
- Stable tag: 2.5.4
8
 
9
  A simple to use method of embedding YouTube videos into your posts and pages but with powerful features for those that need them.
10
 
@@ -69,21 +69,21 @@ The following parameters work with all embed types:
69
  The following parameters will not work with EmbedPlus:
70
 
71
  * **autohide** - 0, 1 or 2, this parameter indicates whether the video controls will automatically hide after a video begins playing. The default behaviour, a value of 2, is for the video progress bar to fade out while the player controls (play button, volume control, etc.) remain visible. If this parameter is set to 0, the video progress bar and the video player controls will be visible throughout the video. If this parameter is set to 1, then the video progress bar and the player controls will slide out of view a couple of seconds after the video starts playing. They will only reappear if the user moves her mouse over the video player or presses a key on her keyboard.
 
72
  * **controls** - yes or no, should the controls be shown?
73
  * **https** - yes or no, whether to use HTTPS for the video
74
- * **info** - yes or no, show video information
75
  * **loop** - yes or no, whether to start the video again once it ends
 
76
  * **theme** - dark or light, display player controls (like a 'play' button or volume control) within a dark or light control bar
77
 
78
  The following parameters will not work with EmbedPlus or if IFRAME uses HTML5:
79
 
80
  * **annotation** - yes or no, this determines if annotations are shown
81
  * **cc** - yes or no, decided whether closed captions (subtitles) are displayed
82
- * **color** - white or red, the colour of the progress bar (see the FAQ about having a white progress bar with the light theme)
83
  * **disablekb** - yes or no, disable keyboard controls
84
  * **fullscreen** - yes or no, this will add the fullscreen button to the toolbar. This also works with EmbedPlus.
85
  * **link** - yes or no, link video to YouTube
86
- * **related** - yes or no, show related videos
87
  * **search** - yes or no, create a playlist based on a search word. The search word should be specified instead of a video ID. See "Automatically Generate Playlists" option for more details
88
  * **user** - yes or no, create a playlist based on a user's uploads. The search word should be specified instead of a video ID. See "Automatically Generate Playlists" option for more details
89
 
@@ -427,12 +427,23 @@ Although I attempt to keep with PHP 4 compatibility there are no guarantees of t
427
  2. The main options screen
428
  3. The profiles screen
429
  4. The lists screen - videos have been added and validated. The drop-down help is also shown
430
- 5. The About screen
431
- 6. The default widget options
432
- 7. The default visual editor options with the YouTube Embed button
433
 
434
  == Changelog ==
435
 
 
 
 
 
 
 
 
 
 
 
 
 
436
  = 2.5.4 =
437
  * Bug: Fixed bug that prevented some fields in options screens to not save
438
 
@@ -611,6 +622,9 @@ Although I attempt to keep with PHP 4 compatibility there are no guarantees of t
611
 
612
  == Upgrade Notice ==
613
 
 
 
 
614
  = 2.5.4 =
615
  * Upgrade to fix an issue with options not updating
616
 
4
  Tags: admin, annotations, artiss, automatic, editor, embed, embedding, embedplus, flash, flv, google, hd, height, iframe, manage, media, plugin, page, play, playlist, post, profile, responsive, search, sidebar, simple, smart, url, user, valid, video, widget, width, xhtml, youtube, youtuber
5
  Requires at least: 2.9
6
  Tested up to: 3.4.1
7
+ Stable tag: 2.5.5
8
 
9
  A simple to use method of embedding YouTube videos into your posts and pages but with powerful features for those that need them.
10
 
69
  The following parameters will not work with EmbedPlus:
70
 
71
  * **autohide** - 0, 1 or 2, this parameter indicates whether the video controls will automatically hide after a video begins playing. The default behaviour, a value of 2, is for the video progress bar to fade out while the player controls (play button, volume control, etc.) remain visible. If this parameter is set to 0, the video progress bar and the video player controls will be visible throughout the video. If this parameter is set to 1, then the video progress bar and the player controls will slide out of view a couple of seconds after the video starts playing. They will only reappear if the user moves her mouse over the video player or presses a key on her keyboard.
72
+ * **color** - white or red, the colour of the progress bar (see the FAQ about having a white progress bar with the light theme)
73
  * **controls** - yes or no, should the controls be shown?
74
  * **https** - yes or no, whether to use HTTPS for the video
75
+ * **info** - yes or no, show video information. If displaying a playlist this will show video thumbnails
76
  * **loop** - yes or no, whether to start the video again once it ends
77
+ * **related** - yes or no, show related videos
78
  * **theme** - dark or light, display player controls (like a 'play' button or volume control) within a dark or light control bar
79
 
80
  The following parameters will not work with EmbedPlus or if IFRAME uses HTML5:
81
 
82
  * **annotation** - yes or no, this determines if annotations are shown
83
  * **cc** - yes or no, decided whether closed captions (subtitles) are displayed
 
84
  * **disablekb** - yes or no, disable keyboard controls
85
  * **fullscreen** - yes or no, this will add the fullscreen button to the toolbar. This also works with EmbedPlus.
86
  * **link** - yes or no, link video to YouTube
 
87
  * **search** - yes or no, create a playlist based on a search word. The search word should be specified instead of a video ID. See "Automatically Generate Playlists" option for more details
88
  * **user** - yes or no, create a playlist based on a user's uploads. The search word should be specified instead of a video ID. See "Automatically Generate Playlists" option for more details
89
 
427
  2. The main options screen
428
  3. The profiles screen
429
  4. The lists screen - videos have been added and validated. The drop-down help is also shown
430
+ 5. The default widget options
431
+ 6. The default visual editor options with the YouTube Embed button
 
432
 
433
  == Changelog ==
434
 
435
+ = 2.5.5 =
436
+ * Maintenance: Updated sponsorship - now includes option to switch off if user has donated
437
+ * Maintenance: Updated options screen to reflect the fact that the `related` and `color` parameters are now supported by the HTML5 player
438
+ * Maintenance: Updated options screen to show that the `info` parameter, if used alongside a playlist will show thumbnails of the videos
439
+ * Maintenance: Removed redundant GA code, which was never used
440
+ * Maintenance: Combined scripts
441
+ * Bug: Fixed internationalisation
442
+ * Bug: Fixed output of video information on the Lists option screen
443
+ * Bug: Modified cache key so that length does not exceed MySQL field maximum
444
+ * Bug: Added close anchor for media meta - causes unclosed anchor under IE9 (thanks to Marcel Bootsman for identifying this)
445
+ * Bug: Responsive video was not working on a demonstration video in Profile screen
446
+
447
  = 2.5.4 =
448
  * Bug: Fixed bug that prevented some fields in options screens to not save
449
 
622
 
623
  == Upgrade Notice ==
624
 
625
+ = 2.5.5 =
626
+ * Upgrade for various bug fixes and maintenance updates
627
+
628
  = 2.5.4 =
629
  * Upgrade to fix an issue with options not updating
630
 
screenshot-2.png CHANGED
Binary file
screenshot-3.png CHANGED
Binary file
screenshot-4.png CHANGED
Binary file
screenshot-5.png CHANGED
Binary file
screenshot-6.png CHANGED
Binary file
screenshot-7.png DELETED
Binary file
youtube-embed.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Artiss YouTube Embed
4
  Plugin URI: http://www.artiss.co.uk/artiss-youtube-embed
5
  Description: Embed YouTube Videos in WordPress
6
- Version: 2.5.4
7
  Author: David Artiss
8
  Author URI: http://www.artiss.co.uk
9
  */
@@ -17,7 +17,7 @@ Author URI: http://www.artiss.co.uk
17
  * @since 2.0
18
  */
19
 
20
- define( 'youtube_embed_version', '2.5.4' );
21
 
22
  $functions_dir = WP_PLUGIN_DIR . '/youtube-embed/includes/';
23
 
@@ -35,6 +35,12 @@ include_once( $functions_dir . 'aye-generate-embed-code.php' ); // Generate Y
35
 
36
  if ( is_admin() ) {
37
 
 
 
 
 
 
 
38
  include_once( $functions_dir . 'aye-admin-config.php' ); // Administration configuration
39
 
40
  include_once( $functions_dir . 'aye-add-mce-button.php' ); // Editor button
3
  Plugin Name: Artiss YouTube Embed
4
  Plugin URI: http://www.artiss.co.uk/artiss-youtube-embed
5
  Description: Embed YouTube Videos in WordPress
6
+ Version: 2.5.5
7
  Author: David Artiss
8
  Author URI: http://www.artiss.co.uk
9
  */
17
  * @since 2.0
18
  */
19
 
20
+ define( 'youtube_embed_version', '2.5.5' );
21
 
22
  $functions_dir = WP_PLUGIN_DIR . '/youtube-embed/includes/';
23
 
35
 
36
  if ( is_admin() ) {
37
 
38
+ if ( !function_exists( 'artiss_plugin_ads' ) ) {
39
+
40
+ include_once( $functions_dir . 'artiss-plugin-ads.php' ); // Option screen ads
41
+
42
+ }
43
+
44
  include_once( $functions_dir . 'aye-admin-config.php' ); // Administration configuration
45
 
46
  include_once( $functions_dir . 'aye-add-mce-button.php' ); // Editor button