All-in-One Video Gallery - Version 1.5.0

Version Description

  • New: Added support for Dailymotion videos.
Download this release

Release Info

Developer plugins360
Plugin Icon 128x128 All-in-One Video Gallery
Version 1.5.0
Comparing to
See all releases

Code changes from version 1.4.0 to 1.5.0

README.txt CHANGED
@@ -1,22 +1,22 @@
1
- === All in One Video Gallery - HTML5 Video Player, YouTube Gallery, Vimeo Gallery ===
2
  Plugin URI: https://plugins360.com
3
  Contributors: plugins360
4
  Donate link: https://plugins360.com
5
- Tags: video, player, gallery, mp4, webm, ogv, youtube, vimeo, hls, dash, adaptive, live, stream, popup, carousel, slider
6
  Requires at least: 4.4.0
7
  Tested up to: 4.9
8
  Requires PHP: 5.3.0
9
- Stable tag: 1.4.0
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
13
- Responsive & Lightweight Video gallery plugin. HTML5 with FLASH fallbacks. Supports any browser & video formats such as MP4, WebM, OGV and embeddable players like YouTube, Vimeo, Facebook, etc.
14
 
15
  == Description ==
16
 
17
  Add a single video or build a complete video gallery in minutes.
18
 
19
- "All in One Video Gallery" is a lightweight responsive video gallery plugin. Supports any browser & video formats such as MP4, WebM, OGV and embeddable players like YouTube, Vimeo, Facebook, etc. Works with ANY properly coded WordPress theme and you can use it on new or existing site.
20
 
21
  **Links**
22
 
@@ -33,7 +33,7 @@ https://www.youtube.com/watch?v=w47PU9ppuF8
33
  * Unlimited Videos.
34
  * Thumbnail Gallery (you can select how many rows, columns to display and pagination).
35
  * Beautiful HTML5 Video Player with FLASH fallback.
36
- * Supported Formats: MP4, WebM, OGV and embeddable players like YouTube, Vimeo & Facebook.
37
  * Configure Player controls: playpause, timer, progressbar, duration, volume, fullscreen
38
  * Configure Player properties: autoplay, loop, preload
39
  * Video Subtitles.
@@ -84,6 +84,10 @@ Most likely rewrite rules were not registered properly for some reason. Go to "W
84
 
85
  == Changelog ==
86
 
 
 
 
 
87
  = 1.4.0 =
88
 
89
  * Tweak: Updated to the MediaElement version 4.2.8 that includes an important security fix.
@@ -108,6 +112,10 @@ Most likely rewrite rules were not registered properly for some reason. Go to "W
108
 
109
  == Upgrade Notice ==
110
 
 
 
 
 
111
  = 1.4.0 =
112
 
113
  * Tweak: Updated to the MediaElement version 4.2.8 that includes an important security fix.
1
+ === All in One Video Gallery - HTML5 Video Player, YouTube Gallery, Vimeo Gallery, Dailymotion Gallery ===
2
  Plugin URI: https://plugins360.com
3
  Contributors: plugins360
4
  Donate link: https://plugins360.com
5
+ Tags: video, player, gallery, mp4, webm, ogv, youtube, vimeo, dailymotion, hls, dash, adaptive, live, stream, popup, carousel, slider
6
  Requires at least: 4.4.0
7
  Tested up to: 4.9
8
  Requires PHP: 5.3.0
9
+ Stable tag: 1.5.0
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
13
+ Responsive & Lightweight Video gallery plugin. HTML5 with FLASH fallbacks. Supports any browser & video formats such as MP4, WebM, OGV and embeddable players like YouTube, Vimeo, Dailymotion, Facebook, etc.
14
 
15
  == Description ==
16
 
17
  Add a single video or build a complete video gallery in minutes.
18
 
19
+ "All in One Video Gallery" is a lightweight responsive video gallery plugin. Supports any browser & video formats such as MP4, WebM, OGV and embeddable players like YouTube, Vimeo, Dailymotion, Facebook, etc. Works with ANY properly coded WordPress theme and you can use it on new or existing site.
20
 
21
  **Links**
22
 
33
  * Unlimited Videos.
34
  * Thumbnail Gallery (you can select how many rows, columns to display and pagination).
35
  * Beautiful HTML5 Video Player with FLASH fallback.
36
+ * Supported Formats: MP4, WebM, OGV and embeddable players like YouTube, Vimeo, Dailymotion & Facebook.
37
  * Configure Player controls: playpause, timer, progressbar, duration, volume, fullscreen
38
  * Configure Player properties: autoplay, loop, preload
39
  * Video Subtitles.
84
 
85
  == Changelog ==
86
 
87
+ = 1.5.0 =
88
+
89
+ * New: Added support for Dailymotion videos.
90
+
91
  = 1.4.0 =
92
 
93
  * Tweak: Updated to the MediaElement version 4.2.8 that includes an important security fix.
112
 
113
  == Upgrade Notice ==
114
 
115
+ = 1.5.0 =
116
+
117
+ * New: Added support for Dailymotion videos.
118
+
119
  = 1.4.0 =
120
 
121
  * Tweak: Updated to the MediaElement version 4.2.8 that includes an important security fix.
admin/assets/css/aiovg-admin.css CHANGED
@@ -271,7 +271,7 @@ table.aiovg-table .aiovg-handle {
271
  margin-bottom: 10px;
272
  }
273
 
274
- #aiovg-shortcode label {
275
  display: block;
276
  margin-bottom: 5px;
277
  }
271
  margin-bottom: 10px;
272
  }
273
 
274
+ #aiovg-shortcode .aiovg-shortcode-label {
275
  display: block;
276
  margin-bottom: 5px;
277
  }
admin/assets/js/aiovg-admin.js CHANGED
@@ -276,6 +276,9 @@
276
 
277
  }).trigger( 'change' );
278
 
 
 
 
279
  // Shortcode: Insert shortcode
280
  $( '#aiovg-insert-shortcode' ).on( 'click', function( e ) {
281
 
@@ -326,5 +329,26 @@
326
  });
327
 
328
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
329
 
330
  })( jQuery );
276
 
277
  }).trigger( 'change' );
278
 
279
+ // Shortcode: Initiate color picker
280
+ $( '.aiovg-color-picker-field', '#aiovg-shortcode' ).wpColorPicker();
281
+
282
  // Shortcode: Insert shortcode
283
  $( '#aiovg-insert-shortcode' ).on( 'click', function( e ) {
284
 
329
  });
330
 
331
  });
332
+
333
+ // Widgets: Initiate color picker
334
+ function aiovg_widget_color_picker( widget ) {
335
+ widget.find( '.aiovg-color-picker-field' ).wpColorPicker( {
336
+ change: _.throttle( function() { // For Customizer
337
+ $( this ).trigger( 'change' );
338
+ }, 3000 )
339
+ });
340
+ }
341
+
342
+ function on_aiovg_widget_update( event, widget ) {
343
+ aiovg_widget_color_picker( widget );
344
+ }
345
+
346
+ $( document ).on( 'widget-added widget-updated', on_aiovg_widget_update );
347
+
348
+ $( document ).ready( function() {
349
+ $( '#widgets-right .widget:has(.aiovg-color-picker-field)' ).each( function () {
350
+ aiovg_widget_color_picker( $( this ) );
351
+ } );
352
+ } );
353
 
354
  })( jQuery );
admin/class-aiovg-admin-videos.php CHANGED
@@ -166,19 +166,20 @@ class AIOVG_Admin_Videos {
166
 
167
  $post_meta = get_post_meta( $post->ID );
168
 
169
- $type = isset( $post_meta['type'] ) ? $post_meta['type'][0] : 'default';
170
- $mp4 = isset( $post_meta['mp4'] ) ? $post_meta['mp4'][0] : '';
171
- $has_webm = isset( $post_meta['has_webm'] ) ? $post_meta['has_webm'][0] : 0;
172
- $webm = isset( $post_meta['webm'] ) ? $post_meta['webm'][0] : '';
173
- $has_ogv = isset( $post_meta['has_ogv'] ) ? $post_meta['has_ogv'][0] : 0;
174
- $ogv = isset( $post_meta['ogv'] ) ? $post_meta['ogv'][0] : '';
175
- $youtube = isset( $post_meta['youtube'] ) ? $post_meta['youtube'][0] : '';
176
- $vimeo = isset( $post_meta['vimeo'] ) ? $post_meta['vimeo'][0] : '';
177
- $facebook = isset( $post_meta['facebook'] ) ? $post_meta['facebook'][0] : '';
178
- $embedcode = isset( $post_meta['embedcode'] ) ? $post_meta['embedcode'][0] : '';
179
- $image = isset( $post_meta['image'] ) ? $post_meta['image'][0] : '';
180
- $duration = isset( $post_meta['duration'] ) ? $post_meta['duration'][0] : '';
181
- $views = isset( $post_meta['views'] ) ? $post_meta['views'][0] : '';
 
182
 
183
  require_once AIOVG_PLUGIN_DIR . 'admin/templates/video-sources.php';
184
 
@@ -274,6 +275,9 @@ class AIOVG_Admin_Videos {
274
  $vimeo = isset( $_POST['vimeo'] ) ? esc_url_raw( $_POST['vimeo'] ) : '';
275
  update_post_meta( $post_id, 'vimeo', $vimeo );
276
 
 
 
 
277
  $facebook = isset( $_POST['facebook'] ) ? esc_url_raw( $_POST['facebook'] ) : '';
278
  update_post_meta( $post_id, 'facebook', $facebook );
279
 
@@ -290,6 +294,8 @@ class AIOVG_Admin_Videos {
290
  $image = aiovg_get_youtube_image_url( $youtube );
291
  } elseif ( 'vimeo' == $type && ! empty( $vimeo ) ) {
292
  $image = aiovg_get_vimeo_image_url( $vimeo );
 
 
293
  } elseif ( 'embedcode' == $type && ! empty( $embedcode ) ) {
294
  $image = aiovg_get_embedcode_image_url( $embedcode );
295
  }
166
 
167
  $post_meta = get_post_meta( $post->ID );
168
 
169
+ $type = isset( $post_meta['type'] ) ? $post_meta['type'][0] : 'default';
170
+ $mp4 = isset( $post_meta['mp4'] ) ? $post_meta['mp4'][0] : '';
171
+ $has_webm = isset( $post_meta['has_webm'] ) ? $post_meta['has_webm'][0] : 0;
172
+ $webm = isset( $post_meta['webm'] ) ? $post_meta['webm'][0] : '';
173
+ $has_ogv = isset( $post_meta['has_ogv'] ) ? $post_meta['has_ogv'][0] : 0;
174
+ $ogv = isset( $post_meta['ogv'] ) ? $post_meta['ogv'][0] : '';
175
+ $youtube = isset( $post_meta['youtube'] ) ? $post_meta['youtube'][0] : '';
176
+ $vimeo = isset( $post_meta['vimeo'] ) ? $post_meta['vimeo'][0] : '';
177
+ $dailymotion = isset( $post_meta['dailymotion'] ) ? $post_meta['dailymotion'][0] : '';
178
+ $facebook = isset( $post_meta['facebook'] ) ? $post_meta['facebook'][0] : '';
179
+ $embedcode = isset( $post_meta['embedcode'] ) ? $post_meta['embedcode'][0] : '';
180
+ $image = isset( $post_meta['image'] ) ? $post_meta['image'][0] : '';
181
+ $duration = isset( $post_meta['duration'] ) ? $post_meta['duration'][0] : '';
182
+ $views = isset( $post_meta['views'] ) ? $post_meta['views'][0] : '';
183
 
184
  require_once AIOVG_PLUGIN_DIR . 'admin/templates/video-sources.php';
185
 
275
  $vimeo = isset( $_POST['vimeo'] ) ? esc_url_raw( $_POST['vimeo'] ) : '';
276
  update_post_meta( $post_id, 'vimeo', $vimeo );
277
 
278
+ $dailymotion = isset( $_POST['dailymotion'] ) ? esc_url_raw( $_POST['dailymotion'] ) : '';
279
+ update_post_meta( $post_id, 'dailymotion', $dailymotion );
280
+
281
  $facebook = isset( $_POST['facebook'] ) ? esc_url_raw( $_POST['facebook'] ) : '';
282
  update_post_meta( $post_id, 'facebook', $facebook );
283
 
294
  $image = aiovg_get_youtube_image_url( $youtube );
295
  } elseif ( 'vimeo' == $type && ! empty( $vimeo ) ) {
296
  $image = aiovg_get_vimeo_image_url( $vimeo );
297
+ } elseif ( 'dailymotion' == $type && ! empty( $dailymotion ) ) {
298
+ $image = aiovg_get_dailymotion_image_url( $dailymotion );
299
  } elseif ( 'embedcode' == $type && ! empty( $embedcode ) ) {
300
  $image = aiovg_get_embedcode_image_url( $embedcode );
301
  }
admin/templates/shortcode-builder.php CHANGED
@@ -39,11 +39,11 @@
39
 
40
  <?php if( 'html' == $field['type'] ) : ?>
41
 
42
- <label><strong><?php echo esc_html( $field['label'] ); ?></strong></label>
43
 
44
  <?php elseif ( 'category' == $field['type'] ) : ?>
45
 
46
- <label for="<?php echo esc_attr( $field_id ); ?>"><strong><?php echo esc_html( $field['label'] ); ?></strong></label>
47
  <?php
48
  wp_dropdown_categories( array(
49
  'show_option_none' => '-- '.__( 'Top Categories', 'all-in-one-video-gallery' ).' --',
@@ -61,7 +61,7 @@
61
 
62
  <?php elseif ( 'categories' == $field['type'] ) : ?>
63
 
64
- <label for="<?php echo esc_attr( $field_id ); ?>"><strong><?php echo esc_html( $field['label'] ); ?></strong></label>
65
  <ul id="<?php echo esc_attr( $field_id ); ?>" class="aiovg-shortcode-input aiovg-checklist widefat" data-default="<?php echo esc_attr( $field['default'] ); ?>">
66
  <?php
67
  $args = array(
@@ -76,12 +76,12 @@
76
 
77
  <?php elseif ( 'text' == $field['type'] ) : ?>
78
 
79
- <label for="<?php echo esc_attr( $field_id ); ?>"><strong><?php echo esc_html( $field['label'] ); ?></strong></label>
80
  <input type="text" id="<?php echo esc_attr( $field_id ); ?>" class="aiovg-shortcode-input widefat" value="<?php echo esc_attr( $field['value'] ); ?>" data-default="<?php echo esc_attr( $field['default'] ); ?>" />
81
 
82
  <?php elseif ( 'select' == $field['type'] ) : ?>
83
 
84
- <label for="<?php echo esc_attr( $field_id ); ?>"><strong><?php echo esc_html( $field['label'] ); ?></strong></label>
85
  <select id="<?php echo esc_attr( $field_id ); ?>" class="aiovg-shortcode-input widefat" data-default="<?php echo esc_attr( $field['default'] ); ?>">
86
  <?php
87
  foreach ( $field['options'] as $value => $label ) {
@@ -92,10 +92,15 @@
92
 
93
  <?php elseif ( 'checkbox' == $field['type'] ) : ?>
94
 
95
- <label for="<?php echo esc_attr( $field_id ); ?>">
96
  <input type="checkbox" id="<?php echo esc_attr( $field_id ); ?>" class="aiovg-shortcode-input" data-default="<?php echo esc_attr( $field['default'] ); ?>" value="1" <?php checked( $field['value'] ); ?> />
97
  <?php echo esc_html( $field['label'] ); ?>
98
  </label>
 
 
 
 
 
99
 
100
  <?php endif; ?>
101
 
39
 
40
  <?php if( 'html' == $field['type'] ) : ?>
41
 
42
+ <label class="aiovg-shortcode-label"><strong><?php echo wp_kses_post( $field['label'] ); ?></strong></label>
43
 
44
  <?php elseif ( 'category' == $field['type'] ) : ?>
45
 
46
+ <label class="aiovg-shortcode-label" for="<?php echo esc_attr( $field_id ); ?>"><strong><?php echo esc_html( $field['label'] ); ?></strong></label>
47
  <?php
48
  wp_dropdown_categories( array(
49
  'show_option_none' => '-- '.__( 'Top Categories', 'all-in-one-video-gallery' ).' --',
61
 
62
  <?php elseif ( 'categories' == $field['type'] ) : ?>
63
 
64
+ <label class="aiovg-shortcode-label" for="<?php echo esc_attr( $field_id ); ?>"><strong><?php echo esc_html( $field['label'] ); ?></strong></label>
65
  <ul id="<?php echo esc_attr( $field_id ); ?>" class="aiovg-shortcode-input aiovg-checklist widefat" data-default="<?php echo esc_attr( $field['default'] ); ?>">
66
  <?php
67
  $args = array(
76
 
77
  <?php elseif ( 'text' == $field['type'] ) : ?>
78
 
79
+ <label class="aiovg-shortcode-label" for="<?php echo esc_attr( $field_id ); ?>"><strong><?php echo esc_html( $field['label'] ); ?></strong></label>
80
  <input type="text" id="<?php echo esc_attr( $field_id ); ?>" class="aiovg-shortcode-input widefat" value="<?php echo esc_attr( $field['value'] ); ?>" data-default="<?php echo esc_attr( $field['default'] ); ?>" />
81
 
82
  <?php elseif ( 'select' == $field['type'] ) : ?>
83
 
84
+ <label class="aiovg-shortcode-label" for="<?php echo esc_attr( $field_id ); ?>"><strong><?php echo esc_html( $field['label'] ); ?></strong></label>
85
  <select id="<?php echo esc_attr( $field_id ); ?>" class="aiovg-shortcode-input widefat" data-default="<?php echo esc_attr( $field['default'] ); ?>">
86
  <?php
87
  foreach ( $field['options'] as $value => $label ) {
92
 
93
  <?php elseif ( 'checkbox' == $field['type'] ) : ?>
94
 
95
+ <label class="aiovg-shortcode-label" for="<?php echo esc_attr( $field_id ); ?>">
96
  <input type="checkbox" id="<?php echo esc_attr( $field_id ); ?>" class="aiovg-shortcode-input" data-default="<?php echo esc_attr( $field['default'] ); ?>" value="1" <?php checked( $field['value'] ); ?> />
97
  <?php echo esc_html( $field['label'] ); ?>
98
  </label>
99
+
100
+ <?php elseif ( 'color' == $field['type'] ) : ?>
101
+
102
+ <label class="aiovg-shortcode-label" for="<?php echo esc_attr( $field_id ); ?>"><strong><?php echo esc_html( $field['label'] ); ?></strong></label>
103
+ <input type="text" id="<?php echo esc_attr( $field_id ); ?>" class="aiovg-shortcode-input aiovg-color-picker-field widefat" value="<?php echo esc_attr( $field['value'] ); ?>" data-default="<?php echo esc_attr( $field['default'] ); ?>" />
104
 
105
  <?php endif; ?>
106
 
admin/templates/video-sources.php CHANGED
@@ -110,6 +110,17 @@
110
  </div>
111
  </td>
112
  </tr>
 
 
 
 
 
 
 
 
 
 
 
113
  <tr class="aiovg-toggle-fields aiovg-type-facebook">
114
  <td class="label aiovg-hidden-xs">
115
  <label><?php _e( "Facebook", 'all-in-one-video-gallery' ); ?></label>
110
  </div>
111
  </td>
112
  </tr>
113
+ <tr class="aiovg-toggle-fields aiovg-type-dailymotion">
114
+ <td class="label aiovg-hidden-xs">
115
+ <label><?php _e( "Dailymotion", 'all-in-one-video-gallery' ); ?></label>
116
+ </td>
117
+ <td>
118
+ <p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php _e( "Dailymotion", 'all-in-one-video-gallery' ); ?></strong></p>
119
+ <div class="aiovg-input-wrap">
120
+ <input type="text" name="dailymotion" id="aiovg-dailymotion" class="text" placeholder="<?php _e( "Example: https://www.dailymotion.com/video/x11prnt", 'all-in-one-video-gallery' ); ?>" value="<?php echo esc_attr( $dailymotion ); ?>" />
121
+ </div>
122
+ </td>
123
+ </tr>
124
  <tr class="aiovg-toggle-fields aiovg-type-facebook">
125
  <td class="label aiovg-hidden-xs">
126
  <label><?php _e( "Facebook", 'all-in-one-video-gallery' ); ?></label>
admin/templates/welcome.php CHANGED
@@ -16,7 +16,7 @@
16
  <h1><?php printf( __( 'Welcome to "All in One Video Gallery - %s"', 'all-in-one-video-gallery' ), AIOVG_PLUGIN_VERSION ); ?></h1>
17
 
18
  <p class="about-text">
19
- <?php _e( 'Responsive & Lightweight Video gallery plugin. HTML5 with FLASH fallbacks. Supports any browser & video formats such as MP4, WebM, OGV and embeddable players like YouTube, Vimeo, etc.', 'all-in-one-video-gallery' ); ?>
20
  </p>
21
 
22
  <div class="wp-badge aiovg-badge"></div>
16
  <h1><?php printf( __( 'Welcome to "All in One Video Gallery - %s"', 'all-in-one-video-gallery' ), AIOVG_PLUGIN_VERSION ); ?></h1>
17
 
18
  <p class="about-text">
19
+ <?php _e( 'Responsive & Lightweight Video gallery plugin. HTML5 with FLASH fallbacks. Supports any browser & video formats such as MP4, WebM, OGV and embeddable players like YouTube, Vimeo, Dailymotion, Facebook, etc.', 'all-in-one-video-gallery' ); ?>
20
  </p>
21
 
22
  <div class="wp-badge aiovg-badge"></div>
all-in-one-video-gallery.php CHANGED
@@ -10,8 +10,8 @@
10
  * @wordpress-plugin
11
  * Plugin Name: All in One Video Gallery
12
  * Plugin URI: https://plugins360.com
13
- * Description: Responsive & Lightweight Video gallery plugin. HTML5 with FLASH fallbacks. Supports any browser & video formats such as MP4, WebM, OGV and embeddable players like YouTube, Vimeo, Facebook, etc.
14
- * Version: 1.4.0
15
  * Author: Team Plugins360
16
  * License: GPL-2.0+
17
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
@@ -26,7 +26,7 @@ if ( ! defined( 'WPINC' ) ) {
26
 
27
  // The current version of the plugin
28
  if ( ! defined( 'AIOVG_PLUGIN_VERSION' ) ) {
29
- define( 'AIOVG_PLUGIN_VERSION', '1.4.0' );
30
  }
31
 
32
  // The unique identifier of the plugin
10
  * @wordpress-plugin
11
  * Plugin Name: All in One Video Gallery
12
  * Plugin URI: https://plugins360.com
13
+ * Description: Responsive & Lightweight Video gallery plugin. HTML5 with FLASH fallbacks. Supports any browser & video formats such as MP4, WebM, OGV and embeddable players like YouTube, Vimeo, Dailymotion, Facebook, etc.
14
+ * Version: 1.5.0
15
  * Author: Team Plugins360
16
  * License: GPL-2.0+
17
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
26
 
27
  // The current version of the plugin
28
  if ( ! defined( 'AIOVG_PLUGIN_VERSION' ) ) {
29
+ define( 'AIOVG_PLUGIN_VERSION', '1.5.0' );
30
  }
31
 
32
  // The unique identifier of the plugin
includes/functions.php CHANGED
@@ -245,6 +245,60 @@ function aiovg_get_category_page_url( $term ) {
245
 
246
  }
247
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
248
  /*
249
  * Get image from the Iframe Embed Code.
250
  *
@@ -260,11 +314,20 @@ function aiovg_get_embedcode_image_url( $embedcode ) {
260
  $iframes = $document->getElementsByTagName( 'iframe' );
261
  $src = $iframes->item(0)->getAttribute( 'src' );
262
 
 
263
  $url = aiovg_get_youtube_image_url( $src );
 
 
264
  if ( empty( $url ) ) {
265
  $url = aiovg_get_vimeo_image_url( $src );
266
  }
 
 
 
 
 
267
 
 
268
  return $url;
269
 
270
  }
@@ -396,23 +459,25 @@ function aiovg_get_player_html( $post_id = 0, $atts = array() ) {
396
  $player_settings = get_option( 'aiovg_player_settings' );
397
 
398
  $attributes = array_merge( array(
399
- 'width' => $player_settings['width'],
400
- 'ratio' => $player_settings['ratio'],
401
- 'mp4' => '',
402
- 'webm' => '',
403
- 'ogv' => '',
404
- 'youtube' => '',
405
- 'vimeo' => '',
406
- 'poster' => '',
407
- 'autoplay' => '',
408
- 'loop' => '',
409
- 'playpause' => '',
410
- 'current' => '',
411
- 'progress' => '',
412
- 'duration' => '',
413
- 'tracks' => '',
414
- 'volume' => '',
415
- 'fullscreen' => ''
 
 
416
  ), $atts );
417
 
418
  $url = aiovg_get_player_page_url( $post_id, $attributes );
@@ -470,6 +535,7 @@ function aiovg_get_player_page_url( $post_id = 0, $atts = array() ) {
470
  case 'ogv':
471
  case 'youtube':
472
  case 'vimeo':
 
473
  case 'facebook':
474
  case 'poster':
475
  $query_args[ $key ] = urlencode( $atts[ $key ] );
@@ -554,11 +620,12 @@ function aiovg_get_user_videos_page_url( $user_id ) {
554
  function aiovg_get_video_source_types() {
555
 
556
  $types = array(
557
- 'default' => __( 'Self Hosted', 'all-in-one-video-gallery' ) . ' / ' . __( 'External URL', 'all-in-one-video-gallery' ),
558
- 'youtube' => __( 'YouTube', 'all-in-one-video-gallery' ),
559
- 'vimeo' => __( 'Vimeo', 'all-in-one-video-gallery' ),
560
- 'facebook' => __( 'Facebook', 'all-in-one-video-gallery' ),
561
- 'embedcode' => __( 'Iframe Embed Code', 'all-in-one-video-gallery' )
 
562
  );
563
 
564
  return apply_filters( 'aiovg_video_source_types', $types );
245
 
246
  }
247
 
248
+ /*
249
+ * Get Dailymotion ID from URL.
250
+ *
251
+ * @since 1.5.0
252
+ * @param string $url Dailymotion page URL.
253
+ * @return string $id Dailymotion video ID.
254
+ */
255
+ function aiovg_get_dailymotion_id_from_url( $url ) {
256
+
257
+ $id = '';
258
+
259
+ if ( preg_match( '!^.+dailymotion\.com/(video|hub)/([^_]+)[^#]*(#video=([^_&]+))?|(dai\.ly/([^_]+))!', $url, $m ) ) {
260
+ if ( isset( $m[6] ) ) {
261
+ $id = $m[6];
262
+ }
263
+
264
+ if ( isset( $m[4] ) ) {
265
+ $id = $m[4];
266
+ }
267
+
268
+ $id = $m[2];
269
+ }
270
+
271
+ return $id;
272
+
273
+ }
274
+
275
+ /*
276
+ * Get Dailymotion image from URL.
277
+ *
278
+ * @since 1.5.0
279
+ * @param string $url Dailymotion page URL.
280
+ * @return string $url Dailymotion image URL.
281
+ */
282
+ function aiovg_get_dailymotion_image_url( $url ) {
283
+
284
+ $id = aiovg_get_dailymotion_id_from_url( $url );
285
+ $url = '';
286
+
287
+ if ( ! empty( $id ) ) {
288
+ $dailymotion = file_get_contents( 'https://api.dailymotion.com/video/' . $id . '?fields=thumbnail_large_url,thumbnail_medium_url' );
289
+ $dailymotion = json_decode( $dailymotion, TRUE );
290
+
291
+ if ( isset( $dailymotion['thumbnail_large_url'] ) ) {
292
+ $url = $dailymotion['thumbnail_large_url'];
293
+ } else {
294
+ $url = $dailymotion['thumbnail_medium_url'];
295
+ }
296
+ }
297
+
298
+ return $url;
299
+
300
+ }
301
+
302
  /*
303
  * Get image from the Iframe Embed Code.
304
  *
314
  $iframes = $document->getElementsByTagName( 'iframe' );
315
  $src = $iframes->item(0)->getAttribute( 'src' );
316
 
317
+ // YouTube
318
  $url = aiovg_get_youtube_image_url( $src );
319
+
320
+ // Vimeo
321
  if ( empty( $url ) ) {
322
  $url = aiovg_get_vimeo_image_url( $src );
323
  }
324
+
325
+ // Dailymotion
326
+ if ( empty( $url ) ) {
327
+ $url = aiovg_get_dailymotion_image_url( $src );
328
+ }
329
 
330
+ // Return image url
331
  return $url;
332
 
333
  }
459
  $player_settings = get_option( 'aiovg_player_settings' );
460
 
461
  $attributes = array_merge( array(
462
+ 'width' => $player_settings['width'],
463
+ 'ratio' => $player_settings['ratio'],
464
+ 'mp4' => '',
465
+ 'webm' => '',
466
+ 'ogv' => '',
467
+ 'youtube' => '',
468
+ 'vimeo' => '',
469
+ 'dailymotion' => '',
470
+ 'facebook' => '',
471
+ 'poster' => '',
472
+ 'autoplay' => '',
473
+ 'loop' => '',
474
+ 'playpause' => '',
475
+ 'current' => '',
476
+ 'progress' => '',
477
+ 'duration' => '',
478
+ 'tracks' => '',
479
+ 'volume' => '',
480
+ 'fullscreen' => ''
481
  ), $atts );
482
 
483
  $url = aiovg_get_player_page_url( $post_id, $attributes );
535
  case 'ogv':
536
  case 'youtube':
537
  case 'vimeo':
538
+ case 'dailymotion':
539
  case 'facebook':
540
  case 'poster':
541
  $query_args[ $key ] = urlencode( $atts[ $key ] );
620
  function aiovg_get_video_source_types() {
621
 
622
  $types = array(
623
+ 'default' => __( 'Self Hosted', 'all-in-one-video-gallery' ) . ' / ' . __( 'External URL', 'all-in-one-video-gallery' ),
624
+ 'youtube' => __( 'YouTube', 'all-in-one-video-gallery' ),
625
+ 'vimeo' => __( 'Vimeo', 'all-in-one-video-gallery' ),
626
+ 'dailymotion' => __( 'Dailymotion', 'all-in-one-video-gallery' ),
627
+ 'facebook' => __( 'Facebook', 'all-in-one-video-gallery' ),
628
+ 'embedcode' => __( 'Iframe Embed Code', 'all-in-one-video-gallery' )
629
  );
630
 
631
  return apply_filters( 'aiovg_video_source_types', $types );
languages/all-in-one-video-gallery.pot CHANGED
@@ -1,15 +1,15 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: All in One Video Gallery\n"
4
- "POT-Creation-Date: 2017-12-27 09:50+0530\n"
5
- "PO-Revision-Date: 2017-12-27 09:50+0530\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: en_US\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 2.0.5\n"
13
  "X-Poedit-Basepath: ..\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
@@ -27,7 +27,7 @@ msgid "Category"
27
  msgstr ""
28
 
29
  #: admin/class-aiovg-admin-categories.php:36
30
- #: admin/class-aiovg-admin-videos.php:359
31
  msgid "All Categories"
32
  msgstr ""
33
 
@@ -98,14 +98,14 @@ msgstr ""
98
  #: admin/class-aiovg-admin-categories.php:137
99
  #: admin/class-aiovg-admin-settings.php:320
100
  #: admin/class-aiovg-admin-shortcode.php:104
101
- #: admin/class-aiovg-admin-videos.php:427
102
  #: widgets/categories/templates/admin.php:43
103
  msgid "ID"
104
  msgstr ""
105
 
106
  #: admin/class-aiovg-admin-settings.php:61
107
  #: admin/class-aiovg-admin-settings.php:62 admin/class-aiovg-admin.php:63
108
- #: admin/templates/welcome.php:73
109
  msgid "Settings"
110
  msgstr ""
111
 
@@ -204,7 +204,7 @@ msgstr ""
204
 
205
  #: admin/class-aiovg-admin-settings.php:216
206
  #: admin/class-aiovg-admin-settings.php:290
207
- #: admin/class-aiovg-admin-shortcode.php:287
208
  #: widgets/video/templates/admin.php:46
209
  msgid "Width"
210
  msgstr ""
@@ -218,7 +218,7 @@ msgstr ""
218
 
219
  #: admin/class-aiovg-admin-settings.php:223
220
  #: admin/class-aiovg-admin-settings.php:297
221
- #: admin/class-aiovg-admin-shortcode.php:294
222
  #: widgets/video/templates/admin.php:51
223
  msgid "Ratio"
224
  msgstr ""
@@ -258,7 +258,7 @@ msgid "Cinemascope"
258
  msgstr ""
259
 
260
  #: admin/class-aiovg-admin-settings.php:240
261
- #: admin/class-aiovg-admin-shortcode.php:301
262
  #: widgets/video/templates/admin.php:57
263
  msgid "Autoplay"
264
  msgstr ""
@@ -268,7 +268,7 @@ msgid "Check this to start playing the video as soon as it is ready"
268
  msgstr ""
269
 
270
  #: admin/class-aiovg-admin-settings.php:247
271
- #: admin/class-aiovg-admin-shortcode.php:308
272
  #: widgets/video/templates/admin.php:62
273
  msgid "Loop"
274
  msgstr ""
@@ -312,50 +312,50 @@ msgid "None"
312
  msgstr ""
313
 
314
  #: admin/class-aiovg-admin-settings.php:272
315
- #: admin/class-aiovg-admin-shortcode.php:315
316
  #: widgets/video/templates/admin.php:65
317
  msgid "Show / Hide Player Controls"
318
  msgstr ""
319
 
320
  #: admin/class-aiovg-admin-settings.php:276
321
- #: admin/class-aiovg-admin-shortcode.php:320
322
  #: widgets/video/templates/admin.php:69
323
  msgid "Play / Pause"
324
  msgstr ""
325
 
326
  #: admin/class-aiovg-admin-settings.php:277
327
- #: admin/class-aiovg-admin-shortcode.php:327
328
  #: widgets/video/templates/admin.php:74
329
  msgid "Current Time"
330
  msgstr ""
331
 
332
  #: admin/class-aiovg-admin-settings.php:278
333
- #: admin/class-aiovg-admin-shortcode.php:334
334
  #: widgets/video/templates/admin.php:79
335
  msgid "Progressbar"
336
  msgstr ""
337
 
338
  #: admin/class-aiovg-admin-settings.php:279
339
- #: admin/class-aiovg-admin-shortcode.php:341
340
- #: admin/templates/video-sources.php:150 admin/templates/video-sources.php:153
341
  #: widgets/video/templates/admin.php:84
342
  msgid "Duration"
343
  msgstr ""
344
 
345
  #: admin/class-aiovg-admin-settings.php:280
346
- #: admin/class-aiovg-admin-shortcode.php:348
347
  #: admin/class-aiovg-admin-videos.php:150 widgets/video/templates/admin.php:89
348
  msgid "Subtitles"
349
  msgstr ""
350
 
351
  #: admin/class-aiovg-admin-settings.php:281
352
- #: admin/class-aiovg-admin-shortcode.php:355
353
  #: widgets/video/templates/admin.php:94
354
  msgid "Volume"
355
  msgstr ""
356
 
357
  #: admin/class-aiovg-admin-settings.php:282
358
- #: admin/class-aiovg-admin-shortcode.php:362
359
  #: widgets/video/templates/admin.php:99
360
  msgid "Fullscreen"
361
  msgstr ""
@@ -372,10 +372,10 @@ msgid ""
372
  msgstr ""
373
 
374
  #: admin/class-aiovg-admin-settings.php:306
375
- #: admin/class-aiovg-admin-settings.php:371
376
  #: admin/class-aiovg-admin-shortcode.php:94
377
- #: admin/class-aiovg-admin-shortcode.php:164
378
- #: widgets/videos/templates/admin.php:63
379
  msgid "Number of Columns"
380
  msgstr ""
381
 
@@ -412,12 +412,12 @@ msgid "Sort Categories by"
412
  msgstr ""
413
 
414
  #: admin/class-aiovg-admin-settings.php:333
415
- #: admin/class-aiovg-admin-settings.php:405
416
  msgid "Ascending"
417
  msgstr ""
418
 
419
  #: admin/class-aiovg-admin-settings.php:334
420
- #: admin/class-aiovg-admin-settings.php:406
421
  msgid "Descending"
422
  msgstr ""
423
 
@@ -448,206 +448,199 @@ msgstr ""
448
  msgid "Check this to hide categories with no videos"
449
  msgstr ""
450
 
451
- #: admin/class-aiovg-admin-settings.php:363
452
- #: admin/class-aiovg-admin-shortcode.php:156
453
- #: admin/class-aiovg-admin-shortcode.php:371
454
- #: widgets/search/templates/admin.php:20 widgets/videos/templates/admin.php:34
455
- msgid "Select a Template"
456
- msgstr ""
457
-
458
- #: admin/class-aiovg-admin-settings.php:372
459
  msgid "Enter the number of columns you like to have in the gallery view."
460
  msgstr ""
461
 
462
- #: admin/class-aiovg-admin-settings.php:381
463
  msgid "Videos per Page"
464
  msgstr ""
465
 
466
- #: admin/class-aiovg-admin-settings.php:382
467
  msgid ""
468
  "Number of videos to show per page. Use a value of \"0\" to show all videos."
469
  msgstr ""
470
 
471
- #: admin/class-aiovg-admin-settings.php:388
472
  msgid "Order Videos by"
473
  msgstr ""
474
 
475
- #: admin/class-aiovg-admin-settings.php:392
476
- #: admin/class-aiovg-admin-shortcode.php:181
477
  #: widgets/categories/templates/admin.php:15
478
  #: widgets/search/templates/admin.php:15 widgets/video/templates/admin.php:15
479
- #: widgets/videos/templates/admin.php:15 widgets/videos/templates/admin.php:77
480
  msgid "Title"
481
  msgstr ""
482
 
483
- #: admin/class-aiovg-admin-settings.php:393
484
- #: admin/class-aiovg-admin-shortcode.php:182
485
- #: widgets/videos/templates/admin.php:78
486
  msgid "Date Posted"
487
  msgstr ""
488
 
489
- #: admin/class-aiovg-admin-settings.php:394
490
- #: admin/class-aiovg-admin-settings.php:420
491
- #: admin/class-aiovg-admin-settings.php:444
492
- #: admin/class-aiovg-admin-shortcode.php:183
493
- #: admin/class-aiovg-admin-shortcode.php:249
494
- #: widgets/videos/templates/admin.php:79 widgets/videos/templates/admin.php:137
495
  msgid "Views Count"
496
  msgstr ""
497
 
498
- #: admin/class-aiovg-admin-settings.php:395
499
- #: admin/class-aiovg-admin-shortcode.php:184
500
- #: widgets/videos/templates/admin.php:80
501
  msgid "Random"
502
  msgstr ""
503
 
504
- #: admin/class-aiovg-admin-settings.php:401
505
  msgid "Sort Videos by"
506
  msgstr ""
507
 
508
- #: admin/class-aiovg-admin-settings.php:412
509
- #: admin/class-aiovg-admin-settings.php:437
510
- #: admin/class-aiovg-admin-shortcode.php:216
511
- #: widgets/videos/templates/admin.php:118
512
  msgid "Show / Hide"
513
  msgstr ""
514
 
515
- #: admin/class-aiovg-admin-settings.php:416
516
- #: admin/class-aiovg-admin-shortcode.php:221
517
  msgid "Videos Count"
518
  msgstr ""
519
 
520
- #: admin/class-aiovg-admin-settings.php:417
521
- #: admin/class-aiovg-admin-settings.php:441
522
- #: admin/class-aiovg-admin-shortcode.php:228
523
- #: widgets/videos/templates/admin.php:122
524
  msgid "Category Name"
525
  msgstr ""
526
 
527
- #: admin/class-aiovg-admin-settings.php:418
528
- #: admin/class-aiovg-admin-settings.php:442
529
- #: admin/class-aiovg-admin-shortcode.php:235
530
- #: widgets/videos/templates/admin.php:127
531
  msgid "Date Added"
532
  msgstr ""
533
 
534
- #: admin/class-aiovg-admin-settings.php:419
535
- #: admin/class-aiovg-admin-settings.php:443
536
- #: admin/class-aiovg-admin-shortcode.php:242
537
  msgid "Author Name"
538
  msgstr ""
539
 
540
- #: admin/class-aiovg-admin-settings.php:421
541
- #: admin/class-aiovg-admin-shortcode.php:256
542
- #: widgets/videos/templates/admin.php:142
543
  msgid "Video Duration"
544
  msgstr ""
545
 
546
- #: admin/class-aiovg-admin-settings.php:422
547
  msgid "Excerpt ( Short Description )"
548
  msgstr ""
549
 
550
- #: admin/class-aiovg-admin-settings.php:428
551
  msgid "Excerpt Length"
552
  msgstr ""
553
 
554
- #: admin/class-aiovg-admin-settings.php:429
555
  msgid "Number of characters."
556
  msgstr ""
557
 
558
- #: admin/class-aiovg-admin-settings.php:445
559
- #: admin/class-aiovg-admin-shortcode.php:209
560
- #: widgets/videos/templates/admin.php:114
561
  msgid "Related Videos"
562
  msgstr ""
563
 
564
- #: admin/class-aiovg-admin-settings.php:451
565
  msgid "Enable Comments"
566
  msgstr ""
567
 
568
- #: admin/class-aiovg-admin-settings.php:452
569
  msgid ""
570
  "Allow visitors to comment videos using the standard WordPress comment form. "
571
  "Comments are public"
572
  msgstr ""
573
 
574
- #: admin/class-aiovg-admin-settings.php:460
575
  msgid "Video Detail Page"
576
  msgstr ""
577
 
578
- #: admin/class-aiovg-admin-settings.php:461
579
  msgid "Replaces the SLUG value used by custom post type \"aiovg_videos\"."
580
  msgstr ""
581
 
582
- #: admin/class-aiovg-admin-settings.php:469
583
  msgid "Enable Services"
584
  msgstr ""
585
 
586
- #: admin/class-aiovg-admin-settings.php:473
587
- #: admin/templates/video-sources.php:115 admin/templates/video-sources.php:118
588
- #: includes/functions.php:559 includes/functions.php:986
589
  msgid "Facebook"
590
  msgstr ""
591
 
592
- #: admin/class-aiovg-admin-settings.php:474 includes/functions.php:991
593
  msgid "Twitter"
594
  msgstr ""
595
 
596
- #: admin/class-aiovg-admin-settings.php:475
597
  msgid "Google Plus"
598
  msgstr ""
599
 
600
- #: admin/class-aiovg-admin-settings.php:476 includes/functions.php:1001
601
  msgid "Linkedin"
602
  msgstr ""
603
 
604
- #: admin/class-aiovg-admin-settings.php:477
605
  msgid "Pinterest"
606
  msgstr ""
607
 
608
- #: admin/class-aiovg-admin-settings.php:485
609
  msgid "Single Category Page"
610
  msgstr ""
611
 
612
- #: admin/class-aiovg-admin-settings.php:486
613
  msgid ""
614
  "This is the page where the videos from a particular category is displayed. "
615
  "The [aiovg_category] short code must be on this page."
616
  msgstr ""
617
 
618
- #: admin/class-aiovg-admin-settings.php:492
619
  msgid "Search Page"
620
  msgstr ""
621
 
622
- #: admin/class-aiovg-admin-settings.php:493
623
  msgid ""
624
  "This is the page where the search results are displayed. The [aiovg_search] "
625
  "short code must be on this page."
626
  msgstr ""
627
 
628
- #: admin/class-aiovg-admin-settings.php:499
629
  msgid "User Videos Page"
630
  msgstr ""
631
 
632
- #: admin/class-aiovg-admin-settings.php:500
633
  msgid ""
634
  "This is the page where the videos from an user is displayed. The "
635
  "[aiovg_user_videos] short code must be on this page."
636
  msgstr ""
637
 
638
- #: admin/class-aiovg-admin-settings.php:506
639
  msgid "Player Page"
640
  msgstr ""
641
 
642
- #: admin/class-aiovg-admin-settings.php:507
643
  msgid "This is the page used to show the video player."
644
  msgstr ""
645
 
646
- #: admin/class-aiovg-admin-settings.php:793
647
  msgid "Choose File"
648
  msgstr ""
649
 
650
- #: admin/class-aiovg-admin-settings.php:848
651
  msgid "Select a page"
652
  msgstr ""
653
 
@@ -685,16 +678,16 @@ msgid "Select Parent"
685
  msgstr ""
686
 
687
  #: admin/class-aiovg-admin-shortcode.php:117
688
- #: admin/class-aiovg-admin-shortcode.php:194
689
  #: widgets/categories/templates/admin.php:61
690
- #: widgets/videos/templates/admin.php:95
691
  msgid "ASC"
692
  msgstr ""
693
 
694
  #: admin/class-aiovg-admin-shortcode.php:118
695
- #: admin/class-aiovg-admin-shortcode.php:195
696
  #: widgets/categories/templates/admin.php:62
697
- #: widgets/videos/templates/admin.php:96
698
  msgid "DESC"
699
  msgstr ""
700
 
@@ -703,58 +696,62 @@ msgstr ""
703
  msgid "Select Categories"
704
  msgstr ""
705
 
706
- #: admin/class-aiovg-admin-shortcode.php:171
707
- #: widgets/videos/templates/admin.php:68
708
  msgid "Limit"
709
  msgstr ""
710
 
711
- #: admin/class-aiovg-admin-shortcode.php:178
712
  #: widgets/categories/templates/admin.php:39
713
- #: widgets/videos/templates/admin.php:73
714
  msgid "Order By"
715
  msgstr ""
716
 
717
- #: admin/class-aiovg-admin-shortcode.php:191
718
  #: widgets/categories/templates/admin.php:57
719
- #: widgets/videos/templates/admin.php:91
720
  msgid "Order"
721
  msgstr ""
722
 
723
- #: admin/class-aiovg-admin-shortcode.php:202
724
- #: widgets/videos/templates/admin.php:108
725
  msgid "Featured Only"
726
  msgstr ""
727
 
728
- #: admin/class-aiovg-admin-shortcode.php:209
729
- #: widgets/videos/templates/admin.php:114
730
  msgid "Follow URL?"
731
  msgstr ""
732
 
733
- #: admin/class-aiovg-admin-shortcode.php:263
734
- #: widgets/videos/templates/admin.php:147
735
  msgid "Excerpt ( Short Description )"
736
  msgstr ""
737
 
738
- #: admin/class-aiovg-admin-shortcode.php:270
739
  msgid "Show Pagination"
740
  msgstr ""
741
 
742
- #: admin/class-aiovg-admin-shortcode.php:279
743
  #: widgets/video/templates/admin.php:20
744
  msgid "Select a Video"
745
  msgstr ""
746
 
747
- #: admin/class-aiovg-admin-shortcode.php:374
 
 
 
 
748
  #: widgets/search/templates/admin.php:22
749
  msgid "Vertical"
750
  msgstr ""
751
 
752
- #: admin/class-aiovg-admin-shortcode.php:375
753
  #: widgets/search/templates/admin.php:23
754
  msgid "Horizontal"
755
  msgstr ""
756
 
757
- #: admin/class-aiovg-admin-shortcode.php:382
758
  #: widgets/search/templates/admin.php:29
759
  msgid "Search by Categories"
760
  msgstr ""
@@ -780,7 +777,7 @@ msgstr ""
780
  msgid "Parent Video:"
781
  msgstr ""
782
 
783
- #: admin/class-aiovg-admin-videos.php:43 admin/class-aiovg-admin-videos.php:375
784
  msgid "All Videos"
785
  msgstr ""
786
 
@@ -868,16 +865,16 @@ msgstr ""
868
  msgid "Video Sources"
869
  msgstr ""
870
 
871
- #: admin/class-aiovg-admin-videos.php:376
872
  msgid "Featured only"
873
  msgstr ""
874
 
875
- #: admin/class-aiovg-admin-videos.php:425 admin/templates/video-sources.php:161
876
- #: admin/templates/video-sources.php:164
877
  msgid "Views"
878
  msgstr ""
879
 
880
- #: admin/class-aiovg-admin-videos.php:426
881
  #: admin/templates/video-submitbox.php:18
882
  msgid "Featured"
883
  msgstr ""
@@ -917,7 +914,7 @@ msgid "Premium Add-ons"
917
  msgstr ""
918
 
919
  #: admin/templates/category-image.php:16 admin/templates/category-image.php:27
920
- #: admin/templates/video-sources.php:136 admin/templates/video-sources.php:139
921
  msgid "Image"
922
  msgstr ""
923
 
@@ -942,11 +939,11 @@ msgstr ""
942
  msgid "Top Categories"
943
  msgstr ""
944
 
945
- #: admin/templates/shortcode-builder.php:111
946
  msgid "Insert Shortcode"
947
  msgstr ""
948
 
949
- #: admin/templates/shortcode-builder.php:112
950
  msgid "Cancel"
951
  msgstr ""
952
 
@@ -959,13 +956,13 @@ msgid "MP4"
959
  msgstr ""
960
 
961
  #: admin/templates/video-sources.php:39 admin/templates/video-sources.php:70
962
- #: admin/templates/video-sources.php:84 admin/templates/video-sources.php:141
963
  #: admin/templates/video-tracks.php:28 admin/templates/video-tracks.php:64
964
  msgid "Enter your Direct File URL here (OR) use the Upload Media button"
965
  msgstr ""
966
 
967
  #: admin/templates/video-sources.php:41 admin/templates/video-sources.php:72
968
- #: admin/templates/video-sources.php:86 admin/templates/video-sources.php:143
969
  msgid "Upload Media"
970
  msgstr ""
971
 
@@ -980,7 +977,7 @@ msgid "OGV"
980
  msgstr ""
981
 
982
  #: admin/templates/video-sources.php:93 admin/templates/video-sources.php:96
983
- #: includes/functions.php:557
984
  msgid "YouTube"
985
  msgstr ""
986
 
@@ -989,7 +986,7 @@ msgid "Example: https://www.youtube.com/watch?v=twYp6W6vt2U"
989
  msgstr ""
990
 
991
  #: admin/templates/video-sources.php:104 admin/templates/video-sources.php:107
992
- #: includes/functions.php:558
993
  msgid "Vimeo"
994
  msgstr ""
995
 
@@ -997,19 +994,28 @@ msgstr ""
997
  msgid "Example: https://vimeo.com/108018156"
998
  msgstr ""
999
 
 
 
 
 
 
1000
  #: admin/templates/video-sources.php:120
 
 
 
 
1001
  msgid "Example: https://www.facebook.com/facebook/videos/10155278547321729"
1002
  msgstr ""
1003
 
1004
- #: admin/templates/video-sources.php:126 admin/templates/video-sources.php:129
1005
  msgid "Embed Code"
1006
  msgstr ""
1007
 
1008
- #: admin/templates/video-sources.php:130
1009
  msgid "Enter your Iframe Embed Code here"
1010
  msgstr ""
1011
 
1012
- #: admin/templates/video-sources.php:155
1013
  msgid "6:30"
1014
  msgstr ""
1015
 
@@ -1065,7 +1071,7 @@ msgstr ""
1065
  msgid ""
1066
  "Responsive & Lightweight Video gallery plugin. HTML5 with FLASH fallbacks. "
1067
  "Supports any browser & video formats such as MP4, WebM, OGV and embeddable "
1068
- "players like YouTube, Vimeo, etc."
1069
  msgstr ""
1070
 
1071
  #: admin/templates/welcome.php:35
@@ -1074,22 +1080,29 @@ msgid ""
1074
  "same Video Player trusted by WordPress."
1075
  msgstr ""
1076
 
1077
- #: admin/templates/welcome.php:45
 
 
 
 
 
 
 
1078
  msgid "Categories &rarr; Add"
1079
  msgstr ""
1080
 
1081
- #: admin/templates/welcome.php:50
1082
  #, php-format
1083
  msgid ""
1084
  "Unlimited Categories. Categories help you organize your videos in a flexible "
1085
  "way. Use %s shortcode to display the categories in the front-end."
1086
  msgstr ""
1087
 
1088
- #: admin/templates/welcome.php:59
1089
  msgid "Video Gallery &rarr; Add New"
1090
  msgstr ""
1091
 
1092
- #: admin/templates/welcome.php:64
1093
  #, php-format
1094
  msgid ""
1095
  "Uploading the video files is simple. To add your first video post, simply "
@@ -1098,13 +1111,6 @@ msgid ""
1098
  "video in your own POST or PAGE."
1099
  msgstr ""
1100
 
1101
- #: admin/templates/welcome.php:78
1102
- msgid ""
1103
- "Highly customizable. Complete control over the player & gallery display. "
1104
- "Configure what and how to display. Example: Number of Columns in a Gallery, "
1105
- "Autoplay a Video, etc."
1106
- msgstr ""
1107
-
1108
  #: admin/templates/welcome.php:84
1109
  msgid "Shortcode Builder"
1110
  msgstr ""
@@ -1166,60 +1172,56 @@ msgid ""
1166
  "for customers that need faster and/or more in-depth assistance."
1167
  msgstr ""
1168
 
1169
- #: includes/functions.php:355
1170
  msgid "No Items found."
1171
  msgstr ""
1172
 
1173
- #: includes/functions.php:556
1174
  msgid "Self Hosted"
1175
  msgstr ""
1176
 
1177
- #: includes/functions.php:556
1178
  msgid "External URL"
1179
  msgstr ""
1180
 
1181
- #: includes/functions.php:560
1182
  msgid "Iframe Embed Code"
1183
  msgstr ""
1184
 
1185
- #: includes/functions.php:576
1186
- msgid "Standard"
1187
- msgstr ""
1188
-
1189
- #: includes/functions.php:719
1190
  msgid "Video Category"
1191
  msgstr ""
1192
 
1193
- #: includes/functions.php:723 widgets/search/class-aiovg-widget-search.php:117
1194
  msgid "Search Videos"
1195
  msgstr ""
1196
 
1197
- #: includes/functions.php:727
1198
  msgid "User Videos"
1199
  msgstr ""
1200
 
1201
- #: includes/functions.php:731
1202
  msgid "Player Embed"
1203
  msgstr ""
1204
 
1205
- #: includes/functions.php:902
1206
  msgid "&laquo;"
1207
  msgstr ""
1208
 
1209
- #: includes/functions.php:903
1210
  msgid "&raquo;"
1211
  msgstr ""
1212
 
1213
- #: includes/functions.php:927
1214
  #, php-format
1215
  msgid "Page %d of %d"
1216
  msgstr ""
1217
 
1218
- #: includes/functions.php:996
1219
  msgid "Google+"
1220
  msgstr ""
1221
 
1222
- #: includes/functions.php:1006
1223
  msgid "Pin It"
1224
  msgstr ""
1225
 
@@ -1320,6 +1322,10 @@ msgstr ""
1320
  msgid "AIOVG - Search Videos"
1321
  msgstr ""
1322
 
 
 
 
 
1323
  #: widgets/video/class-aiovg-widget-video.php:45
1324
  msgid "Displays video added using \"All in One Video Gallery\" plugin."
1325
  msgstr ""
@@ -1328,39 +1334,39 @@ msgstr ""
1328
  msgid "AIOVG - Video Player"
1329
  msgstr ""
1330
 
1331
- #: widgets/videos/class-aiovg-widget-videos.php:75
1332
- #: widgets/videos/templates/admin.php:152
1333
  msgid "Show More"
1334
  msgstr ""
1335
 
1336
- #: widgets/videos/class-aiovg-widget-videos.php:83
1337
  msgid "AIOVG - Video Gallery"
1338
  msgstr ""
1339
 
1340
- #: widgets/videos/class-aiovg-widget-videos.php:86
1341
  msgid "Displays a video gallery."
1342
  msgstr ""
1343
 
1344
- #: widgets/videos/templates/admin.php:47
1345
  msgid "Image Position"
1346
  msgstr ""
1347
 
1348
- #: widgets/videos/templates/admin.php:51
1349
  msgid "Top"
1350
  msgstr ""
1351
 
1352
- #: widgets/videos/templates/admin.php:52
1353
  msgid "Left"
1354
  msgstr ""
1355
 
1356
- #: widgets/videos/templates/admin.php:132
1357
  msgid "Show User"
1358
  msgstr ""
1359
 
1360
- #: widgets/videos/templates/admin.php:156
1361
  msgid "More Label"
1362
  msgstr ""
1363
 
1364
- #: widgets/videos/templates/admin.php:161
1365
  msgid "More Link"
1366
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: All in One Video Gallery\n"
4
+ "POT-Creation-Date: 2018-02-25 16:48+0530\n"
5
+ "PO-Revision-Date: 2018-02-25 16:48+0530\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: en_US\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 2.0.6\n"
13
  "X-Poedit-Basepath: ..\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
27
  msgstr ""
28
 
29
  #: admin/class-aiovg-admin-categories.php:36
30
+ #: admin/class-aiovg-admin-videos.php:365
31
  msgid "All Categories"
32
  msgstr ""
33
 
98
  #: admin/class-aiovg-admin-categories.php:137
99
  #: admin/class-aiovg-admin-settings.php:320
100
  #: admin/class-aiovg-admin-shortcode.php:104
101
+ #: admin/class-aiovg-admin-videos.php:433
102
  #: widgets/categories/templates/admin.php:43
103
  msgid "ID"
104
  msgstr ""
105
 
106
  #: admin/class-aiovg-admin-settings.php:61
107
  #: admin/class-aiovg-admin-settings.php:62 admin/class-aiovg-admin.php:63
108
+ #: admin/templates/welcome.php:45
109
  msgid "Settings"
110
  msgstr ""
111
 
204
 
205
  #: admin/class-aiovg-admin-settings.php:216
206
  #: admin/class-aiovg-admin-settings.php:290
207
+ #: admin/class-aiovg-admin-shortcode.php:279
208
  #: widgets/video/templates/admin.php:46
209
  msgid "Width"
210
  msgstr ""
218
 
219
  #: admin/class-aiovg-admin-settings.php:223
220
  #: admin/class-aiovg-admin-settings.php:297
221
+ #: admin/class-aiovg-admin-shortcode.php:286
222
  #: widgets/video/templates/admin.php:51
223
  msgid "Ratio"
224
  msgstr ""
258
  msgstr ""
259
 
260
  #: admin/class-aiovg-admin-settings.php:240
261
+ #: admin/class-aiovg-admin-shortcode.php:293
262
  #: widgets/video/templates/admin.php:57
263
  msgid "Autoplay"
264
  msgstr ""
268
  msgstr ""
269
 
270
  #: admin/class-aiovg-admin-settings.php:247
271
+ #: admin/class-aiovg-admin-shortcode.php:300
272
  #: widgets/video/templates/admin.php:62
273
  msgid "Loop"
274
  msgstr ""
312
  msgstr ""
313
 
314
  #: admin/class-aiovg-admin-settings.php:272
315
+ #: admin/class-aiovg-admin-shortcode.php:307
316
  #: widgets/video/templates/admin.php:65
317
  msgid "Show / Hide Player Controls"
318
  msgstr ""
319
 
320
  #: admin/class-aiovg-admin-settings.php:276
321
+ #: admin/class-aiovg-admin-shortcode.php:312
322
  #: widgets/video/templates/admin.php:69
323
  msgid "Play / Pause"
324
  msgstr ""
325
 
326
  #: admin/class-aiovg-admin-settings.php:277
327
+ #: admin/class-aiovg-admin-shortcode.php:319
328
  #: widgets/video/templates/admin.php:74
329
  msgid "Current Time"
330
  msgstr ""
331
 
332
  #: admin/class-aiovg-admin-settings.php:278
333
+ #: admin/class-aiovg-admin-shortcode.php:326
334
  #: widgets/video/templates/admin.php:79
335
  msgid "Progressbar"
336
  msgstr ""
337
 
338
  #: admin/class-aiovg-admin-settings.php:279
339
+ #: admin/class-aiovg-admin-shortcode.php:333
340
+ #: admin/templates/video-sources.php:161 admin/templates/video-sources.php:164
341
  #: widgets/video/templates/admin.php:84
342
  msgid "Duration"
343
  msgstr ""
344
 
345
  #: admin/class-aiovg-admin-settings.php:280
346
+ #: admin/class-aiovg-admin-shortcode.php:340
347
  #: admin/class-aiovg-admin-videos.php:150 widgets/video/templates/admin.php:89
348
  msgid "Subtitles"
349
  msgstr ""
350
 
351
  #: admin/class-aiovg-admin-settings.php:281
352
+ #: admin/class-aiovg-admin-shortcode.php:347
353
  #: widgets/video/templates/admin.php:94
354
  msgid "Volume"
355
  msgstr ""
356
 
357
  #: admin/class-aiovg-admin-settings.php:282
358
+ #: admin/class-aiovg-admin-shortcode.php:354
359
  #: widgets/video/templates/admin.php:99
360
  msgid "Fullscreen"
361
  msgstr ""
372
  msgstr ""
373
 
374
  #: admin/class-aiovg-admin-settings.php:306
375
+ #: admin/class-aiovg-admin-settings.php:363
376
  #: admin/class-aiovg-admin-shortcode.php:94
377
+ #: admin/class-aiovg-admin-shortcode.php:156
378
+ #: widgets/videos/templates/admin.php:50
379
  msgid "Number of Columns"
380
  msgstr ""
381
 
412
  msgstr ""
413
 
414
  #: admin/class-aiovg-admin-settings.php:333
415
+ #: admin/class-aiovg-admin-settings.php:397
416
  msgid "Ascending"
417
  msgstr ""
418
 
419
  #: admin/class-aiovg-admin-settings.php:334
420
+ #: admin/class-aiovg-admin-settings.php:398
421
  msgid "Descending"
422
  msgstr ""
423
 
448
  msgid "Check this to hide categories with no videos"
449
  msgstr ""
450
 
451
+ #: admin/class-aiovg-admin-settings.php:364
 
 
 
 
 
 
 
452
  msgid "Enter the number of columns you like to have in the gallery view."
453
  msgstr ""
454
 
455
+ #: admin/class-aiovg-admin-settings.php:373
456
  msgid "Videos per Page"
457
  msgstr ""
458
 
459
+ #: admin/class-aiovg-admin-settings.php:374
460
  msgid ""
461
  "Number of videos to show per page. Use a value of \"0\" to show all videos."
462
  msgstr ""
463
 
464
+ #: admin/class-aiovg-admin-settings.php:380
465
  msgid "Order Videos by"
466
  msgstr ""
467
 
468
+ #: admin/class-aiovg-admin-settings.php:384
469
+ #: admin/class-aiovg-admin-shortcode.php:173
470
  #: widgets/categories/templates/admin.php:15
471
  #: widgets/search/templates/admin.php:15 widgets/video/templates/admin.php:15
472
+ #: widgets/videos/templates/admin.php:15 widgets/videos/templates/admin.php:64
473
  msgid "Title"
474
  msgstr ""
475
 
476
+ #: admin/class-aiovg-admin-settings.php:385
477
+ #: admin/class-aiovg-admin-shortcode.php:174
478
+ #: widgets/videos/templates/admin.php:65
479
  msgid "Date Posted"
480
  msgstr ""
481
 
482
+ #: admin/class-aiovg-admin-settings.php:386
483
+ #: admin/class-aiovg-admin-settings.php:412
484
+ #: admin/class-aiovg-admin-settings.php:436
485
+ #: admin/class-aiovg-admin-shortcode.php:175
486
+ #: admin/class-aiovg-admin-shortcode.php:241
487
+ #: widgets/videos/templates/admin.php:66 widgets/videos/templates/admin.php:124
488
  msgid "Views Count"
489
  msgstr ""
490
 
491
+ #: admin/class-aiovg-admin-settings.php:387
492
+ #: admin/class-aiovg-admin-shortcode.php:176
493
+ #: widgets/videos/templates/admin.php:67
494
  msgid "Random"
495
  msgstr ""
496
 
497
+ #: admin/class-aiovg-admin-settings.php:393
498
  msgid "Sort Videos by"
499
  msgstr ""
500
 
501
+ #: admin/class-aiovg-admin-settings.php:404
502
+ #: admin/class-aiovg-admin-settings.php:429
503
+ #: admin/class-aiovg-admin-shortcode.php:208
504
+ #: widgets/videos/templates/admin.php:105
505
  msgid "Show / Hide"
506
  msgstr ""
507
 
508
+ #: admin/class-aiovg-admin-settings.php:408
509
+ #: admin/class-aiovg-admin-shortcode.php:213
510
  msgid "Videos Count"
511
  msgstr ""
512
 
513
+ #: admin/class-aiovg-admin-settings.php:409
514
+ #: admin/class-aiovg-admin-settings.php:433
515
+ #: admin/class-aiovg-admin-shortcode.php:220
516
+ #: widgets/videos/templates/admin.php:109
517
  msgid "Category Name"
518
  msgstr ""
519
 
520
+ #: admin/class-aiovg-admin-settings.php:410
521
+ #: admin/class-aiovg-admin-settings.php:434
522
+ #: admin/class-aiovg-admin-shortcode.php:227
523
+ #: widgets/videos/templates/admin.php:114
524
  msgid "Date Added"
525
  msgstr ""
526
 
527
+ #: admin/class-aiovg-admin-settings.php:411
528
+ #: admin/class-aiovg-admin-settings.php:435
529
+ #: admin/class-aiovg-admin-shortcode.php:234
530
  msgid "Author Name"
531
  msgstr ""
532
 
533
+ #: admin/class-aiovg-admin-settings.php:413
534
+ #: admin/class-aiovg-admin-shortcode.php:248
535
+ #: widgets/videos/templates/admin.php:129
536
  msgid "Video Duration"
537
  msgstr ""
538
 
539
+ #: admin/class-aiovg-admin-settings.php:414
540
  msgid "Excerpt ( Short Description )"
541
  msgstr ""
542
 
543
+ #: admin/class-aiovg-admin-settings.php:420
544
  msgid "Excerpt Length"
545
  msgstr ""
546
 
547
+ #: admin/class-aiovg-admin-settings.php:421
548
  msgid "Number of characters."
549
  msgstr ""
550
 
551
+ #: admin/class-aiovg-admin-settings.php:437
552
+ #: admin/class-aiovg-admin-shortcode.php:201
553
+ #: widgets/videos/templates/admin.php:101
554
  msgid "Related Videos"
555
  msgstr ""
556
 
557
+ #: admin/class-aiovg-admin-settings.php:443
558
  msgid "Enable Comments"
559
  msgstr ""
560
 
561
+ #: admin/class-aiovg-admin-settings.php:444
562
  msgid ""
563
  "Allow visitors to comment videos using the standard WordPress comment form. "
564
  "Comments are public"
565
  msgstr ""
566
 
567
+ #: admin/class-aiovg-admin-settings.php:452
568
  msgid "Video Detail Page"
569
  msgstr ""
570
 
571
+ #: admin/class-aiovg-admin-settings.php:453
572
  msgid "Replaces the SLUG value used by custom post type \"aiovg_videos\"."
573
  msgstr ""
574
 
575
+ #: admin/class-aiovg-admin-settings.php:461
576
  msgid "Enable Services"
577
  msgstr ""
578
 
579
+ #: admin/class-aiovg-admin-settings.php:465
580
+ #: admin/templates/video-sources.php:126 admin/templates/video-sources.php:129
581
+ #: includes/functions.php:627 includes/functions.php:1038
582
  msgid "Facebook"
583
  msgstr ""
584
 
585
+ #: admin/class-aiovg-admin-settings.php:466 includes/functions.php:1043
586
  msgid "Twitter"
587
  msgstr ""
588
 
589
+ #: admin/class-aiovg-admin-settings.php:467
590
  msgid "Google Plus"
591
  msgstr ""
592
 
593
+ #: admin/class-aiovg-admin-settings.php:468 includes/functions.php:1053
594
  msgid "Linkedin"
595
  msgstr ""
596
 
597
+ #: admin/class-aiovg-admin-settings.php:469
598
  msgid "Pinterest"
599
  msgstr ""
600
 
601
+ #: admin/class-aiovg-admin-settings.php:477
602
  msgid "Single Category Page"
603
  msgstr ""
604
 
605
+ #: admin/class-aiovg-admin-settings.php:478
606
  msgid ""
607
  "This is the page where the videos from a particular category is displayed. "
608
  "The [aiovg_category] short code must be on this page."
609
  msgstr ""
610
 
611
+ #: admin/class-aiovg-admin-settings.php:484
612
  msgid "Search Page"
613
  msgstr ""
614
 
615
+ #: admin/class-aiovg-admin-settings.php:485
616
  msgid ""
617
  "This is the page where the search results are displayed. The [aiovg_search] "
618
  "short code must be on this page."
619
  msgstr ""
620
 
621
+ #: admin/class-aiovg-admin-settings.php:491
622
  msgid "User Videos Page"
623
  msgstr ""
624
 
625
+ #: admin/class-aiovg-admin-settings.php:492
626
  msgid ""
627
  "This is the page where the videos from an user is displayed. The "
628
  "[aiovg_user_videos] short code must be on this page."
629
  msgstr ""
630
 
631
+ #: admin/class-aiovg-admin-settings.php:498
632
  msgid "Player Page"
633
  msgstr ""
634
 
635
+ #: admin/class-aiovg-admin-settings.php:499
636
  msgid "This is the page used to show the video player."
637
  msgstr ""
638
 
639
+ #: admin/class-aiovg-admin-settings.php:785
640
  msgid "Choose File"
641
  msgstr ""
642
 
643
+ #: admin/class-aiovg-admin-settings.php:840
644
  msgid "Select a page"
645
  msgstr ""
646
 
678
  msgstr ""
679
 
680
  #: admin/class-aiovg-admin-shortcode.php:117
681
+ #: admin/class-aiovg-admin-shortcode.php:186
682
  #: widgets/categories/templates/admin.php:61
683
+ #: widgets/videos/templates/admin.php:82
684
  msgid "ASC"
685
  msgstr ""
686
 
687
  #: admin/class-aiovg-admin-shortcode.php:118
688
+ #: admin/class-aiovg-admin-shortcode.php:187
689
  #: widgets/categories/templates/admin.php:62
690
+ #: widgets/videos/templates/admin.php:83
691
  msgid "DESC"
692
  msgstr ""
693
 
696
  msgid "Select Categories"
697
  msgstr ""
698
 
699
+ #: admin/class-aiovg-admin-shortcode.php:163
700
+ #: widgets/videos/templates/admin.php:55
701
  msgid "Limit"
702
  msgstr ""
703
 
704
+ #: admin/class-aiovg-admin-shortcode.php:170
705
  #: widgets/categories/templates/admin.php:39
706
+ #: widgets/videos/templates/admin.php:60
707
  msgid "Order By"
708
  msgstr ""
709
 
710
+ #: admin/class-aiovg-admin-shortcode.php:183
711
  #: widgets/categories/templates/admin.php:57
712
+ #: widgets/videos/templates/admin.php:78
713
  msgid "Order"
714
  msgstr ""
715
 
716
+ #: admin/class-aiovg-admin-shortcode.php:194
717
+ #: widgets/videos/templates/admin.php:95
718
  msgid "Featured Only"
719
  msgstr ""
720
 
721
+ #: admin/class-aiovg-admin-shortcode.php:201
722
+ #: widgets/videos/templates/admin.php:101
723
  msgid "Follow URL?"
724
  msgstr ""
725
 
726
+ #: admin/class-aiovg-admin-shortcode.php:255
727
+ #: widgets/videos/templates/admin.php:134
728
  msgid "Excerpt ( Short Description )"
729
  msgstr ""
730
 
731
+ #: admin/class-aiovg-admin-shortcode.php:262
732
  msgid "Show Pagination"
733
  msgstr ""
734
 
735
+ #: admin/class-aiovg-admin-shortcode.php:271
736
  #: widgets/video/templates/admin.php:20
737
  msgid "Select a Video"
738
  msgstr ""
739
 
740
+ #: admin/class-aiovg-admin-shortcode.php:363
741
+ msgid "Select a Template"
742
+ msgstr ""
743
+
744
+ #: admin/class-aiovg-admin-shortcode.php:366
745
  #: widgets/search/templates/admin.php:22
746
  msgid "Vertical"
747
  msgstr ""
748
 
749
+ #: admin/class-aiovg-admin-shortcode.php:367
750
  #: widgets/search/templates/admin.php:23
751
  msgid "Horizontal"
752
  msgstr ""
753
 
754
+ #: admin/class-aiovg-admin-shortcode.php:374
755
  #: widgets/search/templates/admin.php:29
756
  msgid "Search by Categories"
757
  msgstr ""
777
  msgid "Parent Video:"
778
  msgstr ""
779
 
780
+ #: admin/class-aiovg-admin-videos.php:43 admin/class-aiovg-admin-videos.php:381
781
  msgid "All Videos"
782
  msgstr ""
783
 
865
  msgid "Video Sources"
866
  msgstr ""
867
 
868
+ #: admin/class-aiovg-admin-videos.php:382
869
  msgid "Featured only"
870
  msgstr ""
871
 
872
+ #: admin/class-aiovg-admin-videos.php:431 admin/templates/video-sources.php:172
873
+ #: admin/templates/video-sources.php:175
874
  msgid "Views"
875
  msgstr ""
876
 
877
+ #: admin/class-aiovg-admin-videos.php:432
878
  #: admin/templates/video-submitbox.php:18
879
  msgid "Featured"
880
  msgstr ""
914
  msgstr ""
915
 
916
  #: admin/templates/category-image.php:16 admin/templates/category-image.php:27
917
+ #: admin/templates/video-sources.php:147 admin/templates/video-sources.php:150
918
  msgid "Image"
919
  msgstr ""
920
 
939
  msgid "Top Categories"
940
  msgstr ""
941
 
942
+ #: admin/templates/shortcode-builder.php:116
943
  msgid "Insert Shortcode"
944
  msgstr ""
945
 
946
+ #: admin/templates/shortcode-builder.php:117
947
  msgid "Cancel"
948
  msgstr ""
949
 
956
  msgstr ""
957
 
958
  #: admin/templates/video-sources.php:39 admin/templates/video-sources.php:70
959
+ #: admin/templates/video-sources.php:84 admin/templates/video-sources.php:152
960
  #: admin/templates/video-tracks.php:28 admin/templates/video-tracks.php:64
961
  msgid "Enter your Direct File URL here (OR) use the Upload Media button"
962
  msgstr ""
963
 
964
  #: admin/templates/video-sources.php:41 admin/templates/video-sources.php:72
965
+ #: admin/templates/video-sources.php:86 admin/templates/video-sources.php:154
966
  msgid "Upload Media"
967
  msgstr ""
968
 
977
  msgstr ""
978
 
979
  #: admin/templates/video-sources.php:93 admin/templates/video-sources.php:96
980
+ #: includes/functions.php:624
981
  msgid "YouTube"
982
  msgstr ""
983
 
986
  msgstr ""
987
 
988
  #: admin/templates/video-sources.php:104 admin/templates/video-sources.php:107
989
+ #: includes/functions.php:625
990
  msgid "Vimeo"
991
  msgstr ""
992
 
994
  msgid "Example: https://vimeo.com/108018156"
995
  msgstr ""
996
 
997
+ #: admin/templates/video-sources.php:115 admin/templates/video-sources.php:118
998
+ #: includes/functions.php:626
999
+ msgid "Dailymotion"
1000
+ msgstr ""
1001
+
1002
  #: admin/templates/video-sources.php:120
1003
+ msgid "Example: https://www.dailymotion.com/video/x11prnt"
1004
+ msgstr ""
1005
+
1006
+ #: admin/templates/video-sources.php:131
1007
  msgid "Example: https://www.facebook.com/facebook/videos/10155278547321729"
1008
  msgstr ""
1009
 
1010
+ #: admin/templates/video-sources.php:137 admin/templates/video-sources.php:140
1011
  msgid "Embed Code"
1012
  msgstr ""
1013
 
1014
+ #: admin/templates/video-sources.php:141
1015
  msgid "Enter your Iframe Embed Code here"
1016
  msgstr ""
1017
 
1018
+ #: admin/templates/video-sources.php:166
1019
  msgid "6:30"
1020
  msgstr ""
1021
 
1071
  msgid ""
1072
  "Responsive & Lightweight Video gallery plugin. HTML5 with FLASH fallbacks. "
1073
  "Supports any browser & video formats such as MP4, WebM, OGV and embeddable "
1074
+ "players like YouTube, Vimeo, Dailymotion, Facebook, etc."
1075
  msgstr ""
1076
 
1077
  #: admin/templates/welcome.php:35
1080
  "same Video Player trusted by WordPress."
1081
  msgstr ""
1082
 
1083
+ #: admin/templates/welcome.php:50
1084
+ msgid ""
1085
+ "Highly customizable. Complete control over the player & gallery display. "
1086
+ "Configure what and how to display. Example: Number of Columns in a Gallery, "
1087
+ "Autoplay a Video, etc."
1088
+ msgstr ""
1089
+
1090
+ #: admin/templates/welcome.php:59
1091
  msgid "Categories &rarr; Add"
1092
  msgstr ""
1093
 
1094
+ #: admin/templates/welcome.php:64
1095
  #, php-format
1096
  msgid ""
1097
  "Unlimited Categories. Categories help you organize your videos in a flexible "
1098
  "way. Use %s shortcode to display the categories in the front-end."
1099
  msgstr ""
1100
 
1101
+ #: admin/templates/welcome.php:73
1102
  msgid "Video Gallery &rarr; Add New"
1103
  msgstr ""
1104
 
1105
+ #: admin/templates/welcome.php:78
1106
  #, php-format
1107
  msgid ""
1108
  "Uploading the video files is simple. To add your first video post, simply "
1111
  "video in your own POST or PAGE."
1112
  msgstr ""
1113
 
 
 
 
 
 
 
 
1114
  #: admin/templates/welcome.php:84
1115
  msgid "Shortcode Builder"
1116
  msgstr ""
1172
  "for customers that need faster and/or more in-depth assistance."
1173
  msgstr ""
1174
 
1175
+ #: includes/functions.php:418
1176
  msgid "No Items found."
1177
  msgstr ""
1178
 
1179
+ #: includes/functions.php:623
1180
  msgid "Self Hosted"
1181
  msgstr ""
1182
 
1183
+ #: includes/functions.php:623
1184
  msgid "External URL"
1185
  msgstr ""
1186
 
1187
+ #: includes/functions.php:628
1188
  msgid "Iframe Embed Code"
1189
  msgstr ""
1190
 
1191
+ #: includes/functions.php:771
 
 
 
 
1192
  msgid "Video Category"
1193
  msgstr ""
1194
 
1195
+ #: includes/functions.php:775 widgets/search/class-aiovg-widget-search.php:117
1196
  msgid "Search Videos"
1197
  msgstr ""
1198
 
1199
+ #: includes/functions.php:779
1200
  msgid "User Videos"
1201
  msgstr ""
1202
 
1203
+ #: includes/functions.php:783
1204
  msgid "Player Embed"
1205
  msgstr ""
1206
 
1207
+ #: includes/functions.php:954
1208
  msgid "&laquo;"
1209
  msgstr ""
1210
 
1211
+ #: includes/functions.php:955
1212
  msgid "&raquo;"
1213
  msgstr ""
1214
 
1215
+ #: includes/functions.php:979
1216
  #, php-format
1217
  msgid "Page %d of %d"
1218
  msgstr ""
1219
 
1220
+ #: includes/functions.php:1048
1221
  msgid "Google+"
1222
  msgstr ""
1223
 
1224
+ #: includes/functions.php:1058
1225
  msgid "Pin It"
1226
  msgstr ""
1227
 
1322
  msgid "AIOVG - Search Videos"
1323
  msgstr ""
1324
 
1325
+ #: widgets/search/templates/admin.php:20
1326
+ msgid "Select Template"
1327
+ msgstr ""
1328
+
1329
  #: widgets/video/class-aiovg-widget-video.php:45
1330
  msgid "Displays video added using \"All in One Video Gallery\" plugin."
1331
  msgstr ""
1334
  msgid "AIOVG - Video Player"
1335
  msgstr ""
1336
 
1337
+ #: widgets/videos/class-aiovg-widget-videos.php:74
1338
+ #: widgets/videos/templates/admin.php:139
1339
  msgid "Show More"
1340
  msgstr ""
1341
 
1342
+ #: widgets/videos/class-aiovg-widget-videos.php:82
1343
  msgid "AIOVG - Video Gallery"
1344
  msgstr ""
1345
 
1346
+ #: widgets/videos/class-aiovg-widget-videos.php:85
1347
  msgid "Displays a video gallery."
1348
  msgstr ""
1349
 
1350
+ #: widgets/videos/templates/admin.php:34
1351
  msgid "Image Position"
1352
  msgstr ""
1353
 
1354
+ #: widgets/videos/templates/admin.php:38
1355
  msgid "Top"
1356
  msgstr ""
1357
 
1358
+ #: widgets/videos/templates/admin.php:39
1359
  msgid "Left"
1360
  msgstr ""
1361
 
1362
+ #: widgets/videos/templates/admin.php:119
1363
  msgid "Show User"
1364
  msgstr ""
1365
 
1366
+ #: widgets/videos/templates/admin.php:143
1367
  msgid "More Label"
1368
  msgstr ""
1369
 
1370
+ #: widgets/videos/templates/admin.php:148
1371
  msgid "More Link"
1372
  msgstr ""
public/templates/player.php CHANGED
@@ -76,11 +76,12 @@ $attributes = apply_filters( 'aiovg_video_attributes', $attributes );
76
 
77
  // Sources
78
  $types = array(
79
- 'all' => array( 'mp4', 'webm', 'ogv', 'youtube', 'vimeo', 'facebook' ),
80
- 'default' => array( 'mp4', 'webm', 'ogv' ),
81
- 'youtube' => array( 'youtube' ),
82
- 'vimeo' => array( 'vimeo' ),
83
- 'facebook' => array( 'facebook' )
 
84
  );
85
 
86
  if ( ! empty( $post_meta ) ) {
@@ -139,7 +140,7 @@ if ( isset( $_SERVER['HTTP_USER_AGENT'] ) && preg_match( '/iPhone|iPod|iPad|Blac
139
  if ( $is_mobile ) {
140
  $attributes['autoplay'] = false;
141
 
142
- if ( in_array( 'youtube', $formats ) || in_array( 'vimeo', $formats ) || in_array( 'facebook', $formats ) ) {
143
  $attributes['poster'] = '';
144
  $use_native_controls = 1;
145
  }
@@ -181,6 +182,9 @@ if ( $is_mobile ) {
181
  <?php if ( in_array( 'vimeo', $formats ) ) : ?>
182
  <script src="<?php echo AIOVG_PLUGIN_URL; ?>public/assets/mediaelement/renderers/vimeo.min.js?v=4.2.8" type="text/javascript"></script>
183
  <?php endif; ?>
 
 
 
184
  <?php if ( in_array( 'facebook', $formats ) ) : ?>
185
  <script src="<?php echo AIOVG_PLUGIN_URL; ?>public/assets/mediaelement/renderers/facebook.min.js?v=4.2.8" type="text/javascript"></script>
186
  <?php endif; ?>
@@ -200,7 +204,7 @@ if ( $is_mobile ) {
200
  youtube: { showinfo: 0, rel: 0, iv_load_policy: 3 },
201
  success: function( media ) {
202
 
203
- <?php if ( ! empty( $attributes['autoplay'] ) ) : ?>
204
  // An ugly hack to autoplay Vimeo videos
205
  if ( ~media.rendererName.indexOf( 'vimeo' ) || ~media.rendererName.indexOf( 'dash' ) ) {
206
  media.play();
76
 
77
  // Sources
78
  $types = array(
79
+ 'all' => array( 'mp4', 'webm', 'ogv', 'youtube', 'vimeo', 'dailymotion', 'facebook' ),
80
+ 'default' => array( 'mp4', 'webm', 'ogv' ),
81
+ 'youtube' => array( 'youtube' ),
82
+ 'vimeo' => array( 'vimeo' ),
83
+ 'dailymotion' => array( 'dailymotion' ),
84
+ 'facebook' => array( 'facebook' )
85
  );
86
 
87
  if ( ! empty( $post_meta ) ) {
140
  if ( $is_mobile ) {
141
  $attributes['autoplay'] = false;
142
 
143
+ if ( in_array( 'youtube', $formats ) || in_array( 'vimeo', $formats ) || in_array( 'dailymotion', $formats ) || in_array( 'facebook', $formats ) ) {
144
  $attributes['poster'] = '';
145
  $use_native_controls = 1;
146
  }
182
  <?php if ( in_array( 'vimeo', $formats ) ) : ?>
183
  <script src="<?php echo AIOVG_PLUGIN_URL; ?>public/assets/mediaelement/renderers/vimeo.min.js?v=4.2.8" type="text/javascript"></script>
184
  <?php endif; ?>
185
+ <?php if ( in_array( 'dailymotion', $formats ) ) : ?>
186
+ <script src="<?php echo AIOVG_PLUGIN_URL; ?>public/assets/mediaelement/renderers/dailymotion.min.js?v=4.2.8" type="text/javascript"></script>
187
+ <?php endif; ?>
188
  <?php if ( in_array( 'facebook', $formats ) ) : ?>
189
  <script src="<?php echo AIOVG_PLUGIN_URL; ?>public/assets/mediaelement/renderers/facebook.min.js?v=4.2.8" type="text/javascript"></script>
190
  <?php endif; ?>
204
  youtube: { showinfo: 0, rel: 0, iv_load_policy: 3 },
205
  success: function( media ) {
206
 
207
+ <?php if ( count( $sources ) && ! empty( $attributes['autoplay'] ) ) : ?>
208
  // An ugly hack to autoplay Vimeo videos
209
  if ( ~media.rendererName.indexOf( 'vimeo' ) || ~media.rendererName.indexOf( 'dash' ) ) {
210
  media.play();
widgets/search/templates/admin.php CHANGED
@@ -12,12 +12,12 @@
12
  ?>
13
 
14
  <p>
15
- <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title', 'all-in-one-video-gallery' ); ?>:</label>
16
  <input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>" id="<?php echo $this->get_field_id( 'title' ); ?>" class="widefat" value="<?php echo esc_attr( $instance['title'] ); ?>" />
17
  </p>
18
 
19
  <p>
20
- <label for="<?php echo $this->get_field_id( 'template' ); ?>"><?php _e( 'Select a Template', 'all-in-one-video-gallery' ); ?>:</label>
21
  <select name="<?php echo $this->get_field_name( 'template' ); ?>" id="<?php echo $this->get_field_id( 'template' ); ?>" class="widefat">
22
  <option value="vertical"<?php selected( $instance['template'], 'vertical' ); ?>><?php _e( 'Vertical', 'all-in-one-video-gallery' ); ?></option>
23
  <option value="horizontal"<?php selected( $instance['template'], 'horizontal' ); ?>><?php _e( 'Horizontal', 'all-in-one-video-gallery' ); ?></option>
12
  ?>
13
 
14
  <p>
15
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title', 'all-in-one-video-gallery' ); ?></label>
16
  <input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>" id="<?php echo $this->get_field_id( 'title' ); ?>" class="widefat" value="<?php echo esc_attr( $instance['title'] ); ?>" />
17
  </p>
18
 
19
  <p>
20
+ <label for="<?php echo $this->get_field_id( 'template' ); ?>"><?php _e( 'Select Template', 'all-in-one-video-gallery' ); ?></label>
21
  <select name="<?php echo $this->get_field_name( 'template' ); ?>" id="<?php echo $this->get_field_id( 'template' ); ?>" class="widefat">
22
  <option value="vertical"<?php selected( $instance['template'], 'vertical' ); ?>><?php _e( 'Vertical', 'all-in-one-video-gallery' ); ?></option>
23
  <option value="horizontal"<?php selected( $instance['template'], 'horizontal' ); ?>><?php _e( 'Horizontal', 'all-in-one-video-gallery' ); ?></option>