WP Video Lightbox - Version 1.7.8

Version Description

  • Added "alt" parameter in the shortcode that can be used to describe the anchor image.
Download this release

Release Info

Developer wptipsntricks
Plugin Icon 128x128 WP Video Lightbox
Version 1.7.8
Comparing to
See all releases

Code changes from version 1.7.6 to 1.7.8

languages/wp-video-lightbox.mo ADDED
Binary file
languages/wp-video-lightbox.pot ADDED
@@ -0,0 +1,294 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP Video Lightbox\n"
4
+ "POT-Creation-Date: 2015-12-07 16:02+1000\n"
5
+ "PO-Revision-Date: 2015-12-07 16:03+1000\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 1.5.5\n"
12
+ "X-Poedit-KeywordsList: _e;__\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SearchPath-0: .\n"
15
+
16
+ #: misc_functions.php:16
17
+ msgid ""
18
+ "Error! You must specify a value for the Video ID, Width, Height and Anchor "
19
+ "parameters to use this shortcode!"
20
+ msgstr ""
21
+
22
+ #: misc_functions.php:19 misc_functions.php:53
23
+ msgid ""
24
+ "Error! You must specify an anchor parameter if you are not using the "
25
+ "auto_thumb option."
26
+ msgstr ""
27
+
28
+ #: misc_functions.php:50
29
+ msgid ""
30
+ "Error! You must specify a value for the Video ID, Width, Height parameters "
31
+ "to use this shortcode!"
32
+ msgstr ""
33
+
34
+ #: wpvl-settings.php:11
35
+ msgid "Video Lightbox Settings"
36
+ msgstr ""
37
+
38
+ #: wpvl-settings.php:11
39
+ msgid "Video Lightbox"
40
+ msgstr ""
41
+
42
+ #: wpvl-settings.php:17
43
+ msgid "General"
44
+ msgstr ""
45
+
46
+ #: wpvl-settings.php:18
47
+ msgid "prettyPhoto"
48
+ msgstr ""
49
+
50
+ #: wpvl-settings.php:73
51
+ msgid "prettyPhoto Settings Updated!"
52
+ msgstr ""
53
+
54
+ #: wpvl-settings.php:79 wpvl-settings.php:149
55
+ msgid ""
56
+ "For more information, updates, detailed documentation and video tutorial, "
57
+ "please visit:"
58
+ msgstr ""
59
+
60
+ #: wpvl-settings.php:80 wpvl-settings.php:150
61
+ msgid "WP Video Lightbox Homepage"
62
+ msgstr ""
63
+
64
+ #: wpvl-settings.php:91 wpvl-settings.php:92
65
+ msgid "Enable jQuery"
66
+ msgstr ""
67
+
68
+ #: wpvl-settings.php:94
69
+ msgid "Check this option if you want to enable jQuery library"
70
+ msgstr ""
71
+
72
+ #: wpvl-settings.php:102 wpvl-settings.php:341
73
+ msgid "Save Changes"
74
+ msgstr ""
75
+
76
+ #: wpvl-settings.php:161 wpvl-settings.php:162
77
+ msgid "Enable prettyPhoto"
78
+ msgstr ""
79
+
80
+ #: wpvl-settings.php:164
81
+ msgid "Check this option if you want to enable prettyPhoto library"
82
+ msgstr ""
83
+
84
+ #: wpvl-settings.php:169
85
+ msgid "Animation speed"
86
+ msgstr ""
87
+
88
+ #: wpvl-settings.php:172
89
+ msgid "Fast"
90
+ msgstr ""
91
+
92
+ #: wpvl-settings.php:173
93
+ msgid "Slow"
94
+ msgstr ""
95
+
96
+ #: wpvl-settings.php:174
97
+ msgid "Normal"
98
+ msgstr ""
99
+
100
+ #: wpvl-settings.php:177
101
+ msgid "fast / slow / normal [default: fast]"
102
+ msgstr ""
103
+
104
+ #: wpvl-settings.php:182
105
+ msgid "Slideshow"
106
+ msgstr ""
107
+
108
+ #: wpvl-settings.php:184
109
+ #, php-format
110
+ msgid "%s OR interval time in ms [default: %s]"
111
+ msgstr ""
112
+
113
+ #: wpvl-settings.php:188 wpvl-settings.php:189
114
+ msgid "Autoplay slideshow"
115
+ msgstr ""
116
+
117
+ #: wpvl-settings.php:191
118
+ msgid "true / false [default: false]"
119
+ msgstr ""
120
+
121
+ #: wpvl-settings.php:196
122
+ msgid "Opacity"
123
+ msgstr ""
124
+
125
+ #: wpvl-settings.php:198
126
+ #, php-format
127
+ msgid "Value between %s and %s [default: %s]"
128
+ msgstr ""
129
+
130
+ #: wpvl-settings.php:202 wpvl-settings.php:203
131
+ msgid "Show title"
132
+ msgstr ""
133
+
134
+ #: wpvl-settings.php:205
135
+ msgid "true / false [default: true]"
136
+ msgstr ""
137
+
138
+ #: wpvl-settings.php:210 wpvl-settings.php:211
139
+ msgid "Allow resize"
140
+ msgstr ""
141
+
142
+ #: wpvl-settings.php:213
143
+ msgid "Resize the photos bigger than viewport. true / false [default: true]"
144
+ msgstr ""
145
+
146
+ #: wpvl-settings.php:218 wpvl-settings.php:219
147
+ msgid "Allow expand"
148
+ msgstr ""
149
+
150
+ #: wpvl-settings.php:221
151
+ msgid "Allow the user to expand a resized image. true / false [default: true]"
152
+ msgstr ""
153
+
154
+ #: wpvl-settings.php:226
155
+ msgid "Default width"
156
+ msgstr ""
157
+
158
+ #: wpvl-settings.php:228 wpvl-settings.php:234
159
+ #, php-format
160
+ msgid "[default: %s]"
161
+ msgstr ""
162
+
163
+ #: wpvl-settings.php:232
164
+ msgid "Default height"
165
+ msgstr ""
166
+
167
+ #: wpvl-settings.php:238
168
+ msgid "Counter separator label"
169
+ msgstr ""
170
+
171
+ #: wpvl-settings.php:240
172
+ #, php-format
173
+ msgid "The separator for the gallery counter 1 \"of\" 2 [default: %s]"
174
+ msgstr ""
175
+
176
+ #: wpvl-settings.php:244
177
+ msgid "Theme"
178
+ msgstr ""
179
+
180
+ #: wpvl-settings.php:247
181
+ msgid "Default"
182
+ msgstr ""
183
+
184
+ #: wpvl-settings.php:248
185
+ msgid "Light Rounded"
186
+ msgstr ""
187
+
188
+ #: wpvl-settings.php:249
189
+ msgid "Dark Rounded"
190
+ msgstr ""
191
+
192
+ #: wpvl-settings.php:250
193
+ msgid "Light Square"
194
+ msgstr ""
195
+
196
+ #: wpvl-settings.php:251
197
+ msgid "Dark Square"
198
+ msgstr ""
199
+
200
+ #: wpvl-settings.php:252
201
+ msgid "Facebook"
202
+ msgstr ""
203
+
204
+ #: wpvl-settings.php:255
205
+ msgid "Select a theme for the lightbox window"
206
+ msgstr ""
207
+
208
+ #: wpvl-settings.php:260
209
+ msgid "Horizontal padding"
210
+ msgstr ""
211
+
212
+ #: wpvl-settings.php:262
213
+ #, php-format
214
+ msgid "The padding on each side of the picture [default: %s]"
215
+ msgstr ""
216
+
217
+ #: wpvl-settings.php:269
218
+ msgid ""
219
+ "Hides all the flash objects on a page, set to TRUE if flash appears over "
220
+ "prettyPhoto [default: false]"
221
+ msgstr ""
222
+
223
+ #: wpvl-settings.php:274
224
+ msgid "wmode"
225
+ msgstr ""
226
+
227
+ #: wpvl-settings.php:277
228
+ msgid "opaque"
229
+ msgstr ""
230
+
231
+ #: wpvl-settings.php:279
232
+ msgid "Set the flash wmode attribute [default: opaque]"
233
+ msgstr ""
234
+
235
+ #: wpvl-settings.php:284 wpvl-settings.php:285
236
+ msgid "Autoplay"
237
+ msgstr ""
238
+
239
+ #: wpvl-settings.php:287
240
+ msgid "Automatically start videos: true / false [default: true]"
241
+ msgstr ""
242
+
243
+ #: wpvl-settings.php:292 wpvl-settings.php:293
244
+ msgid "Modal"
245
+ msgstr ""
246
+
247
+ #: wpvl-settings.php:295
248
+ msgid ""
249
+ "If set to true, only the close button will close the window [default: false]"
250
+ msgstr ""
251
+
252
+ #: wpvl-settings.php:300 wpvl-settings.php:301
253
+ msgid "Deeplinking"
254
+ msgstr ""
255
+
256
+ #: wpvl-settings.php:303
257
+ msgid ""
258
+ "Allow prettyPhoto to update the url to enable deeplinking. [default: true]"
259
+ msgstr ""
260
+
261
+ #: wpvl-settings.php:308 wpvl-settings.php:309
262
+ msgid "Overlay gallery"
263
+ msgstr ""
264
+
265
+ #: wpvl-settings.php:311
266
+ msgid ""
267
+ "If set to true, a gallery will overlay the fullscreen image on mouse over "
268
+ "[default: true]"
269
+ msgstr ""
270
+
271
+ #: wpvl-settings.php:316
272
+ msgid "Overlay gallery max"
273
+ msgstr ""
274
+
275
+ #: wpvl-settings.php:318
276
+ #, php-format
277
+ msgid "Maximum number of pictures in the overlay gallery [default: %s]"
278
+ msgstr ""
279
+
280
+ #: wpvl-settings.php:322 wpvl-settings.php:323
281
+ msgid "Keyboard shortcuts"
282
+ msgstr ""
283
+
284
+ #: wpvl-settings.php:325
285
+ msgid "Set to false if you open forms inside prettyPhoto [default: true]"
286
+ msgstr ""
287
+
288
+ #: wpvl-settings.php:330 wpvl-settings.php:331
289
+ msgid "IE6 fallback"
290
+ msgstr ""
291
+
292
+ #: wpvl-settings.php:333
293
+ msgid "compatibility fallback for IE6 [default: true]"
294
+ msgstr ""
misc_functions.php CHANGED
@@ -9,19 +9,20 @@ function wp_vid_lightbox_vimeo5_handler($atts)
9
  'width' => '',
10
  'height' => '',
11
  'description' => '',
12
- 'anchor' => '',
 
13
  'auto_thumb' => '',
14
  ), $atts));
15
  if(empty($video_id) || empty($width) || empty($height)){
16
- return "<p>Error! You must specify a value for the Video ID, Width, Height and Anchor parameters to use this shortcode!</p>";
17
  }
18
  if(empty($auto_thumb) && empty($anchor)){
19
- return "<p>Error! You must specify an anchor parameter if you are not using the auto_thumb option.</p>";
20
  }
21
 
22
  $atts['vid_type'] = "vimeo";
23
  if (preg_match("/http/", $anchor)){ // Use the image as the anchor
24
- $anchor_replacement = '<img src="'.$anchor.'" class="video_lightbox_anchor_image" alt="" />';
25
  }
26
  else if($auto_thumb == "1")
27
  {
@@ -47,10 +48,10 @@ function wp_vid_lightbox_youtube_handler($atts)
47
  'auto_thumb' => '',
48
  ), $atts));
49
  if(empty($video_id) || empty($width) || empty($height)){
50
- return "<p>Error! You must specify a value for the Video ID, Width, Height parameters to use this shortcode!</p>";
51
  }
52
  if(empty($auto_thumb) && empty($anchor)){
53
- return "<p>Error! You must specify an anchor parameter if you are not using the auto_thumb option.</p>";
54
  }
55
 
56
  $atts['vid_type'] = "youtube";
@@ -74,12 +75,15 @@ function wp_vid_lightbox_get_auto_thumb($atts)
74
  $video_id = $atts['video_id'];
75
  $pieces = explode("&", $video_id);
76
  $video_id = $pieces[0];
77
-
 
 
 
78
  $anchor_replacement = "";
79
  if($atts['vid_type']=="youtube")
80
  {
81
  $anchor_replacement = '<div class="wpvl_auto_thumb_box_wrapper"><div class="wpvl_auto_thumb_box">';
82
- $anchor_replacement .= '<img src="https://img.youtube.com/vi/'.$video_id.'/0.jpg" class="video_lightbox_auto_anchor_image" alt="" />';
83
  $anchor_replacement .= '<div class="wpvl_auto_thumb_play"><img src="'.WP_VID_LIGHTBOX_URL.'/images/play.png" class="wpvl_playbutton" /></div>';
84
  $anchor_replacement .= '</div></div>';
85
  }
@@ -89,7 +93,7 @@ function wp_vid_lightbox_get_auto_thumb($atts)
89
  $thumb = $VideoInfo['thumbnail_medium'];
90
  //print_r($VideoInfo);
91
  $anchor_replacement = '<div class="wpvl_auto_thumb_box_wrapper"><div class="wpvl_auto_thumb_box">';
92
- $anchor_replacement .= '<img src="'.$thumb.'" class="video_lightbox_auto_anchor_image" alt="" />';
93
  $anchor_replacement .= '<div class="wpvl_auto_thumb_play"><img src="'.WP_VID_LIGHTBOX_URL.'/images/play.png" class="wpvl_playbutton" /></div>';
94
  $anchor_replacement .= '</div></div>';
95
  }
9
  'width' => '',
10
  'height' => '',
11
  'description' => '',
12
+ 'anchor' => '',
13
+ 'alt' => '',
14
  'auto_thumb' => '',
15
  ), $atts));
16
  if(empty($video_id) || empty($width) || empty($height)){
17
+ return '<p>'.__('Error! You must specify a value for the Video ID, Width, Height and Anchor parameters to use this shortcode!', 'wp-video-lightbox').'</p>';
18
  }
19
  if(empty($auto_thumb) && empty($anchor)){
20
+ return '<p>'.__('Error! You must specify an anchor parameter if you are not using the auto_thumb option.', 'wp-video-lightbox').'</p>';
21
  }
22
 
23
  $atts['vid_type'] = "vimeo";
24
  if (preg_match("/http/", $anchor)){ // Use the image as the anchor
25
+ $anchor_replacement = '<img src="'.$anchor.'" class="video_lightbox_anchor_image" alt="'.$alt.'" />';
26
  }
27
  else if($auto_thumb == "1")
28
  {
48
  'auto_thumb' => '',
49
  ), $atts));
50
  if(empty($video_id) || empty($width) || empty($height)){
51
+ return '<p>'.__('Error! You must specify a value for the Video ID, Width, Height parameters to use this shortcode!', 'wp-video-lightbox').'</p>';
52
  }
53
  if(empty($auto_thumb) && empty($anchor)){
54
+ return '<p>'.__('Error! You must specify an anchor parameter if you are not using the auto_thumb option.', 'wp-video-lightbox').'</p>';
55
  }
56
 
57
  $atts['vid_type'] = "youtube";
75
  $video_id = $atts['video_id'];
76
  $pieces = explode("&", $video_id);
77
  $video_id = $pieces[0];
78
+ $alt = '';
79
+ if(isset($atts['alt']) && !empty($atts['alt'])){
80
+ $alt = $atts['alt'];
81
+ }
82
  $anchor_replacement = "";
83
  if($atts['vid_type']=="youtube")
84
  {
85
  $anchor_replacement = '<div class="wpvl_auto_thumb_box_wrapper"><div class="wpvl_auto_thumb_box">';
86
+ $anchor_replacement .= '<img src="https://img.youtube.com/vi/'.$video_id.'/0.jpg" class="video_lightbox_auto_anchor_image" alt="'.$alt.'" />';
87
  $anchor_replacement .= '<div class="wpvl_auto_thumb_play"><img src="'.WP_VID_LIGHTBOX_URL.'/images/play.png" class="wpvl_playbutton" /></div>';
88
  $anchor_replacement .= '</div></div>';
89
  }
93
  $thumb = $VideoInfo['thumbnail_medium'];
94
  //print_r($VideoInfo);
95
  $anchor_replacement = '<div class="wpvl_auto_thumb_box_wrapper"><div class="wpvl_auto_thumb_box">';
96
+ $anchor_replacement .= '<img src="'.$thumb.'" class="video_lightbox_auto_anchor_image" alt="'.$alt.'" />';
97
  $anchor_replacement .= '<div class="wpvl_auto_thumb_play"><img src="'.WP_VID_LIGHTBOX_URL.'/images/play.png" class="wpvl_playbutton" /></div>';
98
  $anchor_replacement .= '</div></div>';
99
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Tips and Tricks HQ, Ruhul Amin, wptipsntricks
3
  Donate link: https://www.tipsandtricks-hq.com/
4
  Tags: wordpress lightbox, wordpress video lightbox, video lightbox, wp video lightbox, wordpress video embed, add video to wordpress, gallery, image, images, lightbox, lightview, overlay, photo, photos, picture, video
5
  Requires at least: 3.0
6
- Tested up to: 4.3
7
- Stable tag: 1.7.6
8
  License: GPLv2 or later
9
 
10
  Very easy to use WordPress lightbox plugin to display YouTube and Vimeo videos in an elegant lightbox overlay.
@@ -33,6 +33,14 @@ You can embed a YouTube video using the following shortcode in a WordPress post
33
 
34
  You need to replace the value of "video_id" with your actual YouTube video ID. You can also control the size of the lightbox window by customizing the width and height parameters.
35
 
 
 
 
 
 
 
 
 
36
  = Features/Settings Configuration =
37
 
38
  Once you have installed the plugin you can configure some options to customize the popup. The settings menu can be accessed from "Settings->Video Lightbox->prettyPhoto".
@@ -104,6 +112,13 @@ None
104
 
105
  == Changelog ==
106
 
 
 
 
 
 
 
 
107
  = 1.7.6 =
108
  * Video Lightbox is now compatible with WordPress 4.3.
109
 
3
  Donate link: https://www.tipsandtricks-hq.com/
4
  Tags: wordpress lightbox, wordpress video lightbox, video lightbox, wp video lightbox, wordpress video embed, add video to wordpress, gallery, image, images, lightbox, lightview, overlay, photo, photos, picture, video
5
  Requires at least: 3.0
6
+ Tested up to: 4.4
7
+ Stable tag: 1.7.8
8
  License: GPLv2 or later
9
 
10
  Very easy to use WordPress lightbox plugin to display YouTube and Vimeo videos in an elegant lightbox overlay.
33
 
34
  You need to replace the value of "video_id" with your actual YouTube video ID. You can also control the size of the lightbox window by customizing the width and height parameters.
35
 
36
+ = Optimizing the SEO of your Thumbnail Image =
37
+
38
+ When you are using a thumbnail image as the anchor, you can describe it using the "alt" parameter in the shortcode. It helps Search Engines understand what this image is about.
39
+
40
+ `[video_lightbox_youtube video_id="G7z74BvLWUg" width="640" height="480" anchor="http://www.example.com/images/youtube-thumb.jpg" alt="text that describes this image"]`
41
+
42
+ You need to replace the value of "alt" with your own description of the image.
43
+
44
  = Features/Settings Configuration =
45
 
46
  Once you have installed the plugin you can configure some options to customize the popup. The settings menu can be accessed from "Settings->Video Lightbox->prettyPhoto".
112
 
113
  == Changelog ==
114
 
115
+ = 1.7.8 =
116
+ * Added "alt" parameter in the shortcode that can be used to describe the anchor image.
117
+
118
+ = 1.7.7 =
119
+ * Added translation option which is compatible with language packs.
120
+ * Video Lightbox is now compatible with WordPress 4.4.
121
+
122
  = 1.7.6 =
123
  * Video Lightbox is now compatible with WordPress 4.3.
124
 
wp-video-lightbox.php CHANGED
@@ -1,11 +1,13 @@
1
  <?php
2
  /*
3
  Plugin Name: WP Video Lightbox
4
- Version: 1.7.6
5
  Plugin URI: https://www.tipsandtricks-hq.com/?p=2700
6
  Author: Tips and Tricks HQ, Ruhul Amin
7
  Author URI: https://www.tipsandtricks-hq.com/
8
  Description: Simple video lightbox plugin to display videos in a nice overlay popup. It also supports images, flash, YouTube, iFrame.
 
 
9
  */
10
  if (!defined('ABSPATH')) exit;
11
 
@@ -13,7 +15,7 @@ if (!class_exists('WP_Video_Lightbox'))
13
  {
14
  class WP_Video_Lightbox
15
  {
16
- var $version = '1.7.6';
17
  var $db_version = '1.0';
18
  var $plugin_url;
19
  var $plugin_path;
@@ -59,6 +61,7 @@ if (!class_exists('WP_Video_Lightbox'))
59
 
60
  function plugins_loaded_handler() //Runs when plugins_loaded action gets fired
61
  {
 
62
  $this->do_db_upgrade_check();
63
  $this->settings_obj = new Video_Lightbox_Settings_Page(); //Initialize settins menus
64
  }
1
  <?php
2
  /*
3
  Plugin Name: WP Video Lightbox
4
+ Version: 1.7.8
5
  Plugin URI: https://www.tipsandtricks-hq.com/?p=2700
6
  Author: Tips and Tricks HQ, Ruhul Amin
7
  Author URI: https://www.tipsandtricks-hq.com/
8
  Description: Simple video lightbox plugin to display videos in a nice overlay popup. It also supports images, flash, YouTube, iFrame.
9
+ Text Domain: wp-video-lightbox
10
+ Domain Path: /languages
11
  */
12
  if (!defined('ABSPATH')) exit;
13
 
15
  {
16
  class WP_Video_Lightbox
17
  {
18
+ var $version = '1.7.8';
19
  var $db_version = '1.0';
20
  var $plugin_url;
21
  var $plugin_path;
61
 
62
  function plugins_loaded_handler() //Runs when plugins_loaded action gets fired
63
  {
64
+ load_plugin_textdomain('wp-video-lightbox', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/');
65
  $this->do_db_upgrade_check();
66
  $this->settings_obj = new Video_Lightbox_Settings_Page(); //Initialize settins menus
67
  }
wpvl-settings.php CHANGED
@@ -8,14 +8,14 @@ class Video_Lightbox_Settings_Page
8
  }
9
 
10
  function add_options_menu(){
11
- add_options_page('Video Lightbox Settings', 'Video Lightbox', 'manage_options', 'wp_video_lightbox', array(&$this, 'display_settings_page'));
12
  }
13
 
14
  function display_settings_page()
15
  {
16
  $wpvl_plugin_tabs = array(
17
- 'wp_video_lightbox' => 'General',
18
- 'wp_video_lightbox&action=prettyPhoto' => 'prettyPhoto'
19
  );
20
  echo '<div class="wrap">'.screen_icon().'<h2>WP Video Lightbox v'.WP_VIDEO_LIGHTBOX_VERSION.'</h2>';;
21
  echo '<div id="poststuff"><div id="post-body">';
@@ -70,14 +70,14 @@ class Video_Lightbox_Settings_Page
70
  update_option('wpvl_enable_jquery', ($_POST["enable_jquery"]=='1')?'1':'');
71
 
72
  echo '<div id="message" class="updated fade"><p><strong>';
73
- echo 'prettyPhoto Settings Updated!';
74
  echo '</strong></p></div>';
75
  }
76
  ?>
77
 
78
  <div style="background: none repeat scroll 0 0 #FFF6D5;border: 1px solid #D1B655;color: #3F2502;margin: 10px 0;padding: 5px 5px 5px 10px;text-shadow: 1px 1px #FFFFFF;">
79
- <p><?php _e("For more information, updates, detailed documentation and video tutorial, please visit:", "WPVL"); ?><br />
80
- <a href="https://www.tipsandtricks-hq.com/wordpress-video-lightbox-plugin-display-videos-in-a-fancy-lightbox-overlay-2700" target="_blank"><?php _e("WP Video Lightbox Homepage", "WPVL"); ?></a></p>
81
  </div>
82
 
83
  <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
@@ -88,10 +88,10 @@ class Video_Lightbox_Settings_Page
88
  <tbody>
89
 
90
  <tr valign="top">
91
- <th scope="row">Enable jQuery</th>
92
- <td> <fieldset><legend class="screen-reader-text"><span>Enable jQuery</span></legend><label for="enable_jquery">
93
  <input name="enable_jquery" type="checkbox" id="enable_jquery" <?php if(get_option('wpvl_enable_jquery')== '1') echo ' checked="checked"';?> value="1">
94
- Check this option if you want to enable jQuery library</label>
95
  </fieldset></td>
96
  </tr>
97
 
@@ -99,7 +99,7 @@ class Video_Lightbox_Settings_Page
99
 
100
  </table>
101
 
102
- <p class="submit"><input type="submit" name="wpvl_general_settings_update" id="wpvl_general_settings_update" class="button button-primary" value="Save Changes"></p></form>
103
 
104
  <?php
105
  }
@@ -146,8 +146,8 @@ class Video_Lightbox_Settings_Page
146
  ?>
147
 
148
  <div style="background: none repeat scroll 0 0 #FFF6D5;border: 1px solid #D1B655;color: #3F2502;margin: 10px 0;padding: 5px 5px 5px 10px;text-shadow: 1px 1px #FFFFFF;">
149
- <p><?php _e("For more information, updates, detailed documentation and video tutorial, please visit:", "WPVL"); ?><br />
150
- <a href="https://www.tipsandtricks-hq.com/wordpress-video-lightbox-plugin-display-videos-in-a-fancy-lightbox-overlay-2700" target="_blank"><?php _e("WP Video Lightbox Homepage", "WPVL"); ?></a></p>
151
  </div>
152
 
153
  <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
@@ -158,180 +158,179 @@ class Video_Lightbox_Settings_Page
158
  <tbody>
159
 
160
  <tr valign="top">
161
- <th scope="row">Enable prettyPhoto</th>
162
- <td> <fieldset><legend class="screen-reader-text"><span>Enable prettyPhoto</span></legend><label for="enable_prettyPhoto">
163
  <input name="enable_prettyPhoto" type="checkbox" id="enable_prettyPhoto" <?php if(get_option('wpvl_enable_prettyPhoto')=='1') echo ' checked="checked"';?> value="1">
164
- Check this option if you want to enable prettyPhoto library</label>
165
  </fieldset></td>
166
  </tr>
167
 
168
  <tr valign="top">
169
- <th scope="row"><label for="animation_speed">Animation speed</label></th>
170
  <td>
171
  <select name="animation_speed" id="animation_speed">
172
- <option <?php echo ($wpvl_prettyPhoto->animation_speed==='fast')?'selected="selected"':'';?> value="fast">Fast</option>
173
- <option <?php echo ($wpvl_prettyPhoto->animation_speed==='slow')?'selected="selected"':'';?> value="slow">Slow</option>
174
- <option <?php echo ($wpvl_prettyPhoto->animation_speed==='normal')?'selected="selected"':'';?> value="normal">Normal</option>
175
  </select>
176
  <!-- <span id="utc-time"><abbr title="Coordinated Universal Time">UTC</abbr> time is <code>2013-11-01 3:56:07</code></span> -->
177
- <p class="description">fast / slow / normal [default: fast]</p>
178
  </td>
179
  </tr>
180
 
181
  <tr valign="top">
182
- <th scope="row"><label for="slideshow">Slideshow</label></th>
183
  <td><input name="slideshow" type="text" id="slideshow" value="<?php echo $wpvl_prettyPhoto->slideshow; ?>" class="regular-text">
184
- <p class="description">false OR interval time in ms [default: 5000]</p></td>
185
  </tr>
186
 
187
  <tr valign="top">
188
- <th scope="row">Autoplay slideshow</th>
189
- <td> <fieldset><legend class="screen-reader-text"><span>Autoplay slideshow</span></legend><label for="autoplay_slideshow">
190
  <input name="autoplay_slideshow" type="checkbox" id="autoplay_slideshow" <?php if($wpvl_prettyPhoto->autoplay_slideshow == 'true') echo ' checked="checked"';?> value="1">
191
- true / false [default: false]</label>
192
  </fieldset></td>
193
  </tr>
194
 
195
  <tr valign="top">
196
- <th scope="row"><label for="opacity">Opacity</label></th>
197
  <td><input name="opacity" type="text" id="opacity" value="<?php echo $wpvl_prettyPhoto->opacity; ?>" class="regular-text">
198
- <p class="description">Value between 0 and 1 [default: 0.8]</p></td>
199
  </tr>
200
 
201
  <tr valign="top">
202
- <th scope="row">Show title</th>
203
- <td> <fieldset><legend class="screen-reader-text"><span>Show title</span></legend><label for="show_title">
204
  <input name="show_title" type="checkbox" id="show_title" <?php if($wpvl_prettyPhoto->show_title == 'true') echo ' checked="checked"';?> value="1">
205
- true / false [default: true]</label>
206
  </fieldset></td>
207
  </tr>
208
 
209
  <tr valign="top">
210
- <th scope="row">Allow resize</th>
211
- <td> <fieldset><legend class="screen-reader-text"><span>Allow resize</span></legend><label for="allow_resize">
212
  <input name="allow_resize" type="checkbox" id="allow_resize" <?php if($wpvl_prettyPhoto->allow_resize == 'true') echo ' checked="checked"';?> value="1">
213
- Resize the photos bigger than viewport. true / false [default: true]</label>
214
  </fieldset></td>
215
  </tr>
216
 
217
  <tr valign="top">
218
- <th scope="row">Allow expand</th>
219
- <td> <fieldset><legend class="screen-reader-text"><span>Allow expand</span></legend><label for="allow_expand">
220
  <input name="allow_expand" type="checkbox" id="allow_expand" <?php if($wpvl_prettyPhoto->allow_resize == 'true') echo ' checked="checked"';?> value="1">
221
- Allow the user to expand a resized image. true / false [default: true]</label>
222
  </fieldset></td>
223
  </tr>
224
 
225
  <tr valign="top">
226
- <th scope="row"><label for="opacity">Default width</label></th>
227
  <td><input name="default_width" type="text" id="default_width" value="<?php echo $wpvl_prettyPhoto->default_width; ?>" class="regular-text">
228
- <p class="description">[default: 640]</p></td>
229
  </tr>
230
 
231
  <tr valign="top">
232
- <th scope="row"><label for="opacity">Default height</label></th>
233
  <td><input name="default_height" type="text" id="default_height" value="<?php echo $wpvl_prettyPhoto->default_height; ?>" class="regular-text">
234
- <p class="description">[default: 480]</p></td>
235
  </tr>
236
 
237
  <tr valign="top">
238
- <th scope="row"><label for="opacity">Counter separator label</label></th>
239
  <td><input name="counter_separator_label" type="text" id="counter_separator_label" value="<?php echo $wpvl_prettyPhoto->counter_separator_label; ?>" class="regular-text">
240
- <p class="description">The separator for the gallery counter 1 "of" 2 [default: /]</p></td>
241
  </tr>
242
 
243
  <tr valign="top">
244
- <th scope="row"><label for="theme">Theme</label></th>
245
  <td>
246
  <select name="theme" id="theme">
247
- <option selected="selected" value="pp_default">Default</option>
248
- <option <?php echo ($wpvl_prettyPhoto->theme==='light_rounded')?'selected="selected"':'';?> value="light_rounded">Light Rounded</option>
249
- <option <?php echo ($wpvl_prettyPhoto->theme==='dark_rounded')?'selected="selected"':'';?> value="dark_rounded">Dark Rounded</option>
250
- <option <?php echo ($wpvl_prettyPhoto->theme==='light_square')?'selected="selected"':'';?> value="light_square">Light Square</option>
251
- <option <?php echo ($wpvl_prettyPhoto->theme==='dark_square')?'selected="selected"':'';?> value="dark_square">Dark Square</option>
252
- <option <?php echo ($wpvl_prettyPhoto->theme==='facebook')?'selected="selected"':'';?> value="facebook">Facebook</option>
253
  </select>
254
  <!-- <span id="utc-time"><abbr title="Coordinated Universal Time">UTC</abbr> time is <code>2013-11-01 3:56:07</code></span> -->
255
- <p class="description">Select a theme for the lightbox window</p>
256
  </td>
257
  </tr>
258
 
259
  <tr valign="top">
260
- <th scope="row"><label for="opacity">Horizontal padding</label></th>
261
  <td><input name="horizontal_padding" type="text" id="horizontal_padding" value="<?php echo $wpvl_prettyPhoto->horizontal_padding; ?>" class="regular-text">
262
- <p class="description">The padding on each side of the picture [default: 20]</p></td>
263
  </tr>
264
 
265
  <tr valign="top">
266
  <th scope="row">Hide Flash</th>
267
  <td> <fieldset><legend class="screen-reader-text"><span>Hide Flash</span></legend><label for="hideflash">
268
  <input name="hideflash" type="checkbox" id="hideflash" <?php if($wpvl_prettyPhoto->hideflash == 'true') echo ' checked="checked"';?> value="1">
269
- Hides all the flash objects on a page, set to TRUE if flash appears over prettyPhoto [default: false]</label>
270
  </fieldset></td>
271
  </tr>
272
 
273
  <tr valign="top">
274
- <th scope="row"><label for="animation_speed">wmode</label></th>
275
  <td>
276
  <select name="wmode" id="wmode">
277
- <option selected="selected" value="opaque">opaque</option>
278
  </select>
279
- <!-- <span id="utc-time"><abbr title="Coordinated Universal Time">UTC</abbr> time is <code>2013-11-01 3:56:07</code></span> -->
280
- <p class="description">Set the flash wmode attribute [default: opaque]</p>
281
  </td>
282
  </tr>
283
 
284
  <tr valign="top">
285
- <th scope="row">Autoplay</th>
286
- <td> <fieldset><legend class="screen-reader-text"><span>Autoplay</span></legend><label for="autoplay">
287
  <input name="autoplay" type="checkbox" id="autoplay" <?php if($wpvl_prettyPhoto->autoplay == 'true') echo ' checked="checked"';?> value="1">
288
- Automatically start videos: true / false [default: true]</label>
289
  </fieldset></td>
290
  </tr>
291
 
292
  <tr valign="top">
293
- <th scope="row">Modal</th>
294
- <td> <fieldset><legend class="screen-reader-text"><span>Modal</span></legend><label for="modal">
295
  <input name="modal" type="checkbox" id="modal" <?php if($wpvl_prettyPhoto->modal == 'true') echo ' checked="checked"';?> value="1">
296
- If set to true, only the close button will close the window [default: false]</label>
297
  </fieldset></td>
298
  </tr>
299
 
300
  <tr valign="top">
301
- <th scope="row">Deeplinking</th>
302
- <td> <fieldset><legend class="screen-reader-text"><span>Deeplinking</span></legend><label for="deeplinking">
303
  <input name="deeplinking" type="checkbox" id="deeplinking" <?php if($wpvl_prettyPhoto->deeplinking == 'true') echo ' checked="checked"';?> value="1">
304
- Allow prettyPhoto to update the url to enable deeplinking. [default: true]</label>
305
  </fieldset></td>
306
  </tr>
307
 
308
  <tr valign="top">
309
- <th scope="row">Overlay gallery</th>
310
- <td> <fieldset><legend class="screen-reader-text"><span>Overlay gallery</span></legend><label for="overlay_gallery">
311
  <input name="overlay_gallery" type="checkbox" id="overlay_gallery" <?php if($wpvl_prettyPhoto->overlay_gallery == 'true') echo ' checked="checked"';?> value="1">
312
- If set to true, a gallery will overlay the fullscreen image on mouse over [default: true]</label>
313
  </fieldset></td>
314
  </tr>
315
 
316
  <tr valign="top">
317
- <th scope="row"><label for="opacity">Overlay gallery max</label></th>
318
  <td><input name="overlay_gallery_max" type="text" id="overlay_gallery_max" value="<?php echo $wpvl_prettyPhoto->overlay_gallery_max; ?>" class="regular-text">
319
- <p class="description">Maximum number of pictures in the overlay gallery [default: 30]</p></td>
320
  </tr>
321
 
322
  <tr valign="top">
323
- <th scope="row">Keyboard shortcuts</th>
324
- <td> <fieldset><legend class="screen-reader-text"><span>Keyboard shortcuts</span></legend><label for="keyboard_shortcuts">
325
  <input name="keyboard_shortcuts" type="checkbox" id="keyboard_shortcuts" <?php if($wpvl_prettyPhoto->keyboard_shortcuts == 'true') echo ' checked="checked"';?> value="1">
326
- Set to false if you open forms inside prettyPhoto [default: true]</label>
327
  </fieldset></td>
328
  </tr>
329
 
330
  <tr valign="top">
331
- <th scope="row">IE6 fallback</th>
332
- <td> <fieldset><legend class="screen-reader-text"><span>IE6 fallback</span></legend><label for="ie6_fallback">
333
  <input name="ie6_fallback" type="checkbox" id="ie6_fallback" <?php if($wpvl_prettyPhoto->ie6_fallback == 'true') echo ' checked="checked"';?> value="1">
334
- compatibility fallback for IE6 [default: true]</label>
335
  </fieldset></td>
336
  </tr>
337
 
@@ -339,7 +338,7 @@ class Video_Lightbox_Settings_Page
339
 
340
  </table>
341
 
342
- <p class="submit"><input type="submit" name="wpvl_prettyPhoto_update_settings" id="wpvl_prettyPhoto_update_settings" class="button button-primary" value="Save Changes"></p></form>
343
 
344
  <?php
345
  }
8
  }
9
 
10
  function add_options_menu(){
11
+ add_options_page(__('Video Lightbox Settings', 'wp-video-lightbox'), __('Video Lightbox', 'wp-video-lightbox'), 'manage_options', 'wp_video_lightbox', array($this, 'display_settings_page'));
12
  }
13
 
14
  function display_settings_page()
15
  {
16
  $wpvl_plugin_tabs = array(
17
+ 'wp_video_lightbox' => __('General', 'wp-video-lightbox'),
18
+ 'wp_video_lightbox&action=prettyPhoto' => __('prettyPhoto', 'wp-video-lightbox')
19
  );
20
  echo '<div class="wrap">'.screen_icon().'<h2>WP Video Lightbox v'.WP_VIDEO_LIGHTBOX_VERSION.'</h2>';;
21
  echo '<div id="poststuff"><div id="post-body">';
70
  update_option('wpvl_enable_jquery', ($_POST["enable_jquery"]=='1')?'1':'');
71
 
72
  echo '<div id="message" class="updated fade"><p><strong>';
73
+ echo __('prettyPhoto Settings Updated!', 'wp-video-lightbox');
74
  echo '</strong></p></div>';
75
  }
76
  ?>
77
 
78
  <div style="background: none repeat scroll 0 0 #FFF6D5;border: 1px solid #D1B655;color: #3F2502;margin: 10px 0;padding: 5px 5px 5px 10px;text-shadow: 1px 1px #FFFFFF;">
79
+ <p><?php _e("For more information, updates, detailed documentation and video tutorial, please visit:", "wp-video-lightbox"); ?><br />
80
+ <a href="https://www.tipsandtricks-hq.com/wordpress-video-lightbox-plugin-display-videos-in-a-fancy-lightbox-overlay-2700" target="_blank"><?php _e("WP Video Lightbox Homepage", "wp-video-lightbox"); ?></a></p>
81
  </div>
82
 
83
  <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
88
  <tbody>
89
 
90
  <tr valign="top">
91
+ <th scope="row"><?php _e('Enable jQuery', 'wp-video-lightbox')?></th>
92
+ <td> <fieldset><legend class="screen-reader-text"><span><?php _e('Enable jQuery', 'wp-video-lightbox')?></span></legend><label for="enable_jquery">
93
  <input name="enable_jquery" type="checkbox" id="enable_jquery" <?php if(get_option('wpvl_enable_jquery')== '1') echo ' checked="checked"';?> value="1">
94
+ <?php _e('Check this option if you want to enable jQuery library', 'wp-video-lightbox')?></label>
95
  </fieldset></td>
96
  </tr>
97
 
99
 
100
  </table>
101
 
102
+ <p class="submit"><input type="submit" name="wpvl_general_settings_update" id="wpvl_general_settings_update" class="button button-primary" value="<?php _e('Save Changes', 'wp-video-lightbox')?>"></p></form>
103
 
104
  <?php
105
  }
146
  ?>
147
 
148
  <div style="background: none repeat scroll 0 0 #FFF6D5;border: 1px solid #D1B655;color: #3F2502;margin: 10px 0;padding: 5px 5px 5px 10px;text-shadow: 1px 1px #FFFFFF;">
149
+ <p><?php _e("For more information, updates, detailed documentation and video tutorial, please visit:", "wp-video-lightbox"); ?><br />
150
+ <a href="https://www.tipsandtricks-hq.com/wordpress-video-lightbox-plugin-display-videos-in-a-fancy-lightbox-overlay-2700" target="_blank"><?php _e("WP Video Lightbox Homepage", "wp-video-lightbox"); ?></a></p>
151
  </div>
152
 
153
  <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
158
  <tbody>
159
 
160
  <tr valign="top">
161
+ <th scope="row"><?php _e('Enable prettyPhoto', 'wp-video-lightbox')?></th>
162
+ <td> <fieldset><legend class="screen-reader-text"><span><?php _e('Enable prettyPhoto', 'wp-video-lightbox')?></span></legend><label for="enable_prettyPhoto">
163
  <input name="enable_prettyPhoto" type="checkbox" id="enable_prettyPhoto" <?php if(get_option('wpvl_enable_prettyPhoto')=='1') echo ' checked="checked"';?> value="1">
164
+ <?php _e('Check this option if you want to enable prettyPhoto library', 'wp-video-lightbox')?></label>
165
  </fieldset></td>
166
  </tr>
167
 
168
  <tr valign="top">
169
+ <th scope="row"><label for="animation_speed"><?php _e('Animation speed', 'wp-video-lightbox')?></label></th>
170
  <td>
171
  <select name="animation_speed" id="animation_speed">
172
+ <option <?php echo ($wpvl_prettyPhoto->animation_speed==='fast')?'selected="selected"':'';?> value="fast"><?php _e('Fast', 'wp-video-lightbox')?></option>
173
+ <option <?php echo ($wpvl_prettyPhoto->animation_speed==='slow')?'selected="selected"':'';?> value="slow"><?php _e('Slow', 'wp-video-lightbox')?></option>
174
+ <option <?php echo ($wpvl_prettyPhoto->animation_speed==='normal')?'selected="selected"':'';?> value="normal"><?php _e('Normal', 'wp-video-lightbox')?></option>
175
  </select>
176
  <!-- <span id="utc-time"><abbr title="Coordinated Universal Time">UTC</abbr> time is <code>2013-11-01 3:56:07</code></span> -->
177
+ <p class="description"><?php _e('fast / slow / normal [default: fast]', 'wp-video-lightbox')?></p>
178
  </td>
179
  </tr>
180
 
181
  <tr valign="top">
182
+ <th scope="row"><label for="slideshow"><?php _e('Slideshow', 'wp-video-lightbox')?></label></th>
183
  <td><input name="slideshow" type="text" id="slideshow" value="<?php echo $wpvl_prettyPhoto->slideshow; ?>" class="regular-text">
184
+ <p class="description"><?php echo sprintf(__('%s OR interval time in ms [default: %s]', 'wp-video-lightbox'), 'false', '5000')?></p></td>
185
  </tr>
186
 
187
  <tr valign="top">
188
+ <th scope="row"><?php _e('Autoplay slideshow', 'wp-video-lightbox')?></th>
189
+ <td> <fieldset><legend class="screen-reader-text"><span><?php _e('Autoplay slideshow', 'wp-video-lightbox')?></span></legend><label for="autoplay_slideshow">
190
  <input name="autoplay_slideshow" type="checkbox" id="autoplay_slideshow" <?php if($wpvl_prettyPhoto->autoplay_slideshow == 'true') echo ' checked="checked"';?> value="1">
191
+ <?php _e('true / false [default: false]', 'wp-video-lightbox')?></label>
192
  </fieldset></td>
193
  </tr>
194
 
195
  <tr valign="top">
196
+ <th scope="row"><label for="opacity"><?php _e('Opacity', 'wp-video-lightbox')?></label></th>
197
  <td><input name="opacity" type="text" id="opacity" value="<?php echo $wpvl_prettyPhoto->opacity; ?>" class="regular-text">
198
+ <p class="description"><?php echo sprintf(__('Value between %s and %s [default: %s]', 'wp-video-lightbox'), '0', '1', '0.8')?></p></td>
199
  </tr>
200
 
201
  <tr valign="top">
202
+ <th scope="row"><?php _e('Show title', 'wp-video-lightbox')?></th>
203
+ <td> <fieldset><legend class="screen-reader-text"><span><?php _e('Show title', 'wp-video-lightbox')?></span></legend><label for="show_title">
204
  <input name="show_title" type="checkbox" id="show_title" <?php if($wpvl_prettyPhoto->show_title == 'true') echo ' checked="checked"';?> value="1">
205
+ <?php _e('true / false [default: true]', 'wp-video-lightbox')?></label>
206
  </fieldset></td>
207
  </tr>
208
 
209
  <tr valign="top">
210
+ <th scope="row"><?php _e('Allow resize', 'wp-video-lightbox')?></th>
211
+ <td> <fieldset><legend class="screen-reader-text"><span><?php _e('Allow resize', 'wp-video-lightbox')?></span></legend><label for="allow_resize">
212
  <input name="allow_resize" type="checkbox" id="allow_resize" <?php if($wpvl_prettyPhoto->allow_resize == 'true') echo ' checked="checked"';?> value="1">
213
+ <?php _e('Resize the photos bigger than viewport. true / false [default: true]', 'wp-video-lightbox')?></label>
214
  </fieldset></td>
215
  </tr>
216
 
217
  <tr valign="top">
218
+ <th scope="row"><?php _e('Allow expand', 'wp-video-lightbox')?></th>
219
+ <td> <fieldset><legend class="screen-reader-text"><span><?php _e('Allow expand', 'wp-video-lightbox')?></span></legend><label for="allow_expand">
220
  <input name="allow_expand" type="checkbox" id="allow_expand" <?php if($wpvl_prettyPhoto->allow_resize == 'true') echo ' checked="checked"';?> value="1">
221
+ <?php _e('Allow the user to expand a resized image. true / false [default: true]', 'wp-video-lightbox')?></label>
222
  </fieldset></td>
223
  </tr>
224
 
225
  <tr valign="top">
226
+ <th scope="row"><label for="opacity"><?php _e('Default width', 'wp-video-lightbox')?></label></th>
227
  <td><input name="default_width" type="text" id="default_width" value="<?php echo $wpvl_prettyPhoto->default_width; ?>" class="regular-text">
228
+ <p class="description"><?php echo sprintf(__('[default: %s]', 'wp-video-lightbox'), '640')?></p></td>
229
  </tr>
230
 
231
  <tr valign="top">
232
+ <th scope="row"><label for="opacity"><?php _e('Default height', 'wp-video-lightbox')?></label></th>
233
  <td><input name="default_height" type="text" id="default_height" value="<?php echo $wpvl_prettyPhoto->default_height; ?>" class="regular-text">
234
+ <p class="description"><?php echo sprintf(__('[default: %s]', 'wp-video-lightbox'), '480')?></p></td>
235
  </tr>
236
 
237
  <tr valign="top">
238
+ <th scope="row"><label for="opacity"><?php _e('Counter separator label', 'wp-video-lightbox')?></label></th>
239
  <td><input name="counter_separator_label" type="text" id="counter_separator_label" value="<?php echo $wpvl_prettyPhoto->counter_separator_label; ?>" class="regular-text">
240
+ <p class="description"><?php echo sprintf(__('The separator for the gallery counter 1 "of" 2 [default: %s]', 'wp-video-lightbox'), '/')?></p></td>
241
  </tr>
242
 
243
  <tr valign="top">
244
+ <th scope="row"><label for="theme"><?php _e('Theme', 'wp-video-lightbox')?></label></th>
245
  <td>
246
  <select name="theme" id="theme">
247
+ <option selected="selected" value="pp_default"><?php _e('Default', 'wp-video-lightbox')?></option>
248
+ <option <?php echo ($wpvl_prettyPhoto->theme==='light_rounded')?'selected="selected"':'';?> value="light_rounded"><?php _e('Light Rounded', 'wp-video-lightbox')?></option>
249
+ <option <?php echo ($wpvl_prettyPhoto->theme==='dark_rounded')?'selected="selected"':'';?> value="dark_rounded"><?php _e('Dark Rounded', 'wp-video-lightbox')?></option>
250
+ <option <?php echo ($wpvl_prettyPhoto->theme==='light_square')?'selected="selected"':'';?> value="light_square"><?php _e('Light Square', 'wp-video-lightbox')?></option>
251
+ <option <?php echo ($wpvl_prettyPhoto->theme==='dark_square')?'selected="selected"':'';?> value="dark_square"><?php _e('Dark Square', 'wp-video-lightbox')?></option>
252
+ <option <?php echo ($wpvl_prettyPhoto->theme==='facebook')?'selected="selected"':'';?> value="facebook"><?php _e('Facebook', 'wp-video-lightbox')?></option>
253
  </select>
254
  <!-- <span id="utc-time"><abbr title="Coordinated Universal Time">UTC</abbr> time is <code>2013-11-01 3:56:07</code></span> -->
255
+ <p class="description"><?php _e('Select a theme for the lightbox window', 'wp-video-lightbox')?></p>
256
  </td>
257
  </tr>
258
 
259
  <tr valign="top">
260
+ <th scope="row"><label for="opacity"><?php _e('Horizontal padding', 'wp-video-lightbox')?></label></th>
261
  <td><input name="horizontal_padding" type="text" id="horizontal_padding" value="<?php echo $wpvl_prettyPhoto->horizontal_padding; ?>" class="regular-text">
262
+ <p class="description"><?php echo sprintf(__('The padding on each side of the picture [default: %s]', 'wp-video-lightbox'), '20')?> </p></td>
263
  </tr>
264
 
265
  <tr valign="top">
266
  <th scope="row">Hide Flash</th>
267
  <td> <fieldset><legend class="screen-reader-text"><span>Hide Flash</span></legend><label for="hideflash">
268
  <input name="hideflash" type="checkbox" id="hideflash" <?php if($wpvl_prettyPhoto->hideflash == 'true') echo ' checked="checked"';?> value="1">
269
+ <?php _e('Hides all the flash objects on a page, set to TRUE if flash appears over prettyPhoto [default: false]', 'wp-video-lightbox')?></label>
270
  </fieldset></td>
271
  </tr>
272
 
273
  <tr valign="top">
274
+ <th scope="row"><label for="animation_speed"><?php _e('wmode', 'wp-video-lightbox')?></label></th>
275
  <td>
276
  <select name="wmode" id="wmode">
277
+ <option selected="selected" value="opaque"><?php _e('opaque', 'wp-video-lightbox')?></option>
278
  </select>
279
+ <p class="description"><?php _e('Set the flash wmode attribute [default: opaque]', 'wp-video-lightbox')?></p>
 
280
  </td>
281
  </tr>
282
 
283
  <tr valign="top">
284
+ <th scope="row"><?php _e('Autoplay', 'wp-video-lightbox')?></th>
285
+ <td> <fieldset><legend class="screen-reader-text"><span><?php _e('Autoplay', 'wp-video-lightbox')?></span></legend><label for="autoplay">
286
  <input name="autoplay" type="checkbox" id="autoplay" <?php if($wpvl_prettyPhoto->autoplay == 'true') echo ' checked="checked"';?> value="1">
287
+ <?php _e('Automatically start videos: true / false [default: true]', 'wp-video-lightbox')?></label>
288
  </fieldset></td>
289
  </tr>
290
 
291
  <tr valign="top">
292
+ <th scope="row"><?php _e('Modal', 'wp-video-lightbox')?></th>
293
+ <td> <fieldset><legend class="screen-reader-text"><span><?php _e('Modal', 'wp-video-lightbox')?></span></legend><label for="modal">
294
  <input name="modal" type="checkbox" id="modal" <?php if($wpvl_prettyPhoto->modal == 'true') echo ' checked="checked"';?> value="1">
295
+ <?php _e('If set to true, only the close button will close the window [default: false]', 'wp-video-lightbox')?></label>
296
  </fieldset></td>
297
  </tr>
298
 
299
  <tr valign="top">
300
+ <th scope="row"><?php _e('Deeplinking', 'wp-video-lightbox')?></th>
301
+ <td> <fieldset><legend class="screen-reader-text"><span><?php _e('Deeplinking', 'wp-video-lightbox')?></span></legend><label for="deeplinking">
302
  <input name="deeplinking" type="checkbox" id="deeplinking" <?php if($wpvl_prettyPhoto->deeplinking == 'true') echo ' checked="checked"';?> value="1">
303
+ <?php _e('Allow prettyPhoto to update the url to enable deeplinking. [default: true]', 'wp-video-lightbox')?></label>
304
  </fieldset></td>
305
  </tr>
306
 
307
  <tr valign="top">
308
+ <th scope="row"><?php _e('Overlay gallery', 'wp-video-lightbox')?></th>
309
+ <td> <fieldset><legend class="screen-reader-text"><span><?php _e('Overlay gallery', 'wp-video-lightbox')?></span></legend><label for="overlay_gallery">
310
  <input name="overlay_gallery" type="checkbox" id="overlay_gallery" <?php if($wpvl_prettyPhoto->overlay_gallery == 'true') echo ' checked="checked"';?> value="1">
311
+ <?php _e('If set to true, a gallery will overlay the fullscreen image on mouse over [default: true]', 'wp-video-lightbox')?></label>
312
  </fieldset></td>
313
  </tr>
314
 
315
  <tr valign="top">
316
+ <th scope="row"><label for="opacity"><?php _e('Overlay gallery max', 'wp-video-lightbox')?></label></th>
317
  <td><input name="overlay_gallery_max" type="text" id="overlay_gallery_max" value="<?php echo $wpvl_prettyPhoto->overlay_gallery_max; ?>" class="regular-text">
318
+ <p class="description"><?php echo sprintf(__('Maximum number of pictures in the overlay gallery [default: %s]', 'wp-video-lightbox'), '30')?></p></td>
319
  </tr>
320
 
321
  <tr valign="top">
322
+ <th scope="row"><?php _e('Keyboard shortcuts', 'wp-video-lightbox')?></th>
323
+ <td> <fieldset><legend class="screen-reader-text"><span><?php _e('Keyboard shortcuts', 'wp-video-lightbox')?></span></legend><label for="keyboard_shortcuts">
324
  <input name="keyboard_shortcuts" type="checkbox" id="keyboard_shortcuts" <?php if($wpvl_prettyPhoto->keyboard_shortcuts == 'true') echo ' checked="checked"';?> value="1">
325
+ <?php _e('Set to false if you open forms inside prettyPhoto [default: true]', 'wp-video-lightbox')?></label>
326
  </fieldset></td>
327
  </tr>
328
 
329
  <tr valign="top">
330
+ <th scope="row"><?php _e('IE6 fallback', 'wp-video-lightbox')?></th>
331
+ <td> <fieldset><legend class="screen-reader-text"><span><?php _e('IE6 fallback', 'wp-video-lightbox')?></span></legend><label for="ie6_fallback">
332
  <input name="ie6_fallback" type="checkbox" id="ie6_fallback" <?php if($wpvl_prettyPhoto->ie6_fallback == 'true') echo ' checked="checked"';?> value="1">
333
+ <?php _e('compatibility fallback for IE6 [default: true]', 'wp-video-lightbox')?></label>
334
  </fieldset></td>
335
  </tr>
336
 
338
 
339
  </table>
340
 
341
+ <p class="submit"><input type="submit" name="wpvl_prettyPhoto_update_settings" id="wpvl_prettyPhoto_update_settings" class="button button-primary" value="<?php _e('Save Changes', 'wp-video-lightbox')?>"></p></form>
342
 
343
  <?php
344
  }