All-in-One Video Gallery - Version 2.4.1

Version Description

  • Fix: Duplicate plugin menu on the multisite setup.
  • Fix: Private Vimeo videos not working.
  • Fix: Muted option not working with the Facebook videos.
  • Fix: Featured thumbnail issue on the single video pages.
  • Fix: [+] few minor bug fixes.
Download this release

Release Info

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

Code changes from version 2.4.0 to 2.4.1

README.txt CHANGED
@@ -6,64 +6,87 @@ Tags: video player, video gallery, youtube gallery, vimeo gallery, livestream
6
  Requires at least: 4.7.0
7
  Tested up to: 5.4
8
  Requires PHP: 5.3.0
9
- Stable tag: 2.4.0
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
13
- Add responsive video galleries anywhere on your website – no coding required. Includes HTML5 Player, Thumbnail Grid, Slider, Popup & more
14
 
15
  == Description ==
16
 
17
- No coding required. A Responsive & Lightweight video gallery plugin.
18
 
19
- HTML5 Player, Categories, Visual Builder (Gutenberg), Search Form, Comments, Social Sharing and everything you will need to build a YouTube/Vimeo like a video sharing website.
20
 
21
- [Demo](https://demo.plugins360.com/all-in-one-video-gallery/) | [Documentation](https://plugins360.com/all-in-one-video-gallery/documentation/) | [Support](https://plugins360.com/support/) | [Premium Version](https://plugins360.com/all-in-one-video-gallery/pricing/)
22
 
23
- https://www.youtube.com/watch?v=w47PU9ppuF8
24
 
25
- **Key Features**
26
 
27
- * Modern, Responsive design.
28
- * Unlimited Categories.
29
- * Unlimited Videos.
30
- * Thumbnail Gallery (you can select how many rows, columns to display and pagination).
31
- * HTML5 Player with FLASH fallback.
32
- * Plays anywhere: supports MP4, WebM, OGV and embeddable players like YouTube, Vimeo, Dailymotion & Facebook.
33
- * Player controls: play pause, timer, progress bar, duration, volume, fullscreen
34
  * Playback options: autoplay, loop, muted, preload
35
- * Subtitles.
36
- * Comments.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  * Social Sharing (Facebook, Twitter, Linkedin, Pinterest & WhatsApp).
38
- * Form to search videos.
39
- * Widgets to list categories, list videos, display a single video player and to search videos.
40
- * Show GDPR consent.
41
- * Detailed user and developer documentation.
 
 
 
42
 
43
- **Premium Features**
44
 
 
 
 
 
 
 
 
45
  * Video SEO: Schema.org Markup (via JSON-LD)
46
  * Auto Thumbnail Generator
47
- * Auto import videos from YouTube playlist, channel, etc.
48
  * Custom Logo & Branding
49
  * Custom Context Menu
50
- * HLS / M(PEG)-Dash
51
- * Live Streaming
52
- * Popup Template
53
- * Slider Template
54
- * VAST / VPAID Ads
55
  * Front-end User Submission
 
 
 
 
 
56
 
57
- **Translations**
58
 
59
- Currently, the plugin is available only in English. But, the plugin is translation ready and you can [translate](https://plugins360.com/all-in-one-video-gallery/translate/) to your language easy.
60
 
61
- **Get Involved**
62
 
63
- * Wording - I am not a native English speaker, if you find any typo, grammar mistake or etc. please [report](https://plugins360.com/support/) on our website.
64
- * Translation - If you have translated the plugin to your language, feel free to [submit your translation](https://plugins360.com/support/).
65
- * Rate Plugin - If you find this plugin useful, please leave a [positive review](https://wordpress.org/support/plugin/all-in-one-video-gallery/reviews/).
66
- * Submit a Bug - If you find any issue, please [submit a bug](https://plugins360.com/support/) on our website.
67
 
68
  == Installation ==
69
 
@@ -73,16 +96,16 @@ Currently, the plugin is available only in English. But, the plugin is translati
73
  4. Use the browse button to select the plugin zip file that was downloaded, and then click on Install Now.
74
  5. Once installed, click "Activate".
75
 
76
- For more detailed instructions visit plugin [documentation](https://plugins360.com/all-in-one-video-gallery/documentation/)
77
 
78
  == Frequently Asked Questions ==
79
 
80
  = 1. I have installed the plugin. How to build my first Gallery? =
81
  Thanks for installing our plugin. The plugin dashboard should have all the necessary instructions required to build a gallery. Simply follow that.
82
 
83
- For more detailed instructions visit plugin [documentation](https://plugins360.com/all-in-one-video-gallery/documentation/)
84
 
85
- Still Having Issues? We are just an email away. Please write to us describing your issue using the "Contact" form available under our plugin's menu. You should receive a reply within 24 hours (except Sunday).
86
 
87
  = 2. Can I upload large video files using this plugin? =
88
  Sure, the plugin doesn't apply any restriction on the uploaded file size. If you're not able to upload large files, then it must be your server configuration which is not suitable for large file uploads. Simply write to your HOST and ask them to increase the upload file size limit.
@@ -96,8 +119,8 @@ Yes, you can. Kindly refer the instructions below,
96
  = 4. Does the plugin support third-party page builders like "Elementor", "WPBakery", "Divi", etc.? =
97
  Yes. Simply, generate your shortcode using the plugin's "Shortcode Builder" and add it in your favourite page builder.
98
 
99
- = 5. The plugin is not working for me. What should I do now? =
100
- Please describe your issue and submit a ticket on our plugin support forum, you should receive a reply within 24 hours (except Sunday).
101
 
102
  == Screenshots ==
103
 
@@ -111,6 +134,14 @@ Please describe your issue and submit a ticket on our plugin support forum, you
111
 
112
  == Changelog ==
113
 
 
 
 
 
 
 
 
 
114
  = 2.4.0 =
115
 
116
  * New: Introduced player types (JavaScript, Iframe).
@@ -141,146 +172,12 @@ Please describe your issue and submit a ticket on our plugin support forum, you
141
  * New: Replaced "mediaelement.js" player with the "video.js" player library.
142
  * Fix: [+] few minor bug fixes.
143
 
144
- = 1.6.9 =
145
-
146
- * Tweak: "Autoplay" disabled in the default plugin settings since the browsers don't like this option.
147
- * Fix: Private Vimeo videos not working when configured to "Use Native Controls".
148
-
149
- = 1.6.8 =
150
-
151
- * Fix: Thumbnail images in the slider template not clickable.
152
-
153
- = 1.6.7 =
154
-
155
- * Fix: Subcategories showing when 'hierarchical' disabled.
156
-
157
- = 1.6.6 =
158
-
159
- * Tweak: Updated Freemius SDK (2.3.1).
160
- * Tweak: Plugin backend access to users with the required capability.
161
- * Fix: M4V, MOV videos not working in the "AIOVG - Video Player" Gutenberg block.
162
- * Fix: WordPress 5.3 compatibility issues.
163
- * Fix: [+] few minor bug fixes.
164
-
165
- = 1.6.5 =
166
-
167
- * New: Plugin Dashboard.
168
- * New: Shortcode Builder.
169
- * New: A mechanism to auto-detect plugin misconfiguration issues with the fixes.
170
- * New: "Muted" - A setting to turn OFF the audio output of the video by default.
171
- * New: "include" - A new [aiovg_videos] shortcode attribute to show only the selective videos. Example: [aiovg_videos include="1,2,3"]
172
- * New: "include" - A new [aiovg_categories] shortcode attribute to show only the selective categories. Example: [aiovg_categories include="1,2,3"]
173
- * New: "WhatsApp" share button.
174
- * Tweak: Simplified settings page UI.
175
- * Tweak: Replaced transients with $_COOKIES to calculate unique video views. The reason $_COOKIES are used is to stop bloating up OPTIONS table with several hundreds of transients.
176
- * Fix: Same videos repeat again when the videos ordering is to "random" and the pagination is enabled.
177
- * Fix: [+] few minor bug fixes.
178
-
179
- = 1.6.4 =
180
-
181
- * Tweak: Updated Freemius SDK (2.3.0).
182
- * Fix: Security fix.
183
-
184
- = 1.6.3 =
185
-
186
- * Fix: Unfortunately, there were some bugs in the 1.6.2 release and this is an immediate release which addresses those issues.
187
-
188
- = 1.6.2 =
189
-
190
- * New: Support for Yoast breadcrumbs.
191
- * Tweak: Optimized WP_Query for fast output.
192
- * Fix: [+] few minor bug fixes.
193
-
194
- = 1.6.1 =
195
-
196
- * New: Option to delete or NOT delete the associated media files when a video post or category is deleted.
197
- * Tweak: Uses mediaelement.js library files from the WordPress core.
198
- * Tweak: Displays spinner immediately after the play button is clicked.
199
- * Fix: Issues with the Gutenberg player block settings.
200
- * Fix: [+] few more minor bug fixes.
201
 
202
- = 1.6.0 =
203
-
204
- * Fix: Security fix.
205
- * Fix: [+] few minor bug fixes.
206
-
207
- = 1.5.9 =
208
-
209
- * Fix: Fixes a SERIOUS BUG. Pages created infinitely in some WordPress Environments.
210
- * Fix: Replaced "plugins_loaded" hook with "init" hook to initialize the Gutenberg blocks.
211
-
212
- = 1.5.8 =
213
-
214
- * Tweak: "wp_loaded" hook used to insert missing plugin options was updated with a version number check.
215
-
216
- = 1.5.7 =
217
-
218
- * New: Freemius Integration.
219
- * New: PHP 7+ compatibility.
220
- * New: Introduces Template options for both categories and videos.
221
- * Tweak: Code completely revised and rewritten to make the plugin more extensible.
222
- * Tweak: Removed Twitter Bootstrap & Font Awesome libraries and replaced with custom CSS code to keep the plugin lightweight.
223
- * Tweak: Custom Logo & Branding, Custom Context Menu options removed from the FREE version. But, these options will continue to work for our old users.
224
- * Fix: [+] few minor bug fixes.
225
-
226
- = 1.5.6 =
227
-
228
- * New: Gutenberg blocks for the plugin.
229
- * New: Support for Yoast SEO Plugin.
230
- * Fix: [+] few minor bug fixes.
231
-
232
- = 1.5.5 =
233
-
234
- * Fix: Pagination issue in single video pages.
235
-
236
- = 1.5.4 =
237
-
238
- * Fix: Unfortunately, there were some bugs in the 1.5.3 release and this is an immediate release which addresses those issues.
239
-
240
- = 1.5.3 =
241
-
242
- * New: Custom Logo & Branding.
243
- * Tweak: Removed jQuery dependency for the player.
244
- * Fix: Shortcodes not working in the single video page.
245
- * Fix: [+] few minor bug fixes.
246
-
247
- = 1.5.2 =
248
-
249
- * New: Compatible with GDPR.
250
- * Tweak: Disabled the default context menu, and added a custom one.
251
-
252
- = 1.5.1 =
253
-
254
- * Tweak: README.txt update.
255
-
256
- = 1.5.0 =
257
-
258
- * New: Added support for Dailymotion videos.
259
-
260
- = 1.4.0 =
261
-
262
- * Tweak: Updated to the MediaElement version 4.2.8 that includes an important security fix.
263
-
264
- = 1.3.0 =
265
-
266
- * Tweak: "Select a Template" option removed from "WordPress Admin Panel => Video Gallery => Settings[Display] => Video Gallery Pages" settings.
267
- * Fix: "Autoplay" disabled in mobile devices.
268
- * Fix: YouTube playback issues in IOS.
269
-
270
- = 1.2.0 =
271
-
272
- * Fix: Unfortunately, there were some bugs in the 1.1.0 release and this is an immediate release which addresses those issues.
273
-
274
- = 1.1.0 =
275
-
276
- * New: Added support for Facebook videos.
277
-
278
- = 1.0.0 =
279
-
280
- * Initial release.
281
 
282
  == Upgrade Notice ==
283
 
284
- = 2.4.0 =
285
 
286
- Introduces several bug fixes, new features & enhancements. [See changelog](https://wordpress.org/plugins/all-in-one-video-gallery/#developers)
6
  Requires at least: 4.7.0
7
  Tested up to: 5.4
8
  Requires PHP: 5.3.0
9
+ Stable tag: 2.4.1
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
13
+ Add responsive video galleries anywhere on your website – no coding required. Includes HTML5 Video Player, Thumbnail Grid, Slider, Popup & more
14
 
15
  == Description ==
16
 
17
+ >[View Demo](https://demo.plugins360.com/all-in-one-video-gallery/) | [Getting Started](https://plugins360.com/all-in-one-video-gallery/documentation/) | [Contact & Support](https://plugins360.com/support/) | [Home Page](https://plugins360.com)
18
 
19
+ "Video is the future of content marketing". Start converting your blogs as video blogs and win the COMPETITION.
20
 
21
+ **All-in-One Video Gallery** is a VIDEO POSTS plugin that helps you adding videos as posts and build scalable, searchable, SEO optimized video galleries in minutes.
22
 
23
+ No coding required. Suitable for all kinds of websites that require a single video player to a large video sharing website like YouTube/Vimeo.
24
 
25
+ ### PLAYER FEATURES
26
 
27
+ * A Custom HTML5 Video Player that supports **MP4**, **WebM**, **OGV** and embeddable players like **YouTube**, **Vimeo**, **Dailymotion**, **Facebook** and more.
28
+ * Player controls: play/pause buttons, timer, progress bar, duration, volume button, fullscreen button, subtitles on/off
 
 
 
 
 
29
  * Playback options: autoplay, loop, muted, preload
30
+ * Subtitles (WebVTT).
31
+ * GDPR consent.
32
+ * [+] ability to add embed code from any third-party video players.
33
+
34
+ ### GALLERY FEATURES
35
+
36
+ Back-End
37
+
38
+ * Create unlimited categories/subcategories.
39
+ * Videos are added as POSTS using its own custom post UI. So, the plugin doesn't interfere with your general WordPress POSTs.
40
+ * Ability to group videos by categories.
41
+ * Mark videos as featured.
42
+ * 100+ settings (STILL COUNTING) that help you customize the plugin to the maximum you will need.
43
+
44
+ Front-End
45
+
46
+ * Modern, Responsive design.
47
+ * Categories display options: Grid, List
48
+ * Sort categories by "ID", "videos count", "category name" & "slug".
49
+ * Videos display options: Grid. More template options available with our premium version.
50
+ * Filter videos by "categories", "featured" meta key.
51
+ * Sort videos by "video posted date", "title", "views count", "random".
52
+ * Ability to control the display of each HTML element in the gallery.
53
+ * Numeric Pagination for the large galleries.
54
  * Social Sharing (Facebook, Twitter, Linkedin, Pinterest & WhatsApp).
55
+ * Comments System.
56
+ * Dedicated search form & layout.
57
+ * Shortcode Builder to build the gallery shortcodes.
58
+ * Gutenberg Blocks to build the gallery if your website uses the modern WordPress editor.
59
+ * Widgets to list categories, list videos, display a single video player and search videos.
60
+
61
+ ### DEVELOPER OPTIONS
62
 
63
+ The videos belong to the WordPress Custom Post Type "aiovg_videos" and the categories belong to the WordPress Custom Taxonomy feature "aiovg_categories". The plugin doesn't use any custom tables and the settings are stored in the WP_Options table using the WordPress' SETTINGS API. In short, the plugin has been developed completely using the WordPress CORE features. So, if you're a WordPress developer, you can customize/extend the plugin as you like using the WordPress' hooks system easily.
64
 
65
+ Similarly, the front-end gallery layouts added by our plugin can be customized by developing or overriding our existing templates. Please [check for a detailed documentation](https://plugins360.com/all-in-one-video-gallery/child-themes-and-templates/) on this.
66
+
67
+ ### [+] PREMIUM FEATURES
68
+
69
+ * Additional Video file formats: HLS / M(PEG)-Dash (Live Streaming)
70
+ * Gallery Templates: [Popup](https://demo.plugins360.com/popup/), [Slider](https://demo.plugins360.com/slider/)
71
+ * Auto import videos from YouTube playlist, channel, etc.
72
  * Video SEO: Schema.org Markup (via JSON-LD)
73
  * Auto Thumbnail Generator
 
74
  * Custom Logo & Branding
75
  * Custom Context Menu
 
 
 
 
 
76
  * Front-end User Submission
77
+ * VAST / VPAID Ads
78
+
79
+ ### TRANSLATION READY
80
+
81
+ Do you speak another language? Want to contribute in a meaningful way to All-in-One Video Gallery? There's no better way than to help us translate the plugin. This plugin is translation ready and you can [translate](https://plugins360.com/all-in-one-video-gallery/translate-to-your-language/) to your language easy. Once finished, please reach out to us [here](https://plugins360.com/support/) to get your language file included in the core.
82
 
83
+ ### SUPPORT AND DOCUMENTATION
84
 
85
+ We do have [documentation](https://plugins360.com/all-in-one-video-gallery/documentation/) on the plugin.
86
 
87
+ Still, Having Issues? We are just an email away. Please write to us describing your issue using the "Contact" form available under our plugin's menu. You should receive a reply within 24 hours (except Sunday).
88
 
89
+ Also, we answer all support requests [on the WordPress.org support forum](https://wordpress.org/support/plugin/all-in-one-video-gallery/).
 
 
 
90
 
91
  == Installation ==
92
 
96
  4. Use the browse button to select the plugin zip file that was downloaded, and then click on Install Now.
97
  5. Once installed, click "Activate".
98
 
99
+ For more detailed instructions visit our plugin [documentation](https://plugins360.com/all-in-one-video-gallery/documentation/).
100
 
101
  == Frequently Asked Questions ==
102
 
103
  = 1. I have installed the plugin. How to build my first Gallery? =
104
  Thanks for installing our plugin. The plugin dashboard should have all the necessary instructions required to build a gallery. Simply follow that.
105
 
106
+ For more detailed instructions visit our plugin [documentation](https://plugins360.com/all-in-one-video-gallery/documentation/).
107
 
108
+ Still, Having Issues? We are just an email away. Please write to us describing your issue using the "Contact" form available under our plugin's menu. You should receive a reply within 24 hours (except Sunday).
109
 
110
  = 2. Can I upload large video files using this plugin? =
111
  Sure, the plugin doesn't apply any restriction on the uploaded file size. If you're not able to upload large files, then it must be your server configuration which is not suitable for large file uploads. Simply write to your HOST and ask them to increase the upload file size limit.
119
  = 4. Does the plugin support third-party page builders like "Elementor", "WPBakery", "Divi", etc.? =
120
  Yes. Simply, generate your shortcode using the plugin's "Shortcode Builder" and add it in your favourite page builder.
121
 
122
+ = 5. Is the plugin compatible with WordPress Multisite? =
123
+ Yes, it is. However, do not "network-activate" the plugin. Activate it only on the subsites on which you need the gallery. This can be done under "Plugins => Add New" as the Administrator user.
124
 
125
  == Screenshots ==
126
 
134
 
135
  == Changelog ==
136
 
137
+ = 2.4.1 =
138
+
139
+ * Fix: Duplicate plugin menu on the multisite setup.
140
+ * Fix: Private Vimeo videos not working.
141
+ * Fix: Muted option not working with the Facebook videos.
142
+ * Fix: Featured thumbnail issue on the single video pages.
143
+ * Fix: [+] few minor bug fixes.
144
+
145
  = 2.4.0 =
146
 
147
  * New: Introduced player types (JavaScript, Iframe).
172
  * New: Replaced "mediaelement.js" player with the "video.js" player library.
173
  * Fix: [+] few minor bug fixes.
174
 
175
+ = EARLIER VERSIONS =
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
 
177
+ For the changelog of earlier versions, please refer to the [changelog on plugins360.com](https://plugins360.com/all-in-one-video-gallery/changelog/).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
178
 
179
  == Upgrade Notice ==
180
 
181
+ = 2.4.1 =
182
 
183
+ Introduces some bug fixes & enhancements. [See changelog](https://wordpress.org/plugins/all-in-one-video-gallery/#developers)
admin/videos.php CHANGED
@@ -119,7 +119,9 @@ class AIOVG_Admin_Videos {
119
  'map_meta_cap' => true,
120
  );
121
 
122
- if ( current_user_can( 'editor' ) ) {
 
 
123
  $args['show_in_menu'] = true;
124
  $args['menu_position'] = 5;
125
  $args['menu_icon'] = 'dashicons-playlist-video';
@@ -290,13 +292,8 @@ class AIOVG_Admin_Videos {
290
  $youtube = isset( $_POST['youtube'] ) ? esc_url_raw( $_POST['youtube'] ) : '';
291
  update_post_meta( $post_id, 'youtube', $youtube );
292
 
293
- $vimeo = array();
294
- if ( isset( $_POST['vimeo'] ) ) {
295
- $vimeo = aiovg_get_vimeo_oembed_data( esc_url_raw( $_POST['vimeo'] ) );
296
- update_post_meta( $post_id, 'vimeo', $vimeo['video_url'] );
297
- } else {
298
- update_post_meta( $post_id, 'vimeo', '' );
299
- }
300
 
301
  $dailymotion = isset( $_POST['dailymotion'] ) ? esc_url_raw( $_POST['dailymotion'] ) : '';
302
  update_post_meta( $post_id, 'dailymotion', $dailymotion );
@@ -318,7 +315,8 @@ class AIOVG_Admin_Videos {
318
  if ( 'youtube' == $type && ! empty( $youtube ) ) {
319
  $image = aiovg_get_youtube_image_url( $youtube );
320
  } elseif ( 'vimeo' == $type && ! empty( $vimeo ) ) {
321
- $image = $vimeo['thumbnail_url'];
 
322
  } elseif ( 'dailymotion' == $type && ! empty( $dailymotion ) ) {
323
  $image = aiovg_get_dailymotion_image_url( $dailymotion );
324
  } elseif ( 'embedcode' == $type && ! empty( $embedcode ) ) {
119
  'map_meta_cap' => true,
120
  );
121
 
122
+ if ( current_user_can( 'administrator' ) ) {
123
+ // Do nothing
124
+ } elseif ( current_user_can( 'editor' ) ) {
125
  $args['show_in_menu'] = true;
126
  $args['menu_position'] = 5;
127
  $args['menu_icon'] = 'dashicons-playlist-video';
292
  $youtube = isset( $_POST['youtube'] ) ? esc_url_raw( $_POST['youtube'] ) : '';
293
  update_post_meta( $post_id, 'youtube', $youtube );
294
 
295
+ $vimeo = isset( $_POST['vimeo'] ) ? esc_url_raw( $_POST['vimeo'] ) : '';
296
+ update_post_meta( $post_id, 'vimeo', $vimeo );
 
 
 
 
 
297
 
298
  $dailymotion = isset( $_POST['dailymotion'] ) ? esc_url_raw( $_POST['dailymotion'] ) : '';
299
  update_post_meta( $post_id, 'dailymotion', $dailymotion );
315
  if ( 'youtube' == $type && ! empty( $youtube ) ) {
316
  $image = aiovg_get_youtube_image_url( $youtube );
317
  } elseif ( 'vimeo' == $type && ! empty( $vimeo ) ) {
318
+ $oembed = aiovg_get_vimeo_oembed_data( $vimeo );
319
+ $image = $oembed['thumbnail_url'];
320
  } elseif ( 'dailymotion' == $type && ! empty( $dailymotion ) ) {
321
  $image = aiovg_get_dailymotion_image_url( $dailymotion );
322
  } elseif ( 'embedcode' == $type && ! empty( $embedcode ) ) {
all-in-one-video-gallery.php CHANGED
@@ -11,7 +11,7 @@
11
  * Plugin Name: All-in-One Video Gallery
12
  * Plugin URI: https://plugins360.com/all-in-one-video-gallery/
13
  * Description: No coding required. A Responsive & Lightweight video gallery plugin. HTML5 Player, Categories, Visual Builder (Gutenberg), Search Form, Comments, Social Sharing and everything you will need to build a YouTube/Vimeo like video sharing website.
14
- * Version: 2.4.0
15
  * Author: Team Plugins360
16
  * Author URI: https://plugins360.com
17
  * License: GPL-2.0+
@@ -76,7 +76,7 @@ if ( !function_exists( 'aiovg_fs' ) ) {
76
 
77
  // The current version of the plugin
78
  if ( !defined( 'AIOVG_PLUGIN_VERSION' ) ) {
79
- define( 'AIOVG_PLUGIN_VERSION', '2.4.0' );
80
  }
81
  // The unique identifier of the plugin
82
  if ( !defined( 'AIOVG_PLUGIN_SLUG' ) ) {
11
  * Plugin Name: All-in-One Video Gallery
12
  * Plugin URI: https://plugins360.com/all-in-one-video-gallery/
13
  * Description: No coding required. A Responsive & Lightweight video gallery plugin. HTML5 Player, Categories, Visual Builder (Gutenberg), Search Form, Comments, Social Sharing and everything you will need to build a YouTube/Vimeo like video sharing website.
14
+ * Version: 2.4.1
15
  * Author: Team Plugins360
16
  * Author URI: https://plugins360.com
17
  * License: GPL-2.0+
76
 
77
  // The current version of the plugin
78
  if ( !defined( 'AIOVG_PLUGIN_VERSION' ) ) {
79
+ define( 'AIOVG_PLUGIN_VERSION', '2.4.1' );
80
  }
81
  // The unique identifier of the plugin
82
  if ( !defined( 'AIOVG_PLUGIN_SLUG' ) ) {
blocks/blocks.php CHANGED
@@ -401,11 +401,11 @@ class AIOVG_Blocks {
401
  $atts['poster'] = aiovg_get_youtube_image_url( $atts['youtube'] );
402
  }
403
  } elseif ( false !== strpos( $atts['src'], 'vimeo.com' ) ) {
404
- $vimeo = aiovg_get_vimeo_oembed_data( $atts['src'] );
405
- $atts['vimeo'] = $vimeo['video_url'];
406
 
407
  if ( empty( $atts['poster'] ) ) {
408
- $atts['poster'] = $vimeo['thumbnail_url'];
 
409
  }
410
  } elseif ( false !== strpos( $atts['src'], 'dailymotion.com' ) ) {
411
  $atts['dailymotion'] = $atts['src'];
401
  $atts['poster'] = aiovg_get_youtube_image_url( $atts['youtube'] );
402
  }
403
  } elseif ( false !== strpos( $atts['src'], 'vimeo.com' ) ) {
404
+ $atts['vimeo'] = $atts['src'];
 
405
 
406
  if ( empty( $atts['poster'] ) ) {
407
+ $oembed = aiovg_get_vimeo_oembed_data( $atts['vimeo'] );
408
+ $atts['poster'] = $oembed['thumbnail_url'];
409
  }
410
  } elseif ( false !== strpos( $atts['src'], 'dailymotion.com' ) ) {
411
  $atts['dailymotion'] = $atts['src'];
freemius/assets/img/all-in-one-video-gallery.png ADDED
Binary file
includes/deactivator.php CHANGED
@@ -8,26 +8,25 @@
8
  *
9
  * @package All_In_One_Video_Gallery
10
  */
11
-
12
  // Exit if accessed directly
13
- if ( ! defined( 'WPINC' ) ) {
14
- die;
15
  }
16
-
17
  /**
18
  * AIOVG_Deactivator class.
19
  *
20
  * @since 1.0.0
21
  */
22
- class AIOVG_Deactivator {
 
 
 
 
 
 
 
 
 
 
23
 
24
- /**
25
- * Called when the plugin is deactivated.
26
- *
27
- * @since 1.0.0
28
- */
29
- public static function deactivate() {
30
- delete_option( 'rewrite_rules' );
31
- }
32
-
33
- }
8
  *
9
  * @package All_In_One_Video_Gallery
10
  */
 
11
  // Exit if accessed directly
12
+ if ( !defined( 'WPINC' ) ) {
13
+ die;
14
  }
 
15
  /**
16
  * AIOVG_Deactivator class.
17
  *
18
  * @since 1.0.0
19
  */
20
+ class AIOVG_Deactivator
21
+ {
22
+ /**
23
+ * Called when the plugin is deactivated.
24
+ *
25
+ * @since 1.0.0
26
+ */
27
+ public static function deactivate()
28
+ {
29
+ delete_option( 'rewrite_rules' );
30
+ }
31
 
32
+ }
 
 
 
 
 
 
 
 
 
includes/functions.php CHANGED
@@ -274,7 +274,7 @@ function aiovg_get_category_page_url( $term ) {
274
  }
275
  }
276
 
277
- return $url;
278
  }
279
 
280
  /**
@@ -368,7 +368,7 @@ function aiovg_get_dailymotion_image_url( $url ) {
368
  function aiovg_get_default_settings() {
369
  $defaults = array(
370
  'aiovg_player_settings' => array(
371
- 'player' => 'standard',
372
  'width' => '',
373
  'ratio' => 56.25,
374
  'autoplay' => 0,
@@ -478,8 +478,8 @@ function aiovg_get_embedcode_image_url( $embedcode ) {
478
 
479
  // Vimeo
480
  elseif ( false !== strpos( $src, 'vimeo.com' ) ) {
481
- $vimeo = aiovg_get_vimeo_oembed_data( $src );
482
- $url = $vimeo['thumbnail_url'];
483
  }
484
 
485
  // Dailymotion
@@ -1341,7 +1341,7 @@ function aiovg_get_user_videos_page_url( $user_id ) {
1341
  }
1342
  }
1343
 
1344
- return $url;
1345
  }
1346
 
1347
  /**
@@ -1391,7 +1391,6 @@ function aiovg_get_video_templates() {
1391
  function aiovg_get_vimeo_oembed_data( $url ) {
1392
  $data = array(
1393
  'video_id' => '',
1394
- 'video_url' => '',
1395
  'thumbnail_url' => ''
1396
  );
1397
 
@@ -1404,7 +1403,6 @@ function aiovg_get_vimeo_oembed_data( $url ) {
1404
  if ( isset( $vimeo_response->video_id ) ) {
1405
  $data = array(
1406
  'video_id' => $vimeo_response->video_id,
1407
- 'video_url' => 'https://vimeo.com/' . $vimeo_response->video_id,
1408
  'thumbnail_url' => isset( $vimeo_response->thumbnail_url ) ? $vimeo_response->thumbnail_url : ''
1409
  );
1410
  }
@@ -1415,17 +1413,16 @@ function aiovg_get_vimeo_oembed_data( $url ) {
1415
  $is_vimeo = preg_match( '/vimeo\.com/i', $url );
1416
 
1417
  if ( $is_vimeo ) {
1418
- $data['video_id'] = preg_replace( '/[^\/]+[^0-9]|(\/)/', '', rtrim( $url, '/' ) );
1419
- $data['video_url'] = 'https://vimeo.com/' . $data['video_id'];
1420
  }
1421
  }
1422
 
1423
  // Find large thumbnail using the Vimeo API v2
1424
  if ( ! empty( $data['video_id'] ) ) {
1425
  $vimeo_response = wp_remote_get( 'https://vimeo.com/api/v2/video/' . $data['video_id'] . '.php' );
1426
-
1427
- if ( is_array( $vimeo_response ) && ! is_wp_error( $vimeo_response ) ) {
1428
- $vimeo_response = unserialize( $vimeo_response['body'] );
1429
 
1430
  if ( is_array( $vimeo_response ) && isset( $vimeo_response[0]['thumbnail_large'] ) ) {
1431
  $data['thumbnail_url'] = $vimeo_response[0]['thumbnail_large'];
274
  }
275
  }
276
 
277
+ return apply_filters( 'aiovg_category_page_url', $url, $term );
278
  }
279
 
280
  /**
368
  function aiovg_get_default_settings() {
369
  $defaults = array(
370
  'aiovg_player_settings' => array(
371
+ 'player' => 'iframe',
372
  'width' => '',
373
  'ratio' => 56.25,
374
  'autoplay' => 0,
478
 
479
  // Vimeo
480
  elseif ( false !== strpos( $src, 'vimeo.com' ) ) {
481
+ $oembed = aiovg_get_vimeo_oembed_data( $src );
482
+ $url = $oembed['thumbnail_url'];
483
  }
484
 
485
  // Dailymotion
1341
  }
1342
  }
1343
 
1344
+ return apply_filters( 'aiovg_author_page_url', $url, $user_id );
1345
  }
1346
 
1347
  /**
1391
  function aiovg_get_vimeo_oembed_data( $url ) {
1392
  $data = array(
1393
  'video_id' => '',
 
1394
  'thumbnail_url' => ''
1395
  );
1396
 
1403
  if ( isset( $vimeo_response->video_id ) ) {
1404
  $data = array(
1405
  'video_id' => $vimeo_response->video_id,
 
1406
  'thumbnail_url' => isset( $vimeo_response->thumbnail_url ) ? $vimeo_response->thumbnail_url : ''
1407
  );
1408
  }
1413
  $is_vimeo = preg_match( '/vimeo\.com/i', $url );
1414
 
1415
  if ( $is_vimeo ) {
1416
+ $data['video_id'] = preg_replace( '/[^\/]+[^0-9]|(\/)/', '', rtrim( $url, '/' ) );
 
1417
  }
1418
  }
1419
 
1420
  // Find large thumbnail using the Vimeo API v2
1421
  if ( ! empty( $data['video_id'] ) ) {
1422
  $vimeo_response = wp_remote_get( 'https://vimeo.com/api/v2/video/' . $data['video_id'] . '.php' );
1423
+
1424
+ if ( ! is_wp_error( $vimeo_response ) ) {
1425
+ $vimeo_response = maybe_unserialize( $vimeo_response['body'] );
1426
 
1427
  if ( is_array( $vimeo_response ) && isset( $vimeo_response[0]['thumbnail_large'] ) ) {
1428
  $data['thumbnail_url'] = $vimeo_response[0]['thumbnail_large'];
includes/player.php CHANGED
@@ -236,13 +236,7 @@ class AIOVG_Player {
236
  $settings = array(
237
  'type' => 'html5',
238
  'post_id' => (int) $params['post_id'],
239
- 'post_type' => sanitize_text_field( $params['post_type'] ),
240
- 'show_logo' => (int) $params['show_logo'],
241
- 'logo_image' => aiovg_sanitize_url( $params['logo_image'] ),
242
- 'logo_link' => esc_url_raw( $params['logo_link'] ),
243
- 'logo_position' => sanitize_text_field( $params['logo_position'] ),
244
- 'logo_margin' => (int) $params['logo_margin'],
245
- 'copyright_text' => sanitize_text_field( $params['copyright_text'] ),
246
  'show_consent' => (int) $params['show_consent'],
247
  'player' => array(
248
  'controlBar' => array(),
@@ -251,6 +245,15 @@ class AIOVG_Player {
251
  )
252
  );
253
 
 
 
 
 
 
 
 
 
 
254
  if ( 'aiovg_videos' == $settings['post_type'] ) {
255
  $settings['views_nonce'] = wp_create_nonce( 'aiovg_video_' . $settings['post_id'] . '_views_nonce' );
256
  }
@@ -347,7 +350,7 @@ class AIOVG_Player {
347
  AIOVG_PLUGIN_SLUG . '-vimeo',
348
  AIOVG_PLUGIN_URL . 'public/assets/player/videojs-plugins/vimeo/videojs-vimeo2.min.js',
349
  array(),
350
- '1.1.0',
351
  false
352
  );
353
  }
@@ -367,7 +370,7 @@ class AIOVG_Player {
367
  AIOVG_PLUGIN_SLUG . '-facebook',
368
  AIOVG_PLUGIN_URL . 'public/assets/player/videojs-plugins/facebook/videojs-facebook.min.js',
369
  array(),
370
- '1.1.0',
371
  false
372
  );
373
  }
@@ -516,8 +519,8 @@ class AIOVG_Player {
516
  }
517
  break;
518
  case 'vimeo':
519
- $vimeo = aiovg_get_vimeo_oembed_data( $src );
520
- $attributes['data-videoid'] = $vimeo['video_id'];
521
 
522
  if ( ! empty( $params['autoplay'] ) ) {
523
  $attributes['autoplay'] = '';
@@ -636,8 +639,8 @@ class AIOVG_Player {
636
  * @return array $params Player params.
637
  */
638
  private function get_params( $post_id, $atts ) {
639
- $player_settings = get_option( 'aiovg_player_settings' );
640
- $brand_settings = get_option( 'aiovg_brand_settings' );
641
  $privacy_settings = get_option( 'aiovg_privacy_settings' );
642
 
643
  if ( function_exists( 'ampforwp_is_amp_endpoint' ) && ampforwp_is_amp_endpoint() ) {
@@ -663,11 +666,6 @@ class AIOVG_Player {
663
  'volume' => isset( $player_settings['controls']['volume'] ),
664
  'fullscreen' => isset( $player_settings['controls']['fullscreen'] ),
665
  'show_logo' => ! empty( $brand_settings['logo_image'] ) ? $brand_settings['show_logo'] : 0,
666
- 'logo_image' => $brand_settings['logo_image'],
667
- 'logo_link' => $brand_settings['logo_link'],
668
- 'logo_position' => $brand_settings['logo_position'],
669
- 'logo_margin' => $brand_settings['logo_margin'],
670
- 'copyright_text' => $brand_settings['copyright_text'],
671
  'show_consent' => 0,
672
  'consent_message' => $privacy_settings['consent_message'],
673
  'consent_button_label' => $privacy_settings['consent_button_label'],
@@ -681,6 +679,14 @@ class AIOVG_Player {
681
  'poster' => ''
682
  ), $atts );
683
 
 
 
 
 
 
 
 
 
684
  // Sizes
685
  $params['width'] = ! empty( $params['width'] ) ? $params['width'] : '';
686
  $params['ratio'] = ! empty( $params['ratio'] ) ? $params['ratio'] : 56.25;
@@ -779,8 +785,8 @@ class AIOVG_Player {
779
  }
780
  break;
781
  case 'vimeo':
782
- $vimeo = aiovg_get_vimeo_oembed_data( $embed_url );
783
- $embed_url = 'https://player.vimeo.com/video/' . $vimeo['video_id'] . '?title=0&byline=0&portrait=0';
784
  break;
785
  case 'dailymotion':
786
  $embed_url = 'https://www.dailymotion.com/embed/video/' . aiovg_get_dailymotion_id_from_url( $embed_url ) . '?queue-autoplay-next=0&queue-enable=0&sharing-enable=0&ui-logo=0&ui-start-screen-info=0';
236
  $settings = array(
237
  'type' => 'html5',
238
  'post_id' => (int) $params['post_id'],
239
+ 'post_type' => sanitize_text_field( $params['post_type'] ),
 
 
 
 
 
 
240
  'show_consent' => (int) $params['show_consent'],
241
  'player' => array(
242
  'controlBar' => array(),
245
  )
246
  );
247
 
248
+ if ( ! empty( $params['show_logo'] ) ) {
249
+ $settings['show_logo'] = (int) $params['show_logo'];
250
+ $settings['logo_image'] = aiovg_sanitize_url( $params['logo_image'] );
251
+ $settings['logo_link'] = esc_url_raw( $params['logo_link'] );
252
+ $settings['logo_position'] = sanitize_text_field( $params['logo_position'] );
253
+ $settings['logo_margin'] = (int) $params['logo_margin'];
254
+ $settings['copyright_text'] = sanitize_text_field( $params['copyright_text'] );
255
+ }
256
+
257
  if ( 'aiovg_videos' == $settings['post_type'] ) {
258
  $settings['views_nonce'] = wp_create_nonce( 'aiovg_video_' . $settings['post_id'] . '_views_nonce' );
259
  }
350
  AIOVG_PLUGIN_SLUG . '-vimeo',
351
  AIOVG_PLUGIN_URL . 'public/assets/player/videojs-plugins/vimeo/videojs-vimeo2.min.js',
352
  array(),
353
+ '1.2.0',
354
  false
355
  );
356
  }
370
  AIOVG_PLUGIN_SLUG . '-facebook',
371
  AIOVG_PLUGIN_URL . 'public/assets/player/videojs-plugins/facebook/videojs-facebook.min.js',
372
  array(),
373
+ '1.2.0',
374
  false
375
  );
376
  }
519
  }
520
  break;
521
  case 'vimeo':
522
+ $oembed = aiovg_get_vimeo_oembed_data( $src );
523
+ $attributes['data-videoid'] = $oembed['video_id'];
524
 
525
  if ( ! empty( $params['autoplay'] ) ) {
526
  $attributes['autoplay'] = '';
639
  * @return array $params Player params.
640
  */
641
  private function get_params( $post_id, $atts ) {
642
+ $player_settings = get_option( 'aiovg_player_settings' );
643
+ $brand_settings = get_option( 'aiovg_brand_settings', array() );
644
  $privacy_settings = get_option( 'aiovg_privacy_settings' );
645
 
646
  if ( function_exists( 'ampforwp_is_amp_endpoint' ) && ampforwp_is_amp_endpoint() ) {
666
  'volume' => isset( $player_settings['controls']['volume'] ),
667
  'fullscreen' => isset( $player_settings['controls']['fullscreen'] ),
668
  'show_logo' => ! empty( $brand_settings['logo_image'] ) ? $brand_settings['show_logo'] : 0,
 
 
 
 
 
669
  'show_consent' => 0,
670
  'consent_message' => $privacy_settings['consent_message'],
671
  'consent_button_label' => $privacy_settings['consent_button_label'],
679
  'poster' => ''
680
  ), $atts );
681
 
682
+ if ( ! empty( $params['show_logo'] ) ) {
683
+ $params['logo_image'] = $brand_settings['logo_image'];
684
+ $params['logo_link'] = $brand_settings['logo_link'];
685
+ $params['logo_position'] = $brand_settings['logo_position'];
686
+ $params['logo_margin'] = $brand_settings['logo_margin'];
687
+ $params['copyright_text'] = $brand_settings['copyright_text'];
688
+ }
689
+
690
  // Sizes
691
  $params['width'] = ! empty( $params['width'] ) ? $params['width'] : '';
692
  $params['ratio'] = ! empty( $params['ratio'] ) ? $params['ratio'] : 56.25;
785
  }
786
  break;
787
  case 'vimeo':
788
+ $oembed = aiovg_get_vimeo_oembed_data( $embed_url );
789
+ $embed_url = 'https://player.vimeo.com/video/' . $oembed['video_id'] . '?title=0&byline=0&portrait=0';
790
  break;
791
  case 'dailymotion':
792
  $embed_url = 'https://www.dailymotion.com/embed/video/' . aiovg_get_dailymotion_id_from_url( $embed_url ) . '?queue-autoplay-next=0&queue-enable=0&sharing-enable=0&ui-logo=0&ui-start-screen-info=0';
includes/uninstall.php CHANGED
@@ -26,6 +26,9 @@ class AIOVG_Uninstall
26
  */
27
  public static function uninstall()
28
  {
 
 
 
29
  $general_settings = get_option( 'aiovg_general_settings' );
30
  if ( empty($general_settings['delete_plugin_data']) ) {
31
  return;
26
  */
27
  public static function uninstall()
28
  {
29
+ if ( !defined( 'AIOVG_UNINSTALL_PLUGIN' ) ) {
30
+ define( 'AIOVG_UNINSTALL_PLUGIN', true );
31
+ }
32
  $general_settings = get_option( 'aiovg_general_settings' );
33
  if ( empty($general_settings['delete_plugin_data']) ) {
34
  return;
languages/all-in-one-video-gallery.pot CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: All-in-One Video Gallery\n"
4
- "POT-Creation-Date: 2020-05-28 22:03+0530\n"
5
- "PO-Revision-Date: 2020-05-28 22:03+0530\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: en_US\n"
@@ -13,7 +13,7 @@ msgstr ""
13
  "X-Poedit-Basepath: ..\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
- "X-Poedit-KeywordsList: __;_e;esc_html__;esc_html_e;esc_attr__;esc_attr_e;_n\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
  #: admin/admin.php:180
@@ -83,7 +83,7 @@ msgstr ""
83
  msgid "Categories"
84
  msgstr ""
85
 
86
- #: admin/categories.php:67 admin/videos.php:379
87
  #: premium/admin/automations.php:194
88
  msgid "All Categories"
89
  msgstr ""
@@ -152,7 +152,7 @@ msgstr ""
152
  msgid "Categories list navigation"
153
  msgstr ""
154
 
155
- #: admin/categories.php:157 admin/settings.php:417 admin/videos.php:442
156
  #: blocks/blocks.php:79 includes/functions.php:1222
157
  #: widgets/forms/categories.php:64
158
  msgid "ID"
@@ -501,7 +501,7 @@ msgstr ""
501
 
502
  #: admin/partials/video-sources.php:153 admin/partials/video-sources.php:157
503
  #: admin/settings.php:299 admin/settings.php:510 includes/functions.php:844
504
- #: includes/functions.php:1360 includes/functions.php:1807
505
  #: premium/public/templates/video-form.php:241
506
  msgid "Facebook"
507
  msgstr ""
@@ -531,7 +531,7 @@ msgid "Duration"
531
  msgstr ""
532
 
533
  #: admin/partials/video-sources.php:225 admin/partials/video-sources.php:229
534
- #: admin/videos.php:440
535
  msgid "Views"
536
  msgstr ""
537
 
@@ -539,7 +539,7 @@ msgstr ""
539
  msgid "Mark as"
540
  msgstr ""
541
 
542
- #: admin/partials/video-submitbox.php:17 admin/videos.php:441
543
  msgid "Featured"
544
  msgstr ""
545
 
@@ -804,7 +804,7 @@ msgstr ""
804
  msgid "Progressbar"
805
  msgstr ""
806
 
807
- #: admin/settings.php:284 admin/videos.php:180 includes/functions.php:926
808
  #: widgets/forms/video.php:102
809
  msgid "Subtitles"
810
  msgstr ""
@@ -1059,11 +1059,11 @@ msgstr ""
1059
  msgid "Select social share buttons displayed on the single video pages."
1060
  msgstr ""
1061
 
1062
- #: admin/settings.php:511 includes/functions.php:1815
1063
  msgid "Twitter"
1064
  msgstr ""
1065
 
1066
- #: admin/settings.php:512 includes/functions.php:1823
1067
  msgid "Linkedin"
1068
  msgstr ""
1069
 
@@ -1071,7 +1071,7 @@ msgstr ""
1071
  msgid "Pinterest"
1072
  msgstr ""
1073
 
1074
- #: admin/settings.php:514 includes/functions.php:1845
1075
  msgid "WhatsApp"
1076
  msgstr ""
1077
 
@@ -1258,7 +1258,7 @@ msgstr ""
1258
  msgid "All-in-One Video Gallery - Videos"
1259
  msgstr ""
1260
 
1261
- #: admin/videos.php:33 admin/videos.php:74 admin/videos.php:394
1262
  msgid "All Videos"
1263
  msgstr ""
1264
 
@@ -1354,11 +1354,11 @@ msgstr ""
1354
  msgid "Video Description"
1355
  msgstr ""
1356
 
1357
- #: admin/videos.php:171
1358
  msgid "Video Sources"
1359
  msgstr ""
1360
 
1361
- #: admin/videos.php:395
1362
  msgid "Featured only"
1363
  msgstr ""
1364
 
@@ -1588,20 +1588,20 @@ msgstr ""
1588
  msgid "Classic"
1589
  msgstr ""
1590
 
1591
- #: includes/functions.php:1743
1592
  msgid "«"
1593
  msgstr ""
1594
 
1595
- #: includes/functions.php:1744
1596
  msgid "»"
1597
  msgstr ""
1598
 
1599
- #: includes/functions.php:1759
1600
  #, php-format
1601
  msgid "Page %d of %d"
1602
  msgstr ""
1603
 
1604
- #: includes/functions.php:1831
1605
  msgid "Pin It"
1606
  msgstr ""
1607
 
@@ -1658,33 +1658,33 @@ msgstr ""
1658
  msgid "Please wait while we are loading data from the API server..."
1659
  msgstr ""
1660
 
1661
- #: premium/admin/admin.php:206 premium/public/public.php:102
1662
  msgid "Sorry, the auto-thumbnail generation failed."
1663
  msgstr ""
1664
 
1665
- #: premium/admin/admin.php:207 premium/public/public.php:103
1666
  msgid ""
1667
  "Use the \"Capture Image\" button below to generate an image from your video."
1668
  msgstr ""
1669
 
1670
- #: premium/admin/admin.php:208 premium/public/public.php:104
1671
  msgid "Select an image from the options below."
1672
  msgstr ""
1673
 
1674
- #: premium/admin/admin.php:209 premium/public/public.php:105
1675
  msgid "Generating images..."
1676
  msgstr ""
1677
 
1678
- #: premium/admin/admin.php:210 premium/public/public.php:106
1679
  msgid ""
1680
  "No video found. Add a video in the \"MP4\" video field to capture an image."
1681
  msgstr ""
1682
 
1683
- #: premium/admin/admin.php:211 premium/public/public.php:107
1684
  msgid "Invalid video file."
1685
  msgstr ""
1686
 
1687
- #: premium/admin/admin.php:212 premium/public/public.php:108
1688
  msgid ""
1689
  "Sorry, your video file server doesn't give us permission to generate an "
1690
  "image from the video."
@@ -1820,35 +1820,35 @@ msgid "Automation"
1820
  msgstr ""
1821
 
1822
  #: premium/admin/automations.php:117
1823
- msgid "Add New Source"
1824
  msgstr ""
1825
 
1826
  #: premium/admin/automations.php:119
1827
- msgid "New Source"
1828
  msgstr ""
1829
 
1830
  #: premium/admin/automations.php:120
1831
- msgid "Edit Source"
1832
  msgstr ""
1833
 
1834
  #: premium/admin/automations.php:121
1835
- msgid "Update Source"
1836
  msgstr ""
1837
 
1838
  #: premium/admin/automations.php:122
1839
- msgid "View Source"
1840
  msgstr ""
1841
 
1842
  #: premium/admin/automations.php:123
1843
- msgid "Search Sources"
1844
  msgstr ""
1845
 
1846
  #: premium/admin/automations.php:124
1847
- msgid "No sources found"
1848
  msgstr ""
1849
 
1850
  #: premium/admin/automations.php:125
1851
- msgid "No sources found in Trash"
1852
  msgstr ""
1853
 
1854
  #: premium/admin/automations.php:130
@@ -1856,7 +1856,7 @@ msgid "Automations Description"
1856
  msgstr ""
1857
 
1858
  #: premium/admin/automations.php:164
1859
- msgid "Enter your source title"
1860
  msgstr ""
1861
 
1862
  #: premium/admin/automations.php:178
@@ -2554,28 +2554,32 @@ msgstr ""
2554
  msgid "Adaptive / Live Streaming"
2555
  msgstr ""
2556
 
2557
- #: premium/public/public.php:96
 
 
 
 
2558
  msgid "This is a required field."
2559
  msgstr ""
2560
 
2561
- #: premium/public/public.php:97 premium/public/user.php:319
2562
  #: premium/public/user.php:324
2563
  msgid "Invalid file format."
2564
  msgstr ""
2565
 
2566
- #: premium/public/public.php:98
2567
  msgid "Loaded"
2568
  msgstr ""
2569
 
2570
- #: premium/public/public.php:99
2571
  msgid "processing..."
2572
  msgstr ""
2573
 
2574
- #: premium/public/public.php:100
2575
  msgid "Please wait until the upload is complete"
2576
  msgstr ""
2577
 
2578
- #: premium/public/public.php:101
2579
  msgid "Unknown error."
2580
  msgstr ""
2581
 
@@ -2811,11 +2815,6 @@ msgstr ""
2811
  msgid "Showing results for \"%s\""
2812
  msgstr ""
2813
 
2814
- #: public/templates/category-thumbnail.php:34
2815
- #, php-format
2816
- msgid "%s video"
2817
- msgstr ""
2818
-
2819
  #: public/templates/search-form-template-horizontal.php:20
2820
  #: public/templates/search-form-template-vertical.php:20
2821
  msgid "Search by keyword"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: All-in-One Video Gallery\n"
4
+ "POT-Creation-Date: 2020-06-24 21:14+0530\n"
5
+ "PO-Revision-Date: 2020-06-24 21:14+0530\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: en_US\n"
13
  "X-Poedit-Basepath: ..\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;esc_html__;esc_html_e;esc_attr__;esc_attr_e\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
  #: admin/admin.php:180
83
  msgid "Categories"
84
  msgstr ""
85
 
86
+ #: admin/categories.php:67 admin/videos.php:377
87
  #: premium/admin/automations.php:194
88
  msgid "All Categories"
89
  msgstr ""
152
  msgid "Categories list navigation"
153
  msgstr ""
154
 
155
+ #: admin/categories.php:157 admin/settings.php:417 admin/videos.php:440
156
  #: blocks/blocks.php:79 includes/functions.php:1222
157
  #: widgets/forms/categories.php:64
158
  msgid "ID"
501
 
502
  #: admin/partials/video-sources.php:153 admin/partials/video-sources.php:157
503
  #: admin/settings.php:299 admin/settings.php:510 includes/functions.php:844
504
+ #: includes/functions.php:1360 includes/functions.php:1804
505
  #: premium/public/templates/video-form.php:241
506
  msgid "Facebook"
507
  msgstr ""
531
  msgstr ""
532
 
533
  #: admin/partials/video-sources.php:225 admin/partials/video-sources.php:229
534
+ #: admin/videos.php:438
535
  msgid "Views"
536
  msgstr ""
537
 
539
  msgid "Mark as"
540
  msgstr ""
541
 
542
+ #: admin/partials/video-submitbox.php:17 admin/videos.php:439
543
  msgid "Featured"
544
  msgstr ""
545
 
804
  msgid "Progressbar"
805
  msgstr ""
806
 
807
+ #: admin/settings.php:284 admin/videos.php:182 includes/functions.php:926
808
  #: widgets/forms/video.php:102
809
  msgid "Subtitles"
810
  msgstr ""
1059
  msgid "Select social share buttons displayed on the single video pages."
1060
  msgstr ""
1061
 
1062
+ #: admin/settings.php:511 includes/functions.php:1812
1063
  msgid "Twitter"
1064
  msgstr ""
1065
 
1066
+ #: admin/settings.php:512 includes/functions.php:1820
1067
  msgid "Linkedin"
1068
  msgstr ""
1069
 
1071
  msgid "Pinterest"
1072
  msgstr ""
1073
 
1074
+ #: admin/settings.php:514 includes/functions.php:1842
1075
  msgid "WhatsApp"
1076
  msgstr ""
1077
 
1258
  msgid "All-in-One Video Gallery - Videos"
1259
  msgstr ""
1260
 
1261
+ #: admin/videos.php:33 admin/videos.php:74 admin/videos.php:392
1262
  msgid "All Videos"
1263
  msgstr ""
1264
 
1354
  msgid "Video Description"
1355
  msgstr ""
1356
 
1357
+ #: admin/videos.php:173
1358
  msgid "Video Sources"
1359
  msgstr ""
1360
 
1361
+ #: admin/videos.php:393
1362
  msgid "Featured only"
1363
  msgstr ""
1364
 
1588
  msgid "Classic"
1589
  msgstr ""
1590
 
1591
+ #: includes/functions.php:1740
1592
  msgid "«"
1593
  msgstr ""
1594
 
1595
+ #: includes/functions.php:1741
1596
  msgid "»"
1597
  msgstr ""
1598
 
1599
+ #: includes/functions.php:1756
1600
  #, php-format
1601
  msgid "Page %d of %d"
1602
  msgstr ""
1603
 
1604
+ #: includes/functions.php:1828
1605
  msgid "Pin It"
1606
  msgstr ""
1607
 
1658
  msgid "Please wait while we are loading data from the API server..."
1659
  msgstr ""
1660
 
1661
+ #: premium/admin/admin.php:206 premium/public/public.php:103
1662
  msgid "Sorry, the auto-thumbnail generation failed."
1663
  msgstr ""
1664
 
1665
+ #: premium/admin/admin.php:207 premium/public/public.php:104
1666
  msgid ""
1667
  "Use the \"Capture Image\" button below to generate an image from your video."
1668
  msgstr ""
1669
 
1670
+ #: premium/admin/admin.php:208 premium/public/public.php:105
1671
  msgid "Select an image from the options below."
1672
  msgstr ""
1673
 
1674
+ #: premium/admin/admin.php:209 premium/public/public.php:106
1675
  msgid "Generating images..."
1676
  msgstr ""
1677
 
1678
+ #: premium/admin/admin.php:210 premium/public/public.php:107
1679
  msgid ""
1680
  "No video found. Add a video in the \"MP4\" video field to capture an image."
1681
  msgstr ""
1682
 
1683
+ #: premium/admin/admin.php:211 premium/public/public.php:108
1684
  msgid "Invalid video file."
1685
  msgstr ""
1686
 
1687
+ #: premium/admin/admin.php:212 premium/public/public.php:109
1688
  msgid ""
1689
  "Sorry, your video file server doesn't give us permission to generate an "
1690
  "image from the video."
1820
  msgstr ""
1821
 
1822
  #: premium/admin/automations.php:117
1823
+ msgid "Add New Import"
1824
  msgstr ""
1825
 
1826
  #: premium/admin/automations.php:119
1827
+ msgid "New Import"
1828
  msgstr ""
1829
 
1830
  #: premium/admin/automations.php:120
1831
+ msgid "Edit Import"
1832
  msgstr ""
1833
 
1834
  #: premium/admin/automations.php:121
1835
+ msgid "Update Import"
1836
  msgstr ""
1837
 
1838
  #: premium/admin/automations.php:122
1839
+ msgid "View Import"
1840
  msgstr ""
1841
 
1842
  #: premium/admin/automations.php:123
1843
+ msgid "Search Imports"
1844
  msgstr ""
1845
 
1846
  #: premium/admin/automations.php:124
1847
+ msgid "No imports found"
1848
  msgstr ""
1849
 
1850
  #: premium/admin/automations.php:125
1851
+ msgid "No imports found in Trash"
1852
  msgstr ""
1853
 
1854
  #: premium/admin/automations.php:130
1856
  msgstr ""
1857
 
1858
  #: premium/admin/automations.php:164
1859
+ msgid "Enter your import title"
1860
  msgstr ""
1861
 
1862
  #: premium/admin/automations.php:178
2554
  msgid "Adaptive / Live Streaming"
2555
  msgstr ""
2556
 
2557
+ #: premium/public/automations.php:56
2558
+ msgid "Every 5 minutes"
2559
+ msgstr ""
2560
+
2561
+ #: premium/public/public.php:97
2562
  msgid "This is a required field."
2563
  msgstr ""
2564
 
2565
+ #: premium/public/public.php:98 premium/public/user.php:319
2566
  #: premium/public/user.php:324
2567
  msgid "Invalid file format."
2568
  msgstr ""
2569
 
2570
+ #: premium/public/public.php:99
2571
  msgid "Loaded"
2572
  msgstr ""
2573
 
2574
+ #: premium/public/public.php:100
2575
  msgid "processing..."
2576
  msgstr ""
2577
 
2578
+ #: premium/public/public.php:101
2579
  msgid "Please wait until the upload is complete"
2580
  msgstr ""
2581
 
2582
+ #: premium/public/public.php:102
2583
  msgid "Unknown error."
2584
  msgstr ""
2585
 
2815
  msgid "Showing results for \"%s\""
2816
  msgstr ""
2817
 
 
 
 
 
 
2818
  #: public/templates/search-form-template-horizontal.php:20
2819
  #: public/templates/search-form-template-vertical.php:20
2820
  msgid "Search by keyword"
public/assets/player/videojs-plugins/facebook/videojs-facebook.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! @name videojs-facebook @version 1.1.0 @license Apache-2.0 */
2
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("video.js")):"function"==typeof define&&define.amd?define(["video.js"],t):(e=e||self).videojsFacebook=t(e.videojs)}(this,function(e){"use strict";var t,o,i,n,a,r,s,c,u=(e=e&&e.hasOwnProperty("default")?e.default:e).browser.IS_IOS||e.browser.IS_NATIVE_ANDROID,f=e.getComponent("Tech"),d=function(t){var o,i;function n(e,o){var i;return(i=t.call(this,e,o)||this).facebookInfo={source:"",state:"unstarted",volume:1,muted:!!i.options_.muted,duration:0,isSeeking:!1},i.setPoster(e.poster),i.setSrc(i.options_.source.src),i.setTimeout(function(){this.el_&&(this.el_.parentNode.className+=" vjs-facebook",u&&(this.el_.parentNode.className+=" vjs-facebook-mobile"),this.el_.parentNode.className+=" vjs-waiting",n.isApiReady?this.initFacebookPlayer():n.apiReadyQueue.push(this))}.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i))),i}i=t,(o=n).prototype=Object.create(i.prototype),o.prototype.constructor=o,o.__proto__=i;var a=n.prototype;return a.dispose=function(){if(this.facebookPlayer)DM.destroy(this.options_.techId);else{var e=n.apiReadyQueue.indexOf(this);-1!==e&&n.apiReadyQueue.splice(e,1)}this.facebookPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-facebook","").replace(" vjs-facebook-mobile",""),this.el_.parentNode.removeChild(this.el_),t.prototype.dispose.call(this)},a.createEl=function(){var e=document.createElement("div");e.setAttribute("id",this.options_.techId),e.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),e.setAttribute("class","fb-video vjs-tech"),e.setAttribute("data-href",this.options_.source.src),e.setAttribute("data-allowfullscreen",!0),e.setAttribute("data-controls",!1);var t=document.createElement("div");if(t.appendChild(e),!u&&!this.options_.facebookControls){var o=document.createElement("div");o.setAttribute("class","vjs-iframe-blocker"),o.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),t.appendChild(o)}return t},a.initFacebookPlayer=function(){var e=this;this.facebookPlayer=null,FB.Event.subscribe("xfbml.ready",function(t){"video"===t.type&&t.id===e.options_.techId&&(e.facebookPlayer=t.instance,e.el_.parentNode.className=e.el_.parentNode.className.replace(" vjs-waiting",""),e.trigger("loadstart"),e.onPlayerReady(),e.facebookPlayer.subscribe("startedBuffering",function(t){e.onStateChange("startedBuffering")}),e.facebookPlayer.subscribe("finishedBuffering",function(t){e.onStateChange("finishedBuffering")}),e.facebookPlayer.subscribe("startedPlaying",function(t){e.onStateChange("startedPlaying")}),e.facebookPlayer.subscribe("paused",function(t){e.onStateChange("paused")}),e.facebookPlayer.subscribe("finishedPlaying",function(t){e.onStateChange("finishedPlaying")}),e.facebookPlayer.subscribe("error",function(t){e.onStateChange("error")}))})},a.onPlayerReady=function(){this.facebookInfo.muted=this.facebookPlayer.isMuted(),this.isReady_=!0,this.triggerReady(),this.trigger("loadedmetadata"),this.trigger("loadeddata"),this.trigger("canplay"),this.trigger("volumechange"),this.playOnReady&&this.play()},a.onStateChange=function(e){switch(e){case"startedBuffering":this.facebookInfo.state="buffering";break;case"finishedBuffering":break;case"startedPlaying":this.facebookInfo.state="playing",this.trigger("play"),this.trigger("playing"),this.facebookInfo.isSeeking&&this.onSeeked();break;case"paused":this.facebookInfo.state="paused",this.trigger("pause");break;case"finishedPlaying":this.options_.loop?this.facebookPlayer.play():(this.facebookInfo.state="ended",this.trigger("ended"));break;case"error":console.log("error")}},a.poster=function(){return this.poster_},a.setPoster=function(e){this.poster_=e},a.src=function(e){if(void 0===e)return this.options_.source;this.setSrc(e)},a.setSrc=function(e){e&&(this.facebookInfo.source={src:e},this.options_.autoplay&&!u&&this.play())},a.currentSrc=function(){return this.options_.source.src},a.play=function(){this.isReady_?this.facebookPlayer.play():this.playOnReady=!0},a.pause=function(){this.facebookPlayer&&this.facebookPlayer.pause()},a.paused=function(){return"playing"!==this.facebookInfo.state&&"buffering"!==this.facebookInfo.state},a.currentTime=function(){return this.facebookPlayer?this.facebookPlayer.getCurrentPosition():0},a.setCurrentTime=function(e){this.facebookPlayer&&(this.facebookPlayer.seek(e),this.trigger("timeupdate"),this.facebookInfo.isSeeking=!0,this.trigger("seeking"))},a.duration=function(){var e=this;if(0===this.facebookInfo.duration){this.on("timeupdate",function t(){e.facebookInfo.duration=e.facebookPlayer.getDuration(),e.facebookInfo.duration>0&&(e.trigger("durationchange"),e.off("timeupdate",t))})}return this.facebookInfo.duration},a.buffered=function(){return e.createTimeRange()},a.seeking=function(){return this.facebookInfo.isSeeking},a.seekable=function(){return e.createTimeRange(0,this.facebookInfo.duration)},a.onSeeked=function(){this.facebookInfo.isSeeking=!1,this.trigger("seeked")},a.volume=function(){return this.facebookInfo.volume},a.setVolume=function(e){this.facebookPlayer&&(this.facebookPlayer.setVolume(e),this.facebookInfo.volume=e,this.trigger("volumechange"))},a.muted=function(){return this.facebookInfo.muted},a.setMuted=function(e){this.facebookPlayer&&(e?this.facebookPlayer.mute():this.facebookPlayer.unmute(),this.facebookInfo.muted=e,this.trigger("volumechange"))},a.ended=function(){return"ended"===this.facebookInfo.state},a.playbackRate=function(){return 1},a.supportsFullScreen=function(){return!0},n}(f);if(d.isSupported=function(){return!0},f.withSourceHandlers(d),d.nativeSourceHandler={},d.nativeSourceHandler.canPlayType=function(e){return"video/facebook"===e?"maybe":""},d.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return d.nativeSourceHandler.canPlayType(e.type);if(e.src){var o=/facebook.com/.test(e.src)?"video/facebook":"";return d.nativeSourceHandler.canPlayType(o)}return""},d.nativeSourceHandler.handleSource=function(e,t,o){t.setSrc(e.src)},d.nativeSourceHandler.dispose=function(){},d.registerSourceHandler(d.nativeSourceHandler),d.apiReadyQueue=[],"undefined"!=typeof document){var l=document.createElement("div");l.setAttribute("id","fb-root"),document.body.insertBefore(l,document.body.firstChild),n="https://connect.facebook.net/en_US/sdk.js",a=function(){window.fbAsyncInit=function(){FB.init({appId:"",xfbml:!0,version:"v3.2"})},d.isApiReady=!0;for(var e=0;e<d.apiReadyQueue.length;++e)d.apiReadyQueue[e].initFacebookPlayer()},r=!1,s=document.createElement("script"),(c=document.getElementsByTagName("script")[0]).parentNode.insertBefore(s,c),s.onload=function(){r||(r=!0,a())},s.onreadystatechange=function(){r||"complete"!==this.readyState&&"loaded"!==this.readyState||(r=!0,a())},s.src=n,t=".vjs-facebook iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }.vjs-facebook .vjs-iframe-blocker { display: none; }.vjs-facebook.vjs-has-started .vjs-iframe-blocker { display: block; }.vjs-facebook .vjs-poster { background-size: cover; }",o=document.head||document.getElementsByTagName("head")[0],(i=document.createElement("style")).type="text/css",i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t)),o.appendChild(i)}return d.VERSION="1.1.0",f.registerTech("Facebook",d),d});
1
+ /*! @name videojs-facebook @version 1.2.0 @license Apache-2.0 */
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("video.js")):"function"==typeof define&&define.amd?define(["video.js"],t):(e=e||self).videojsFacebook=t(e.videojs)}(this,function(e){"use strict";var t,o,i,n,a,r,s,c,u=(e=e&&e.hasOwnProperty("default")?e.default:e).browser.IS_IOS||e.browser.IS_NATIVE_ANDROID,f=e.getComponent("Tech"),d=function(t){var o,i;function n(e,o){var i;return(i=t.call(this,e,o)||this).facebookInfo={source:"",state:"unstarted",volume:1,muted:!!i.options_.muted,duration:0,isSeeking:!1},i.setPoster(e.poster),i.setSrc(i.options_.source.src),i.setTimeout(function(){this.el_&&(this.el_.parentNode.className+=" vjs-facebook",u&&(this.el_.parentNode.className+=" vjs-facebook-mobile"),this.el_.parentNode.className+=" vjs-waiting",n.isApiReady?this.initFacebookPlayer():n.apiReadyQueue.push(this))}.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i))),i}i=t,(o=n).prototype=Object.create(i.prototype),o.prototype.constructor=o,o.__proto__=i;var a=n.prototype;return a.dispose=function(){if(this.facebookPlayer)DM.destroy(this.options_.techId);else{var e=n.apiReadyQueue.indexOf(this);-1!==e&&n.apiReadyQueue.splice(e,1)}this.facebookPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-facebook","").replace(" vjs-facebook-mobile",""),this.el_.parentNode.removeChild(this.el_),t.prototype.dispose.call(this)},a.createEl=function(){var e=document.createElement("div");e.setAttribute("id",this.options_.techId),e.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),e.setAttribute("class","fb-video vjs-tech"),e.setAttribute("data-href",this.options_.source.src),e.setAttribute("data-allowfullscreen",!0),e.setAttribute("data-controls",!1);var t=document.createElement("div");if(t.appendChild(e),!u&&!this.options_.facebookControls){var o=document.createElement("div");o.setAttribute("class","vjs-iframe-blocker"),o.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),t.appendChild(o)}return t},a.initFacebookPlayer=function(){var e=this;this.facebookPlayer=null,FB.Event.subscribe("xfbml.ready",function(t){"video"===t.type&&t.id===e.options_.techId&&(e.facebookPlayer=t.instance,e.el_.parentNode.className=e.el_.parentNode.className.replace(" vjs-waiting",""),e.trigger("loadstart"),e.onPlayerReady(),e.facebookPlayer.subscribe("startedBuffering",function(t){e.onStateChange("startedBuffering")}),e.facebookPlayer.subscribe("finishedBuffering",function(t){e.onStateChange("finishedBuffering")}),e.facebookPlayer.subscribe("startedPlaying",function(t){e.onStateChange("startedPlaying")}),e.facebookPlayer.subscribe("paused",function(t){e.onStateChange("paused")}),e.facebookPlayer.subscribe("finishedPlaying",function(t){e.onStateChange("finishedPlaying")}),e.facebookPlayer.subscribe("error",function(t){e.onStateChange("error")}))})},a.onPlayerReady=function(){this.setMuted(this.facebookInfo.muted),this.isReady_=!0,this.triggerReady(),this.trigger("loadedmetadata"),this.trigger("loadeddata"),this.trigger("canplay"),this.trigger("volumechange"),this.playOnReady&&this.play()},a.onStateChange=function(e){switch(e){case"startedBuffering":this.facebookInfo.state="buffering";break;case"finishedBuffering":break;case"startedPlaying":this.facebookInfo.state="playing",this.trigger("play"),this.trigger("playing"),this.facebookInfo.isSeeking&&this.onSeeked();break;case"paused":this.facebookInfo.state="paused",this.trigger("pause");break;case"finishedPlaying":this.options_.loop?this.facebookPlayer.play():(this.facebookInfo.state="ended",this.trigger("ended"));break;case"error":console.log("error")}},a.poster=function(){return this.poster_},a.setPoster=function(e){this.poster_=e},a.src=function(e){if(void 0===e)return this.options_.source;this.setSrc(e)},a.setSrc=function(e){e&&(this.facebookInfo.source={src:e},this.options_.autoplay&&!u&&this.play())},a.currentSrc=function(){return this.options_.source.src},a.play=function(){this.isReady_?this.facebookPlayer.play():this.playOnReady=!0},a.pause=function(){this.facebookPlayer&&this.facebookPlayer.pause()},a.paused=function(){return"playing"!==this.facebookInfo.state&&"buffering"!==this.facebookInfo.state},a.currentTime=function(){return this.facebookPlayer?this.facebookPlayer.getCurrentPosition():0},a.setCurrentTime=function(e){this.facebookPlayer&&(this.facebookPlayer.seek(e),this.trigger("timeupdate"),this.facebookInfo.isSeeking=!0,this.trigger("seeking"))},a.duration=function(){var e=this;if(0===this.facebookInfo.duration){this.on("timeupdate",function t(){e.facebookInfo.duration=e.facebookPlayer.getDuration(),e.facebookInfo.duration>0&&(e.trigger("durationchange"),e.off("timeupdate",t))})}return this.facebookInfo.duration},a.buffered=function(){return e.createTimeRange()},a.seeking=function(){return this.facebookInfo.isSeeking},a.seekable=function(){return e.createTimeRange(0,this.facebookInfo.duration)},a.onSeeked=function(){this.facebookInfo.isSeeking=!1,this.trigger("seeked")},a.volume=function(){return this.facebookInfo.volume},a.setVolume=function(e){this.facebookPlayer&&(this.facebookPlayer.setVolume(e),this.facebookInfo.volume=e,this.trigger("volumechange"))},a.muted=function(){return this.facebookInfo.muted},a.setMuted=function(e){this.facebookPlayer&&(e?this.facebookPlayer.mute():this.facebookPlayer.unmute(),this.facebookInfo.muted=e,this.trigger("volumechange"))},a.ended=function(){return"ended"===this.facebookInfo.state},a.playbackRate=function(){return 1},a.supportsFullScreen=function(){return!0},n}(f);if(d.isSupported=function(){return!0},f.withSourceHandlers(d),d.nativeSourceHandler={},d.nativeSourceHandler.canPlayType=function(e){return"video/facebook"===e?"maybe":""},d.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return d.nativeSourceHandler.canPlayType(e.type);if(e.src){var o=/facebook.com/.test(e.src)?"video/facebook":"";return d.nativeSourceHandler.canPlayType(o)}return""},d.nativeSourceHandler.handleSource=function(e,t,o){t.setSrc(e.src)},d.nativeSourceHandler.dispose=function(){},d.registerSourceHandler(d.nativeSourceHandler),d.apiReadyQueue=[],"undefined"!=typeof document){var l=document.createElement("div");l.setAttribute("id","fb-root"),document.body.insertBefore(l,document.body.firstChild),n="https://connect.facebook.net/en_US/sdk.js",a=function(){window.fbAsyncInit=function(){FB.init({appId:"",xfbml:!0,version:"v3.2"})},d.isApiReady=!0;for(var e=0;e<d.apiReadyQueue.length;++e)d.apiReadyQueue[e].initFacebookPlayer()},r=!1,s=document.createElement("script"),(c=document.getElementsByTagName("script")[0]).parentNode.insertBefore(s,c),s.onload=function(){r||(r=!0,a())},s.onreadystatechange=function(){r||"complete"!==this.readyState&&"loaded"!==this.readyState||(r=!0,a())},s.src=n,t=".vjs-facebook iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }.vjs-facebook .vjs-iframe-blocker { display: none; }.vjs-facebook.vjs-has-started .vjs-iframe-blocker { display: block; }.vjs-facebook .vjs-poster { background-size: cover; }",o=document.head||document.getElementsByTagName("head")[0],(i=document.createElement("style")).type="text/css",i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t)),o.appendChild(i)}return d.VERSION="1.2.0",f.registerTech("Facebook",d),d});
public/assets/player/videojs-plugins/vimeo/videojs-vimeo2.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! @name videojs-vimeo2 @version 1.1.0 @license Apache-2.0 */
2
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("video.js")):"function"==typeof define&&define.amd?define(["video.js"],t):(e=e||self).videojsVimeo2=t(e.videojs)}(this,function(e){"use strict";var t,i,o,n,r,s,a,u,c=(e=e&&e.hasOwnProperty("default")?e.default:e).browser.IS_IOS||e.browser.IS_NATIVE_ANDROID,h=e.getComponent("Tech"),d=function(t){var i,o;function n(e,i){var o;return(o=t.call(this,e,i)||this).vimeoInfo={source:"",state:"unstarted",volume:1,muted:!!o.options_.muted,muteVolume:1,buffered:0,currentTime:0,duration:0,isSeeking:!1,error:null},o.setPoster(e.poster),o.setSrc(o.options_.source.src),o.setTimeout(function(){this.el_&&(this.el_.parentNode.className+=" vjs-vimeo",c&&(this.el_.parentNode.className+=" vjs-vimeo-mobile"),n.isApiReady?this.initVimeoPlayer():n.apiReadyQueue.push(this))}.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o))),o}o=t,(i=n).prototype=Object.create(o.prototype),i.prototype.constructor=i,i.__proto__=o;var r=n.prototype;return r.dispose=function(){if(this.vimeoPlayer)this.vimeoPlayer.unload().then(function(){}).catch(function(e){this.onError(e)}),this.vimeoPlayer.destroy().then(function(){}).catch(function(e){this.onError(e)});else{var e=n.apiReadyQueue.indexOf(this);-1!==e&&n.apiReadyQueue.splice(e,1)}this.vimeoPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-vimeo","").replace(" vjs-vimeo-mobile",""),this.el_.parentNode.removeChild(this.el_),t.prototype.dispose.call(this)},r.createEl=function(){var e=document.createElement("div");e.setAttribute("id",this.options_.techId),e.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),e.setAttribute("class","vjs-tech");var t=document.createElement("div");if(t.appendChild(e),!c&&!this.options_.vimeoControls){var i=document.createElement("div");i.setAttribute("class","vjs-iframe-blocker"),i.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),t.appendChild(i)}return t},r.initVimeoPlayer=function(){var e=this,t={id:this.vimeoInfo.source.videoId,byline:!1,controls:!1,portrait:!1,title:!1};void 0!==this.options_.byline&&(t.byline=!!this.options_.byline),void 0!==this.options_.color&&(t.color=this.options_.color.replace(/^#/,"")),void 0!==this.options_.vimeoControls&&(t.controls=!!this.options_.vimeoControls),void 0!==this.options_.muted&&(t.muted=!!this.options_.muted),void 0!==this.options_.loop&&(t.loop=!!this.options_.loop),void 0!==this.options_.playsinline&&(t.playsinline=!!this.options_.playsinline),void 0!==this.options_.portrait&&(t.portrait=!!this.options_.portrait),void 0!==this.options_.title&&(t.title=!!this.options_.title),this.vimeoPlayer=new Vimeo.Player(this.options_.techId,t),this.trigger("loadstart"),this.vimeoPlayer.ready().then(function(){e.onPlayerReady();["bufferstart","progress","timeupdate","seeking","seeked","play","pause","ended","volumechange"].forEach(function(t){e.vimeoPlayer.on(t,function(i){return e.onStateChange(t,i)})})})},r.onPlayerReady=function(){this.isReady_=!0,this.triggerReady(),this.trigger("loadedmetadata"),this.trigger("loadeddata"),this.trigger("canplay"),this.trigger("volumechange"),this.playOnReady&&this.play()},r.onStateChange=function(e,t){switch(void 0!==t.duration&&this.vimeoInfo.duration!==t.duration&&(this.vimeoInfo.duration=t.duration,this.trigger("durationchange")),e){case"bufferstart":this.vimeoInfo.state="buffering",this.trigger("waiting");break;case"progress":this.vimeoInfo.buffered=t.percent,this.trigger("progress");break;case"timeupdate":this.vimeoInfo.currentTime=t.seconds,this.trigger("timeupdate");break;case"seeking":this.vimeoInfo.isSeeking=!0,this.trigger("seeking");break;case"seeked":this.vimeoInfo.isSeeking=!1,this.trigger("seeked");break;case"play":this.vimeoInfo.state="playing",this.trigger("play"),this.trigger("playing");break;case"pause":this.vimeoInfo.state="paused",this.trigger("pause");break;case"ended":this.vimeoInfo.state="ended",this.trigger("ended");break;case"volumechange":this.trigger("volumechange")}},r.onError=function(e){this.vimeoInfo.error=e,console.log(e)},r.poster=function(){return this.poster_},r.setPoster=function(e){this.poster_=e,this.trigger("posterchange")},r.src=function(e){if(void 0===e)return this.options_.source;this.setSrc(e)},r.setSrc=function(e){e&&(this.vimeoInfo.error=null,this.vimeoInfo.source=n.parseUrl(e),this.options_.autoplay&&!c&&this.play())},r.currentSrc=function(){return this.options_.source.src},r.play=function(){var e=this;this.trigger("waiting"),this.isReady_?this.vimeoPlayer.play().then(function(){}).catch(function(t){e.onError(t)}):this.playOnReady=!0},r.pause=function(){var e=this;this.vimeoPlayer&&this.vimeoPlayer.pause().then(function(){}).catch(function(t){e.onError(t)})},r.paused=function(){return"playing"!==this.vimeoInfo.state&&"buffering"!==this.vimeoInfo.state},r.currentTime=function(){return this.vimeoInfo.currentTime},r.setCurrentTime=function(e){var t=this;this.vimeoPlayer&&(this.vimeoInfo.currentTime=e,this.vimeoPlayer.setCurrentTime(e).then(function(){t.vimeoInfo.currentTime=e}).catch(function(e){t.onError(e)}),this.trigger("timeupdate"))},r.duration=function(){return this.vimeoInfo.duration},r.buffered=function(){return e.createTimeRange(0,this.vimeoInfo.buffered*this.vimeoInfo.duration)},r.seeking=function(){return this.vimeoInfo.isSeeking},r.seekable=function(){return e.createTimeRange(0,this.vimeoInfo.duration)},r.volume=function(){return this.vimeoInfo.muted?this.vimeoInfo.muteVolume:this.vimeoInfo.volume},r.setVolume=function(e){var t=this;this.vimeoPlayer&&("unstarted"==this.vimeoInfo.state&&this.vimeoInfo.muted||this.vimeoPlayer.setVolume(e).then(function(){t.vimeoInfo.volume=e}).catch(function(e){t.onError(e)}))},r.muted=function(){return this.vimeoInfo.muted},r.setMuted=function(e){e?(this.vimeoInfo.muteVolume=this.vimeoInfo.volume,this.setVolume(0)):this.setVolume(this.vimeoInfo.muteVolume),this.vimeoInfo.muted=e},r.ended=function(){return"ended"===this.vimeoInfo.state},r.playbackRate=function(){return 1},r.supportsFullScreen=function(){return!0},n}(h);return d.prototype.featuresProgressEvents=!0,d.prototype.featuresTimeupdateEvents=!0,d.isSupported=function(){return!0},d.parseUrl=function(e){var t={videoId:null},i=e.match(/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/);return i&&(t.videoId=i[5]),t},h.withSourceHandlers(d),d.nativeSourceHandler={},d.nativeSourceHandler.canPlayType=function(e){return"video/vimeo"===e?"maybe":""},d.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return d.nativeSourceHandler.canPlayType(e.type);if(e.src){var i=/vimeo.com/.test(e.src)?"video/vimeo":"";return d.nativeSourceHandler.canPlayType(i)}return""},d.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},d.nativeSourceHandler.dispose=function(){},d.registerSourceHandler(d.nativeSourceHandler),d.apiReadyQueue=[],"undefined"!=typeof document&&(n="https://player.vimeo.com/api/player.js",r=function(){d.isApiReady=!0;for(var e=0;e<d.apiReadyQueue.length;++e)d.apiReadyQueue[e].initVimeoPlayer()},s=!1,a=document.createElement("script"),(u=document.getElementsByTagName("script")[0]).parentNode.insertBefore(a,u),a.onload=function(){s||(s=!0,r())},a.onreadystatechange=function(){s||"complete"!==this.readyState&&"loaded"!==this.readyState||(s=!0,r())},a.src=n,t=".vjs-vimeo iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }.vjs-vimeo .vjs-iframe-blocker { display: none; }.vjs-vimeo.vjs-has-started .vjs-iframe-blocker { display: block; }.vjs-vimeo .vjs-poster { background-size: cover; }",i=document.head||document.getElementsByTagName("head")[0],(o=document.createElement("style")).type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t)),i.appendChild(o)),d.VERSION="1.1.0",h.registerTech("Vimeo2",d),d});
1
+ /*! @name videojs-vimeo2 @version 1.2.0 @license Apache-2.0 */
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("video.js")):"function"==typeof define&&define.amd?define(["video.js"],t):(e=e||self).videojsVimeo2=t(e.videojs)}(this,function(e){"use strict";var t,i,o,n,r,s,a,u,c=(e=e&&e.hasOwnProperty("default")?e.default:e).browser.IS_IOS||e.browser.IS_NATIVE_ANDROID,h=e.getComponent("Tech"),l=function(t){var i,o;function n(e,i){var o;return(o=t.call(this,e,i)||this).vimeoInfo={source:"",state:"unstarted",volume:1,muted:!!o.options_.muted,muteVolume:1,buffered:0,currentTime:0,duration:0,isSeeking:!1,error:null},o.setPoster(e.poster),o.setSrc(o.options_.source.src),o.setTimeout(function(){this.el_&&(this.el_.parentNode.className+=" vjs-vimeo",c&&(this.el_.parentNode.className+=" vjs-vimeo-mobile"),n.isApiReady?this.initVimeoPlayer():n.apiReadyQueue.push(this))}.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o))),o}o=t,(i=n).prototype=Object.create(o.prototype),i.prototype.constructor=i,i.__proto__=o;var r=n.prototype;return r.dispose=function(){if(this.vimeoPlayer)this.vimeoPlayer.unload().then(function(){}).catch(function(e){this.onError(e)}),this.vimeoPlayer.destroy().then(function(){}).catch(function(e){this.onError(e)});else{var e=n.apiReadyQueue.indexOf(this);-1!==e&&n.apiReadyQueue.splice(e,1)}this.vimeoPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-vimeo","").replace(" vjs-vimeo-mobile",""),this.el_.parentNode.removeChild(this.el_),t.prototype.dispose.call(this)},r.createEl=function(){var e=document.createElement("div");e.setAttribute("id",this.options_.techId),e.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),e.setAttribute("class","vjs-tech");var t=document.createElement("div");if(t.appendChild(e),!c&&!this.options_.vimeoControls){var i=document.createElement("div");i.setAttribute("class","vjs-iframe-blocker"),i.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),t.appendChild(i)}return t},r.initVimeoPlayer=function(){var e=this,t={url:this.options_.source.src,byline:!1,controls:!1,portrait:!1,title:!1};void 0!==this.options_.byline&&(t.byline=!!this.options_.byline),void 0!==this.options_.color&&(t.color=this.options_.color.replace(/^#/,"")),void 0!==this.options_.vimeoControls&&(t.controls=!!this.options_.vimeoControls),void 0!==this.options_.muted&&(t.muted=!!this.options_.muted),void 0!==this.options_.loop&&(t.loop=!!this.options_.loop),void 0!==this.options_.playsinline&&(t.playsinline=!!this.options_.playsinline),void 0!==this.options_.portrait&&(t.portrait=!!this.options_.portrait),void 0!==this.options_.title&&(t.title=!!this.options_.title),this.vimeoPlayer=new Vimeo.Player(this.options_.techId,t),this.trigger("loadstart"),this.vimeoPlayer.ready().then(function(){e.onPlayerReady();["bufferstart","progress","timeupdate","seeking","seeked","play","pause","ended","volumechange"].forEach(function(t){e.vimeoPlayer.on(t,function(i){return e.onStateChange(t,i)})})})},r.onPlayerReady=function(){this.isReady_=!0,this.triggerReady(),this.trigger("loadedmetadata"),this.trigger("loadeddata"),this.trigger("canplay"),this.trigger("volumechange"),this.playOnReady&&this.play()},r.onStateChange=function(e,t){switch(void 0!==t.duration&&this.vimeoInfo.duration!==t.duration&&(this.vimeoInfo.duration=t.duration,this.trigger("durationchange")),e){case"bufferstart":this.vimeoInfo.state="buffering",this.trigger("waiting");break;case"progress":this.vimeoInfo.buffered=t.percent,this.trigger("progress");break;case"timeupdate":this.vimeoInfo.currentTime=t.seconds,this.trigger("timeupdate");break;case"seeking":this.vimeoInfo.isSeeking=!0,this.trigger("seeking");break;case"seeked":this.vimeoInfo.isSeeking=!1,this.trigger("seeked");break;case"play":this.vimeoInfo.state="playing",this.trigger("play"),this.trigger("playing");break;case"pause":this.vimeoInfo.state="paused",this.trigger("pause");break;case"ended":this.vimeoInfo.state="ended",this.trigger("ended");break;case"volumechange":this.trigger("volumechange")}},r.onError=function(e){this.vimeoInfo.error=e,console.log(e)},r.poster=function(){return this.poster_},r.setPoster=function(e){this.poster_=e,this.trigger("posterchange")},r.src=function(e){if(void 0===e)return this.options_.source;this.setSrc(e)},r.setSrc=function(e){e&&(this.vimeoInfo.error=null,this.vimeoInfo.source=n.parseUrl(e),this.options_.autoplay&&!c&&this.play())},r.currentSrc=function(){return this.options_.source.src},r.play=function(){var e=this;this.trigger("waiting"),this.isReady_?this.vimeoPlayer.play().then(function(){}).catch(function(t){e.onError(t)}):this.playOnReady=!0},r.pause=function(){var e=this;this.vimeoPlayer&&this.vimeoPlayer.pause().then(function(){}).catch(function(t){e.onError(t)})},r.paused=function(){return"playing"!==this.vimeoInfo.state&&"buffering"!==this.vimeoInfo.state},r.currentTime=function(){return this.vimeoInfo.currentTime},r.setCurrentTime=function(e){var t=this;this.vimeoPlayer&&(this.vimeoInfo.currentTime=e,this.vimeoPlayer.setCurrentTime(e).then(function(){t.vimeoInfo.currentTime=e}).catch(function(e){t.onError(e)}),this.trigger("timeupdate"))},r.duration=function(){return this.vimeoInfo.duration},r.buffered=function(){return e.createTimeRange(0,this.vimeoInfo.buffered*this.vimeoInfo.duration)},r.seeking=function(){return this.vimeoInfo.isSeeking},r.seekable=function(){return e.createTimeRange(0,this.vimeoInfo.duration)},r.volume=function(){return this.vimeoInfo.muted?this.vimeoInfo.muteVolume:this.vimeoInfo.volume},r.setVolume=function(e){var t=this;this.vimeoPlayer&&("unstarted"==this.vimeoInfo.state&&this.vimeoInfo.muted||this.vimeoPlayer.setVolume(e).then(function(){t.vimeoInfo.volume=e}).catch(function(e){t.onError(e)}))},r.muted=function(){return this.vimeoInfo.muted},r.setMuted=function(e){e?(this.vimeoInfo.muteVolume=this.vimeoInfo.volume,this.setVolume(0)):this.setVolume(this.vimeoInfo.muteVolume),this.vimeoInfo.muted=e},r.ended=function(){return"ended"===this.vimeoInfo.state},r.playbackRate=function(){return 1},r.supportsFullScreen=function(){return!0},n}(h);return l.prototype.featuresProgressEvents=!0,l.prototype.featuresTimeupdateEvents=!0,l.isSupported=function(){return!0},l.parseUrl=function(e){var t={videoId:null},i=e.match(/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/);return i&&(t.videoId=i[5]),t},h.withSourceHandlers(l),l.nativeSourceHandler={},l.nativeSourceHandler.canPlayType=function(e){return"video/vimeo"===e?"maybe":""},l.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return l.nativeSourceHandler.canPlayType(e.type);if(e.src){var i=/vimeo.com/.test(e.src)?"video/vimeo":"";return l.nativeSourceHandler.canPlayType(i)}return""},l.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},l.nativeSourceHandler.dispose=function(){},l.registerSourceHandler(l.nativeSourceHandler),l.apiReadyQueue=[],"undefined"!=typeof document&&(n="https://player.vimeo.com/api/player.js",r=function(){l.isApiReady=!0;for(var e=0;e<l.apiReadyQueue.length;++e)l.apiReadyQueue[e].initVimeoPlayer()},s=!1,a=document.createElement("script"),(u=document.getElementsByTagName("script")[0]).parentNode.insertBefore(a,u),a.onload=function(){s||(s=!0,r())},a.onreadystatechange=function(){s||"complete"!==this.readyState&&"loaded"!==this.readyState||(s=!0,r())},a.src=n,t=".vjs-vimeo iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }.vjs-vimeo .vjs-iframe-blocker { display: none; }.vjs-vimeo.vjs-has-started .vjs-iframe-blocker { display: block; }.vjs-vimeo .vjs-poster { background-size: cover; }",i=document.head||document.getElementsByTagName("head")[0],(o=document.createElement("style")).type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t)),i.appendChild(o)),l.VERSION="1.2.0",h.registerTech("Vimeo2",l),l});
public/public.php CHANGED
@@ -809,10 +809,6 @@ class AIOVG_Public {
809
  }
810
 
811
  if ( 'aiovg_videos' == get_post_type( $post->ID ) ) {
812
- if ( is_singular( 'aiovg_videos' ) ) {
813
- return false;
814
- }
815
-
816
  if ( empty( $thumbnail_id ) ) {
817
  $image_url = get_post_meta( $post->ID, 'image', true );
818
  $image_id = get_post_meta( $post->ID, 'image_id', true );
@@ -842,7 +838,9 @@ class AIOVG_Public {
842
  public function post_thumbnail_html( $html, $post_id, $post_thumbnail_id, $size, $attr ) {
843
  if ( 'aiovg_videos' == get_post_type( $post_id ) ) {
844
  if ( is_singular( 'aiovg_videos' ) ) {
845
- return '';
 
 
846
  }
847
 
848
  if ( empty( $post_thumbnail_id ) ) {
809
  }
810
 
811
  if ( 'aiovg_videos' == get_post_type( $post->ID ) ) {
 
 
 
 
812
  if ( empty( $thumbnail_id ) ) {
813
  $image_url = get_post_meta( $post->ID, 'image', true );
814
  $image_id = get_post_meta( $post->ID, 'image_id', true );
838
  public function post_thumbnail_html( $html, $post_id, $post_thumbnail_id, $size, $attr ) {
839
  if ( 'aiovg_videos' == get_post_type( $post_id ) ) {
840
  if ( is_singular( 'aiovg_videos' ) ) {
841
+ if ( $post_id == get_the_ID() ) {
842
+ return '';
843
+ }
844
  }
845
 
846
  if ( empty( $post_thumbnail_id ) ) {
public/templates/player-html5.php CHANGED
@@ -150,11 +150,11 @@ if ( isset( $sources['facebook'] ) ) {
150
  }
151
 
152
  if ( ! empty( $brand_settings ) ) {
153
- $settings['aiovg']['showLogo'] = ! empty( $brand_settings['logo_image'] ) ? (int) $brand_settings['show_logo'] : 0;
154
- $settings['aiovg']['logoImage'] = aiovg_sanitize_url( aiovg_resolve_url( $brand_settings['logo_image'] ) );
155
- $settings['aiovg']['logoLink'] = esc_url_raw( $brand_settings['logo_link'] );
156
- $settings['aiovg']['logoPosition'] = sanitize_text_field( $brand_settings['logo_position'] );
157
- $settings['aiovg']['logoMargin'] = (int) $brand_settings['logo_margin'];
158
  $settings['aiovg']['contextmenuLabel'] = sanitize_text_field( $brand_settings['copyright_text'] );
159
  }
160
 
@@ -298,7 +298,7 @@ $settings = apply_filters( 'aiovg_video_settings', $settings );
298
  '<track src="%s" kind="subtitles" srclang="%s" label="%s">',
299
  esc_attr( aiovg_resolve_url( $track['src'] ) ),
300
  esc_attr( $track['srclang'] ),
301
- esc_attr( $track['label'] )
302
  );
303
  }
304
  ?>
@@ -317,7 +317,7 @@ $settings = apply_filters( 'aiovg_video_settings', $settings );
317
  <?php endif; ?>
318
 
319
  <?php if ( isset( $sources['vimeo'] ) ) : ?>
320
- <script src="<?php echo AIOVG_PLUGIN_URL; ?>public/assets/player/videojs-plugins/vimeo/videojs-vimeo2.min.js?v=1.1.0" type="text/javascript"></script>
321
  <?php endif; ?>
322
 
323
  <?php if ( isset( $sources['dailymotion'] ) ) : ?>
@@ -325,7 +325,7 @@ $settings = apply_filters( 'aiovg_video_settings', $settings );
325
  <?php endif; ?>
326
 
327
  <?php if ( isset( $sources['facebook'] ) ) : ?>
328
- <script src="<?php echo AIOVG_PLUGIN_URL; ?>public/assets/player/videojs-plugins/facebook/videojs-facebook.min.js?v=1.1.0" type="text/javascript"></script>
329
  <?php endif; ?>
330
 
331
  <?php if ( ! empty( $settings['aiovg']['showLogo'] ) ) : ?>
150
  }
151
 
152
  if ( ! empty( $brand_settings ) ) {
153
+ $settings['aiovg']['showLogo'] = ! empty( $brand_settings['logo_image'] ) ? (int) $brand_settings['show_logo'] : 0;
154
+ $settings['aiovg']['logoImage'] = aiovg_sanitize_url( aiovg_resolve_url( $brand_settings['logo_image'] ) );
155
+ $settings['aiovg']['logoLink'] = esc_url_raw( $brand_settings['logo_link'] );
156
+ $settings['aiovg']['logoPosition'] = sanitize_text_field( $brand_settings['logo_position'] );
157
+ $settings['aiovg']['logoMargin'] = (int) $brand_settings['logo_margin'];
158
  $settings['aiovg']['contextmenuLabel'] = sanitize_text_field( $brand_settings['copyright_text'] );
159
  }
160
 
298
  '<track src="%s" kind="subtitles" srclang="%s" label="%s">',
299
  esc_attr( aiovg_resolve_url( $track['src'] ) ),
300
  esc_attr( $track['srclang'] ),
301
+ esc_attr( $track['label'] )
302
  );
303
  }
304
  ?>
317
  <?php endif; ?>
318
 
319
  <?php if ( isset( $sources['vimeo'] ) ) : ?>
320
+ <script src="<?php echo AIOVG_PLUGIN_URL; ?>public/assets/player/videojs-plugins/vimeo/videojs-vimeo2.min.js?v=1.2.0" type="text/javascript"></script>
321
  <?php endif; ?>
322
 
323
  <?php if ( isset( $sources['dailymotion'] ) ) : ?>
325
  <?php endif; ?>
326
 
327
  <?php if ( isset( $sources['facebook'] ) ) : ?>
328
+ <script src="<?php echo AIOVG_PLUGIN_URL; ?>public/assets/player/videojs-plugins/facebook/videojs-facebook.min.js?v=1.2.0" type="text/javascript"></script>
329
  <?php endif; ?>
330
 
331
  <?php if ( ! empty( $settings['aiovg']['showLogo'] ) ) : ?>
public/templates/player-iframe.php CHANGED
@@ -57,8 +57,8 @@ if ( 'embedcode' != $type ) {
57
  }
58
  break;
59
  case 'vimeo':
60
- $vimeo = aiovg_get_vimeo_oembed_data( $embed_url );
61
- $embed_url = 'https://player.vimeo.com/video/' . $vimeo['video_id'] . '?title=0&byline=0&portrait=0';
62
  break;
63
  case 'dailymotion':
64
  $embed_url = 'https://www.dailymotion.com/embed/video/' . aiovg_get_dailymotion_id_from_url( $embed_url ) . '?queue-autoplay-next=0&queue-enable=0&sharing-enable=0&ui-logo=0&ui-start-screen-info=0';
57
  }
58
  break;
59
  case 'vimeo':
60
+ $oembed = aiovg_get_vimeo_oembed_data( $embed_url );
61
+ $embed_url = 'https://player.vimeo.com/video/' . $oembed['video_id'] . '?title=0&byline=0&portrait=0';
62
  break;
63
  case 'dailymotion':
64
  $embed_url = 'https://www.dailymotion.com/embed/video/' . aiovg_get_dailymotion_id_from_url( $embed_url ) . '?queue-autoplay-next=0&queue-enable=0&sharing-enable=0&ui-logo=0&ui-start-screen-info=0';