Version Description
- New: Support for Yoast breadcrumbs.
- Tweak: Optimized WP_Query for fast output.
- Fix: [+] few minor bug fixes.
Download this release
Release Info
Developer | plugins360 |
Plugin | All-in-One Video Gallery |
Version | 1.6.2 |
Comparing to | |
See all releases |
Code changes from version 1.6.1 to 1.6.2
- README.txt +15 -2
- admin/admin.php +8 -0
- admin/assets/css/admin.css +42 -3
- admin/partials/category-image.php +6 -6
- admin/partials/shortcode-builder.php +48 -41
- admin/partials/video-sources.php +40 -40
- admin/partials/video-submitbox.php +3 -3
- admin/partials/video-tracks.php +20 -20
- admin/partials/welcome.php +41 -17
- admin/shortcode-builder.php +22 -2
- admin/videos.php +17 -12
- admin/welcome.php +10 -0
- all-in-one-video-gallery.php +2 -2
- includes/functions.php +31 -7
- includes/init.php +1 -0
- languages/all-in-one-video-gallery.pot +779 -332
- public/assets/mediaelement/renderers/soundcloud.js +0 -307
- public/assets/mediaelement/renderers/soundcloud.min.js +0 -12
- public/assets/mediaelement/renderers/twitch.js +0 -374
- public/assets/mediaelement/renderers/twitch.min.js +0 -12
- public/public.php +46 -0
- public/templates/categories-template-grid.php +2 -2
- public/templates/categories-template-list.php +2 -1
- public/templates/category-thumbnail.php +4 -4
- public/templates/player-gdpr.php +1 -1
- public/templates/player-html5.php +1 -1
- public/templates/search-form-template-horizontal.php +3 -3
- public/templates/search-form-template-vertical.php +3 -3
- public/templates/single-video.php +5 -5
- public/templates/video-thumbnail-image-left.php +7 -7
- public/templates/video-thumbnail.php +7 -7
- public/templates/videos-template-classic.php +2 -2
- public/video.php +15 -9
- widgets/forms/categories.php +29 -29
- widgets/forms/search.php +8 -8
- widgets/forms/video.php +51 -43
- widgets/forms/videos.php +13 -13
- widgets/video.php +17 -8
README.txt
CHANGED
@@ -4,9 +4,9 @@ Contributors: plugins360, freemius
|
|
4 |
Donate link: https://plugins360.com
|
5 |
Tags: player, youtube, vimeo, live, vlog
|
6 |
Requires at least: 4.4.0
|
7 |
-
Tested up to: 5.
|
8 |
Requires PHP: 5.3.0
|
9 |
-
Stable tag: 1.6.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -42,6 +42,7 @@ https://www.youtube.com/watch?v=w47PU9ppuF8
|
|
42 |
|
43 |
**Premium Features**
|
44 |
|
|
|
45 |
* Custom Logo & Branding
|
46 |
* Custom Context Menu
|
47 |
* HLS / M(PEG)-Dash
|
@@ -92,6 +93,12 @@ Most likely rewrite rules were not registered properly for some reason. Go to "W
|
|
92 |
|
93 |
== Changelog ==
|
94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
= 1.6.1 =
|
96 |
|
97 |
* New: Option to delete or NOT delete the associated media files when a video post or video category is deleted.
|
@@ -182,6 +189,12 @@ Most likely rewrite rules were not registered properly for some reason. Go to "W
|
|
182 |
|
183 |
== Upgrade Notice ==
|
184 |
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
= 1.6.1 =
|
186 |
|
187 |
* New: Option to delete or NOT delete the associated media files when a video post or video category is deleted.
|
4 |
Donate link: https://plugins360.com
|
5 |
Tags: player, youtube, vimeo, live, vlog
|
6 |
Requires at least: 4.4.0
|
7 |
+
Tested up to: 5.2
|
8 |
Requires PHP: 5.3.0
|
9 |
+
Stable tag: 1.6.2
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
42 |
|
43 |
**Premium Features**
|
44 |
|
45 |
+
* Auto import videos from YouTube playlist, channel, etc.
|
46 |
* Custom Logo & Branding
|
47 |
* Custom Context Menu
|
48 |
* HLS / M(PEG)-Dash
|
93 |
|
94 |
== Changelog ==
|
95 |
|
96 |
+
= 1.6.2 =
|
97 |
+
|
98 |
+
* New: Support for Yoast breadcrumbs.
|
99 |
+
* Tweak: Optimized WP_Query for fast output.
|
100 |
+
* Fix: [+] few minor bug fixes.
|
101 |
+
|
102 |
= 1.6.1 =
|
103 |
|
104 |
* New: Option to delete or NOT delete the associated media files when a video post or video category is deleted.
|
189 |
|
190 |
== Upgrade Notice ==
|
191 |
|
192 |
+
= 1.6.2 =
|
193 |
+
|
194 |
+
* New: Support for Yoast breadcrumbs.
|
195 |
+
* Tweak: Optimized WP_Query for fast output.
|
196 |
+
* Fix: [+] few minor bug fixes.
|
197 |
+
|
198 |
= 1.6.1 =
|
199 |
|
200 |
* New: Option to delete or NOT delete the associated media files when a video post or video category is deleted.
|
admin/admin.php
CHANGED
@@ -144,6 +144,14 @@ class AIOVG_Admin {
|
|
144 |
AIOVG_PLUGIN_VERSION,
|
145 |
false
|
146 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
}
|
148 |
|
149 |
/**
|
144 |
AIOVG_PLUGIN_VERSION,
|
145 |
false
|
146 |
);
|
147 |
+
|
148 |
+
wp_localize_script(
|
149 |
+
AIOVG_PLUGIN_SLUG . '-admin',
|
150 |
+
'aiovg_admin',
|
151 |
+
array(
|
152 |
+
'ajax_nonce' => wp_create_nonce( 'aiovg_admin_ajax_nonce' )
|
153 |
+
)
|
154 |
+
);
|
155 |
}
|
156 |
|
157 |
/**
|
admin/assets/css/admin.css
CHANGED
@@ -3,6 +3,10 @@
|
|
3 |
* Global
|
4 |
*
|
5 |
*--------------------------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
6 |
.aiovg-no-border {
|
7 |
border: 0 none;
|
8 |
}
|
@@ -44,14 +48,40 @@
|
|
44 |
}
|
45 |
|
46 |
.aiovg-upgrade-link,
|
47 |
-
.aiovg-upgrade-link:hover
|
|
|
48 |
color: green;
|
49 |
}
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
@media (max-width: 767px) {
|
52 |
.aiovg-hidden-xs {
|
53 |
display: none !important;
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
}
|
56 |
|
57 |
@media (min-width: 768px) and (max-width: 991px) {
|
@@ -82,6 +112,15 @@
|
|
82 |
background: #0073aa url( '../images/logo.png' ) no-repeat top;
|
83 |
}
|
84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
/*----------------------------------------------------------------------------------------------
|
86 |
*
|
87 |
* Videos
|
@@ -372,7 +411,7 @@ table.aiovg-table .aiovg-handle {
|
|
372 |
}
|
373 |
|
374 |
.aiovg-widget-form .aiovg-widget-field {
|
375 |
-
margin:
|
376 |
}
|
377 |
|
378 |
.aiovg-widget-form .aiovg-widget-label {
|
3 |
* Global
|
4 |
*
|
5 |
*--------------------------------------------------------------------------------------------*/
|
6 |
+
.aiovg-text-center {
|
7 |
+
text-align: center;
|
8 |
+
}
|
9 |
+
|
10 |
.aiovg-no-border {
|
11 |
border: 0 none;
|
12 |
}
|
48 |
}
|
49 |
|
50 |
.aiovg-upgrade-link,
|
51 |
+
.aiovg-upgrade-link:hover,
|
52 |
+
.aiovg-text-success {
|
53 |
color: green;
|
54 |
}
|
55 |
|
56 |
+
.aiovg-notice {
|
57 |
+
padding: 5px;
|
58 |
+
border-radius: 2px;
|
59 |
+
}
|
60 |
+
|
61 |
+
.aiovg-notice-error {
|
62 |
+
background-color: #f2dede;
|
63 |
+
border: 1px solid #ebccd1;
|
64 |
+
color: #a94442;
|
65 |
+
}
|
66 |
+
|
67 |
+
.aiovg-notice-success {
|
68 |
+
background-color: #dff0d8;
|
69 |
+
border: 1px solid #d6e9c6;
|
70 |
+
color: #3c763d;
|
71 |
+
}
|
72 |
+
|
73 |
@media (max-width: 767px) {
|
74 |
.aiovg-hidden-xs {
|
75 |
display: none !important;
|
76 |
+
}
|
77 |
+
|
78 |
+
.aiovg-checklist {
|
79 |
+
padding: 3px 10px;
|
80 |
+
}
|
81 |
+
|
82 |
+
.aiovg-checklist li {
|
83 |
+
margin: 7px 0;
|
84 |
+
}
|
85 |
}
|
86 |
|
87 |
@media (min-width: 768px) and (max-width: 991px) {
|
112 |
background: #0073aa url( '../images/logo.png' ) no-repeat top;
|
113 |
}
|
114 |
|
115 |
+
#aiovg-welcome .dashicons-info {
|
116 |
+
color: #ca4a1f;
|
117 |
+
}
|
118 |
+
|
119 |
+
#aiovg-welcome .dashicons-awards {
|
120 |
+
font-size: 30px;
|
121 |
+
margin-right: 10px;
|
122 |
+
}
|
123 |
+
|
124 |
/*----------------------------------------------------------------------------------------------
|
125 |
*
|
126 |
* Videos
|
411 |
}
|
412 |
|
413 |
.aiovg-widget-form .aiovg-widget-field {
|
414 |
+
margin: 15px 0;
|
415 |
}
|
416 |
|
417 |
.aiovg-widget-form .aiovg-widget-label {
|
admin/partials/category-image.php
CHANGED
@@ -12,18 +12,18 @@
|
|
12 |
|
13 |
<?php if ( 'add' == $form ) : ?>
|
14 |
<div class="form-field term-group">
|
15 |
-
<label for="aiovg-categories-image-id"><?php
|
16 |
<input type="hidden" name="image_id" id="aiovg-categories-image-id" />
|
17 |
<div id="aiovg-categories-image-wrapper"></div>
|
18 |
<p>
|
19 |
-
<input type="button" id="aiovg-categories-upload-image" class="button button-secondary" value="<?php
|
20 |
-
<input type="button" id="aiovg-categories-remove-image" class="button button-secondary" value="<?php
|
21 |
</p>
|
22 |
</div>
|
23 |
<?php elseif ( 'edit' == $form ) : ?>
|
24 |
<tr class="form-field term-group-wrap">
|
25 |
<th scope="row">
|
26 |
-
<label for="aiovg-categories-image-id"><?php
|
27 |
</th>
|
28 |
<td>
|
29 |
<input type="hidden" name="image_id" id="aiovg-categories-image-id" value="<?php echo esc_attr( $image_id ); ?>" />
|
@@ -33,8 +33,8 @@
|
|
33 |
<?php endif; ?>
|
34 |
</div>
|
35 |
<p>
|
36 |
-
<input type="button" id="aiovg-categories-upload-image" class="button button-secondary" value="<?php
|
37 |
-
<input type="button" id="aiovg-categories-remove-image" class="button button-secondary" value="<?php
|
38 |
</p>
|
39 |
</td>
|
40 |
</tr>
|
12 |
|
13 |
<?php if ( 'add' == $form ) : ?>
|
14 |
<div class="form-field term-group">
|
15 |
+
<label for="aiovg-categories-image-id"><?php esc_html_e( 'Image', 'all-in-one-video-gallery' ); ?></label>
|
16 |
<input type="hidden" name="image_id" id="aiovg-categories-image-id" />
|
17 |
<div id="aiovg-categories-image-wrapper"></div>
|
18 |
<p>
|
19 |
+
<input type="button" id="aiovg-categories-upload-image" class="button button-secondary" value="<?php esc_attr_e( 'Add Image', 'all-in-one-video-gallery' ); ?>" />
|
20 |
+
<input type="button" id="aiovg-categories-remove-image" class="button button-secondary" value="<?php esc_attr_e( 'Remove Image', 'all-in-one-video-gallery' ); ?>" style="display: none;" />
|
21 |
</p>
|
22 |
</div>
|
23 |
<?php elseif ( 'edit' == $form ) : ?>
|
24 |
<tr class="form-field term-group-wrap">
|
25 |
<th scope="row">
|
26 |
+
<label for="aiovg-categories-image-id"><?php esc_html_e( 'Image', 'all-in-one-video-gallery' ); ?></label>
|
27 |
</th>
|
28 |
<td>
|
29 |
<input type="hidden" name="image_id" id="aiovg-categories-image-id" value="<?php echo esc_attr( $image_id ); ?>" />
|
33 |
<?php endif; ?>
|
34 |
</div>
|
35 |
<p>
|
36 |
+
<input type="button" id="aiovg-categories-upload-image" class="button button-secondary" value="<?php esc_attr_e( 'Add Image', 'all-in-one-video-gallery' ); ?>" <?php if ( $image_url ) echo 'style="display: none;"'; ?>/>
|
37 |
+
<input type="button" id="aiovg-categories-remove-image" class="button button-secondary" value="<?php esc_attr_e( 'Remove Image', 'all-in-one-video-gallery' ); ?>" <?php if ( ! $image_url ) echo 'style="display: none;"'; ?>/>
|
38 |
</p>
|
39 |
</td>
|
40 |
</tr>
|
admin/partials/shortcode-builder.php
CHANGED
@@ -12,11 +12,11 @@
|
|
12 |
|
13 |
<div id="aiovg-shortcode-builder" class="aiovg-shortcode-builder mfp-hide">
|
14 |
<div id="aiovg-shortcode-form" class="aiovg-shortcode-form">
|
15 |
-
<p><?php
|
16 |
|
17 |
<!-- Shortcodes -->
|
18 |
<div class="aiovg-shortcode-selector">
|
19 |
-
<label class="aiovg-shortcode-label" for="aiovg-shortcode-type"><?php
|
20 |
<select id="aiovg-shortcode-type" class="widefat aiovg-shortcode-type">
|
21 |
<?php
|
22 |
foreach ( $shortcodes as $value => $label ) {
|
@@ -28,21 +28,21 @@
|
|
28 |
|
29 |
<!-- Fields -->
|
30 |
<?php foreach ( $shortcodes as $shortcode => $label ) : ?>
|
31 |
-
<div id="aiovg-shortcode-type-<?php
|
32 |
<?php foreach ( $fields[ $shortcode ] as $key => $section ) : ?>
|
33 |
-
<div class="aiovg-shortcode-section aiovg-shortcode-section-<?php
|
34 |
<div class="aiovg-shortcode-section-header"><?php echo wp_kses_post( $section['title'] ); ?></div>
|
35 |
|
36 |
<?php foreach ( $section['fields'] as $field ) : ?>
|
37 |
-
<div class="aiovg-shortcode-field aiovg-shortcode-field-<?php
|
38 |
<?php if ( 'category' == $field['type'] ) : ?>
|
39 |
-
<label class="aiovg-shortcode-label"><?php
|
40 |
<?php
|
41 |
wp_dropdown_categories( array(
|
42 |
-
'show_option_none' => '-- '.
|
43 |
'option_none_value' => 0,
|
44 |
'taxonomy' => 'aiovg_categories',
|
45 |
-
'name' => $field['name'],
|
46 |
'class' => "aiovg-shortcode-input widefat",
|
47 |
'orderby' => 'name',
|
48 |
'hierarchical' => true,
|
@@ -52,8 +52,8 @@
|
|
52 |
) );
|
53 |
?>
|
54 |
<?php elseif ( 'categories' == $field['type'] ) : ?>
|
55 |
-
<label class="aiovg-shortcode-label"><?php
|
56 |
-
<ul name="<?php
|
57 |
<?php
|
58 |
$args = array(
|
59 |
'taxonomy' => 'aiovg_categories',
|
@@ -65,36 +65,43 @@
|
|
65 |
?>
|
66 |
</ul>
|
67 |
<?php elseif ( 'video' == $field['type'] ) : ?>
|
68 |
-
<label class="aiovg-shortcode-label"><?php
|
69 |
-
<select name="<?php
|
70 |
-
<option value="0">-- <?php
|
71 |
<?php
|
72 |
-
$
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
'
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
?>
|
91 |
</select>
|
92 |
<?php elseif ( 'text' == $field['type'] || 'url' == $field['type'] || 'number' == $field['type'] ) : ?>
|
93 |
-
<label class="aiovg-shortcode-label"><?php
|
94 |
-
<input type="text" name="<?php
|
95 |
<?php elseif ( 'select' == $field['type'] ) : ?>
|
96 |
-
<label class="aiovg-shortcode-label"><?php
|
97 |
-
<select name="<?php
|
98 |
<?php
|
99 |
foreach ( $field['options'] as $value => $label ) {
|
100 |
printf( '<option value="%s"%s>%s</option>', esc_attr( $value ), selected( $value, $field['value'], false ), esc_html( $label ) );
|
@@ -103,12 +110,12 @@
|
|
103 |
</select>
|
104 |
<?php elseif ( 'checkbox' == $field['type'] ) : ?>
|
105 |
<label>
|
106 |
-
<input type="checkbox" name="<?php
|
107 |
-
<?php
|
108 |
</label>
|
109 |
<?php elseif ( 'color' == $field['type'] ) : ?>
|
110 |
-
<label class="aiovg-shortcode-label"><?php
|
111 |
-
<input type="text" name="<?php
|
112 |
<?php endif; ?>
|
113 |
|
114 |
<?php if ( ! empty( $field['description'] ) ) : // Description ?>
|
@@ -123,8 +130,8 @@
|
|
123 |
|
124 |
<!-- Action Buttons -->
|
125 |
<p class="submit">
|
126 |
-
<input type="button" id="aiovg-insert-shortcode" class="button-primary" value="<?php
|
127 |
-
<a id="aiovg-cancel-shortcode-insert" class="button-secondary"><?php
|
128 |
</p>
|
129 |
</div>
|
130 |
</div>
|
12 |
|
13 |
<div id="aiovg-shortcode-builder" class="aiovg-shortcode-builder mfp-hide">
|
14 |
<div id="aiovg-shortcode-form" class="aiovg-shortcode-form">
|
15 |
+
<p><?php esc_html_e( 'Use the form below to insert "All-in-One Video Gallery" plugin shortcodes.', 'all-in-one-video-gallery' ); ?></p>
|
16 |
|
17 |
<!-- Shortcodes -->
|
18 |
<div class="aiovg-shortcode-selector">
|
19 |
+
<label class="aiovg-shortcode-label" for="aiovg-shortcode-type"><?php esc_html_e( 'Shortcode Type', 'all-in-one-video-gallery' ); ?></label>
|
20 |
<select id="aiovg-shortcode-type" class="widefat aiovg-shortcode-type">
|
21 |
<?php
|
22 |
foreach ( $shortcodes as $value => $label ) {
|
28 |
|
29 |
<!-- Fields -->
|
30 |
<?php foreach ( $shortcodes as $shortcode => $label ) : ?>
|
31 |
+
<div id="aiovg-shortcode-type-<?php echo esc_attr( $shortcode ); ?>" class="aiovg-shortcode-type">
|
32 |
<?php foreach ( $fields[ $shortcode ] as $key => $section ) : ?>
|
33 |
+
<div class="aiovg-shortcode-section aiovg-shortcode-section-<?php echo esc_attr( $key ); ?>">
|
34 |
<div class="aiovg-shortcode-section-header"><?php echo wp_kses_post( $section['title'] ); ?></div>
|
35 |
|
36 |
<?php foreach ( $section['fields'] as $field ) : ?>
|
37 |
+
<div class="aiovg-shortcode-field aiovg-shortcode-field-<?php echo esc_attr( $field['name'] ); ?>">
|
38 |
<?php if ( 'category' == $field['type'] ) : ?>
|
39 |
+
<label class="aiovg-shortcode-label"><?php echo esc_html( $field['label'] ); ?></label>
|
40 |
<?php
|
41 |
wp_dropdown_categories( array(
|
42 |
+
'show_option_none' => '-- ' . esc_html__( 'Top Categories', 'all-in-one-video-gallery' ) . ' --',
|
43 |
'option_none_value' => 0,
|
44 |
'taxonomy' => 'aiovg_categories',
|
45 |
+
'name' => esc_attr( $field['name'] ),
|
46 |
'class' => "aiovg-shortcode-input widefat",
|
47 |
'orderby' => 'name',
|
48 |
'hierarchical' => true,
|
52 |
) );
|
53 |
?>
|
54 |
<?php elseif ( 'categories' == $field['type'] ) : ?>
|
55 |
+
<label class="aiovg-shortcode-label"><?php echo esc_html( $field['label'] ); ?></label>
|
56 |
+
<ul name="<?php echo esc_attr( $field['name'] ); ?>" class="aiovg-shortcode-input aiovg-checklist widefat" data-default="">
|
57 |
<?php
|
58 |
$args = array(
|
59 |
'taxonomy' => 'aiovg_categories',
|
65 |
?>
|
66 |
</ul>
|
67 |
<?php elseif ( 'video' == $field['type'] ) : ?>
|
68 |
+
<label class="aiovg-shortcode-label"><?php echo esc_html( $field['label'] ); ?></label>
|
69 |
+
<select name="<?php echo esc_attr( $field['name'] ); ?>" class="aiovg-shortcode-input widefat" data-default="<?php echo esc_attr( $field['value'] ); ?>">
|
70 |
+
<option value="0">-- <?php esc_html_e( 'Latest Video', 'all-in-one-video-gallery' ); ?> --</option>
|
71 |
<?php
|
72 |
+
$args = array(
|
73 |
+
'post_type' => 'aiovg_videos',
|
74 |
+
'post_status' => 'publish',
|
75 |
+
'posts_per_page' => 500,
|
76 |
+
'orderby' => 'title',
|
77 |
+
'order' => 'ASC',
|
78 |
+
'no_found_rows' => true,
|
79 |
+
'update_post_term_cache' => false,
|
80 |
+
'update_post_meta_cache' => false
|
81 |
+
);
|
82 |
+
|
83 |
+
$aiovg_query = new WP_Query( $args );
|
84 |
+
|
85 |
+
if ( $aiovg_query->have_posts() ) {
|
86 |
+
$posts = $aiovg_query->posts;
|
87 |
+
|
88 |
+
foreach ( $posts as $post ) {
|
89 |
+
printf(
|
90 |
+
'<option value="%d"%s>%s</option>',
|
91 |
+
$post->ID,
|
92 |
+
selected( $post->ID, $field['value'], false ),
|
93 |
+
esc_html( $post->post_title )
|
94 |
+
);
|
95 |
+
}
|
96 |
+
}
|
97 |
?>
|
98 |
</select>
|
99 |
<?php elseif ( 'text' == $field['type'] || 'url' == $field['type'] || 'number' == $field['type'] ) : ?>
|
100 |
+
<label class="aiovg-shortcode-label"><?php echo esc_html( $field['label'] ); ?></label>
|
101 |
+
<input type="text" name="<?php echo esc_attr( $field['name'] ); ?>" class="aiovg-shortcode-input widefat" value="<?php echo esc_attr( $field['value'] ); ?>" data-default="<?php echo esc_attr( $field['value'] ); ?>" />
|
102 |
<?php elseif ( 'select' == $field['type'] ) : ?>
|
103 |
+
<label class="aiovg-shortcode-label"><?php echo esc_html( $field['label'] ); ?></label>
|
104 |
+
<select name="<?php echo esc_attr( $field['name'] ); ?>" class="aiovg-shortcode-input widefat" data-default="<?php echo esc_attr( $field['value'] ); ?>">
|
105 |
<?php
|
106 |
foreach ( $field['options'] as $value => $label ) {
|
107 |
printf( '<option value="%s"%s>%s</option>', esc_attr( $value ), selected( $value, $field['value'], false ), esc_html( $label ) );
|
110 |
</select>
|
111 |
<?php elseif ( 'checkbox' == $field['type'] ) : ?>
|
112 |
<label>
|
113 |
+
<input type="checkbox" name="<?php echo esc_attr( $field['name'] ); ?>" class="aiovg-shortcode-input" data-default="<?php echo esc_attr( $field['value'] ); ?>" value="1" <?php checked( $field['value'] ); ?> />
|
114 |
+
<?php echo esc_html( $field['label'] ); ?>
|
115 |
</label>
|
116 |
<?php elseif ( 'color' == $field['type'] ) : ?>
|
117 |
+
<label class="aiovg-shortcode-label"><?php echo esc_html( $field['label'] ); ?></label>
|
118 |
+
<input type="text" name="<?php echo esc_attr( $field['name'] ); ?>" class="aiovg-shortcode-input aiovg-color-picker-field widefat" value="<?php echo esc_attr( $field['value'] ); ?>" data-default="<?php echo esc_attr( $field['value'] ); ?>" />
|
119 |
<?php endif; ?>
|
120 |
|
121 |
<?php if ( ! empty( $field['description'] ) ) : // Description ?>
|
130 |
|
131 |
<!-- Action Buttons -->
|
132 |
<p class="submit">
|
133 |
+
<input type="button" id="aiovg-insert-shortcode" class="button-primary" value="<?php esc_attr_e( 'Insert Shortcode', 'all-in-one-video-gallery' ); ?>" />
|
134 |
+
<a id="aiovg-cancel-shortcode-insert" class="button-secondary"><?php esc_html_e( 'Cancel', 'all-in-one-video-gallery' ); ?></a>
|
135 |
</p>
|
136 |
</div>
|
137 |
</div>
|
admin/partials/video-sources.php
CHANGED
@@ -14,10 +14,10 @@
|
|
14 |
<tbody>
|
15 |
<tr>
|
16 |
<td class="label aiovg-hidden-xs">
|
17 |
-
<label><?php
|
18 |
</td>
|
19 |
<td>
|
20 |
-
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php
|
21 |
<select name="type" id="aiovg-video-type" class="select">
|
22 |
<?php
|
23 |
$types = aiovg_get_video_source_types( true );
|
@@ -30,14 +30,14 @@
|
|
30 |
</tr>
|
31 |
<tr class="aiovg-toggle-fields aiovg-type-default">
|
32 |
<td class="label aiovg-hidden-xs">
|
33 |
-
<label><?php
|
34 |
</td>
|
35 |
<td>
|
36 |
-
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php
|
37 |
<div class="aiovg-input-wrap aiovg-media-uploader">
|
38 |
-
<input type="text" name="mp4" id="aiovg-mp4" class="text" placeholder="<?php
|
39 |
<a class="button aiovg-upload-media hide-if-no-js" href="javascript:;" id="aiovg-upload-mp4" data-format="mp4">
|
40 |
-
<?php
|
41 |
</a>
|
42 |
</div>
|
43 |
|
@@ -47,13 +47,13 @@
|
|
47 |
<li>
|
48 |
<label>
|
49 |
<input type="checkbox" name="has_webm" id="aiovg-has-webm" value="1" <?php checked( $has_webm, 1 ); ?> />
|
50 |
-
<?php
|
51 |
</label>
|
52 |
</li>
|
53 |
<li>
|
54 |
<label>
|
55 |
<input type="checkbox" name="has_ogv" id="aiovg-has-ogv" value="1" <?php checked( $has_ogv, 1 ); ?> />
|
56 |
-
<?php
|
57 |
</label>
|
58 |
</li>
|
59 |
</ul>
|
@@ -61,117 +61,117 @@
|
|
61 |
</tr>
|
62 |
<tr id="aiovg-field-webm" class="aiovg-toggle-fields">
|
63 |
<td class="label aiovg-hidden-xs">
|
64 |
-
<label><?php
|
65 |
</td>
|
66 |
<td>
|
67 |
-
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php
|
68 |
<div class="aiovg-input-wrap aiovg-media-uploader">
|
69 |
-
<input type="text" name="webm" id="aiovg-webm" class="text" placeholder="<?php
|
70 |
<a class="button aiovg-upload-media hide-if-no-js" href="javascript:;" id="aiovg-upload-webm" data-format="webm">
|
71 |
-
<?php
|
72 |
</a>
|
73 |
</div>
|
74 |
</td>
|
75 |
</tr>
|
76 |
<tr id="aiovg-field-ogv" class="aiovg-toggle-fields">
|
77 |
<td class="label aiovg-hidden-xs">
|
78 |
-
<label><?php
|
79 |
</td>
|
80 |
<td>
|
81 |
-
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php
|
82 |
<div class="aiovg-input-wrap aiovg-media-uploader">
|
83 |
-
<input type="text" name="ogv" id="aiovg-ogv" class="text" placeholder="<?php
|
84 |
<a class="button aiovg-upload-media hide-if-no-js" href="javascript:;" id="aiovg-upload-ogv" data-format="ogv">
|
85 |
-
<?php
|
86 |
</a>
|
87 |
</div>
|
88 |
</td>
|
89 |
</tr>
|
90 |
<tr class="aiovg-toggle-fields aiovg-type-youtube">
|
91 |
<td class="label aiovg-hidden-xs">
|
92 |
-
<label><?php
|
93 |
</td>
|
94 |
<td>
|
95 |
-
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php
|
96 |
<div class="aiovg-input-wrap">
|
97 |
-
<input type="text" name="youtube" id="aiovg-youtube" class="text" placeholder="<?php
|
98 |
</div>
|
99 |
</td>
|
100 |
</tr>
|
101 |
<tr class="aiovg-toggle-fields aiovg-type-vimeo">
|
102 |
<td class="label aiovg-hidden-xs">
|
103 |
-
<label><?php
|
104 |
</td>
|
105 |
<td>
|
106 |
-
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php
|
107 |
<div class="aiovg-input-wrap">
|
108 |
-
<input type="text" name="vimeo" id="aiovg-vimeo" class="text" placeholder="<?php
|
109 |
</div>
|
110 |
</td>
|
111 |
</tr>
|
112 |
<tr class="aiovg-toggle-fields aiovg-type-dailymotion">
|
113 |
<td class="label aiovg-hidden-xs">
|
114 |
-
<label><?php
|
115 |
</td>
|
116 |
<td>
|
117 |
-
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php
|
118 |
<div class="aiovg-input-wrap">
|
119 |
-
<input type="text" name="dailymotion" id="aiovg-dailymotion" class="text" placeholder="<?php
|
120 |
</div>
|
121 |
</td>
|
122 |
</tr>
|
123 |
<tr class="aiovg-toggle-fields aiovg-type-facebook">
|
124 |
<td class="label aiovg-hidden-xs">
|
125 |
-
<label><?php
|
126 |
</td>
|
127 |
<td>
|
128 |
-
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php
|
129 |
<div class="aiovg-input-wrap">
|
130 |
-
<input type="text" name="facebook" id="aiovg-facebook" class="text" placeholder="<?php
|
131 |
</div>
|
132 |
</td>
|
133 |
</tr>
|
134 |
<tr class="aiovg-toggle-fields aiovg-type-embedcode">
|
135 |
<td class="label aiovg-hidden-xs">
|
136 |
-
<label><?php
|
137 |
</td>
|
138 |
<td>
|
139 |
-
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php
|
140 |
-
<textarea name="embedcode" id="aiovg-embedcode" class="textarea" placeholder="<?php
|
141 |
</td>
|
142 |
</tr>
|
143 |
<?php do_action( 'aiovg_admin_add_video_source_fields', $post->ID ); ?>
|
144 |
<tr>
|
145 |
<td class="label aiovg-hidden-xs">
|
146 |
-
<label><?php
|
147 |
</td>
|
148 |
<td>
|
149 |
-
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php
|
150 |
<div class="aiovg-input-wrap aiovg-media-uploader">
|
151 |
-
<input type="text" name="image" id="aiovg-image" class="text" placeholder="<?php
|
152 |
<a class="button aiovg-upload-media hide-if-no-js" href="javascript:;" id="aiovg-upload-image" data-format="image">
|
153 |
-
<?php
|
154 |
</a>
|
155 |
</div>
|
156 |
</td>
|
157 |
</tr>
|
158 |
<tr>
|
159 |
<td class="label aiovg-hidden-xs">
|
160 |
-
<label><?php
|
161 |
</td>
|
162 |
<td>
|
163 |
-
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php
|
164 |
<div class="aiovg-input-wrap">
|
165 |
-
<input type="text" name="duration" id="aiovg-duration" class="text" placeholder="
|
166 |
</div>
|
167 |
</td>
|
168 |
</tr>
|
169 |
<tr>
|
170 |
<td class="label aiovg-hidden-xs">
|
171 |
-
<label><?php
|
172 |
</td>
|
173 |
<td>
|
174 |
-
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php
|
175 |
<div class="aiovg-input-wrap">
|
176 |
<input type="text" name="views" id="aiovg-views" class="text" value="<?php echo esc_attr( $views ); ?>" />
|
177 |
</div>
|
14 |
<tbody>
|
15 |
<tr>
|
16 |
<td class="label aiovg-hidden-xs">
|
17 |
+
<label><?php esc_html_e( "Type", 'all-in-one-video-gallery' ); ?></label>
|
18 |
</td>
|
19 |
<td>
|
20 |
+
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php esc_html_e( "Type", 'all-in-one-video-gallery' ); ?></strong></p>
|
21 |
<select name="type" id="aiovg-video-type" class="select">
|
22 |
<?php
|
23 |
$types = aiovg_get_video_source_types( true );
|
30 |
</tr>
|
31 |
<tr class="aiovg-toggle-fields aiovg-type-default">
|
32 |
<td class="label aiovg-hidden-xs">
|
33 |
+
<label><?php esc_html_e( "MP4", 'all-in-one-video-gallery' ); ?></label>
|
34 |
</td>
|
35 |
<td>
|
36 |
+
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php esc_html_e( "MP4", 'all-in-one-video-gallery' ); ?></strong></p>
|
37 |
<div class="aiovg-input-wrap aiovg-media-uploader">
|
38 |
+
<input type="text" name="mp4" id="aiovg-mp4" class="text" placeholder="<?php esc_attr_e( 'Enter your Direct File URL here (OR) use the Upload Media button', 'all-in-one-video-gallery' ); ?>" value="<?php echo esc_url( $mp4 ); ?>" />
|
39 |
<a class="button aiovg-upload-media hide-if-no-js" href="javascript:;" id="aiovg-upload-mp4" data-format="mp4">
|
40 |
+
<?php esc_html_e( 'Upload Media', 'all-in-one-video-gallery' ); ?>
|
41 |
</a>
|
42 |
</div>
|
43 |
|
47 |
<li>
|
48 |
<label>
|
49 |
<input type="checkbox" name="has_webm" id="aiovg-has-webm" value="1" <?php checked( $has_webm, 1 ); ?> />
|
50 |
+
<?php esc_html_e( "WebM", 'all-in-one-video-gallery' ); ?>
|
51 |
</label>
|
52 |
</li>
|
53 |
<li>
|
54 |
<label>
|
55 |
<input type="checkbox" name="has_ogv" id="aiovg-has-ogv" value="1" <?php checked( $has_ogv, 1 ); ?> />
|
56 |
+
<?php esc_html_e( "OGV", 'all-in-one-video-gallery' ); ?>
|
57 |
</label>
|
58 |
</li>
|
59 |
</ul>
|
61 |
</tr>
|
62 |
<tr id="aiovg-field-webm" class="aiovg-toggle-fields">
|
63 |
<td class="label aiovg-hidden-xs">
|
64 |
+
<label><?php esc_html_e( "WebM", 'all-in-one-video-gallery' ); ?></label>
|
65 |
</td>
|
66 |
<td>
|
67 |
+
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php esc_html_e( "WebM", 'all-in-one-video-gallery' ); ?></strong></p>
|
68 |
<div class="aiovg-input-wrap aiovg-media-uploader">
|
69 |
+
<input type="text" name="webm" id="aiovg-webm" class="text" placeholder="<?php esc_attr_e( 'Enter your Direct File URL here (OR) use the Upload Media button', 'all-in-one-video-gallery' ); ?>" value="<?php echo esc_url( $webm ); ?>" />
|
70 |
<a class="button aiovg-upload-media hide-if-no-js" href="javascript:;" id="aiovg-upload-webm" data-format="webm">
|
71 |
+
<?php esc_html_e( 'Upload Media', 'all-in-one-video-gallery' ); ?>
|
72 |
</a>
|
73 |
</div>
|
74 |
</td>
|
75 |
</tr>
|
76 |
<tr id="aiovg-field-ogv" class="aiovg-toggle-fields">
|
77 |
<td class="label aiovg-hidden-xs">
|
78 |
+
<label><?php esc_html_e( "OGV", 'all-in-one-video-gallery' ); ?></label>
|
79 |
</td>
|
80 |
<td>
|
81 |
+
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php esc_html_e( "OGV", 'all-in-one-video-gallery' ); ?></strong></p>
|
82 |
<div class="aiovg-input-wrap aiovg-media-uploader">
|
83 |
+
<input type="text" name="ogv" id="aiovg-ogv" class="text" placeholder="<?php esc_attr_e( 'Enter your Direct File URL here (OR) use the Upload Media button', 'all-in-one-video-gallery' ); ?>" value="<?php echo esc_url( $ogv ); ?>" />
|
84 |
<a class="button aiovg-upload-media hide-if-no-js" href="javascript:;" id="aiovg-upload-ogv" data-format="ogv">
|
85 |
+
<?php esc_html_e( 'Upload Media', 'all-in-one-video-gallery' ); ?>
|
86 |
</a>
|
87 |
</div>
|
88 |
</td>
|
89 |
</tr>
|
90 |
<tr class="aiovg-toggle-fields aiovg-type-youtube">
|
91 |
<td class="label aiovg-hidden-xs">
|
92 |
+
<label><?php esc_html_e( "YouTube", 'all-in-one-video-gallery' ); ?></label>
|
93 |
</td>
|
94 |
<td>
|
95 |
+
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php esc_html_e( "YouTube", 'all-in-one-video-gallery' ); ?></strong></p>
|
96 |
<div class="aiovg-input-wrap">
|
97 |
+
<input type="text" name="youtube" id="aiovg-youtube" class="text" placeholder="<?php printf( '%s: https://www.youtube.com/watch?v=twYp6W6vt2U', esc_attr__( 'Example', 'all-in-one-video-gallery' ) ); ?>" value="<?php echo esc_url( $youtube ); ?>" />
|
98 |
</div>
|
99 |
</td>
|
100 |
</tr>
|
101 |
<tr class="aiovg-toggle-fields aiovg-type-vimeo">
|
102 |
<td class="label aiovg-hidden-xs">
|
103 |
+
<label><?php esc_html_e( "Vimeo", 'all-in-one-video-gallery' ); ?></label>
|
104 |
</td>
|
105 |
<td>
|
106 |
+
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php esc_html_e( "Vimeo", 'all-in-one-video-gallery' ); ?></strong></p>
|
107 |
<div class="aiovg-input-wrap">
|
108 |
+
<input type="text" name="vimeo" id="aiovg-vimeo" class="text" placeholder="<?php printf( '%s: https://vimeo.com/108018156', esc_attr__( 'Example', 'all-in-one-video-gallery' ) ); ?>" value="<?php echo esc_url( $vimeo ); ?>" />
|
109 |
</div>
|
110 |
</td>
|
111 |
</tr>
|
112 |
<tr class="aiovg-toggle-fields aiovg-type-dailymotion">
|
113 |
<td class="label aiovg-hidden-xs">
|
114 |
+
<label><?php esc_html_e( "Dailymotion", 'all-in-one-video-gallery' ); ?></label>
|
115 |
</td>
|
116 |
<td>
|
117 |
+
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php esc_html_e( "Dailymotion", 'all-in-one-video-gallery' ); ?></strong></p>
|
118 |
<div class="aiovg-input-wrap">
|
119 |
+
<input type="text" name="dailymotion" id="aiovg-dailymotion" class="text" placeholder="<?php printf( '%s: https://www.dailymotion.com/video/x11prnt', esc_attr__( 'Example', 'all-in-one-video-gallery' ) ); ?>" value="<?php echo esc_url( $dailymotion ); ?>" />
|
120 |
</div>
|
121 |
</td>
|
122 |
</tr>
|
123 |
<tr class="aiovg-toggle-fields aiovg-type-facebook">
|
124 |
<td class="label aiovg-hidden-xs">
|
125 |
+
<label><?php esc_html_e( "Facebook", 'all-in-one-video-gallery' ); ?></label>
|
126 |
</td>
|
127 |
<td>
|
128 |
+
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php esc_html_e( "Facebook", 'all-in-one-video-gallery' ); ?></strong></p>
|
129 |
<div class="aiovg-input-wrap">
|
130 |
+
<input type="text" name="facebook" id="aiovg-facebook" class="text" placeholder="<?php printf( '%s: https://www.facebook.com/facebook/videos/10155278547321729', esc_attr__( 'Example', 'all-in-one-video-gallery' ) ); ?>" value="<?php echo esc_url( $facebook ); ?>" />
|
131 |
</div>
|
132 |
</td>
|
133 |
</tr>
|
134 |
<tr class="aiovg-toggle-fields aiovg-type-embedcode">
|
135 |
<td class="label aiovg-hidden-xs">
|
136 |
+
<label><?php esc_html_e( "Embed Code", 'all-in-one-video-gallery' ); ?></label>
|
137 |
</td>
|
138 |
<td>
|
139 |
+
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php esc_html_e( "Embed Code", 'all-in-one-video-gallery' ); ?></strong></p>
|
140 |
+
<textarea name="embedcode" id="aiovg-embedcode" class="textarea" placeholder="<?php esc_attr_e( 'Enter your Iframe Embed Code here', 'all-in-one-video-gallery' ); ?>" rows="6"><?php echo esc_textarea( $embedcode ); ?></textarea>
|
141 |
</td>
|
142 |
</tr>
|
143 |
<?php do_action( 'aiovg_admin_add_video_source_fields', $post->ID ); ?>
|
144 |
<tr>
|
145 |
<td class="label aiovg-hidden-xs">
|
146 |
+
<label><?php esc_html_e( "Image", 'all-in-one-video-gallery' ); ?></label>
|
147 |
</td>
|
148 |
<td>
|
149 |
+
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php esc_html_e( "Image", 'all-in-one-video-gallery' ); ?></strong></p>
|
150 |
<div class="aiovg-input-wrap aiovg-media-uploader">
|
151 |
+
<input type="text" name="image" id="aiovg-image" class="text" placeholder="<?php esc_attr_e( 'Enter your Direct File URL here (OR) use the Upload Media button', 'all-in-one-video-gallery' ); ?>" value="<?php echo esc_url( $image ); ?>" />
|
152 |
<a class="button aiovg-upload-media hide-if-no-js" href="javascript:;" id="aiovg-upload-image" data-format="image">
|
153 |
+
<?php esc_html_e( 'Upload Media', 'all-in-one-video-gallery' ); ?>
|
154 |
</a>
|
155 |
</div>
|
156 |
</td>
|
157 |
</tr>
|
158 |
<tr>
|
159 |
<td class="label aiovg-hidden-xs">
|
160 |
+
<label><?php esc_html_e( "Duration", 'all-in-one-video-gallery' ); ?></label>
|
161 |
</td>
|
162 |
<td>
|
163 |
+
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php esc_html_e( "Duration", 'all-in-one-video-gallery' ); ?></strong></p>
|
164 |
<div class="aiovg-input-wrap">
|
165 |
+
<input type="text" name="duration" id="aiovg-duration" class="text" placeholder="6:30" value="<?php echo esc_attr( $duration ); ?>" />
|
166 |
</div>
|
167 |
</td>
|
168 |
</tr>
|
169 |
<tr>
|
170 |
<td class="label aiovg-hidden-xs">
|
171 |
+
<label><?php esc_html_e( "Views", 'all-in-one-video-gallery' ); ?></label>
|
172 |
</td>
|
173 |
<td>
|
174 |
+
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php esc_html_e( "Views", 'all-in-one-video-gallery' ); ?></strong></p>
|
175 |
<div class="aiovg-input-wrap">
|
176 |
<input type="text" name="views" id="aiovg-views" class="text" value="<?php echo esc_attr( $views ); ?>" />
|
177 |
</div>
|
admin/partials/video-submitbox.php
CHANGED
@@ -13,8 +13,8 @@
|
|
13 |
<div class="misc-pub-section misc-pub-aiovg-featured">
|
14 |
<label>
|
15 |
<input type="checkbox" name="featured" value="1" <?php checked( $featured, 1 ); ?> />
|
16 |
-
<?php
|
17 |
-
<strong><?php
|
18 |
</label>
|
19 |
</div>
|
20 |
|
@@ -22,7 +22,7 @@
|
|
22 |
|
23 |
<div class="misc-pub-section misc-pub-aiovg-shortcode">
|
24 |
<label>
|
25 |
-
<strong><?php
|
26 |
<input type="text" class="widefat" readonly="readonly" value="[aiovg_video id=<?php echo (int) $post_id; ?>]" />
|
27 |
</label>
|
28 |
</div>
|
13 |
<div class="misc-pub-section misc-pub-aiovg-featured">
|
14 |
<label>
|
15 |
<input type="checkbox" name="featured" value="1" <?php checked( $featured, 1 ); ?> />
|
16 |
+
<?php esc_html_e( "Mark as", 'all-in-one-video-gallery' ); ?>
|
17 |
+
<strong><?php esc_html_e( "Featured", 'all-in-one-video-gallery' ); ?></strong>
|
18 |
</label>
|
19 |
</div>
|
20 |
|
22 |
|
23 |
<div class="misc-pub-section misc-pub-aiovg-shortcode">
|
24 |
<label>
|
25 |
+
<strong><?php esc_html_e( "Video Shortcode", 'all-in-one-video-gallery' ); ?></strong>
|
26 |
<input type="text" class="widefat" readonly="readonly" value="[aiovg_video id=<?php echo (int) $post_id; ?>]" />
|
27 |
</label>
|
28 |
</div>
|
admin/partials/video-tracks.php
CHANGED
@@ -13,37 +13,37 @@
|
|
13 |
<table id="aiovg-tracks" class="aiovg-table widefat">
|
14 |
<tr class="aiovg-hidden-xs">
|
15 |
<th style="width: 5%;"></th>
|
16 |
-
<th><?php
|
17 |
-
<th style="width: 15%;"><?php
|
18 |
-
<th style="width: 10%;"><?php
|
19 |
<th style="width: 20%;"></th>
|
20 |
</tr>
|
21 |
<?php foreach ( $tracks as $key => $track ) : ?>
|
22 |
<tr class="aiovg-tracks-row">
|
23 |
<td class="aiovg-handle aiovg-hidden-xs"><span class="dashicons dashicons-sort"></span></td>
|
24 |
<td>
|
25 |
-
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php
|
26 |
<div class="aiovg-input-wrap">
|
27 |
-
<input type="text" name="track_src[]" id="aiovg-track-<?php echo $key; ?>" class="text aiovg-track-src" placeholder="<?php
|
28 |
</div>
|
29 |
</td>
|
30 |
<td>
|
31 |
-
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php
|
32 |
<div class="aiovg-input-wrap">
|
33 |
-
<input type="text" name="track_label[]" class="text aiovg-track-label" placeholder="<?php
|
34 |
</div>
|
35 |
</td>
|
36 |
<td>
|
37 |
-
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php
|
38 |
<div class="aiovg-input-wrap">
|
39 |
-
<input type="text" name="track_srclang[]" class="text aiovg-track-srclang" placeholder="<?php
|
40 |
</div>
|
41 |
</td>
|
42 |
<td>
|
43 |
<p class="hide-if-no-js">
|
44 |
-
<a class="aiovg-upload-track" href="javascript:;"><?php
|
45 |
<span class="aiovg-pipe-separator">|</span>
|
46 |
-
<a class="aiovg-delete-track" href="javascript:;"><?php
|
47 |
</p>
|
48 |
</td>
|
49 |
</tr>
|
@@ -51,35 +51,35 @@
|
|
51 |
</table>
|
52 |
|
53 |
<p class="hide-if-no-js">
|
54 |
-
<a id="aiovg-add-new-track" class="button" href="javascript:;"><?php
|
55 |
</p>
|
56 |
|
57 |
<table id="aiovg-tracks-clone" style="display: none;">
|
58 |
<tr class="aiovg-tracks-row">
|
59 |
<td class="aiovg-handle aiovg-hidden-xs"><span class="dashicons dashicons-sort"></span></td>
|
60 |
<td>
|
61 |
-
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php
|
62 |
<div class="aiovg-input-wrap">
|
63 |
-
<input type="text" name="track_src[]" class="text aiovg-track-src" placeholder="<?php
|
64 |
</div>
|
65 |
</td>
|
66 |
<td>
|
67 |
-
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php
|
68 |
<div class="aiovg-input-wrap">
|
69 |
-
<input type="text" name="track_label[]" class="text aiovg-track-label" placeholder="<?php
|
70 |
</div>
|
71 |
</td>
|
72 |
<td>
|
73 |
-
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php
|
74 |
<div class="aiovg-input-wrap">
|
75 |
-
<input type="text" name="track_srclang[]" class="text aiovg-track-srclang" placeholder="<?php
|
76 |
</div>
|
77 |
</td>
|
78 |
<td>
|
79 |
<p class="hide-if-no-js">
|
80 |
-
<a class="aiovg-upload-track" href="javascript:;"><?php
|
81 |
<span class="aiovg-pipe-separator">|</span>
|
82 |
-
<a class="aiovg-delete-track" href="javascript:;"><?php
|
83 |
</p>
|
84 |
</td>
|
85 |
</tr>
|
13 |
<table id="aiovg-tracks" class="aiovg-table widefat">
|
14 |
<tr class="aiovg-hidden-xs">
|
15 |
<th style="width: 5%;"></th>
|
16 |
+
<th><?php esc_html_e( 'File URL', 'all-in-one-video-gallery' ); ?></th>
|
17 |
+
<th style="width: 15%;"><?php esc_html_e( 'Label', 'all-in-one-video-gallery' ); ?></th>
|
18 |
+
<th style="width: 10%;"><?php esc_html_e( 'Srclang', 'all-in-one-video-gallery' ); ?></th>
|
19 |
<th style="width: 20%;"></th>
|
20 |
</tr>
|
21 |
<?php foreach ( $tracks as $key => $track ) : ?>
|
22 |
<tr class="aiovg-tracks-row">
|
23 |
<td class="aiovg-handle aiovg-hidden-xs"><span class="dashicons dashicons-sort"></span></td>
|
24 |
<td>
|
25 |
+
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php esc_html_e( "File URL", 'all-in-one-video-gallery' ); ?></strong></p>
|
26 |
<div class="aiovg-input-wrap">
|
27 |
+
<input type="text" name="track_src[]" id="aiovg-track-<?php echo esc_attr( $key ); ?>" class="text aiovg-track-src" placeholder="<?php esc_attr_e( "Enter your Direct File URL here (OR) use the Upload Media button", 'all-in-one-video-gallery' ); ?>" value="<?php echo esc_url( $track['src'] ); ?>" />
|
28 |
</div>
|
29 |
</td>
|
30 |
<td>
|
31 |
+
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php esc_html_e( "Label", 'all-in-one-video-gallery' ); ?></strong></p>
|
32 |
<div class="aiovg-input-wrap">
|
33 |
+
<input type="text" name="track_label[]" class="text aiovg-track-label" placeholder="<?php esc_attr_e( "English", 'all-in-one-video-gallery' ); ?>" value="<?php echo esc_attr( $track['label'] ); ?>" />
|
34 |
</div>
|
35 |
</td>
|
36 |
<td>
|
37 |
+
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php esc_html_e( "Srclang", 'all-in-one-video-gallery' ); ?></strong></p>
|
38 |
<div class="aiovg-input-wrap">
|
39 |
+
<input type="text" name="track_srclang[]" class="text aiovg-track-srclang" placeholder="<?php esc_attr_e( "en", 'all-in-one-video-gallery' ); ?>" value="<?php echo esc_attr( $track['srclang'] ); ?>" />
|
40 |
</div>
|
41 |
</td>
|
42 |
<td>
|
43 |
<p class="hide-if-no-js">
|
44 |
+
<a class="aiovg-upload-track" href="javascript:;"><?php esc_html_e( 'Upload File', 'all-in-one-video-gallery' ); ?></a>
|
45 |
<span class="aiovg-pipe-separator">|</span>
|
46 |
+
<a class="aiovg-delete-track" href="javascript:;"><?php esc_html_e( 'Delete', 'all-in-one-video-gallery' ); ?></a>
|
47 |
</p>
|
48 |
</td>
|
49 |
</tr>
|
51 |
</table>
|
52 |
|
53 |
<p class="hide-if-no-js">
|
54 |
+
<a id="aiovg-add-new-track" class="button" href="javascript:;"><?php esc_html_e( 'Add New File', 'all-in-one-video-gallery' ); ?></a>
|
55 |
</p>
|
56 |
|
57 |
<table id="aiovg-tracks-clone" style="display: none;">
|
58 |
<tr class="aiovg-tracks-row">
|
59 |
<td class="aiovg-handle aiovg-hidden-xs"><span class="dashicons dashicons-sort"></span></td>
|
60 |
<td>
|
61 |
+
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php esc_html_e( "File URL", 'all-in-one-video-gallery' ); ?></strong></p>
|
62 |
<div class="aiovg-input-wrap">
|
63 |
+
<input type="text" name="track_src[]" class="text aiovg-track-src" placeholder="<?php esc_attr_e( "Enter your Direct File URL here (OR) use the Upload Media button", 'all-in-one-video-gallery' ); ?>" />
|
64 |
</div>
|
65 |
</td>
|
66 |
<td>
|
67 |
+
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php esc_html_e( "Label", 'all-in-one-video-gallery' ); ?></strong></p>
|
68 |
<div class="aiovg-input-wrap">
|
69 |
+
<input type="text" name="track_label[]" class="text aiovg-track-label" placeholder="<?php esc_attr_e( "English", 'all-in-one-video-gallery' ); ?>" />
|
70 |
</div>
|
71 |
</td>
|
72 |
<td>
|
73 |
+
<p class="aiovg-hidden-sm aiovg-hidden-md aiovg-hidden-lg"><strong><?php esc_html_e( "Srclang", 'all-in-one-video-gallery' ); ?></strong></p>
|
74 |
<div class="aiovg-input-wrap">
|
75 |
+
<input type="text" name="track_srclang[]" class="text aiovg-track-srclang" placeholder="<?php esc_attr_e( "en", 'all-in-one-video-gallery' ); ?>" />
|
76 |
</div>
|
77 |
</td>
|
78 |
<td>
|
79 |
<p class="hide-if-no-js">
|
80 |
+
<a class="aiovg-upload-track" href="javascript:;"><?php esc_html_e( 'Upload File', 'all-in-one-video-gallery' ); ?></a>
|
81 |
<span class="aiovg-pipe-separator">|</span>
|
82 |
+
<a class="aiovg-delete-track" href="javascript:;"><?php esc_html_e( 'Delete', 'all-in-one-video-gallery' ); ?></a>
|
83 |
</p>
|
84 |
</td>
|
85 |
</tr>
|
admin/partials/welcome.php
CHANGED
@@ -11,14 +11,13 @@
|
|
11 |
?>
|
12 |
|
13 |
<div id="aiovg-welcome" class="wrap about-wrap full-width-layout aiovg-welcome">
|
14 |
-
|
15 |
<h1><?php
|
16 |
-
printf(
|
17 |
?></h1>
|
18 |
|
19 |
<p class="about-text">
|
20 |
<?php
|
21 |
-
|
22 |
?>
|
23 |
</p>
|
24 |
|
@@ -26,13 +25,16 @@ _e( "The last video player & gallery plugin you'll ever need.", 'all-in-one-vide
|
|
26 |
?>
|
27 |
|
28 |
<div class="wp-badge aiovg-badge"><?php
|
29 |
-
printf(
|
30 |
?></div>
|
31 |
|
32 |
<h2 class="nav-tab-wrapper wp-clearfix">
|
33 |
<?php
|
34 |
foreach ( $tabs as $tab => $title ) {
|
35 |
$class = ( $tab == $active_tab ? 'nav-tab nav-tab-active' : 'nav-tab' );
|
|
|
|
|
|
|
36 |
printf(
|
37 |
'<a href="%s" class="%s">%s</a>',
|
38 |
esc_url( admin_url( add_query_arg( 'page', $tab, 'index.php' ) ) ),
|
@@ -49,7 +51,7 @@ if ( 'aiovg_welcome' == $active_tab ) {
|
|
49 |
?>
|
50 |
<p class="about-description">
|
51 |
<strong><?php
|
52 |
-
printf(
|
53 |
?></strong>
|
54 |
→
|
55 |
<?php
|
@@ -59,42 +61,42 @@ if ( 'aiovg_welcome' == $active_tab ) {
|
|
59 |
|
60 |
<p class="about-description">
|
61 |
<strong><?php
|
62 |
-
printf(
|
63 |
?></strong>
|
64 |
→
|
65 |
<code><?php
|
66 |
-
|
67 |
?></code>
|
68 |
<a href="<?php
|
69 |
echo esc_url( admin_url( 'edit-tags.php?taxonomy=aiovg_categories&post_type=aiovg_videos' ) ) ;
|
70 |
?>">
|
71 |
<?php
|
72 |
-
|
73 |
?>
|
74 |
</a>
|
75 |
</p>
|
76 |
|
77 |
<p class="about-description">
|
78 |
<strong><?php
|
79 |
-
printf(
|
80 |
?></strong>
|
81 |
→
|
82 |
<a href="<?php
|
83 |
echo esc_url( admin_url( 'post-new.php?post_type=aiovg_videos' ) ) ;
|
84 |
?>">
|
85 |
<?php
|
86 |
-
|
87 |
?>
|
88 |
</a>
|
89 |
</p>
|
90 |
|
91 |
<p class="about-description">
|
92 |
<strong><?php
|
93 |
-
printf(
|
94 |
?></strong>
|
95 |
→
|
96 |
<code><?php
|
97 |
-
|
98 |
?></code>
|
99 |
<?php
|
100 |
printf( __( 'Add a Categories <a href="%s">Page</a> to your site front-end. Find step by step instructions <a href="%s" target="_blank">here</a>', 'all-in-one-video-gallery' ), esc_url( admin_url( 'post-new.php?post_type=page' ) ), 'https://plugins360.com/all-in-one-video-gallery/displaying-categories/' );
|
@@ -103,7 +105,7 @@ if ( 'aiovg_welcome' == $active_tab ) {
|
|
103 |
|
104 |
<p class="about-description">
|
105 |
<strong><?php
|
106 |
-
printf(
|
107 |
?></strong>
|
108 |
→
|
109 |
<?php
|
@@ -123,17 +125,40 @@ if ( 'aiovg_welcome' == $active_tab ) {
|
|
123 |
|
124 |
<?php
|
125 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
if ( 'aiovg_support' == $active_tab ) {
|
127 |
?>
|
128 |
<p class="about-description"><?php
|
129 |
-
|
130 |
?></p>
|
131 |
|
132 |
<div class="changelog">
|
133 |
<div class="two-col">
|
134 |
<div class="col">
|
135 |
<h3><?php
|
136 |
-
|
137 |
?></h3>
|
138 |
|
139 |
<p>
|
@@ -145,7 +170,7 @@ if ( 'aiovg_support' == $active_tab ) {
|
|
145 |
|
146 |
<div class="col">
|
147 |
<h3><?php
|
148 |
-
|
149 |
?></h3>
|
150 |
|
151 |
<p>
|
@@ -160,5 +185,4 @@ if ( 'aiovg_support' == $active_tab ) {
|
|
160 |
}
|
161 |
|
162 |
?>
|
163 |
-
|
164 |
</div>
|
11 |
?>
|
12 |
|
13 |
<div id="aiovg-welcome" class="wrap about-wrap full-width-layout aiovg-welcome">
|
|
|
14 |
<h1><?php
|
15 |
+
printf( esc_html__( 'All-in-One Video Gallery - %s', 'all-in-one-video-gallery' ), AIOVG_PLUGIN_VERSION );
|
16 |
?></h1>
|
17 |
|
18 |
<p class="about-text">
|
19 |
<?php
|
20 |
+
esc_html_e( "The last video player & gallery plugin you'll ever need.", 'all-in-one-video-gallery' );
|
21 |
?>
|
22 |
</p>
|
23 |
|
25 |
?>
|
26 |
|
27 |
<div class="wp-badge aiovg-badge"><?php
|
28 |
+
printf( esc_html__( 'Version %s', 'all-in-one-video-gallery' ), AIOVG_PLUGIN_VERSION );
|
29 |
?></div>
|
30 |
|
31 |
<h2 class="nav-tab-wrapper wp-clearfix">
|
32 |
<?php
|
33 |
foreach ( $tabs as $tab => $title ) {
|
34 |
$class = ( $tab == $active_tab ? 'nav-tab nav-tab-active' : 'nav-tab' );
|
35 |
+
if ( 'aiovg_new' == $tab ) {
|
36 |
+
$title .= '<span class="dashicons dashicons-info"></span>';
|
37 |
+
}
|
38 |
printf(
|
39 |
'<a href="%s" class="%s">%s</a>',
|
40 |
esc_url( admin_url( add_query_arg( 'page', $tab, 'index.php' ) ) ),
|
51 |
?>
|
52 |
<p class="about-description">
|
53 |
<strong><?php
|
54 |
+
printf( esc_html__( 'Step #%d:', 'all-in-one-video-gallery' ), 0 );
|
55 |
?></strong>
|
56 |
→
|
57 |
<?php
|
61 |
|
62 |
<p class="about-description">
|
63 |
<strong><?php
|
64 |
+
printf( esc_html__( 'Step #%d:', 'all-in-one-video-gallery' ), 1 );
|
65 |
?></strong>
|
66 |
→
|
67 |
<code><?php
|
68 |
+
esc_html_e( 'Optional', 'all-in-one-video-gallery' );
|
69 |
?></code>
|
70 |
<a href="<?php
|
71 |
echo esc_url( admin_url( 'edit-tags.php?taxonomy=aiovg_categories&post_type=aiovg_videos' ) ) ;
|
72 |
?>">
|
73 |
<?php
|
74 |
+
esc_html_e( 'Add Categories', 'all-in-one-video-gallery' );
|
75 |
?>
|
76 |
</a>
|
77 |
</p>
|
78 |
|
79 |
<p class="about-description">
|
80 |
<strong><?php
|
81 |
+
printf( esc_html__( 'Step #%d:', 'all-in-one-video-gallery' ), 2 );
|
82 |
?></strong>
|
83 |
→
|
84 |
<a href="<?php
|
85 |
echo esc_url( admin_url( 'post-new.php?post_type=aiovg_videos' ) ) ;
|
86 |
?>">
|
87 |
<?php
|
88 |
+
esc_html_e( 'Add Videos', 'all-in-one-video-gallery' );
|
89 |
?>
|
90 |
</a>
|
91 |
</p>
|
92 |
|
93 |
<p class="about-description">
|
94 |
<strong><?php
|
95 |
+
printf( esc_html__( 'Step #%d:', 'all-in-one-video-gallery' ), 3 );
|
96 |
?></strong>
|
97 |
→
|
98 |
<code><?php
|
99 |
+
esc_html_e( 'Optional', 'all-in-one-video-gallery' );
|
100 |
?></code>
|
101 |
<?php
|
102 |
printf( __( 'Add a Categories <a href="%s">Page</a> to your site front-end. Find step by step instructions <a href="%s" target="_blank">here</a>', 'all-in-one-video-gallery' ), esc_url( admin_url( 'post-new.php?post_type=page' ) ), 'https://plugins360.com/all-in-one-video-gallery/displaying-categories/' );
|
105 |
|
106 |
<p class="about-description">
|
107 |
<strong><?php
|
108 |
+
printf( esc_html__( 'Step #%d:', 'all-in-one-video-gallery' ), 4 );
|
109 |
?></strong>
|
110 |
→
|
111 |
<?php
|
125 |
|
126 |
<?php
|
127 |
|
128 |
+
if ( 'aiovg_new' == $active_tab ) {
|
129 |
+
?>
|
130 |
+
<p class="about-description"><span class="dashicons dashicons-awards"></span> <?php
|
131 |
+
esc_html_e( 'Introducing our new Automation tool', 'all-in-one-video-gallery' );
|
132 |
+
?></p>
|
133 |
+
|
134 |
+
<p>
|
135 |
+
<?php
|
136 |
+
printf(
|
137 |
+
'%s <a href="%s" target="_blank">%s</a>',
|
138 |
+
esc_html__( "Your site on Autopilot. Simply configure your YouTube channel, playlist or a search keyword and schedule it. The plugin will do the rest by auto importing videos from your YouTube account. Each time a new video is uploaded there, it'll be automatically imported to your site within the hour.", 'all-in-one-video-gallery' ),
|
139 |
+
'https://plugins360.com/all-in-one-video-gallery/automations/',
|
140 |
+
esc_html__( 'Learn more', 'all-in-one-video-gallery' )
|
141 |
+
);
|
142 |
+
?>
|
143 |
+
</p>
|
144 |
+
<?php
|
145 |
+
}
|
146 |
+
|
147 |
+
?>
|
148 |
+
|
149 |
+
<?php
|
150 |
+
|
151 |
if ( 'aiovg_support' == $active_tab ) {
|
152 |
?>
|
153 |
<p class="about-description"><?php
|
154 |
+
esc_html_e( 'Need Help?', 'all-in-one-video-gallery' );
|
155 |
?></p>
|
156 |
|
157 |
<div class="changelog">
|
158 |
<div class="two-col">
|
159 |
<div class="col">
|
160 |
<h3><?php
|
161 |
+
esc_html_e( 'Phenomenal Support', 'all-in-one-video-gallery' );
|
162 |
?></h3>
|
163 |
|
164 |
<p>
|
170 |
|
171 |
<div class="col">
|
172 |
<h3><?php
|
173 |
+
esc_html_e( 'Need Even Faster Support?', 'all-in-one-video-gallery' );
|
174 |
?></h3>
|
175 |
|
176 |
<p>
|
185 |
}
|
186 |
|
187 |
?>
|
|
|
188 |
</div>
|
admin/shortcode-builder.php
CHANGED
@@ -29,8 +29,18 @@ class AIOVG_Admin_Shortcode_Builder {
|
|
29 |
public function media_buttons() {
|
30 |
global $pagenow, $typenow;
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
// Only run in post/page creation and edit screens
|
33 |
-
if ( in_array( $pagenow, array( 'post.php', 'page.php', 'post-new.php', 'post-edit.php' ) )
|
34 |
printf( '<a href="#aiovg-shortcode-builder" class="button button-primary aiovg-media-button" id="aiovg-media-button"><span class="wp-media-buttons-icon dashicons dashicons-playlist-video"></span> %s</a>', __( 'Video Player & Gallery', 'all-in-one-video-gallery' ) );
|
35 |
}
|
36 |
}
|
@@ -43,8 +53,18 @@ class AIOVG_Admin_Shortcode_Builder {
|
|
43 |
public function admin_footer() {
|
44 |
global $pagenow, $typenow;
|
45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
// Only run in post/page creation and edit screens
|
47 |
-
if ( in_array( $pagenow, array( 'post.php', 'page.php', 'post-new.php', 'post-edit.php' ) )
|
48 |
// Shortcodes
|
49 |
$shortcodes = array(
|
50 |
'categories' => __( 'Video Categories', 'all-in-one-video-gallery' ) . ' - [aiovg_categories]',
|
29 |
public function media_buttons() {
|
30 |
global $pagenow, $typenow;
|
31 |
|
32 |
+
// check if the post/page uses Gutenberg editor
|
33 |
+
if ( aiovg_is_gutenberg_page() ) {
|
34 |
+
return;
|
35 |
+
}
|
36 |
+
|
37 |
+
// check if this is our custom post type page
|
38 |
+
if ( in_array( $typenow, array( 'aiovg_videos', 'aiovg_automations' ) ) ) {
|
39 |
+
return;
|
40 |
+
}
|
41 |
+
|
42 |
// Only run in post/page creation and edit screens
|
43 |
+
if ( in_array( $pagenow, array( 'post.php', 'page.php', 'post-new.php', 'post-edit.php' ) ) ) {
|
44 |
printf( '<a href="#aiovg-shortcode-builder" class="button button-primary aiovg-media-button" id="aiovg-media-button"><span class="wp-media-buttons-icon dashicons dashicons-playlist-video"></span> %s</a>', __( 'Video Player & Gallery', 'all-in-one-video-gallery' ) );
|
45 |
}
|
46 |
}
|
53 |
public function admin_footer() {
|
54 |
global $pagenow, $typenow;
|
55 |
|
56 |
+
// check if the post/page uses Gutenberg editor
|
57 |
+
if ( aiovg_is_gutenberg_page() ) {
|
58 |
+
return;
|
59 |
+
}
|
60 |
+
|
61 |
+
// check if this is our custom post type page
|
62 |
+
if ( in_array( $typenow, array( 'aiovg_videos', 'aiovg_automations' ) ) ) {
|
63 |
+
return;
|
64 |
+
}
|
65 |
+
|
66 |
// Only run in post/page creation and edit screens
|
67 |
+
if ( in_array( $pagenow, array( 'post.php', 'page.php', 'post-new.php', 'post-edit.php' ) ) ) {
|
68 |
// Shortcodes
|
69 |
$shortcodes = array(
|
70 |
'categories' => __( 'Video Categories', 'all-in-one-video-gallery' ) . ' - [aiovg_categories]',
|
admin/videos.php
CHANGED
@@ -346,15 +346,21 @@ class AIOVG_Admin_Videos {
|
|
346 |
'depth' => 3,
|
347 |
'show_count' => false,
|
348 |
'hide_empty' => false,
|
349 |
-
));
|
350 |
|
351 |
-
// Restrict by
|
352 |
-
$
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
358 |
}
|
359 |
}
|
360 |
|
@@ -367,16 +373,15 @@ class AIOVG_Admin_Videos {
|
|
367 |
public function parse_query( $query ) {
|
368 |
global $pagenow, $post_type;
|
369 |
|
370 |
-
if ( 'edit.php' == $pagenow && 'aiovg_videos' == $post_type ) {
|
371 |
-
|
372 |
// Convert category id to taxonomy term in query
|
373 |
if ( isset( $query->query_vars['aiovg_categories'] ) && ctype_digit( $query->query_vars['aiovg_categories'] ) && 0 != $query->query_vars['aiovg_categories'] ) {
|
374 |
$term = get_term_by( 'id', $query->query_vars['aiovg_categories'], 'aiovg_categories' );
|
375 |
$query->query_vars['aiovg_categories'] = $term->slug;
|
376 |
}
|
377 |
-
|
378 |
// Set featured meta in query
|
379 |
-
if ( isset( $_GET['
|
380 |
$query->query_vars['meta_key'] = 'featured';
|
381 |
$query->query_vars['meta_value'] = 1;
|
382 |
}
|
346 |
'depth' => 3,
|
347 |
'show_count' => false,
|
348 |
'hide_empty' => false,
|
349 |
+
));
|
350 |
|
351 |
+
// Restrict by custom filtering options
|
352 |
+
$selected = isset( $_GET['aiovg_filter'] ) ? sanitize_text_field( $_GET['aiovg_filter'] ) : '';
|
353 |
+
$options = array(
|
354 |
+
'' => __( "All Videos", 'all-in-one-video-gallery' ),
|
355 |
+
'featured' => __( "Featured only", 'all-in-one-video-gallery' )
|
356 |
+
);
|
357 |
+
$options = apply_filters( 'aiovg_admin_videos_custom_filters', $options );
|
358 |
+
|
359 |
+
echo '<select name="aiovg_filter">';
|
360 |
+
foreach ( $options as $value => $label ) {
|
361 |
+
printf( '<option value="%s"%s>%s</option>', $value, selected( $value, $selected, false ), $label );
|
362 |
+
}
|
363 |
+
echo '</select>';
|
364 |
}
|
365 |
}
|
366 |
|
373 |
public function parse_query( $query ) {
|
374 |
global $pagenow, $post_type;
|
375 |
|
376 |
+
if ( 'edit.php' == $pagenow && 'aiovg_videos' == $post_type ) {
|
|
|
377 |
// Convert category id to taxonomy term in query
|
378 |
if ( isset( $query->query_vars['aiovg_categories'] ) && ctype_digit( $query->query_vars['aiovg_categories'] ) && 0 != $query->query_vars['aiovg_categories'] ) {
|
379 |
$term = get_term_by( 'id', $query->query_vars['aiovg_categories'], 'aiovg_categories' );
|
380 |
$query->query_vars['aiovg_categories'] = $term->slug;
|
381 |
}
|
382 |
+
|
383 |
// Set featured meta in query
|
384 |
+
if ( isset( $_GET['aiovg_filter'] ) && 'featured' == $_GET['aiovg_filter'] ) {
|
385 |
$query->query_vars['meta_key'] = 'featured';
|
386 |
$query->query_vars['meta_value'] = 1;
|
387 |
}
|
admin/welcome.php
CHANGED
@@ -35,6 +35,14 @@ class AIOVG_Admin_Welcome {
|
|
35 |
array( $this, 'display_welcome_content' )
|
36 |
);
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
add_dashboard_page(
|
39 |
__( 'Welcome - All-in-One Video Gallery', 'all-in-one-video-gallery' ),
|
40 |
__( 'Welcome - All-in-One Video Gallery', 'all-in-one-video-gallery' ),
|
@@ -45,6 +53,7 @@ class AIOVG_Admin_Welcome {
|
|
45 |
|
46 |
// Now remove the menus so plugins that allow customizing the admin menu don't show them
|
47 |
remove_submenu_page( 'index.php', 'aiovg_welcome' );
|
|
|
48 |
remove_submenu_page( 'index.php', 'aiovg_support' );
|
49 |
}
|
50 |
|
@@ -56,6 +65,7 @@ class AIOVG_Admin_Welcome {
|
|
56 |
public function display_welcome_content() {
|
57 |
$tabs = array(
|
58 |
'aiovg_welcome' => __( 'Getting Started', 'all-in-one-video-gallery' ),
|
|
|
59 |
'aiovg_support' => __( 'Support', 'all-in-one-video-gallery' )
|
60 |
);
|
61 |
|
35 |
array( $this, 'display_welcome_content' )
|
36 |
);
|
37 |
|
38 |
+
add_dashboard_page(
|
39 |
+
__( 'Welcome - All-in-One Video Gallery', 'all-in-one-video-gallery' ),
|
40 |
+
__( 'Welcome - All-in-One Video Gallery', 'all-in-one-video-gallery' ),
|
41 |
+
'manage_aiovg_options',
|
42 |
+
'aiovg_new',
|
43 |
+
array( $this, 'display_welcome_content' )
|
44 |
+
);
|
45 |
+
|
46 |
add_dashboard_page(
|
47 |
__( 'Welcome - All-in-One Video Gallery', 'all-in-one-video-gallery' ),
|
48 |
__( 'Welcome - All-in-One Video Gallery', 'all-in-one-video-gallery' ),
|
53 |
|
54 |
// Now remove the menus so plugins that allow customizing the admin menu don't show them
|
55 |
remove_submenu_page( 'index.php', 'aiovg_welcome' );
|
56 |
+
remove_submenu_page( 'index.php', 'aiovg_new' );
|
57 |
remove_submenu_page( 'index.php', 'aiovg_support' );
|
58 |
}
|
59 |
|
65 |
public function display_welcome_content() {
|
66 |
$tabs = array(
|
67 |
'aiovg_welcome' => __( 'Getting Started', 'all-in-one-video-gallery' ),
|
68 |
+
'aiovg_new' => __( 'New', 'all-in-one-video-gallery' ),
|
69 |
'aiovg_support' => __( 'Support', 'all-in-one-video-gallery' )
|
70 |
);
|
71 |
|
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 Video Player, Custom Post Type interface, Categories, Visual Gallery Builder (Gutenberg), forms to Search Videos, Social Sharing and everything you will need to build a YouTube/Vimeo like video sharing website.
|
14 |
-
* Version: 1.6.
|
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', '1.6.
|
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 Video Player, Custom Post Type interface, Categories, Visual Gallery Builder (Gutenberg), forms to Search Videos, Social Sharing and everything you will need to build a YouTube/Vimeo like video sharing website.
|
14 |
+
* Version: 1.6.2
|
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', '1.6.2' );
|
80 |
}
|
81 |
// The unique identifier of the plugin
|
82 |
if ( !defined( 'AIOVG_PLUGIN_SLUG' ) ) {
|
includes/functions.php
CHANGED
@@ -178,14 +178,17 @@ function aiovg_get_attachment_id( $url, $media = 'image' ) {
|
|
178 |
$file = basename( $url );
|
179 |
|
180 |
$query_args = array(
|
181 |
-
'post_type'
|
182 |
'post_status' => 'inherit',
|
183 |
-
'fields'
|
184 |
-
'
|
|
|
|
|
|
|
185 |
array(
|
186 |
-
'
|
187 |
-
'
|
188 |
-
'
|
189 |
),
|
190 |
)
|
191 |
);
|
@@ -196,7 +199,7 @@ function aiovg_get_attachment_id( $url, $media = 'image' ) {
|
|
196 |
foreach ( $query->posts as $post_id ) {
|
197 |
$meta = wp_get_attachment_metadata( $post_id );
|
198 |
|
199 |
-
$original_file
|
200 |
$cropped_image_files = wp_list_pluck( $meta['sizes'], 'file' );
|
201 |
|
202 |
if ( $original_file === $file || in_array( $file, $cropped_image_files ) ) {
|
@@ -1384,6 +1387,27 @@ function aiovg_insert_custom_pages() {
|
|
1384 |
return $pages;
|
1385 |
}
|
1386 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1387 |
/**
|
1388 |
* Removes an item or list from the query string.
|
1389 |
*
|
178 |
$file = basename( $url );
|
179 |
|
180 |
$query_args = array(
|
181 |
+
'post_type' => 'attachment',
|
182 |
'post_status' => 'inherit',
|
183 |
+
'fields' => 'ids',
|
184 |
+
'no_found_rows' => true,
|
185 |
+
'update_post_term_cache' => false,
|
186 |
+
'update_post_meta_cache' => false,
|
187 |
+
'meta_query' => array(
|
188 |
array(
|
189 |
+
'key' => '_wp_attachment_metadata',
|
190 |
+
'value' => $file,
|
191 |
+
'compare' => 'LIKE'
|
192 |
),
|
193 |
)
|
194 |
);
|
199 |
foreach ( $query->posts as $post_id ) {
|
200 |
$meta = wp_get_attachment_metadata( $post_id );
|
201 |
|
202 |
+
$original_file = basename( $meta['file'] );
|
203 |
$cropped_image_files = wp_list_pluck( $meta['sizes'], 'file' );
|
204 |
|
205 |
if ( $original_file === $file || in_array( $file, $cropped_image_files ) ) {
|
1387 |
return $pages;
|
1388 |
}
|
1389 |
|
1390 |
+
/**
|
1391 |
+
* Check whether the current post/page uses Gutenberg editor.
|
1392 |
+
*
|
1393 |
+
* @since 1.6.2
|
1394 |
+
* @return bool True if the post/page uses Gutenberg, false if not.
|
1395 |
+
*/
|
1396 |
+
function aiovg_is_gutenberg_page() {
|
1397 |
+
if ( function_exists( 'is_gutenberg_page' ) && is_gutenberg_page() ) {
|
1398 |
+
// The Gutenberg plugin is on
|
1399 |
+
return true;
|
1400 |
+
}
|
1401 |
+
|
1402 |
+
$current_screen = get_current_screen();
|
1403 |
+
if ( method_exists( $current_screen, 'is_block_editor' ) && $current_screen->is_block_editor() ) {
|
1404 |
+
// Gutenberg page on 5+
|
1405 |
+
return true;
|
1406 |
+
}
|
1407 |
+
|
1408 |
+
return false;
|
1409 |
+
}
|
1410 |
+
|
1411 |
/**
|
1412 |
* Removes an item or list from the query string.
|
1413 |
*
|
includes/init.php
CHANGED
@@ -226,6 +226,7 @@ class AIOVG_Init {
|
|
226 |
$this->loader->add_filter( 'wpseo_metadesc', $public, 'wpseo_metadesc' );
|
227 |
$this->loader->add_filter( 'wpseo_canonical', $public, 'wpseo_canonical' );
|
228 |
$this->loader->add_filter( 'wpseo_opengraph_url', $public, 'wpseo_canonical' );
|
|
|
229 |
} else {
|
230 |
$this->loader->add_filter( 'wp_title', $public, 'wp_title', 99, 3 );
|
231 |
$this->loader->add_filter( 'document_title_parts', $public, 'document_title_parts' );
|
226 |
$this->loader->add_filter( 'wpseo_metadesc', $public, 'wpseo_metadesc' );
|
227 |
$this->loader->add_filter( 'wpseo_canonical', $public, 'wpseo_canonical' );
|
228 |
$this->loader->add_filter( 'wpseo_opengraph_url', $public, 'wpseo_canonical' );
|
229 |
+
$this->loader->add_filter( 'wpseo_breadcrumb_links', $public, 'wpseo_breadcrumb_links' );
|
230 |
} else {
|
231 |
$this->loader->add_filter( 'wp_title', $public, 'wp_title', 99, 3 );
|
232 |
$this->loader->add_filter( 'document_title_parts', $public, 'document_title_parts' );
|
languages/all-in-one-video-gallery.pot
CHANGED
@@ -1,50 +1,47 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: All-in-One Video Gallery\n"
|
4 |
-
"POT-Creation-Date: 2019-
|
5 |
-
"PO-Revision-Date: 2019-
|
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.2.
|
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;
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
|
19 |
-
#: admin/admin.php:
|
20 |
msgid "Settings"
|
21 |
msgstr ""
|
22 |
|
23 |
-
#: admin/admin.php:
|
24 |
msgid "All-in-One Video Gallery"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: admin/admin.php:
|
28 |
msgid "Getting Started"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: admin/admin.php:
|
32 |
msgid "Contact Us"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: admin/admin.php:
|
36 |
msgid "Upgrade Pro"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: admin/categories.php:
|
40 |
msgid "Categories"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: admin/categories.php:32
|
44 |
-
msgid "Category"
|
45 |
-
msgstr ""
|
46 |
-
|
47 |
#: admin/categories.php:34 admin/videos.php:339
|
|
|
48 |
msgid "All Categories"
|
49 |
msgstr ""
|
50 |
|
@@ -112,8 +109,8 @@ msgstr ""
|
|
112 |
msgid "Categories list navigation"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: admin/categories.php:124 admin/settings.php:338 admin/videos.php:
|
116 |
-
#: blocks/blocks.php:81 includes/functions.php:
|
117 |
#: widgets/forms/categories.php:64
|
118 |
msgid "ID"
|
119 |
msgstr ""
|
@@ -149,11 +146,12 @@ msgstr ""
|
|
149 |
msgid "Latest Video"
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: admin/partials/shortcode-builder.php:
|
153 |
msgid "Insert Shortcode"
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: admin/partials/shortcode-builder.php:
|
|
|
157 |
msgid "Cancel"
|
158 |
msgstr ""
|
159 |
|
@@ -170,6 +168,11 @@ msgstr ""
|
|
170 |
#: admin/partials/video-sources.php:38 admin/partials/video-sources.php:69
|
171 |
#: admin/partials/video-sources.php:83 admin/partials/video-sources.php:151
|
172 |
#: admin/partials/video-tracks.php:27 admin/partials/video-tracks.php:63
|
|
|
|
|
|
|
|
|
|
|
173 |
msgid "Enter your Direct File URL here (OR) use the Upload Media button"
|
174 |
msgstr ""
|
175 |
|
@@ -197,45 +200,48 @@ msgid "OGV"
|
|
197 |
msgstr ""
|
198 |
|
199 |
#: admin/partials/video-sources.php:92 admin/partials/video-sources.php:95
|
200 |
-
#: admin/settings.php:286 includes/functions.php:
|
|
|
201 |
#: premium/public/templates/video-form.php:197
|
202 |
msgid "YouTube"
|
203 |
msgstr ""
|
204 |
|
205 |
-
#: admin/partials/video-sources.php:97
|
206 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
msgstr ""
|
208 |
|
209 |
#: admin/partials/video-sources.php:103 admin/partials/video-sources.php:106
|
210 |
-
#: admin/settings.php:287 includes/functions.php:
|
211 |
#: premium/public/templates/video-form.php:213
|
212 |
msgid "Vimeo"
|
213 |
msgstr ""
|
214 |
|
215 |
-
#: admin/partials/video-sources.php:108
|
216 |
-
msgid "Example: https://vimeo.com/108018156"
|
217 |
-
msgstr ""
|
218 |
-
|
219 |
#: admin/partials/video-sources.php:114 admin/partials/video-sources.php:117
|
220 |
-
#: admin/settings.php:288 includes/functions.php:
|
221 |
#: premium/public/templates/video-form.php:229
|
222 |
msgid "Dailymotion"
|
223 |
msgstr ""
|
224 |
|
225 |
-
#: admin/partials/video-sources.php:119
|
226 |
-
msgid "Example: https://www.dailymotion.com/video/x11prnt"
|
227 |
-
msgstr ""
|
228 |
-
|
229 |
#: admin/partials/video-sources.php:125 admin/partials/video-sources.php:128
|
230 |
-
#: admin/settings.php:289 admin/settings.php:509 includes/functions.php:
|
231 |
-
#: includes/functions.php:
|
232 |
msgid "Facebook"
|
233 |
msgstr ""
|
234 |
|
235 |
-
#: admin/partials/video-sources.php:130
|
236 |
-
msgid "Example: https://www.facebook.com/facebook/videos/10155278547321729"
|
237 |
-
msgstr ""
|
238 |
-
|
239 |
#: admin/partials/video-sources.php:136 admin/partials/video-sources.php:139
|
240 |
msgid "Embed Code"
|
241 |
msgstr ""
|
@@ -245,17 +251,13 @@ msgid "Enter your Iframe Embed Code here"
|
|
245 |
msgstr ""
|
246 |
|
247 |
#: admin/partials/video-sources.php:160 admin/partials/video-sources.php:163
|
248 |
-
#: admin/settings.php:273 blocks/blocks.php:121 includes/functions.php:
|
249 |
-
#: widgets/forms/video.php:
|
250 |
msgid "Duration"
|
251 |
msgstr ""
|
252 |
|
253 |
-
#: admin/partials/video-sources.php:165
|
254 |
-
msgid "6:30"
|
255 |
-
msgstr ""
|
256 |
-
|
257 |
#: admin/partials/video-sources.php:171 admin/partials/video-sources.php:174
|
258 |
-
#: admin/videos.php:
|
259 |
msgid "Views"
|
260 |
msgstr ""
|
261 |
|
@@ -263,7 +265,7 @@ msgstr ""
|
|
263 |
msgid "Mark as"
|
264 |
msgstr ""
|
265 |
|
266 |
-
#: admin/partials/video-submitbox.php:17 admin/videos.php:
|
267 |
msgid "Featured"
|
268 |
msgstr ""
|
269 |
|
@@ -307,77 +309,93 @@ msgstr ""
|
|
307 |
msgid "Add New File"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: admin/partials/welcome.php:
|
311 |
#, php-format
|
312 |
msgid "All-in-One Video Gallery - %s"
|
313 |
msgstr ""
|
314 |
|
315 |
-
#: admin/partials/welcome.php:
|
316 |
msgid "The last video player & gallery plugin you'll ever need."
|
317 |
msgstr ""
|
318 |
|
319 |
-
#: admin/partials/welcome.php:
|
320 |
msgid "Getting Started - Premium Features"
|
321 |
msgstr ""
|
322 |
|
323 |
-
#: admin/partials/welcome.php:
|
324 |
#, php-format
|
325 |
msgid "Version %s"
|
326 |
msgstr ""
|
327 |
|
328 |
-
#: admin/partials/welcome.php:
|
329 |
-
#: admin/partials/welcome.php:
|
330 |
-
#: admin/partials/welcome.php:
|
331 |
#, php-format
|
332 |
msgid "Step #%d:"
|
333 |
msgstr ""
|
334 |
|
335 |
-
#: admin/partials/welcome.php:
|
336 |
msgid "Install & Activate <strong>All-in-One Video Gallery</strong>"
|
337 |
msgstr ""
|
338 |
|
339 |
-
#: admin/partials/welcome.php:
|
340 |
msgid "Optional"
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: admin/partials/welcome.php:
|
344 |
msgid "Add Categories"
|
345 |
msgstr ""
|
346 |
|
347 |
-
#: admin/partials/welcome.php:
|
348 |
msgid "Add Videos"
|
349 |
msgstr ""
|
350 |
|
351 |
-
#: admin/partials/welcome.php:
|
352 |
#, php-format
|
353 |
msgid ""
|
354 |
"Add a Categories <a href=\"%s\">Page</a> to your site front-end. Find step "
|
355 |
"by step instructions <a href=\"%s\" target=\"_blank\">here</a>"
|
356 |
msgstr ""
|
357 |
|
358 |
-
#: admin/partials/welcome.php:
|
359 |
#, php-format
|
360 |
msgid ""
|
361 |
"Add a Videos <a href=\"%s\">Page</a> to your site front-end. Find step by "
|
362 |
"step instructions <a href=\"%s\" target=\"_blank\">here</a>"
|
363 |
msgstr ""
|
364 |
|
365 |
-
#: admin/partials/welcome.php:
|
366 |
#, php-format
|
367 |
msgid ""
|
368 |
"Please <a href=\"%s\" target=\"_blank\">refer</a> for more advanced "
|
369 |
"tutorials."
|
370 |
msgstr ""
|
371 |
|
372 |
-
#: admin/partials/welcome.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
373 |
msgid "Need Help?"
|
374 |
msgstr ""
|
375 |
|
376 |
-
#: admin/partials/welcome.php:
|
377 |
msgid "Phenomenal Support"
|
378 |
msgstr ""
|
379 |
|
380 |
-
#: admin/partials/welcome.php:
|
381 |
#, php-format
|
382 |
msgid ""
|
383 |
"We do our best to provide the best support we can. If you encounter a "
|
@@ -385,11 +403,11 @@ msgid ""
|
|
385 |
"\"%s\" target=\"_blank\">support form</a>."
|
386 |
msgstr ""
|
387 |
|
388 |
-
#: admin/partials/welcome.php:
|
389 |
msgid "Need Even Faster Support?"
|
390 |
msgstr ""
|
391 |
|
392 |
-
#: admin/partials/welcome.php:
|
393 |
#, php-format
|
394 |
msgid ""
|
395 |
"Our <a href=\"%s\" target=\"_blank\">Priority Support</a> system is there "
|
@@ -408,9 +426,9 @@ msgstr ""
|
|
408 |
msgid "Advanced"
|
409 |
msgstr ""
|
410 |
|
411 |
-
#: admin/settings.php:117 blocks/blocks.php:106 includes/functions.php:
|
412 |
-
#: includes/functions.php:
|
413 |
-
#: includes/functions.php:
|
414 |
msgid "General Settings"
|
415 |
msgstr ""
|
416 |
|
@@ -492,8 +510,8 @@ msgid ""
|
|
492 |
msgstr ""
|
493 |
|
494 |
#: admin/settings.php:210 admin/settings.php:297 blocks/blocks.php:107
|
495 |
-
#: includes/functions.php:
|
496 |
-
#: widgets/forms/video.php:
|
497 |
msgid "Width"
|
498 |
msgstr ""
|
499 |
|
@@ -505,8 +523,8 @@ msgid ""
|
|
505 |
msgstr ""
|
506 |
|
507 |
#: admin/settings.php:217 admin/settings.php:304 blocks/blocks.php:109
|
508 |
-
#: includes/functions.php:
|
509 |
-
#: includes/functions.php:
|
510 |
msgid "Ratio"
|
511 |
msgstr ""
|
512 |
|
@@ -544,8 +562,8 @@ msgstr ""
|
|
544 |
msgid "Cinemascope"
|
545 |
msgstr ""
|
546 |
|
547 |
-
#: admin/settings.php:234 blocks/blocks.php:111 includes/functions.php:
|
548 |
-
#: widgets/forms/video.php:
|
549 |
msgid "Autoplay"
|
550 |
msgstr ""
|
551 |
|
@@ -553,8 +571,8 @@ msgstr ""
|
|
553 |
msgid "Check this to start playing the video as soon as it is ready"
|
554 |
msgstr ""
|
555 |
|
556 |
-
#: admin/settings.php:241 blocks/blocks.php:112 includes/functions.php:
|
557 |
-
#: widgets/forms/video.php:
|
558 |
msgid "Loop"
|
559 |
msgstr ""
|
560 |
|
@@ -596,38 +614,38 @@ msgstr ""
|
|
596 |
msgid "None"
|
597 |
msgstr ""
|
598 |
|
599 |
-
#: admin/settings.php:266 blocks/blocks.php:117 includes/functions.php:
|
600 |
-
#: widgets/forms/video.php:
|
601 |
msgid "Player Controls"
|
602 |
msgstr ""
|
603 |
|
604 |
-
#: admin/settings.php:270 blocks/blocks.php:118 includes/functions.php:
|
605 |
-
#: widgets/forms/video.php:
|
606 |
msgid "Play / Pause"
|
607 |
msgstr ""
|
608 |
|
609 |
-
#: admin/settings.php:271 blocks/blocks.php:119 includes/functions.php:
|
610 |
-
#: widgets/forms/video.php:
|
611 |
msgid "Current Time"
|
612 |
msgstr ""
|
613 |
|
614 |
-
#: admin/settings.php:272 blocks/blocks.php:120 includes/functions.php:
|
615 |
-
#: widgets/forms/video.php:
|
616 |
msgid "Progressbar"
|
617 |
msgstr ""
|
618 |
|
619 |
-
#: admin/settings.php:274 admin/videos.php:143 includes/functions.php:
|
620 |
-
#: widgets/forms/video.php:
|
621 |
msgid "Subtitles"
|
622 |
msgstr ""
|
623 |
|
624 |
-
#: admin/settings.php:275 blocks/blocks.php:122 includes/functions.php:
|
625 |
-
#: widgets/forms/video.php:
|
626 |
msgid "Volume"
|
627 |
msgstr ""
|
628 |
|
629 |
-
#: admin/settings.php:276 blocks/blocks.php:123 includes/functions.php:
|
630 |
-
#: widgets/forms/video.php:
|
631 |
msgid "Fullscreen"
|
632 |
msgstr ""
|
633 |
|
@@ -655,24 +673,24 @@ msgid ""
|
|
655 |
msgstr ""
|
656 |
|
657 |
#: admin/settings.php:313 admin/settings.php:388 blocks/blocks.php:76
|
658 |
-
#: includes/functions.php:
|
659 |
-
#: includes/functions.php:
|
660 |
#: widgets/forms/search.php:20
|
661 |
msgid "Select Template"
|
662 |
msgstr ""
|
663 |
|
664 |
-
#: admin/settings.php:317 blocks/blocks.php:77 includes/functions.php:
|
665 |
#: widgets/forms/categories.php:43
|
666 |
msgid "Grid"
|
667 |
msgstr ""
|
668 |
|
669 |
-
#: admin/settings.php:318 blocks/blocks.php:78 includes/functions.php:
|
670 |
#: widgets/forms/categories.php:44
|
671 |
msgid "List"
|
672 |
msgstr ""
|
673 |
|
674 |
#: admin/settings.php:324 admin/settings.php:396 blocks/blocks.php:79
|
675 |
-
#: includes/functions.php:
|
676 |
#: widgets/forms/categories.php:55
|
677 |
msgid "Columns"
|
678 |
msgstr ""
|
@@ -685,23 +703,23 @@ msgstr ""
|
|
685 |
msgid "Order by"
|
686 |
msgstr ""
|
687 |
|
688 |
-
#: admin/settings.php:339 blocks/blocks.php:82 includes/functions.php:
|
689 |
#: widgets/forms/categories.php:65
|
690 |
msgid "Count"
|
691 |
msgstr ""
|
692 |
|
693 |
-
#: admin/settings.php:340 blocks/blocks.php:83 includes/functions.php:
|
694 |
#: widgets/forms/categories.php:66
|
695 |
msgid "Name"
|
696 |
msgstr ""
|
697 |
|
698 |
-
#: admin/settings.php:341 blocks/blocks.php:84 includes/functions.php:
|
699 |
#: widgets/forms/categories.php:67
|
700 |
msgid "Slug"
|
701 |
msgstr ""
|
702 |
|
703 |
#: admin/settings.php:347 admin/settings.php:426 blocks/blocks.php:85
|
704 |
-
#: includes/functions.php:
|
705 |
#: widgets/forms/categories.php:78
|
706 |
msgid "Order"
|
707 |
msgstr ""
|
@@ -714,7 +732,7 @@ msgstr ""
|
|
714 |
msgid "Descending"
|
715 |
msgstr ""
|
716 |
|
717 |
-
#: admin/settings.php:358 blocks/blocks.php:88 includes/functions.php:
|
718 |
#: widgets/forms/categories.php:95
|
719 |
msgid "Show Hierarchy"
|
720 |
msgstr ""
|
@@ -723,7 +741,7 @@ msgstr ""
|
|
723 |
msgid "Check this to show the child categories"
|
724 |
msgstr ""
|
725 |
|
726 |
-
#: admin/settings.php:365 blocks/blocks.php:89 includes/functions.php:
|
727 |
#: widgets/forms/categories.php:100
|
728 |
msgid "Show Description"
|
729 |
msgstr ""
|
@@ -732,8 +750,8 @@ msgstr ""
|
|
732 |
msgid "Check this to show the categories description"
|
733 |
msgstr ""
|
734 |
|
735 |
-
#: admin/settings.php:372 blocks/blocks.php:90 includes/functions.php:
|
736 |
-
#: includes/functions.php:
|
737 |
msgid "Show Videos Count"
|
738 |
msgstr ""
|
739 |
|
@@ -741,7 +759,7 @@ msgstr ""
|
|
741 |
msgid "Check this to show the videos count next to the category name"
|
742 |
msgstr ""
|
743 |
|
744 |
-
#: admin/settings.php:379 blocks/blocks.php:91 includes/functions.php:
|
745 |
#: widgets/forms/categories.php:110
|
746 |
msgid "Hide Empty Categories"
|
747 |
msgstr ""
|
@@ -750,7 +768,7 @@ msgstr ""
|
|
750 |
msgid "Check this to hide categories with no videos"
|
751 |
msgstr ""
|
752 |
|
753 |
-
#: admin/settings.php:389 includes/functions.php:
|
754 |
#, php-format
|
755 |
msgid ""
|
756 |
"<a href=\"%s\" target=\"_blank\">Upgrade Pro</a> for more templates (Popup, "
|
@@ -761,7 +779,7 @@ msgstr ""
|
|
761 |
msgid "Enter the number of columns you like to have in the gallery view."
|
762 |
msgstr ""
|
763 |
|
764 |
-
#: admin/settings.php:406 includes/functions.php:
|
765 |
msgid "Limit (per page)"
|
766 |
msgstr ""
|
767 |
|
@@ -770,40 +788,46 @@ msgid ""
|
|
770 |
"Number of videos to show per page. Use a value of \"0\" to show all videos."
|
771 |
msgstr ""
|
772 |
|
773 |
-
#: admin/settings.php:413 blocks/blocks.php:80 includes/functions.php:
|
774 |
-
#: includes/functions.php:
|
|
|
|
|
|
|
775 |
msgid "Order By"
|
776 |
msgstr ""
|
777 |
|
778 |
-
#: admin/settings.php:417 includes/functions.php:
|
779 |
-
#: includes/functions.php:
|
|
|
|
|
780 |
#: widgets/forms/categories.php:15 widgets/forms/search.php:15
|
781 |
#: widgets/forms/video.php:15
|
782 |
msgid "Title"
|
783 |
msgstr ""
|
784 |
|
785 |
-
#: admin/settings.php:418 includes/functions.php:
|
786 |
msgid "Date Posted"
|
787 |
msgstr ""
|
788 |
|
789 |
#: admin/settings.php:419 admin/settings.php:456 admin/settings.php:480
|
790 |
-
#: includes/functions.php:
|
|
|
791 |
msgid "Views Count"
|
792 |
msgstr ""
|
793 |
|
794 |
-
#: admin/settings.php:420 includes/functions.php:
|
795 |
msgid "Random"
|
796 |
msgstr ""
|
797 |
|
798 |
-
#: admin/settings.php:437 includes/functions.php:
|
799 |
msgid "Thumbnail Style"
|
800 |
msgstr ""
|
801 |
|
802 |
-
#: admin/settings.php:441 includes/functions.php:
|
803 |
msgid "Image Top Aligned"
|
804 |
msgstr ""
|
805 |
|
806 |
-
#: admin/settings.php:442 includes/functions.php:
|
807 |
msgid "Image Left Aligned"
|
808 |
msgstr ""
|
809 |
|
@@ -835,7 +859,7 @@ msgstr ""
|
|
835 |
msgid "Video Excerpt"
|
836 |
msgstr ""
|
837 |
|
838 |
-
#: admin/settings.php:464 includes/functions.php:
|
839 |
msgid "Excerpt Length"
|
840 |
msgstr ""
|
841 |
|
@@ -843,7 +867,7 @@ msgstr ""
|
|
843 |
msgid "Number of characters."
|
844 |
msgstr ""
|
845 |
|
846 |
-
#: admin/settings.php:481 includes/functions.php:
|
847 |
msgid "Related Videos"
|
848 |
msgstr ""
|
849 |
|
@@ -869,7 +893,7 @@ msgstr ""
|
|
869 |
msgid "Enable Services"
|
870 |
msgstr ""
|
871 |
|
872 |
-
#: admin/settings.php:510 includes/functions.php:
|
873 |
msgid "Twitter"
|
874 |
msgstr ""
|
875 |
|
@@ -877,7 +901,7 @@ msgstr ""
|
|
877 |
msgid "Google Plus"
|
878 |
msgstr ""
|
879 |
|
880 |
-
#: admin/settings.php:512 includes/functions.php:
|
881 |
msgid "Linkedin"
|
882 |
msgstr ""
|
883 |
|
@@ -1020,7 +1044,10 @@ msgstr ""
|
|
1020 |
msgid "Video Player & Gallery"
|
1021 |
msgstr ""
|
1022 |
|
1023 |
-
#: admin/shortcode-builder.php:50
|
|
|
|
|
|
|
1024 |
msgid "Video Categories"
|
1025 |
msgstr ""
|
1026 |
|
@@ -1036,11 +1063,7 @@ msgstr ""
|
|
1036 |
msgid "Search Form"
|
1037 |
msgstr ""
|
1038 |
|
1039 |
-
#: admin/videos.php:
|
1040 |
-
msgid "Videos"
|
1041 |
-
msgstr ""
|
1042 |
-
|
1043 |
-
#: admin/videos.php:35 admin/videos.php:37 admin/videos.php:69
|
1044 |
msgid "Video"
|
1045 |
msgstr ""
|
1046 |
|
@@ -1056,15 +1079,15 @@ msgstr ""
|
|
1056 |
msgid "Parent Video:"
|
1057 |
msgstr ""
|
1058 |
|
1059 |
-
#: admin/videos.php:41 admin/videos.php:
|
1060 |
msgid "All Videos"
|
1061 |
msgstr ""
|
1062 |
|
1063 |
-
#: admin/videos.php:42
|
1064 |
msgid "Add New Video"
|
1065 |
msgstr ""
|
1066 |
|
1067 |
-
#: admin/videos.php:43
|
1068 |
msgid "Add New"
|
1069 |
msgstr ""
|
1070 |
|
@@ -1144,16 +1167,20 @@ msgstr ""
|
|
1144 |
msgid "Video Sources"
|
1145 |
msgstr ""
|
1146 |
|
1147 |
-
#: admin/videos.php:
|
1148 |
msgid "Featured only"
|
1149 |
msgstr ""
|
1150 |
|
1151 |
#: admin/welcome.php:31 admin/welcome.php:32 admin/welcome.php:39
|
1152 |
-
#: admin/welcome.php:40
|
1153 |
msgid "Welcome - All-in-One Video Gallery"
|
1154 |
msgstr ""
|
1155 |
|
1156 |
-
#: admin/welcome.php:
|
|
|
|
|
|
|
|
|
1157 |
msgid "Support"
|
1158 |
msgstr ""
|
1159 |
|
@@ -1169,17 +1196,17 @@ msgstr ""
|
|
1169 |
msgid "Categories Settings"
|
1170 |
msgstr ""
|
1171 |
|
1172 |
-
#: blocks/blocks.php:75 includes/functions.php:
|
1173 |
#: widgets/forms/categories.php:20 widgets/forms/categories.php:23
|
1174 |
msgid "Select Parent"
|
1175 |
msgstr ""
|
1176 |
|
1177 |
-
#: blocks/blocks.php:86 includes/functions.php:
|
1178 |
#: widgets/forms/categories.php:82
|
1179 |
msgid "ASC"
|
1180 |
msgstr ""
|
1181 |
|
1182 |
-
#: blocks/blocks.php:87 includes/functions.php:
|
1183 |
#: widgets/forms/categories.php:83
|
1184 |
msgid "DESC"
|
1185 |
msgstr ""
|
@@ -1208,15 +1235,15 @@ msgstr ""
|
|
1208 |
msgid "Search Form Settings"
|
1209 |
msgstr ""
|
1210 |
|
1211 |
-
#: blocks/blocks.php:98 includes/functions.php:
|
1212 |
msgid "Vertical"
|
1213 |
msgstr ""
|
1214 |
|
1215 |
-
#: blocks/blocks.php:99 includes/functions.php:
|
1216 |
msgid "Horizontal"
|
1217 |
msgstr ""
|
1218 |
|
1219 |
-
#: blocks/blocks.php:100 includes/functions.php:
|
1220 |
msgid "Search By Categories"
|
1221 |
msgstr ""
|
1222 |
|
@@ -1256,556 +1283,911 @@ msgstr ""
|
|
1256 |
msgid "Remove Poster Image"
|
1257 |
msgstr ""
|
1258 |
|
1259 |
-
#: includes/functions.php:
|
1260 |
msgid "Select Categories"
|
1261 |
msgstr ""
|
1262 |
|
1263 |
-
#: includes/functions.php:
|
1264 |
msgid "Exclude Video ID(s)"
|
1265 |
msgstr ""
|
1266 |
|
1267 |
-
#: includes/functions.php:
|
1268 |
msgid "Featured Only"
|
1269 |
msgstr ""
|
1270 |
|
1271 |
-
#: includes/functions.php:
|
1272 |
msgid "Follow URL"
|
1273 |
msgstr ""
|
1274 |
|
1275 |
-
#: includes/functions.php:
|
1276 |
msgid "Gallery Settings"
|
1277 |
msgstr ""
|
1278 |
|
1279 |
-
#: includes/functions.php:
|
1280 |
msgid "Show Category Name"
|
1281 |
msgstr ""
|
1282 |
|
1283 |
-
#: includes/functions.php:
|
1284 |
msgid "Show Date Added"
|
1285 |
msgstr ""
|
1286 |
|
1287 |
-
#: includes/functions.php:
|
1288 |
msgid "Show Author Name"
|
1289 |
msgstr ""
|
1290 |
|
1291 |
-
#: includes/functions.php:
|
1292 |
msgid "Show Views Count"
|
1293 |
msgstr ""
|
1294 |
|
1295 |
-
#: includes/functions.php:
|
1296 |
msgid "Show Video Duration"
|
1297 |
msgstr ""
|
1298 |
|
1299 |
-
#: includes/functions.php:
|
1300 |
msgid "Show Video Excerpt"
|
1301 |
msgstr ""
|
1302 |
|
1303 |
-
#: includes/functions.php:
|
1304 |
msgid "Show Pagination"
|
1305 |
msgstr ""
|
1306 |
|
1307 |
-
#: includes/functions.php:
|
1308 |
msgid "Show More Button"
|
1309 |
msgstr ""
|
1310 |
|
1311 |
-
#: includes/functions.php:
|
1312 |
msgid "More Button Label"
|
1313 |
msgstr ""
|
1314 |
|
1315 |
-
#: includes/functions.php:
|
1316 |
msgid "Show More"
|
1317 |
msgstr ""
|
1318 |
|
1319 |
-
#: includes/functions.php:
|
1320 |
msgid "More Button Link"
|
1321 |
msgstr ""
|
1322 |
|
1323 |
-
#: includes/functions.php:
|
1324 |
msgid "Select Video"
|
1325 |
msgstr ""
|
1326 |
|
1327 |
-
#: includes/functions.php:
|
1328 |
msgid ""
|
1329 |
"<strong>Please accept cookies to play this video</strong>. By accepting you "
|
1330 |
"will be accessing content from a service provided by an external third party."
|
1331 |
msgstr ""
|
1332 |
|
1333 |
-
#: includes/functions.php:
|
1334 |
msgid "Accept"
|
1335 |
msgstr ""
|
1336 |
|
1337 |
-
#: includes/functions.php:
|
1338 |
msgid "No Items found."
|
1339 |
msgstr ""
|
1340 |
|
1341 |
-
#: includes/functions.php:
|
1342 |
msgid "Self Hosted"
|
1343 |
msgstr ""
|
1344 |
|
1345 |
-
#: includes/functions.php:
|
1346 |
msgid "External URL"
|
1347 |
msgstr ""
|
1348 |
|
1349 |
-
#: includes/functions.php:
|
1350 |
msgid "Iframe Embed Code"
|
1351 |
msgstr ""
|
1352 |
|
1353 |
-
#: includes/functions.php:
|
1354 |
msgid "Classic"
|
1355 |
msgstr ""
|
1356 |
|
1357 |
-
#: includes/functions.php:
|
1358 |
msgid "Video Category"
|
1359 |
msgstr ""
|
1360 |
|
1361 |
-
#: includes/functions.php:
|
1362 |
msgid "Search Videos"
|
1363 |
msgstr ""
|
1364 |
|
1365 |
-
#: includes/functions.php:
|
1366 |
msgid "User Videos"
|
1367 |
msgstr ""
|
1368 |
|
1369 |
-
#: includes/functions.php:
|
1370 |
msgid "Player Embed"
|
1371 |
msgstr ""
|
1372 |
|
1373 |
-
#: includes/functions.php:
|
1374 |
msgid "«"
|
1375 |
msgstr ""
|
1376 |
|
1377 |
-
#: includes/functions.php:
|
1378 |
msgid "»"
|
1379 |
msgstr ""
|
1380 |
|
1381 |
-
#: includes/functions.php:
|
1382 |
#, php-format
|
1383 |
msgid "Page %d of %d"
|
1384 |
msgstr ""
|
1385 |
|
1386 |
-
#: includes/functions.php:
|
1387 |
msgid "Google+"
|
1388 |
msgstr ""
|
1389 |
|
1390 |
-
#: includes/functions.php:
|
1391 |
msgid "Pin It"
|
1392 |
msgstr ""
|
1393 |
|
1394 |
-
#: premium/admin/
|
1395 |
-
msgid "Adaptive / Live Streaming"
|
1396 |
-
msgstr ""
|
1397 |
-
|
1398 |
-
#: premium/admin/admin.php:38
|
1399 |
#, php-format
|
1400 |
msgid "Proudly by \"%s\""
|
1401 |
msgstr ""
|
1402 |
|
1403 |
-
#: premium/admin/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1404 |
msgid "Ads"
|
1405 |
msgstr ""
|
1406 |
|
1407 |
-
#: premium/admin/ads.php:
|
1408 |
msgid "Ads Settings"
|
1409 |
msgstr ""
|
1410 |
|
1411 |
-
#: premium/admin/ads.php:
|
1412 |
msgid ""
|
1413 |
"Monetize your videos using DoubleClick for Publishers (DFP), the Google "
|
1414 |
"AdSense network, or any VAST-compliant ad server."
|
1415 |
msgstr ""
|
1416 |
|
1417 |
-
#: premium/admin/ads.php:
|
1418 |
msgid "Enable Ads"
|
1419 |
msgstr ""
|
1420 |
|
1421 |
-
#: premium/admin/ads.php:
|
1422 |
msgid "Check this option to enable advertisements on your videos"
|
1423 |
msgstr ""
|
1424 |
|
1425 |
-
#: premium/admin/ads.php:
|
1426 |
msgid "VAST URL"
|
1427 |
msgstr ""
|
1428 |
|
1429 |
-
#: premium/admin/ads.php:
|
1430 |
#, php-format
|
1431 |
msgid ""
|
1432 |
"Click here for a list of <a href=\"%s\" target=\"_blank\">Ad Tag Variables</"
|
1433 |
"a> (Macros) supported by the plugin."
|
1434 |
msgstr ""
|
1435 |
|
1436 |
-
#: premium/admin/ads.php:
|
1437 |
msgid "VPAID Mode"
|
1438 |
msgstr ""
|
1439 |
|
1440 |
-
#: premium/admin/ads.php:
|
1441 |
msgid "Enabled"
|
1442 |
msgstr ""
|
1443 |
|
1444 |
-
#: premium/admin/ads.php:
|
1445 |
msgid "Insecure"
|
1446 |
msgstr ""
|
1447 |
|
1448 |
-
#: premium/admin/ads.php:
|
1449 |
msgid "Disabled"
|
1450 |
msgstr ""
|
1451 |
|
1452 |
-
#: premium/admin/ads.php:
|
1453 |
msgid "Livestream Ad Interval"
|
1454 |
msgstr ""
|
1455 |
|
1456 |
-
#: premium/admin/ads.php:
|
1457 |
msgid ""
|
1458 |
"Optional. Seconds after the next advertisement should play in your live "
|
1459 |
"streaming video player."
|
1460 |
msgstr ""
|
1461 |
|
1462 |
-
#: premium/admin/ads.php:
|
1463 |
msgid "Google Publisher Tag (GPT)"
|
1464 |
msgstr ""
|
1465 |
|
1466 |
-
#: premium/admin/ads.php:
|
1467 |
#, php-format
|
1468 |
msgid ""
|
1469 |
"Optional. Check this option to display companion ads using <a href=\"%s\" "
|
1470 |
"target=\"_blank\">Google Publisher Tag</a>"
|
1471 |
msgstr ""
|
1472 |
|
1473 |
-
#: premium/admin/ads.php:
|
1474 |
msgid "Video Ads"
|
1475 |
msgstr ""
|
1476 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1477 |
#: premium/admin/partials/adaptive-streaming.php:15
|
1478 |
#: premium/admin/partials/adaptive-streaming.php:18
|
1479 |
#: premium/public/templates/video-form.php:261
|
1480 |
msgid "M(PEG)-DASH"
|
1481 |
msgstr ""
|
1482 |
|
1483 |
-
#: premium/admin/partials/adaptive-streaming.php:20
|
1484 |
-
msgid "Example: https://www.mysite.com/stream.mpd"
|
1485 |
-
msgstr ""
|
1486 |
-
|
1487 |
#: premium/admin/partials/adaptive-streaming.php:26
|
1488 |
#: premium/admin/partials/adaptive-streaming.php:29
|
1489 |
#: premium/public/templates/video-form.php:261
|
1490 |
msgid "HLS"
|
1491 |
msgstr ""
|
1492 |
|
1493 |
-
#: premium/admin/partials/
|
1494 |
-
msgid "
|
1495 |
msgstr ""
|
1496 |
|
1497 |
-
#: premium/admin/partials/
|
1498 |
-
|
|
|
1499 |
msgstr ""
|
1500 |
|
1501 |
-
#: premium/admin/
|
1502 |
-
|
|
|
1503 |
msgstr ""
|
1504 |
|
1505 |
-
#: premium/admin/
|
1506 |
-
|
|
|
1507 |
msgstr ""
|
1508 |
|
1509 |
-
#: premium/admin/
|
1510 |
-
msgid "
|
1511 |
msgstr ""
|
1512 |
|
1513 |
-
#: premium/admin/
|
1514 |
-
|
|
|
1515 |
msgstr ""
|
1516 |
|
1517 |
-
#: premium/admin/
|
1518 |
-
|
|
|
1519 |
msgstr ""
|
1520 |
|
1521 |
-
#: premium/admin/
|
1522 |
-
|
|
|
|
|
1523 |
msgstr ""
|
1524 |
|
1525 |
-
#: premium/admin/
|
1526 |
-
|
|
|
1527 |
msgstr ""
|
1528 |
|
1529 |
-
#: premium/admin/
|
1530 |
-
msgid "
|
1531 |
msgstr ""
|
1532 |
|
1533 |
-
#: premium/admin/
|
1534 |
-
|
|
|
1535 |
msgstr ""
|
1536 |
|
1537 |
-
#: premium/admin/
|
1538 |
-
msgid "
|
|
|
|
|
1539 |
msgstr ""
|
1540 |
|
1541 |
-
#: premium/admin/
|
1542 |
-
msgid "
|
1543 |
msgstr ""
|
1544 |
|
1545 |
-
#: premium/admin/
|
1546 |
-
msgid "
|
1547 |
msgstr ""
|
1548 |
|
1549 |
-
#: premium/admin/
|
1550 |
-
msgid "
|
1551 |
msgstr ""
|
1552 |
|
1553 |
-
#: premium/admin/
|
1554 |
-
|
|
|
1555 |
msgstr ""
|
1556 |
|
1557 |
-
#: premium/admin/
|
1558 |
-
msgid "
|
|
|
|
|
1559 |
msgstr ""
|
1560 |
|
1561 |
-
#: premium/admin/
|
1562 |
-
|
|
|
1563 |
msgstr ""
|
1564 |
|
1565 |
-
#: premium/admin/
|
1566 |
-
msgid "
|
1567 |
msgstr ""
|
1568 |
|
1569 |
-
#: premium/admin/
|
1570 |
-
msgid "
|
1571 |
msgstr ""
|
1572 |
|
1573 |
-
#: premium/admin/
|
1574 |
-
msgid "
|
1575 |
msgstr ""
|
1576 |
|
1577 |
-
#: premium/admin/
|
1578 |
-
msgid "
|
1579 |
msgstr ""
|
1580 |
|
1581 |
-
#: premium/admin/
|
1582 |
-
msgid "
|
1583 |
msgstr ""
|
1584 |
|
1585 |
-
#: premium/admin/
|
1586 |
-
msgid "
|
1587 |
msgstr ""
|
1588 |
|
1589 |
-
#: premium/admin/
|
|
|
|
|
|
|
|
|
|
|
1590 |
msgid ""
|
1591 |
-
"
|
1592 |
-
"
|
1593 |
-
"Your video \"{video_title}\" has been received and it's pending review. This "
|
1594 |
-
"review process could take up to 48 hours.\n"
|
1595 |
-
"\n"
|
1596 |
-
"Thanks,\n"
|
1597 |
-
"The Administrator of {site_name}"
|
1598 |
msgstr ""
|
1599 |
|
1600 |
-
#: premium/admin/
|
1601 |
-
msgid "
|
1602 |
msgstr ""
|
1603 |
|
1604 |
-
#: premium/admin/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1605 |
msgid ""
|
1606 |
-
"
|
1607 |
-
"
|
1608 |
-
|
1609 |
-
|
1610 |
-
|
1611 |
-
"
|
1612 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1613 |
msgstr ""
|
1614 |
|
1615 |
-
#: premium/admin/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1616 |
msgid "User"
|
1617 |
msgstr ""
|
1618 |
|
1619 |
-
#: premium/admin/user.php:
|
1620 |
msgid "Front-end Video Submission Settings"
|
1621 |
msgstr ""
|
1622 |
|
1623 |
-
#: premium/admin/user.php:
|
1624 |
msgid "User Account Settings"
|
1625 |
msgstr ""
|
1626 |
|
1627 |
-
#: premium/admin/user.php:
|
1628 |
msgid "[Email Template] Video Pending Review"
|
1629 |
msgstr ""
|
1630 |
|
1631 |
-
#: premium/admin/user.php:
|
1632 |
msgid "[Email Template] Video Published"
|
1633 |
msgstr ""
|
1634 |
|
1635 |
-
#: premium/admin/user.php:
|
1636 |
msgid "Assign Categories"
|
1637 |
msgstr ""
|
1638 |
|
1639 |
-
#: premium/admin/user.php:
|
1640 |
msgid "Check this box to allow users to select categories for their videos"
|
1641 |
msgstr ""
|
1642 |
|
1643 |
-
#: premium/admin/user.php:
|
1644 |
msgid "Allowed Source Types"
|
1645 |
msgstr ""
|
1646 |
|
1647 |
-
#: premium/admin/user.php:
|
1648 |
msgid "Allow File Uploads"
|
1649 |
msgstr ""
|
1650 |
|
1651 |
-
#: premium/admin/user.php:
|
1652 |
msgid "Maximum Upload Size"
|
1653 |
msgstr ""
|
1654 |
|
1655 |
-
#: premium/admin/user.php:
|
1656 |
msgid ""
|
1657 |
"In bytes. Enter the maximum file size the users can upload in your website. "
|
1658 |
"Leave this field empty to allow the maximium possible file size."
|
1659 |
msgstr ""
|
1660 |
|
1661 |
-
#: premium/admin/user.php:
|
1662 |
msgid "Default New Video Status"
|
1663 |
msgstr ""
|
1664 |
|
1665 |
-
#: premium/admin/user.php:
|
1666 |
-
msgid "Publish"
|
1667 |
-
msgstr ""
|
1668 |
-
|
1669 |
-
#: premium/admin/user.php:186 premium/admin/user.php:197
|
1670 |
-
msgid "Pending"
|
1671 |
-
msgstr ""
|
1672 |
-
|
1673 |
-
#: premium/admin/user.php:192
|
1674 |
msgid "Edit Video Status"
|
1675 |
msgstr ""
|
1676 |
|
1677 |
-
#: premium/admin/user.php:
|
1678 |
msgid "Terms and Conditions URL"
|
1679 |
msgstr ""
|
1680 |
|
1681 |
-
#: premium/admin/user.php:
|
1682 |
msgid "Optional. Enter your Terms and Conditions Page URL."
|
1683 |
msgstr ""
|
1684 |
|
1685 |
-
#: premium/admin/user.php:
|
1686 |
msgid "Custom Login URL"
|
1687 |
msgstr ""
|
1688 |
|
1689 |
-
#: premium/admin/user.php:
|
1690 |
msgid ""
|
1691 |
"Optional. Enter your custom Login Page URL. Leave this field empty to use "
|
1692 |
"the default WordPress Login form."
|
1693 |
msgstr ""
|
1694 |
|
1695 |
-
#: premium/admin/user.php:
|
1696 |
msgid "Custom Registration URL"
|
1697 |
msgstr ""
|
1698 |
|
1699 |
-
#: premium/admin/user.php:
|
1700 |
msgid ""
|
1701 |
"Optional. Enter your custom Registration Page URL. Leave this field empty to "
|
1702 |
"use the default WordPress Registration URL."
|
1703 |
msgstr ""
|
1704 |
|
1705 |
-
#: premium/admin/user.php:
|
1706 |
msgid "Custom Forgot Password URL"
|
1707 |
msgstr ""
|
1708 |
|
1709 |
-
#: premium/admin/user.php:
|
1710 |
msgid ""
|
1711 |
"Optional. Enter your custom Forgot Password Page URL. Leave this field empty "
|
1712 |
"to use the default WordPress Forgot Password URL."
|
1713 |
msgstr ""
|
1714 |
|
1715 |
-
#: premium/admin/user.php:
|
1716 |
msgid "Email Subject"
|
1717 |
msgstr ""
|
1718 |
|
1719 |
-
#: premium/admin/user.php:
|
1720 |
msgid "Email Body"
|
1721 |
msgstr ""
|
1722 |
|
1723 |
-
#: premium/admin/user.php:
|
1724 |
msgid "SUPPORTED PLACEHOLDERS:"
|
1725 |
msgstr ""
|
1726 |
|
1727 |
-
#: premium/admin/user.php:
|
1728 |
msgid "The video owner's display name on the site"
|
1729 |
msgstr ""
|
1730 |
|
1731 |
-
#: premium/admin/user.php:
|
1732 |
msgid "The video owner's user name on the site"
|
1733 |
msgstr ""
|
1734 |
|
1735 |
-
#: premium/admin/user.php:
|
1736 |
msgid "Your site name"
|
1737 |
msgstr ""
|
1738 |
|
1739 |
-
#: premium/admin/user.php:
|
1740 |
msgid "Your site name with link"
|
1741 |
msgstr ""
|
1742 |
|
1743 |
-
#: premium/admin/user.php:
|
1744 |
msgid "Your site url with link"
|
1745 |
msgstr ""
|
1746 |
|
1747 |
-
#: premium/admin/user.php:
|
1748 |
msgid "Video's title"
|
1749 |
msgstr ""
|
1750 |
|
1751 |
-
#: premium/admin/user.php:
|
1752 |
msgid "Video's title with link"
|
1753 |
msgstr ""
|
1754 |
|
1755 |
-
#: premium/admin/user.php:
|
1756 |
msgid "Video's url with link"
|
1757 |
msgstr ""
|
1758 |
|
1759 |
-
#: premium/admin/user.php:
|
1760 |
msgid "Current date"
|
1761 |
msgstr ""
|
1762 |
|
1763 |
-
#: premium/admin/user.php:
|
1764 |
msgid "Current time"
|
1765 |
msgstr ""
|
1766 |
|
1767 |
-
#: premium/admin/user.php:
|
1768 |
msgid "User Dashboard"
|
1769 |
msgstr ""
|
1770 |
|
1771 |
-
#: premium/admin/user.php:
|
1772 |
msgid ""
|
1773 |
"This is the page where the users can manage (add, edit or delete) their "
|
1774 |
"videos in front-end. The [aiovg_user_dashboard] short code must be on this "
|
1775 |
"page."
|
1776 |
msgstr ""
|
1777 |
|
1778 |
-
#: premium/admin/user.php:
|
1779 |
msgid "Video Form"
|
1780 |
msgstr ""
|
1781 |
|
1782 |
-
#: premium/admin/user.php:
|
1783 |
msgid ""
|
1784 |
"This is the form page where the users can add their videos in front-end. The "
|
1785 |
"[aiovg_video_form] short code must be on this page."
|
1786 |
msgstr ""
|
1787 |
|
1788 |
-
#: premium/includes/functions.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1789 |
msgid "Forgot your password?"
|
1790 |
msgstr ""
|
1791 |
|
1792 |
-
#: premium/includes/functions.php:
|
1793 |
msgid "Create an account"
|
1794 |
msgstr ""
|
1795 |
|
1796 |
-
#: premium/includes/functions.php:
|
1797 |
msgid "Active"
|
1798 |
msgstr ""
|
1799 |
|
1800 |
-
#: premium/includes/functions.php:
|
1801 |
msgid "Pending review"
|
1802 |
msgstr ""
|
1803 |
|
1804 |
-
#: premium/includes/functions.php:
|
1805 |
msgid "[{site_name}] New video received"
|
1806 |
msgstr ""
|
1807 |
|
1808 |
-
#: premium/includes/functions.php:
|
1809 |
msgid ""
|
1810 |
"Dear Administrator,<br /><br />You have received a new video on the website "
|
1811 |
"{site_name}.<br />This e-mail contains the video details:<br /><br />Video "
|
@@ -1814,11 +2196,11 @@ msgid ""
|
|
1814 |
"generated and is for information purposes only."
|
1815 |
msgstr ""
|
1816 |
|
1817 |
-
#: premium/includes/functions.php:
|
1818 |
msgid "[{site_name}] Video \"{video_title}\" edited"
|
1819 |
msgstr ""
|
1820 |
|
1821 |
-
#: premium/includes/functions.php:
|
1822 |
msgid ""
|
1823 |
"Dear Administrator,<br /><br />This notification was for the video on the "
|
1824 |
"website {site_name} \"{video_title}\" and is edited.<br />This e-mail "
|
@@ -1828,12 +2210,42 @@ msgid ""
|
|
1828 |
"information purposes only."
|
1829 |
msgstr ""
|
1830 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1831 |
#: premium/public/public.php:83
|
1832 |
msgid "This is a required field."
|
1833 |
msgstr ""
|
1834 |
|
1835 |
-
#: premium/public/public.php:84 premium/public/user.php:
|
1836 |
-
#: premium/public/user.php:
|
1837 |
msgid "Invalid file format."
|
1838 |
msgstr ""
|
1839 |
|
@@ -1853,6 +2265,22 @@ msgstr ""
|
|
1853 |
msgid "Unknown error."
|
1854 |
msgstr ""
|
1855 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1856 |
#: premium/public/templates/user-dashboard.php:18
|
1857 |
#, php-format
|
1858 |
msgid ""
|
@@ -1864,6 +2292,12 @@ msgstr ""
|
|
1864 |
msgid "Deleted"
|
1865 |
msgstr ""
|
1866 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1867 |
#: premium/public/templates/user-dashboard.php:66
|
1868 |
msgid "Actions"
|
1869 |
msgstr ""
|
@@ -1925,6 +2359,10 @@ msgstr ""
|
|
1925 |
msgid "Video Title"
|
1926 |
msgstr ""
|
1927 |
|
|
|
|
|
|
|
|
|
1928 |
#: premium/public/templates/video-form.php:108
|
1929 |
#: premium/public/templates/video-form.php:152
|
1930 |
#: premium/public/templates/video-form.php:179
|
@@ -1932,12 +2370,30 @@ msgstr ""
|
|
1932 |
msgid "cancel"
|
1933 |
msgstr ""
|
1934 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1935 |
#: premium/public/templates/video-form.php:316
|
1936 |
#, php-format
|
1937 |
msgid ""
|
1938 |
"I agree to the <a href=\"%s\" target=\"_blank\">terms and conditions</a>"
|
1939 |
msgstr ""
|
1940 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1941 |
#: premium/public/templates/videos-template-popup.php:18
|
1942 |
#: premium/public/templates/videos-template-slider.php:79
|
1943 |
#: public/templates/videos-template-classic.php:18
|
@@ -1945,27 +2401,23 @@ msgstr ""
|
|
1945 |
msgid "%d video(s) found"
|
1946 |
msgstr ""
|
1947 |
|
1948 |
-
#: premium/public/user.php:
|
1949 |
msgid "You do not have sufficient permissions to access this page."
|
1950 |
msgstr ""
|
1951 |
|
1952 |
-
#: premium/public/user.php:
|
1953 |
-
msgid "Save Draft"
|
1954 |
-
msgstr ""
|
1955 |
-
|
1956 |
-
#: premium/public/user.php:445 premium/public/user.php:458
|
1957 |
msgid "You do not have permission to upload files."
|
1958 |
msgstr ""
|
1959 |
|
1960 |
-
#: premium/public/user.php:
|
1961 |
msgid "Sorry, this file type is not permitted for security reasons."
|
1962 |
msgstr ""
|
1963 |
|
1964 |
-
#: premium/public/user.php:
|
1965 |
msgid "Sorry, this file size is not allowed."
|
1966 |
msgstr ""
|
1967 |
|
1968 |
-
#: premium/public/user.php:
|
1969 |
msgid "File is empty. Please upload something more substantial."
|
1970 |
msgstr ""
|
1971 |
|
@@ -1993,7 +2445,7 @@ msgid ""
|
|
1993 |
"Publisher Tag (GPT)</a> in the <a href=\"%s\">plugin settings</a>."
|
1994 |
msgstr ""
|
1995 |
|
1996 |
-
#: public/public.php:
|
1997 |
#, php-format
|
1998 |
msgid "Showing results for \"%s\""
|
1999 |
msgstr ""
|
@@ -2008,11 +2460,6 @@ msgstr ""
|
|
2008 |
msgid "Select a Category"
|
2009 |
msgstr ""
|
2010 |
|
2011 |
-
#: public/templates/search-form-template-horizontal.php:44
|
2012 |
-
#: public/templates/search-form-template-vertical.php:44
|
2013 |
-
msgid "Search"
|
2014 |
-
msgstr ""
|
2015 |
-
|
2016 |
#: public/templates/single-video.php:26
|
2017 |
#, php-format
|
2018 |
msgid "Posted %s ago"
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: All-in-One Video Gallery\n"
|
4 |
+
"POT-Creation-Date: 2019-05-25 18:39+0530\n"
|
5 |
+
"PO-Revision-Date: 2019-05-25 18:39+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.2.3\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:165 admin/settings.php:59 admin/settings.php:60
|
20 |
msgid "Settings"
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: admin/admin.php:180 blocks/blocks.php:37
|
24 |
msgid "All-in-One Video Gallery"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: admin/admin.php:182 admin/welcome.php:67
|
28 |
msgid "Getting Started"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: admin/admin.php:184
|
32 |
msgid "Contact Us"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: admin/admin.php:187
|
36 |
msgid "Upgrade Pro"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: admin/categories.php:33 premium/admin/automations.php:242
|
40 |
msgid "Categories"
|
41 |
msgstr ""
|
42 |
|
|
|
|
|
|
|
|
|
43 |
#: admin/categories.php:34 admin/videos.php:339
|
44 |
+
#: premium/admin/automations.php:160
|
45 |
msgid "All Categories"
|
46 |
msgstr ""
|
47 |
|
109 |
msgid "Categories list navigation"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: admin/categories.php:124 admin/settings.php:338 admin/videos.php:402
|
113 |
+
#: blocks/blocks.php:81 includes/functions.php:294
|
114 |
#: widgets/forms/categories.php:64
|
115 |
msgid "ID"
|
116 |
msgstr ""
|
146 |
msgid "Latest Video"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: admin/partials/shortcode-builder.php:133
|
150 |
msgid "Insert Shortcode"
|
151 |
msgstr ""
|
152 |
|
153 |
+
#: admin/partials/shortcode-builder.php:134
|
154 |
+
#: premium/public/templates/video-form.php:339
|
155 |
msgid "Cancel"
|
156 |
msgstr ""
|
157 |
|
168 |
#: admin/partials/video-sources.php:38 admin/partials/video-sources.php:69
|
169 |
#: admin/partials/video-sources.php:83 admin/partials/video-sources.php:151
|
170 |
#: admin/partials/video-tracks.php:27 admin/partials/video-tracks.php:63
|
171 |
+
#: premium/public/templates/video-form.php:102
|
172 |
+
#: premium/public/templates/video-form.php:146
|
173 |
+
#: premium/public/templates/video-form.php:173
|
174 |
+
#: premium/public/templates/video-form.php:184
|
175 |
+
#: premium/public/templates/video-form.php:281
|
176 |
msgid "Enter your Direct File URL here (OR) use the Upload Media button"
|
177 |
msgstr ""
|
178 |
|
200 |
msgstr ""
|
201 |
|
202 |
#: admin/partials/video-sources.php:92 admin/partials/video-sources.php:95
|
203 |
+
#: admin/settings.php:286 includes/functions.php:1175
|
204 |
+
#: premium/includes/functions.php:109
|
205 |
#: premium/public/templates/video-form.php:197
|
206 |
msgid "YouTube"
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: admin/partials/video-sources.php:97 admin/partials/video-sources.php:108
|
210 |
+
#: admin/partials/video-sources.php:119 admin/partials/video-sources.php:130
|
211 |
+
#: premium/admin/partials/adaptive-streaming.php:20
|
212 |
+
#: premium/admin/partials/adaptive-streaming.php:31
|
213 |
+
#: premium/admin/partials/automations-sources.php:75
|
214 |
+
#: premium/admin/partials/automations-sources.php:94
|
215 |
+
#: premium/admin/partials/automations-sources.php:112
|
216 |
+
#: premium/admin/partials/automations-sources.php:130
|
217 |
+
#: premium/admin/partials/automations-sources.php:148
|
218 |
+
#: premium/admin/partials/automations-sources.php:162
|
219 |
+
#: premium/public/templates/video-form.php:202
|
220 |
+
#: premium/public/templates/video-form.php:218
|
221 |
+
#: premium/public/templates/video-form.php:234
|
222 |
+
#: premium/public/templates/video-form.php:250
|
223 |
+
#: premium/public/templates/video-form.php:266
|
224 |
+
msgid "Example"
|
225 |
msgstr ""
|
226 |
|
227 |
#: admin/partials/video-sources.php:103 admin/partials/video-sources.php:106
|
228 |
+
#: admin/settings.php:287 includes/functions.php:1176
|
229 |
#: premium/public/templates/video-form.php:213
|
230 |
msgid "Vimeo"
|
231 |
msgstr ""
|
232 |
|
|
|
|
|
|
|
|
|
233 |
#: admin/partials/video-sources.php:114 admin/partials/video-sources.php:117
|
234 |
+
#: admin/settings.php:288 includes/functions.php:1177
|
235 |
#: premium/public/templates/video-form.php:229
|
236 |
msgid "Dailymotion"
|
237 |
msgstr ""
|
238 |
|
|
|
|
|
|
|
|
|
239 |
#: admin/partials/video-sources.php:125 admin/partials/video-sources.php:128
|
240 |
+
#: admin/settings.php:289 admin/settings.php:509 includes/functions.php:1178
|
241 |
+
#: includes/functions.php:1587 premium/public/templates/video-form.php:245
|
242 |
msgid "Facebook"
|
243 |
msgstr ""
|
244 |
|
|
|
|
|
|
|
|
|
245 |
#: admin/partials/video-sources.php:136 admin/partials/video-sources.php:139
|
246 |
msgid "Embed Code"
|
247 |
msgstr ""
|
251 |
msgstr ""
|
252 |
|
253 |
#: admin/partials/video-sources.php:160 admin/partials/video-sources.php:163
|
254 |
+
#: admin/settings.php:273 blocks/blocks.php:121 includes/functions.php:611
|
255 |
+
#: widgets/forms/video.php:92
|
256 |
msgid "Duration"
|
257 |
msgstr ""
|
258 |
|
|
|
|
|
|
|
|
|
259 |
#: admin/partials/video-sources.php:171 admin/partials/video-sources.php:174
|
260 |
+
#: admin/videos.php:400
|
261 |
msgid "Views"
|
262 |
msgstr ""
|
263 |
|
265 |
msgid "Mark as"
|
266 |
msgstr ""
|
267 |
|
268 |
+
#: admin/partials/video-submitbox.php:17 admin/videos.php:401
|
269 |
msgid "Featured"
|
270 |
msgstr ""
|
271 |
|
309 |
msgid "Add New File"
|
310 |
msgstr ""
|
311 |
|
312 |
+
#: admin/partials/welcome.php:14
|
313 |
#, php-format
|
314 |
msgid "All-in-One Video Gallery - %s"
|
315 |
msgstr ""
|
316 |
|
317 |
+
#: admin/partials/welcome.php:17
|
318 |
msgid "The last video player & gallery plugin you'll ever need."
|
319 |
msgstr ""
|
320 |
|
321 |
+
#: admin/partials/welcome.php:22
|
322 |
msgid "Getting Started - Premium Features"
|
323 |
msgstr ""
|
324 |
|
325 |
+
#: admin/partials/welcome.php:26
|
326 |
#, php-format
|
327 |
msgid "Version %s"
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: admin/partials/welcome.php:44 admin/partials/welcome.php:50
|
331 |
+
#: admin/partials/welcome.php:59 admin/partials/welcome.php:67
|
332 |
+
#: admin/partials/welcome.php:80
|
333 |
#, php-format
|
334 |
msgid "Step #%d:"
|
335 |
msgstr ""
|
336 |
|
337 |
+
#: admin/partials/welcome.php:46
|
338 |
msgid "Install & Activate <strong>All-in-One Video Gallery</strong>"
|
339 |
msgstr ""
|
340 |
|
341 |
+
#: admin/partials/welcome.php:52 admin/partials/welcome.php:69
|
342 |
msgid "Optional"
|
343 |
msgstr ""
|
344 |
|
345 |
+
#: admin/partials/welcome.php:54
|
346 |
msgid "Add Categories"
|
347 |
msgstr ""
|
348 |
|
349 |
+
#: admin/partials/welcome.php:62
|
350 |
msgid "Add Videos"
|
351 |
msgstr ""
|
352 |
|
353 |
+
#: admin/partials/welcome.php:72
|
354 |
#, php-format
|
355 |
msgid ""
|
356 |
"Add a Categories <a href=\"%s\">Page</a> to your site front-end. Find step "
|
357 |
"by step instructions <a href=\"%s\" target=\"_blank\">here</a>"
|
358 |
msgstr ""
|
359 |
|
360 |
+
#: admin/partials/welcome.php:84
|
361 |
#, php-format
|
362 |
msgid ""
|
363 |
"Add a Videos <a href=\"%s\">Page</a> to your site front-end. Find step by "
|
364 |
"step instructions <a href=\"%s\" target=\"_blank\">here</a>"
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: admin/partials/welcome.php:94
|
368 |
#, php-format
|
369 |
msgid ""
|
370 |
"Please <a href=\"%s\" target=\"_blank\">refer</a> for more advanced "
|
371 |
"tutorials."
|
372 |
msgstr ""
|
373 |
|
374 |
+
#: admin/partials/welcome.php:102
|
375 |
+
msgid "Introducing our new Automation tool"
|
376 |
+
msgstr ""
|
377 |
+
|
378 |
+
#: admin/partials/welcome.php:108
|
379 |
+
msgid ""
|
380 |
+
"Your site on Autopilot. Simply configure your YouTube channel, playlist or a "
|
381 |
+
"search keyword and schedule it. The plugin will do the rest by auto "
|
382 |
+
"importing videos from your YouTube account. Each time a new video is "
|
383 |
+
"uploaded there, it'll be automatically imported to your site within the hour."
|
384 |
+
msgstr ""
|
385 |
+
|
386 |
+
#: admin/partials/welcome.php:110
|
387 |
+
msgid "Learn more"
|
388 |
+
msgstr ""
|
389 |
+
|
390 |
+
#: admin/partials/welcome.php:117
|
391 |
msgid "Need Help?"
|
392 |
msgstr ""
|
393 |
|
394 |
+
#: admin/partials/welcome.php:122
|
395 |
msgid "Phenomenal Support"
|
396 |
msgstr ""
|
397 |
|
398 |
+
#: admin/partials/welcome.php:125
|
399 |
#, php-format
|
400 |
msgid ""
|
401 |
"We do our best to provide the best support we can. If you encounter a "
|
403 |
"\"%s\" target=\"_blank\">support form</a>."
|
404 |
msgstr ""
|
405 |
|
406 |
+
#: admin/partials/welcome.php:130
|
407 |
msgid "Need Even Faster Support?"
|
408 |
msgstr ""
|
409 |
|
410 |
+
#: admin/partials/welcome.php:133
|
411 |
#, php-format
|
412 |
msgid ""
|
413 |
"Our <a href=\"%s\" target=\"_blank\">Priority Support</a> system is there "
|
426 |
msgid "Advanced"
|
427 |
msgstr ""
|
428 |
|
429 |
+
#: admin/settings.php:117 blocks/blocks.php:106 includes/functions.php:243
|
430 |
+
#: includes/functions.php:345 includes/functions.php:546
|
431 |
+
#: includes/functions.php:642
|
432 |
msgid "General Settings"
|
433 |
msgstr ""
|
434 |
|
510 |
msgstr ""
|
511 |
|
512 |
#: admin/settings.php:210 admin/settings.php:297 blocks/blocks.php:107
|
513 |
+
#: includes/functions.php:557 premium/widgets/forms/companion.php:15
|
514 |
+
#: widgets/forms/video.php:54
|
515 |
msgid "Width"
|
516 |
msgstr ""
|
517 |
|
523 |
msgstr ""
|
524 |
|
525 |
#: admin/settings.php:217 admin/settings.php:304 blocks/blocks.php:109
|
526 |
+
#: includes/functions.php:273 includes/functions.php:431
|
527 |
+
#: includes/functions.php:564 widgets/forms/video.php:59
|
528 |
msgid "Ratio"
|
529 |
msgstr ""
|
530 |
|
562 |
msgid "Cinemascope"
|
563 |
msgstr ""
|
564 |
|
565 |
+
#: admin/settings.php:234 blocks/blocks.php:111 includes/functions.php:571
|
566 |
+
#: widgets/forms/video.php:65
|
567 |
msgid "Autoplay"
|
568 |
msgstr ""
|
569 |
|
571 |
msgid "Check this to start playing the video as soon as it is ready"
|
572 |
msgstr ""
|
573 |
|
574 |
+
#: admin/settings.php:241 blocks/blocks.php:112 includes/functions.php:578
|
575 |
+
#: widgets/forms/video.php:70
|
576 |
msgid "Loop"
|
577 |
msgstr ""
|
578 |
|
614 |
msgid "None"
|
615 |
msgstr ""
|
616 |
|
617 |
+
#: admin/settings.php:266 blocks/blocks.php:117 includes/functions.php:586
|
618 |
+
#: widgets/forms/video.php:73
|
619 |
msgid "Player Controls"
|
620 |
msgstr ""
|
621 |
|
622 |
+
#: admin/settings.php:270 blocks/blocks.php:118 includes/functions.php:590
|
623 |
+
#: widgets/forms/video.php:77
|
624 |
msgid "Play / Pause"
|
625 |
msgstr ""
|
626 |
|
627 |
+
#: admin/settings.php:271 blocks/blocks.php:119 includes/functions.php:597
|
628 |
+
#: widgets/forms/video.php:82
|
629 |
msgid "Current Time"
|
630 |
msgstr ""
|
631 |
|
632 |
+
#: admin/settings.php:272 blocks/blocks.php:120 includes/functions.php:604
|
633 |
+
#: widgets/forms/video.php:87
|
634 |
msgid "Progressbar"
|
635 |
msgstr ""
|
636 |
|
637 |
+
#: admin/settings.php:274 admin/videos.php:143 includes/functions.php:618
|
638 |
+
#: widgets/forms/video.php:97
|
639 |
msgid "Subtitles"
|
640 |
msgstr ""
|
641 |
|
642 |
+
#: admin/settings.php:275 blocks/blocks.php:122 includes/functions.php:625
|
643 |
+
#: widgets/forms/video.php:102
|
644 |
msgid "Volume"
|
645 |
msgstr ""
|
646 |
|
647 |
+
#: admin/settings.php:276 blocks/blocks.php:123 includes/functions.php:632
|
648 |
+
#: widgets/forms/video.php:107
|
649 |
msgid "Fullscreen"
|
650 |
msgstr ""
|
651 |
|
673 |
msgstr ""
|
674 |
|
675 |
#: admin/settings.php:313 admin/settings.php:388 blocks/blocks.php:76
|
676 |
+
#: includes/functions.php:254 includes/functions.php:356
|
677 |
+
#: includes/functions.php:646 widgets/forms/categories.php:39
|
678 |
#: widgets/forms/search.php:20
|
679 |
msgid "Select Template"
|
680 |
msgstr ""
|
681 |
|
682 |
+
#: admin/settings.php:317 blocks/blocks.php:77 includes/functions.php:258
|
683 |
#: widgets/forms/categories.php:43
|
684 |
msgid "Grid"
|
685 |
msgstr ""
|
686 |
|
687 |
+
#: admin/settings.php:318 blocks/blocks.php:78 includes/functions.php:259
|
688 |
#: widgets/forms/categories.php:44
|
689 |
msgid "List"
|
690 |
msgstr ""
|
691 |
|
692 |
#: admin/settings.php:324 admin/settings.php:396 blocks/blocks.php:79
|
693 |
+
#: includes/functions.php:280 includes/functions.php:438
|
694 |
#: widgets/forms/categories.php:55
|
695 |
msgid "Columns"
|
696 |
msgstr ""
|
703 |
msgid "Order by"
|
704 |
msgstr ""
|
705 |
|
706 |
+
#: admin/settings.php:339 blocks/blocks.php:82 includes/functions.php:295
|
707 |
#: widgets/forms/categories.php:65
|
708 |
msgid "Count"
|
709 |
msgstr ""
|
710 |
|
711 |
+
#: admin/settings.php:340 blocks/blocks.php:83 includes/functions.php:296
|
712 |
#: widgets/forms/categories.php:66
|
713 |
msgid "Name"
|
714 |
msgstr ""
|
715 |
|
716 |
+
#: admin/settings.php:341 blocks/blocks.php:84 includes/functions.php:297
|
717 |
#: widgets/forms/categories.php:67
|
718 |
msgid "Slug"
|
719 |
msgstr ""
|
720 |
|
721 |
#: admin/settings.php:347 admin/settings.php:426 blocks/blocks.php:85
|
722 |
+
#: includes/functions.php:303 includes/functions.php:401
|
723 |
#: widgets/forms/categories.php:78
|
724 |
msgid "Order"
|
725 |
msgstr ""
|
732 |
msgid "Descending"
|
733 |
msgstr ""
|
734 |
|
735 |
+
#: admin/settings.php:358 blocks/blocks.php:88 includes/functions.php:314
|
736 |
#: widgets/forms/categories.php:95
|
737 |
msgid "Show Hierarchy"
|
738 |
msgstr ""
|
741 |
msgid "Check this to show the child categories"
|
742 |
msgstr ""
|
743 |
|
744 |
+
#: admin/settings.php:365 blocks/blocks.php:89 includes/functions.php:321
|
745 |
#: widgets/forms/categories.php:100
|
746 |
msgid "Show Description"
|
747 |
msgstr ""
|
750 |
msgid "Check this to show the categories description"
|
751 |
msgstr ""
|
752 |
|
753 |
+
#: admin/settings.php:372 blocks/blocks.php:90 includes/functions.php:328
|
754 |
+
#: includes/functions.php:459 widgets/forms/categories.php:105
|
755 |
msgid "Show Videos Count"
|
756 |
msgstr ""
|
757 |
|
759 |
msgid "Check this to show the videos count next to the category name"
|
760 |
msgstr ""
|
761 |
|
762 |
+
#: admin/settings.php:379 blocks/blocks.php:91 includes/functions.php:335
|
763 |
#: widgets/forms/categories.php:110
|
764 |
msgid "Hide Empty Categories"
|
765 |
msgstr ""
|
768 |
msgid "Check this to hide categories with no videos"
|
769 |
msgstr ""
|
770 |
|
771 |
+
#: admin/settings.php:389 includes/functions.php:357
|
772 |
#, php-format
|
773 |
msgid ""
|
774 |
"<a href=\"%s\" target=\"_blank\">Upgrade Pro</a> for more templates (Popup, "
|
779 |
msgid "Enter the number of columns you like to have in the gallery view."
|
780 |
msgstr ""
|
781 |
|
782 |
+
#: admin/settings.php:406 includes/functions.php:378
|
783 |
msgid "Limit (per page)"
|
784 |
msgstr ""
|
785 |
|
788 |
"Number of videos to show per page. Use a value of \"0\" to show all videos."
|
789 |
msgstr ""
|
790 |
|
791 |
+
#: admin/settings.php:413 blocks/blocks.php:80 includes/functions.php:290
|
792 |
+
#: includes/functions.php:388
|
793 |
+
#: premium/admin/partials/automations-sources.php:170
|
794 |
+
#: premium/admin/partials/automations-sources.php:173
|
795 |
+
#: widgets/forms/categories.php:60
|
796 |
msgid "Order By"
|
797 |
msgstr ""
|
798 |
|
799 |
+
#: admin/settings.php:417 includes/functions.php:247 includes/functions.php:349
|
800 |
+
#: includes/functions.php:392
|
801 |
+
#: premium/admin/partials/automations-sources.php:180
|
802 |
+
#: premium/public/templates/user-dashboard.php:65
|
803 |
#: widgets/forms/categories.php:15 widgets/forms/search.php:15
|
804 |
#: widgets/forms/video.php:15
|
805 |
msgid "Title"
|
806 |
msgstr ""
|
807 |
|
808 |
+
#: admin/settings.php:418 includes/functions.php:393
|
809 |
msgid "Date Posted"
|
810 |
msgstr ""
|
811 |
|
812 |
#: admin/settings.php:419 admin/settings.php:456 admin/settings.php:480
|
813 |
+
#: includes/functions.php:394
|
814 |
+
#: premium/admin/partials/automations-sources.php:181
|
815 |
msgid "Views Count"
|
816 |
msgstr ""
|
817 |
|
818 |
+
#: admin/settings.php:420 includes/functions.php:395
|
819 |
msgid "Random"
|
820 |
msgstr ""
|
821 |
|
822 |
+
#: admin/settings.php:437 includes/functions.php:448
|
823 |
msgid "Thumbnail Style"
|
824 |
msgstr ""
|
825 |
|
826 |
+
#: admin/settings.php:441 includes/functions.php:452
|
827 |
msgid "Image Top Aligned"
|
828 |
msgstr ""
|
829 |
|
830 |
+
#: admin/settings.php:442 includes/functions.php:453
|
831 |
msgid "Image Left Aligned"
|
832 |
msgstr ""
|
833 |
|
859 |
msgid "Video Excerpt"
|
860 |
msgstr ""
|
861 |
|
862 |
+
#: admin/settings.php:464 includes/functions.php:508
|
863 |
msgid "Excerpt Length"
|
864 |
msgstr ""
|
865 |
|
867 |
msgid "Number of characters."
|
868 |
msgstr ""
|
869 |
|
870 |
+
#: admin/settings.php:481 includes/functions.php:419
|
871 |
msgid "Related Videos"
|
872 |
msgstr ""
|
873 |
|
893 |
msgid "Enable Services"
|
894 |
msgstr ""
|
895 |
|
896 |
+
#: admin/settings.php:510 includes/functions.php:1592
|
897 |
msgid "Twitter"
|
898 |
msgstr ""
|
899 |
|
901 |
msgid "Google Plus"
|
902 |
msgstr ""
|
903 |
|
904 |
+
#: admin/settings.php:512 includes/functions.php:1602
|
905 |
msgid "Linkedin"
|
906 |
msgstr ""
|
907 |
|
1044 |
msgid "Video Player & Gallery"
|
1045 |
msgstr ""
|
1046 |
|
1047 |
+
#: admin/shortcode-builder.php:50
|
1048 |
+
#: premium/admin/partials/automations-video-settings.php:17
|
1049 |
+
#: premium/admin/partials/automations-video-settings.php:20
|
1050 |
+
#: widgets/categories.php:54
|
1051 |
msgid "Video Categories"
|
1052 |
msgstr ""
|
1053 |
|
1063 |
msgid "Search Form"
|
1064 |
msgstr ""
|
1065 |
|
1066 |
+
#: admin/videos.php:37 admin/videos.php:69
|
|
|
|
|
|
|
|
|
1067 |
msgid "Video"
|
1068 |
msgstr ""
|
1069 |
|
1079 |
msgid "Parent Video:"
|
1080 |
msgstr ""
|
1081 |
|
1082 |
+
#: admin/videos.php:41 admin/videos.php:354
|
1083 |
msgid "All Videos"
|
1084 |
msgstr ""
|
1085 |
|
1086 |
+
#: admin/videos.php:42 premium/public/templates/user-dashboard.php:52
|
1087 |
msgid "Add New Video"
|
1088 |
msgstr ""
|
1089 |
|
1090 |
+
#: admin/videos.php:43 premium/admin/automations.php:84
|
1091 |
msgid "Add New"
|
1092 |
msgstr ""
|
1093 |
|
1167 |
msgid "Video Sources"
|
1168 |
msgstr ""
|
1169 |
|
1170 |
+
#: admin/videos.php:355
|
1171 |
msgid "Featured only"
|
1172 |
msgstr ""
|
1173 |
|
1174 |
#: admin/welcome.php:31 admin/welcome.php:32 admin/welcome.php:39
|
1175 |
+
#: admin/welcome.php:40 admin/welcome.php:47 admin/welcome.php:48
|
1176 |
msgid "Welcome - All-in-One Video Gallery"
|
1177 |
msgstr ""
|
1178 |
|
1179 |
+
#: admin/welcome.php:68
|
1180 |
+
msgid "New"
|
1181 |
+
msgstr ""
|
1182 |
+
|
1183 |
+
#: admin/welcome.php:69
|
1184 |
msgid "Support"
|
1185 |
msgstr ""
|
1186 |
|
1196 |
msgid "Categories Settings"
|
1197 |
msgstr ""
|
1198 |
|
1199 |
+
#: blocks/blocks.php:75 includes/functions.php:265
|
1200 |
#: widgets/forms/categories.php:20 widgets/forms/categories.php:23
|
1201 |
msgid "Select Parent"
|
1202 |
msgstr ""
|
1203 |
|
1204 |
+
#: blocks/blocks.php:86 includes/functions.php:307 includes/functions.php:405
|
1205 |
#: widgets/forms/categories.php:82
|
1206 |
msgid "ASC"
|
1207 |
msgstr ""
|
1208 |
|
1209 |
+
#: blocks/blocks.php:87 includes/functions.php:308 includes/functions.php:406
|
1210 |
#: widgets/forms/categories.php:83
|
1211 |
msgid "DESC"
|
1212 |
msgstr ""
|
1235 |
msgid "Search Form Settings"
|
1236 |
msgstr ""
|
1237 |
|
1238 |
+
#: blocks/blocks.php:98 includes/functions.php:650 widgets/forms/search.php:24
|
1239 |
msgid "Vertical"
|
1240 |
msgstr ""
|
1241 |
|
1242 |
+
#: blocks/blocks.php:99 includes/functions.php:651 widgets/forms/search.php:25
|
1243 |
msgid "Horizontal"
|
1244 |
msgstr ""
|
1245 |
|
1246 |
+
#: blocks/blocks.php:100 includes/functions.php:657 widgets/forms/search.php:37
|
1247 |
msgid "Search By Categories"
|
1248 |
msgstr ""
|
1249 |
|
1283 |
msgid "Remove Poster Image"
|
1284 |
msgstr ""
|
1285 |
|
1286 |
+
#: includes/functions.php:364 premium/public/templates/video-form.php:52
|
1287 |
msgid "Select Categories"
|
1288 |
msgstr ""
|
1289 |
|
1290 |
+
#: includes/functions.php:371
|
1291 |
msgid "Exclude Video ID(s)"
|
1292 |
msgstr ""
|
1293 |
|
1294 |
+
#: includes/functions.php:412
|
1295 |
msgid "Featured Only"
|
1296 |
msgstr ""
|
1297 |
|
1298 |
+
#: includes/functions.php:419
|
1299 |
msgid "Follow URL"
|
1300 |
msgstr ""
|
1301 |
|
1302 |
+
#: includes/functions.php:427
|
1303 |
msgid "Gallery Settings"
|
1304 |
msgstr ""
|
1305 |
|
1306 |
+
#: includes/functions.php:466
|
1307 |
msgid "Show Category Name"
|
1308 |
msgstr ""
|
1309 |
|
1310 |
+
#: includes/functions.php:473
|
1311 |
msgid "Show Date Added"
|
1312 |
msgstr ""
|
1313 |
|
1314 |
+
#: includes/functions.php:480
|
1315 |
msgid "Show Author Name"
|
1316 |
msgstr ""
|
1317 |
|
1318 |
+
#: includes/functions.php:487
|
1319 |
msgid "Show Views Count"
|
1320 |
msgstr ""
|
1321 |
|
1322 |
+
#: includes/functions.php:494
|
1323 |
msgid "Show Video Duration"
|
1324 |
msgstr ""
|
1325 |
|
1326 |
+
#: includes/functions.php:501
|
1327 |
msgid "Show Video Excerpt"
|
1328 |
msgstr ""
|
1329 |
|
1330 |
+
#: includes/functions.php:515
|
1331 |
msgid "Show Pagination"
|
1332 |
msgstr ""
|
1333 |
|
1334 |
+
#: includes/functions.php:522
|
1335 |
msgid "Show More Button"
|
1336 |
msgstr ""
|
1337 |
|
1338 |
+
#: includes/functions.php:529
|
1339 |
msgid "More Button Label"
|
1340 |
msgstr ""
|
1341 |
|
1342 |
+
#: includes/functions.php:532
|
1343 |
msgid "Show More"
|
1344 |
msgstr ""
|
1345 |
|
1346 |
+
#: includes/functions.php:536
|
1347 |
msgid "More Button Link"
|
1348 |
msgstr ""
|
1349 |
|
1350 |
+
#: includes/functions.php:550 widgets/forms/video.php:20
|
1351 |
msgid "Select Video"
|
1352 |
msgstr ""
|
1353 |
|
1354 |
+
#: includes/functions.php:814
|
1355 |
msgid ""
|
1356 |
"<strong>Please accept cookies to play this video</strong>. By accepting you "
|
1357 |
"will be accessing content from a service provided by an external third party."
|
1358 |
msgstr ""
|
1359 |
|
1360 |
+
#: includes/functions.php:815
|
1361 |
msgid "Accept"
|
1362 |
msgstr ""
|
1363 |
|
1364 |
+
#: includes/functions.php:948
|
1365 |
msgid "No Items found."
|
1366 |
msgstr ""
|
1367 |
|
1368 |
+
#: includes/functions.php:1174
|
1369 |
msgid "Self Hosted"
|
1370 |
msgstr ""
|
1371 |
|
1372 |
+
#: includes/functions.php:1174
|
1373 |
msgid "External URL"
|
1374 |
msgstr ""
|
1375 |
|
1376 |
+
#: includes/functions.php:1182
|
1377 |
msgid "Iframe Embed Code"
|
1378 |
msgstr ""
|
1379 |
|
1380 |
+
#: includes/functions.php:1196
|
1381 |
msgid "Classic"
|
1382 |
msgstr ""
|
1383 |
|
1384 |
+
#: includes/functions.php:1343
|
1385 |
msgid "Video Category"
|
1386 |
msgstr ""
|
1387 |
|
1388 |
+
#: includes/functions.php:1347 widgets/search.php:109
|
1389 |
msgid "Search Videos"
|
1390 |
msgstr ""
|
1391 |
|
1392 |
+
#: includes/functions.php:1351
|
1393 |
msgid "User Videos"
|
1394 |
msgstr ""
|
1395 |
|
1396 |
+
#: includes/functions.php:1355
|
1397 |
msgid "Player Embed"
|
1398 |
msgstr ""
|
1399 |
|
1400 |
+
#: includes/functions.php:1526
|
1401 |
msgid "«"
|
1402 |
msgstr ""
|
1403 |
|
1404 |
+
#: includes/functions.php:1527
|
1405 |
msgid "»"
|
1406 |
msgstr ""
|
1407 |
|
1408 |
+
#: includes/functions.php:1542
|
1409 |
#, php-format
|
1410 |
msgid "Page %d of %d"
|
1411 |
msgstr ""
|
1412 |
|
1413 |
+
#: includes/functions.php:1597
|
1414 |
msgid "Google+"
|
1415 |
msgstr ""
|
1416 |
|
1417 |
+
#: includes/functions.php:1607
|
1418 |
msgid "Pin It"
|
1419 |
msgstr ""
|
1420 |
|
1421 |
+
#: premium/admin/admin.php:48
|
|
|
|
|
|
|
|
|
1422 |
#, php-format
|
1423 |
msgid "Proudly by \"%s\""
|
1424 |
msgstr ""
|
1425 |
|
1426 |
+
#: premium/admin/admin.php:114
|
1427 |
+
msgid "[{site_name}] Video \"{video_title}\" received"
|
1428 |
+
msgstr ""
|
1429 |
+
|
1430 |
+
#: premium/admin/admin.php:115
|
1431 |
+
msgid ""
|
1432 |
+
"Dear {name},\n"
|
1433 |
+
"\n"
|
1434 |
+
"Your video \"{video_title}\" has been received and it's pending review. This "
|
1435 |
+
"review process could take up to 48 hours.\n"
|
1436 |
+
"\n"
|
1437 |
+
"Thanks,\n"
|
1438 |
+
"The Administrator of {site_name}"
|
1439 |
+
msgstr ""
|
1440 |
+
|
1441 |
+
#: premium/admin/admin.php:124
|
1442 |
+
msgid "[{site_name}] Video \"{video_title}\" published"
|
1443 |
+
msgstr ""
|
1444 |
+
|
1445 |
+
#: premium/admin/admin.php:125
|
1446 |
+
msgid ""
|
1447 |
+
"Dear {name},\n"
|
1448 |
+
"\n"
|
1449 |
+
"Your video \"{video_title}\" is now available at {video_url} and can be "
|
1450 |
+
"viewed by the public.\n"
|
1451 |
+
"\n"
|
1452 |
+
"Thanks,\n"
|
1453 |
+
"The Administrator of {site_name}"
|
1454 |
+
msgstr ""
|
1455 |
+
|
1456 |
+
#: premium/admin/admin.php:181
|
1457 |
+
msgid "Please wait while we are loading data from the API server..."
|
1458 |
+
msgstr ""
|
1459 |
+
|
1460 |
+
#: premium/admin/ads.php:33
|
1461 |
msgid "Ads"
|
1462 |
msgstr ""
|
1463 |
|
1464 |
+
#: premium/admin/ads.php:49
|
1465 |
msgid "Ads Settings"
|
1466 |
msgstr ""
|
1467 |
|
1468 |
+
#: premium/admin/ads.php:50
|
1469 |
msgid ""
|
1470 |
"Monetize your videos using DoubleClick for Publishers (DFP), the Google "
|
1471 |
"AdSense network, or any VAST-compliant ad server."
|
1472 |
msgstr ""
|
1473 |
|
1474 |
+
#: premium/admin/ads.php:68
|
1475 |
msgid "Enable Ads"
|
1476 |
msgstr ""
|
1477 |
|
1478 |
+
#: premium/admin/ads.php:69
|
1479 |
msgid "Check this option to enable advertisements on your videos"
|
1480 |
msgstr ""
|
1481 |
|
1482 |
+
#: premium/admin/ads.php:75
|
1483 |
msgid "VAST URL"
|
1484 |
msgstr ""
|
1485 |
|
1486 |
+
#: premium/admin/ads.php:76
|
1487 |
#, php-format
|
1488 |
msgid ""
|
1489 |
"Click here for a list of <a href=\"%s\" target=\"_blank\">Ad Tag Variables</"
|
1490 |
"a> (Macros) supported by the plugin."
|
1491 |
msgstr ""
|
1492 |
|
1493 |
+
#: premium/admin/ads.php:82
|
1494 |
msgid "VPAID Mode"
|
1495 |
msgstr ""
|
1496 |
|
1497 |
+
#: premium/admin/ads.php:86
|
1498 |
msgid "Enabled"
|
1499 |
msgstr ""
|
1500 |
|
1501 |
+
#: premium/admin/ads.php:87
|
1502 |
msgid "Insecure"
|
1503 |
msgstr ""
|
1504 |
|
1505 |
+
#: premium/admin/ads.php:88
|
1506 |
msgid "Disabled"
|
1507 |
msgstr ""
|
1508 |
|
1509 |
+
#: premium/admin/ads.php:94
|
1510 |
msgid "Livestream Ad Interval"
|
1511 |
msgstr ""
|
1512 |
|
1513 |
+
#: premium/admin/ads.php:95
|
1514 |
msgid ""
|
1515 |
"Optional. Seconds after the next advertisement should play in your live "
|
1516 |
"streaming video player."
|
1517 |
msgstr ""
|
1518 |
|
1519 |
+
#: premium/admin/ads.php:102
|
1520 |
msgid "Google Publisher Tag (GPT)"
|
1521 |
msgstr ""
|
1522 |
|
1523 |
+
#: premium/admin/ads.php:103
|
1524 |
#, php-format
|
1525 |
msgid ""
|
1526 |
"Optional. Check this option to display companion ads using <a href=\"%s\" "
|
1527 |
"target=\"_blank\">Google Publisher Tag</a>"
|
1528 |
msgstr ""
|
1529 |
|
1530 |
+
#: premium/admin/ads.php:120
|
1531 |
msgid "Video Ads"
|
1532 |
msgstr ""
|
1533 |
|
1534 |
+
#: premium/admin/automations.php:34
|
1535 |
+
msgid "Automations Settings"
|
1536 |
+
msgstr ""
|
1537 |
+
|
1538 |
+
#: premium/admin/automations.php:53
|
1539 |
+
msgid "YouTube API key"
|
1540 |
+
msgstr ""
|
1541 |
+
|
1542 |
+
#: premium/admin/automations.php:54 premium/includes/youtube.php:56
|
1543 |
+
#, php-format
|
1544 |
+
msgid ""
|
1545 |
+
"Follow <a href=\"%s\" target=\"_blank\">this guide</a> to get your own API "
|
1546 |
+
"key."
|
1547 |
+
msgstr ""
|
1548 |
+
|
1549 |
+
#: premium/admin/automations.php:60
|
1550 |
+
msgid "Enable Fast Mode"
|
1551 |
+
msgstr ""
|
1552 |
+
|
1553 |
+
#: premium/admin/automations.php:61
|
1554 |
+
msgid ""
|
1555 |
+
"Increase speed by disabling do_action calls in wp_insert_post during import"
|
1556 |
+
msgstr ""
|
1557 |
+
|
1558 |
+
#: premium/admin/automations.php:62
|
1559 |
+
msgid ""
|
1560 |
+
"NOTE: This option is for advanced users with knowledge of WordPress "
|
1561 |
+
"development. Your theme or plugins may require these calls when posts are "
|
1562 |
+
"created. Next action will be disabled: 'transition_post_status', "
|
1563 |
+
"'save_post', 'pre_post_update', 'add_attachment', 'edit_attachment', "
|
1564 |
+
"'edit_post', 'post_updated', 'wp_insert_post'. Verify your created posts "
|
1565 |
+
"work properly if you check this box."
|
1566 |
+
msgstr ""
|
1567 |
+
|
1568 |
+
#: premium/admin/automations.php:80 premium/admin/automations.php:82
|
1569 |
+
#: premium/admin/automations.php:95
|
1570 |
+
msgid "Automations"
|
1571 |
+
msgstr ""
|
1572 |
+
|
1573 |
+
#: premium/admin/automations.php:81
|
1574 |
+
msgid "Automation"
|
1575 |
+
msgstr ""
|
1576 |
+
|
1577 |
+
#: premium/admin/automations.php:83
|
1578 |
+
msgid "Add New Source"
|
1579 |
+
msgstr ""
|
1580 |
+
|
1581 |
+
#: premium/admin/automations.php:85
|
1582 |
+
msgid "New Source"
|
1583 |
+
msgstr ""
|
1584 |
+
|
1585 |
+
#: premium/admin/automations.php:86
|
1586 |
+
msgid "Edit Source"
|
1587 |
+
msgstr ""
|
1588 |
+
|
1589 |
+
#: premium/admin/automations.php:87
|
1590 |
+
msgid "Update Source"
|
1591 |
+
msgstr ""
|
1592 |
+
|
1593 |
+
#: premium/admin/automations.php:88
|
1594 |
+
msgid "View Source"
|
1595 |
+
msgstr ""
|
1596 |
+
|
1597 |
+
#: premium/admin/automations.php:89
|
1598 |
+
msgid "Search Sources"
|
1599 |
+
msgstr ""
|
1600 |
+
|
1601 |
+
#: premium/admin/automations.php:90
|
1602 |
+
msgid "No sources found"
|
1603 |
+
msgstr ""
|
1604 |
+
|
1605 |
+
#: premium/admin/automations.php:91
|
1606 |
+
msgid "No sources found in Trash"
|
1607 |
+
msgstr ""
|
1608 |
+
|
1609 |
+
#: premium/admin/automations.php:96
|
1610 |
+
msgid "Automations Description"
|
1611 |
+
msgstr ""
|
1612 |
+
|
1613 |
+
#: premium/admin/automations.php:130
|
1614 |
+
msgid "Enter your source title"
|
1615 |
+
msgstr ""
|
1616 |
+
|
1617 |
+
#: premium/admin/automations.php:144
|
1618 |
+
msgid "Imported only"
|
1619 |
+
msgstr ""
|
1620 |
+
|
1621 |
+
#: premium/admin/automations.php:241
|
1622 |
+
msgid "Source"
|
1623 |
+
msgstr ""
|
1624 |
+
|
1625 |
+
#: premium/admin/automations.php:243
|
1626 |
+
msgid "Stats"
|
1627 |
+
msgstr ""
|
1628 |
+
|
1629 |
+
#: premium/admin/automations.php:259
|
1630 |
+
msgid "Imported"
|
1631 |
+
msgstr ""
|
1632 |
+
|
1633 |
+
#: premium/admin/automations.php:320 premium/admin/automations.php:510
|
1634 |
+
msgid "Paused"
|
1635 |
+
msgstr ""
|
1636 |
+
|
1637 |
+
#: premium/admin/automations.php:338
|
1638 |
+
#: premium/admin/partials/automations-statistics.php:23
|
1639 |
+
msgid "Import status"
|
1640 |
+
msgstr ""
|
1641 |
+
|
1642 |
+
#: premium/admin/automations.php:342
|
1643 |
+
#: premium/admin/partials/automations-statistics.php:35
|
1644 |
+
msgid "videos imported"
|
1645 |
+
msgstr ""
|
1646 |
+
|
1647 |
+
#: premium/admin/automations.php:343
|
1648 |
+
#: premium/admin/partials/automations-statistics.php:60
|
1649 |
+
msgid "Next scheduled update"
|
1650 |
+
msgstr ""
|
1651 |
+
|
1652 |
+
#: premium/admin/automations.php:411
|
1653 |
+
msgid "Configure Import Sources"
|
1654 |
+
msgstr ""
|
1655 |
+
|
1656 |
+
#: premium/admin/automations.php:420
|
1657 |
+
msgid "Video Post Settings"
|
1658 |
+
msgstr ""
|
1659 |
+
|
1660 |
+
#: premium/admin/automations.php:429
|
1661 |
+
msgid "Import Stats"
|
1662 |
+
msgstr ""
|
1663 |
+
|
1664 |
+
#: premium/admin/automations.php:646
|
1665 |
+
msgid "Test Run"
|
1666 |
+
msgstr ""
|
1667 |
+
|
1668 |
+
#: premium/admin/automations.php:647
|
1669 |
+
msgid "Publish & Import"
|
1670 |
+
msgstr ""
|
1671 |
+
|
1672 |
+
#: premium/admin/automations.php:647
|
1673 |
+
msgid "Import Next Batch"
|
1674 |
+
msgstr ""
|
1675 |
+
|
1676 |
#: premium/admin/partials/adaptive-streaming.php:15
|
1677 |
#: premium/admin/partials/adaptive-streaming.php:18
|
1678 |
#: premium/public/templates/video-form.php:261
|
1679 |
msgid "M(PEG)-DASH"
|
1680 |
msgstr ""
|
1681 |
|
|
|
|
|
|
|
|
|
1682 |
#: premium/admin/partials/adaptive-streaming.php:26
|
1683 |
#: premium/admin/partials/adaptive-streaming.php:29
|
1684 |
#: premium/public/templates/video-form.php:261
|
1685 |
msgid "HLS"
|
1686 |
msgstr ""
|
1687 |
|
1688 |
+
#: premium/admin/partials/ads.php:16
|
1689 |
+
msgid "Disable Ads"
|
1690 |
msgstr ""
|
1691 |
|
1692 |
+
#: premium/admin/partials/automations-sources.php:17
|
1693 |
+
#: premium/admin/partials/automations-sources.php:20
|
1694 |
+
msgid "Video Service"
|
1695 |
msgstr ""
|
1696 |
|
1697 |
+
#: premium/admin/partials/automations-sources.php:41
|
1698 |
+
#: premium/admin/partials/automations-sources.php:44
|
1699 |
+
msgid "Source Type"
|
1700 |
msgstr ""
|
1701 |
|
1702 |
+
#: premium/admin/partials/automations-sources.php:65
|
1703 |
+
#: premium/admin/partials/automations-sources.php:68
|
1704 |
+
msgid "Search Keyword"
|
1705 |
msgstr ""
|
1706 |
|
1707 |
+
#: premium/admin/partials/automations-sources.php:76
|
1708 |
+
msgid "Enter search terms (space:AND, -:NOT, |:OR)"
|
1709 |
msgstr ""
|
1710 |
|
1711 |
+
#: premium/admin/partials/automations-sources.php:84
|
1712 |
+
#: premium/admin/partials/automations-sources.php:87
|
1713 |
+
msgid "Playlist URL"
|
1714 |
msgstr ""
|
1715 |
|
1716 |
+
#: premium/admin/partials/automations-sources.php:102
|
1717 |
+
#: premium/admin/partials/automations-sources.php:105
|
1718 |
+
msgid "Channel URL"
|
1719 |
msgstr ""
|
1720 |
|
1721 |
+
#: premium/admin/partials/automations-sources.php:120
|
1722 |
+
#: premium/admin/partials/automations-sources.php:123
|
1723 |
+
#: premium/includes/functions.php:94
|
1724 |
+
msgid "Username"
|
1725 |
msgstr ""
|
1726 |
|
1727 |
+
#: premium/admin/partials/automations-sources.php:138
|
1728 |
+
#: premium/admin/partials/automations-sources.php:141
|
1729 |
+
msgid "Video URLs"
|
1730 |
msgstr ""
|
1731 |
|
1732 |
+
#: premium/admin/partials/automations-sources.php:149
|
1733 |
+
msgid "Enter one video per line."
|
1734 |
msgstr ""
|
1735 |
|
1736 |
+
#: premium/admin/partials/automations-sources.php:157
|
1737 |
+
#: premium/admin/partials/automations-sources.php:160
|
1738 |
+
msgid "Exclude URLs"
|
1739 |
msgstr ""
|
1740 |
|
1741 |
+
#: premium/admin/partials/automations-sources.php:163
|
1742 |
+
msgid ""
|
1743 |
+
"Enter the list of video URLs those should be excluded during the import. "
|
1744 |
+
"Enter one video per line."
|
1745 |
msgstr ""
|
1746 |
|
1747 |
+
#: premium/admin/partials/automations-sources.php:177
|
1748 |
+
msgid "Date"
|
1749 |
msgstr ""
|
1750 |
|
1751 |
+
#: premium/admin/partials/automations-sources.php:178
|
1752 |
+
msgid "Rating"
|
1753 |
msgstr ""
|
1754 |
|
1755 |
+
#: premium/admin/partials/automations-sources.php:179
|
1756 |
+
msgid "Relevance"
|
1757 |
msgstr ""
|
1758 |
|
1759 |
+
#: premium/admin/partials/automations-sources.php:194
|
1760 |
+
#: premium/admin/partials/automations-sources.php:197
|
1761 |
+
msgid "Batch Limit"
|
1762 |
msgstr ""
|
1763 |
|
1764 |
+
#: premium/admin/partials/automations-sources.php:200
|
1765 |
+
msgid ""
|
1766 |
+
"Enter the maximum amount of videos to be imported per batch. We recommend "
|
1767 |
+
"keeping this value less than 500."
|
1768 |
msgstr ""
|
1769 |
|
1770 |
+
#: premium/admin/partials/automations-sources.php:207
|
1771 |
+
#: premium/admin/partials/automations-sources.php:210
|
1772 |
+
msgid "Schedule"
|
1773 |
msgstr ""
|
1774 |
|
1775 |
+
#: premium/admin/partials/automations-sources.php:214
|
1776 |
+
msgid "Only Once"
|
1777 |
msgstr ""
|
1778 |
|
1779 |
+
#: premium/admin/partials/automations-sources.php:215
|
1780 |
+
msgid "Every 1 Hour"
|
1781 |
msgstr ""
|
1782 |
|
1783 |
+
#: premium/admin/partials/automations-sources.php:216
|
1784 |
+
msgid "Every 1 Day"
|
1785 |
msgstr ""
|
1786 |
|
1787 |
+
#: premium/admin/partials/automations-sources.php:217
|
1788 |
+
msgid "Every 1 Week"
|
1789 |
msgstr ""
|
1790 |
|
1791 |
+
#: premium/admin/partials/automations-sources.php:218
|
1792 |
+
msgid "Every 1 Month"
|
1793 |
msgstr ""
|
1794 |
|
1795 |
+
#: premium/admin/partials/automations-sources.php:226
|
1796 |
+
msgid "Configure how frequent the plugin the plugin should import videos."
|
1797 |
msgstr ""
|
1798 |
|
1799 |
+
#: premium/admin/partials/automations-sources.php:232
|
1800 |
+
#: premium/admin/partials/automations-sources.php:235
|
1801 |
+
msgid "Reschedule"
|
1802 |
+
msgstr ""
|
1803 |
+
|
1804 |
+
#: premium/admin/partials/automations-sources.php:238
|
1805 |
msgid ""
|
1806 |
+
"Check this option if the plugin should check for new videos after the import "
|
1807 |
+
"has been completed."
|
|
|
|
|
|
|
|
|
|
|
1808 |
msgstr ""
|
1809 |
|
1810 |
+
#: premium/admin/partials/automations-statistics.php:44
|
1811 |
+
msgid "videos excluded"
|
1812 |
msgstr ""
|
1813 |
|
1814 |
+
#: premium/admin/partials/automations-statistics.php:53
|
1815 |
+
msgid "duplicate videos ignored"
|
1816 |
+
msgstr ""
|
1817 |
+
|
1818 |
+
#: premium/admin/partials/automations-statistics.php:64
|
1819 |
+
msgid "History"
|
1820 |
+
msgstr ""
|
1821 |
+
|
1822 |
+
#: premium/admin/partials/automations-statistics.php:72
|
1823 |
+
#, php-format
|
1824 |
+
msgid "Imported %d videos on %s"
|
1825 |
+
msgstr ""
|
1826 |
+
|
1827 |
+
#: premium/admin/partials/automations-statistics.php:82
|
1828 |
+
msgid "You have not started importing videos."
|
1829 |
+
msgstr ""
|
1830 |
+
|
1831 |
+
#: premium/admin/partials/automations-submitbox.php:15
|
1832 |
msgid ""
|
1833 |
+
"We are importing your videos. Please do not refresh or leave this page. This "
|
1834 |
+
"can take a few minutes."
|
1835 |
+
msgstr ""
|
1836 |
+
|
1837 |
+
#: premium/admin/partials/automations-test-screen.php:21
|
1838 |
+
msgid ""
|
1839 |
+
"Congrats! Your configuration is working. You can publish the form and start "
|
1840 |
+
"importing videos."
|
1841 |
+
msgstr ""
|
1842 |
+
|
1843 |
+
#: premium/admin/partials/automations-test-screen.php:40
|
1844 |
+
#, php-format
|
1845 |
+
msgid "Published on %s"
|
1846 |
+
msgstr ""
|
1847 |
+
|
1848 |
+
#: premium/admin/partials/automations-video-settings.php:33
|
1849 |
+
msgid "Select the categories to which the imported videos should be posted."
|
1850 |
+
msgstr ""
|
1851 |
+
|
1852 |
+
#: premium/admin/partials/automations-video-settings.php:39
|
1853 |
+
#: premium/admin/partials/automations-video-settings.php:42
|
1854 |
+
msgid "Video Date"
|
1855 |
+
msgstr ""
|
1856 |
+
|
1857 |
+
#: premium/admin/partials/automations-video-settings.php:46
|
1858 |
+
msgid "Original date on the video service"
|
1859 |
+
msgstr ""
|
1860 |
+
|
1861 |
+
#: premium/admin/partials/automations-video-settings.php:47
|
1862 |
+
msgid "Date when the video is imported"
|
1863 |
+
msgstr ""
|
1864 |
+
|
1865 |
+
#: premium/admin/partials/automations-video-settings.php:55
|
1866 |
+
msgid ""
|
1867 |
+
"Select whether to use the original posting date on the video service, or the "
|
1868 |
+
"date when the video is imported."
|
1869 |
+
msgstr ""
|
1870 |
+
|
1871 |
+
#: premium/admin/partials/automations-video-settings.php:61
|
1872 |
+
#: premium/admin/partials/automations-video-settings.php:64
|
1873 |
+
msgid "Video Author"
|
1874 |
+
msgstr ""
|
1875 |
+
|
1876 |
+
#: premium/admin/partials/automations-video-settings.php:73
|
1877 |
+
msgid "Select the author to whom the video should be assigned."
|
1878 |
+
msgstr ""
|
1879 |
+
|
1880 |
+
#: premium/admin/partials/automations-video-settings.php:79
|
1881 |
+
#: premium/admin/partials/automations-video-settings.php:82
|
1882 |
+
msgid "Video Status"
|
1883 |
+
msgstr ""
|
1884 |
+
|
1885 |
+
#: premium/admin/partials/automations-video-settings.php:86
|
1886 |
+
msgid "Draft"
|
1887 |
+
msgstr ""
|
1888 |
+
|
1889 |
+
#: premium/admin/partials/automations-video-settings.php:87
|
1890 |
+
#: premium/admin/user.php:123 premium/admin/user.php:134
|
1891 |
+
msgid "Pending"
|
1892 |
+
msgstr ""
|
1893 |
+
|
1894 |
+
#: premium/admin/partials/automations-video-settings.php:88
|
1895 |
+
#: premium/admin/user.php:122 premium/admin/user.php:133
|
1896 |
+
#: premium/public/templates/video-form.php:332
|
1897 |
+
msgid "Publish"
|
1898 |
+
msgstr ""
|
1899 |
+
|
1900 |
+
#: premium/admin/partials/automations-video-settings.php:96
|
1901 |
+
msgid ""
|
1902 |
+
"Select the default status of the imported videos. Site admin will be "
|
1903 |
+
"notified through email when an import occurs with the \"Pending\" status."
|
1904 |
+
msgstr ""
|
1905 |
+
|
1906 |
+
#: premium/admin/popup.php:32
|
1907 |
+
msgid "Popup"
|
1908 |
+
msgstr ""
|
1909 |
+
|
1910 |
+
#: premium/admin/slider.php:32
|
1911 |
+
msgid "Slider"
|
1912 |
+
msgstr ""
|
1913 |
+
|
1914 |
+
#: premium/admin/slider.php:52 premium/public/slider.php:44
|
1915 |
+
msgid "Slider Layout"
|
1916 |
+
msgstr ""
|
1917 |
+
|
1918 |
+
#: premium/admin/slider.php:56 premium/public/slider.php:48
|
1919 |
+
msgid "Player Only"
|
1920 |
+
msgstr ""
|
1921 |
+
|
1922 |
+
#: premium/admin/slider.php:57 premium/public/slider.php:49
|
1923 |
+
msgid "Thumbnails Only"
|
1924 |
+
msgstr ""
|
1925 |
+
|
1926 |
+
#: premium/admin/slider.php:58 premium/public/slider.php:50
|
1927 |
+
msgid "Player + Thumbnails"
|
1928 |
+
msgstr ""
|
1929 |
+
|
1930 |
+
#: premium/admin/slider.php:70 premium/public/slider.php:59
|
1931 |
+
msgid "Arrows"
|
1932 |
+
msgstr ""
|
1933 |
+
|
1934 |
+
#: premium/admin/slider.php:77 premium/public/slider.php:66
|
1935 |
+
msgid "Arrow Size (in pixels)"
|
1936 |
+
msgstr ""
|
1937 |
+
|
1938 |
+
#: premium/admin/slider.php:87 premium/public/slider.php:76
|
1939 |
+
msgid "Arrow BG Color"
|
1940 |
+
msgstr ""
|
1941 |
+
|
1942 |
+
#: premium/admin/slider.php:94 premium/public/slider.php:83
|
1943 |
+
msgid "Arrow Icon Color"
|
1944 |
+
msgstr ""
|
1945 |
+
|
1946 |
+
#: premium/admin/slider.php:101 premium/public/slider.php:90
|
1947 |
+
msgid "Arrow Radius (in pixels)"
|
1948 |
+
msgstr ""
|
1949 |
+
|
1950 |
+
#: premium/admin/slider.php:111
|
1951 |
+
msgid "Arrow Top Offset"
|
1952 |
+
msgstr ""
|
1953 |
+
|
1954 |
+
#: premium/admin/slider.php:121
|
1955 |
+
msgid "Arrow Left Offset"
|
1956 |
msgstr ""
|
1957 |
|
1958 |
+
#: premium/admin/slider.php:131
|
1959 |
+
msgid "Arrow Right Offset"
|
1960 |
+
msgstr ""
|
1961 |
+
|
1962 |
+
#: premium/admin/slider.php:141 premium/public/slider.php:130
|
1963 |
+
msgid "Dots"
|
1964 |
+
msgstr ""
|
1965 |
+
|
1966 |
+
#: premium/admin/slider.php:148
|
1967 |
+
msgid "Dot Size (in pixels)"
|
1968 |
+
msgstr ""
|
1969 |
+
|
1970 |
+
#: premium/admin/slider.php:158 premium/public/slider.php:147
|
1971 |
+
msgid "Dot Color"
|
1972 |
+
msgstr ""
|
1973 |
+
|
1974 |
+
#: premium/admin/user.php:33
|
1975 |
msgid "User"
|
1976 |
msgstr ""
|
1977 |
|
1978 |
+
#: premium/admin/user.php:50
|
1979 |
msgid "Front-end Video Submission Settings"
|
1980 |
msgstr ""
|
1981 |
|
1982 |
+
#: premium/admin/user.php:56
|
1983 |
msgid "User Account Settings"
|
1984 |
msgstr ""
|
1985 |
|
1986 |
+
#: premium/admin/user.php:62
|
1987 |
msgid "[Email Template] Video Pending Review"
|
1988 |
msgstr ""
|
1989 |
|
1990 |
+
#: premium/admin/user.php:68
|
1991 |
msgid "[Email Template] Video Published"
|
1992 |
msgstr ""
|
1993 |
|
1994 |
+
#: premium/admin/user.php:88
|
1995 |
msgid "Assign Categories"
|
1996 |
msgstr ""
|
1997 |
|
1998 |
+
#: premium/admin/user.php:89
|
1999 |
msgid "Check this box to allow users to select categories for their videos"
|
2000 |
msgstr ""
|
2001 |
|
2002 |
+
#: premium/admin/user.php:95
|
2003 |
msgid "Allowed Source Types"
|
2004 |
msgstr ""
|
2005 |
|
2006 |
+
#: premium/admin/user.php:103
|
2007 |
msgid "Allow File Uploads"
|
2008 |
msgstr ""
|
2009 |
|
2010 |
+
#: premium/admin/user.php:110
|
2011 |
msgid "Maximum Upload Size"
|
2012 |
msgstr ""
|
2013 |
|
2014 |
+
#: premium/admin/user.php:111
|
2015 |
msgid ""
|
2016 |
"In bytes. Enter the maximum file size the users can upload in your website. "
|
2017 |
"Leave this field empty to allow the maximium possible file size."
|
2018 |
msgstr ""
|
2019 |
|
2020 |
+
#: premium/admin/user.php:118
|
2021 |
msgid "Default New Video Status"
|
2022 |
msgstr ""
|
2023 |
|
2024 |
+
#: premium/admin/user.php:129
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025 |
msgid "Edit Video Status"
|
2026 |
msgstr ""
|
2027 |
|
2028 |
+
#: premium/admin/user.php:140
|
2029 |
msgid "Terms and Conditions URL"
|
2030 |
msgstr ""
|
2031 |
|
2032 |
+
#: premium/admin/user.php:141
|
2033 |
msgid "Optional. Enter your Terms and Conditions Page URL."
|
2034 |
msgstr ""
|
2035 |
|
2036 |
+
#: premium/admin/user.php:150
|
2037 |
msgid "Custom Login URL"
|
2038 |
msgstr ""
|
2039 |
|
2040 |
+
#: premium/admin/user.php:151
|
2041 |
msgid ""
|
2042 |
"Optional. Enter your custom Login Page URL. Leave this field empty to use "
|
2043 |
"the default WordPress Login form."
|
2044 |
msgstr ""
|
2045 |
|
2046 |
+
#: premium/admin/user.php:157
|
2047 |
msgid "Custom Registration URL"
|
2048 |
msgstr ""
|
2049 |
|
2050 |
+
#: premium/admin/user.php:158
|
2051 |
msgid ""
|
2052 |
"Optional. Enter your custom Registration Page URL. Leave this field empty to "
|
2053 |
"use the default WordPress Registration URL."
|
2054 |
msgstr ""
|
2055 |
|
2056 |
+
#: premium/admin/user.php:164
|
2057 |
msgid "Custom Forgot Password URL"
|
2058 |
msgstr ""
|
2059 |
|
2060 |
+
#: premium/admin/user.php:165
|
2061 |
msgid ""
|
2062 |
"Optional. Enter your custom Forgot Password Page URL. Leave this field empty "
|
2063 |
"to use the default WordPress Forgot Password URL."
|
2064 |
msgstr ""
|
2065 |
|
2066 |
+
#: premium/admin/user.php:174 premium/admin/user.php:201
|
2067 |
msgid "Email Subject"
|
2068 |
msgstr ""
|
2069 |
|
2070 |
+
#: premium/admin/user.php:181 premium/admin/user.php:208
|
2071 |
msgid "Email Body"
|
2072 |
msgstr ""
|
2073 |
|
2074 |
+
#: premium/admin/user.php:182 premium/admin/user.php:209
|
2075 |
msgid "SUPPORTED PLACEHOLDERS:"
|
2076 |
msgstr ""
|
2077 |
|
2078 |
+
#: premium/admin/user.php:183 premium/admin/user.php:210
|
2079 |
msgid "The video owner's display name on the site"
|
2080 |
msgstr ""
|
2081 |
|
2082 |
+
#: premium/admin/user.php:184 premium/admin/user.php:211
|
2083 |
msgid "The video owner's user name on the site"
|
2084 |
msgstr ""
|
2085 |
|
2086 |
+
#: premium/admin/user.php:185 premium/admin/user.php:212
|
2087 |
msgid "Your site name"
|
2088 |
msgstr ""
|
2089 |
|
2090 |
+
#: premium/admin/user.php:186 premium/admin/user.php:213
|
2091 |
msgid "Your site name with link"
|
2092 |
msgstr ""
|
2093 |
|
2094 |
+
#: premium/admin/user.php:187 premium/admin/user.php:214
|
2095 |
msgid "Your site url with link"
|
2096 |
msgstr ""
|
2097 |
|
2098 |
+
#: premium/admin/user.php:188 premium/admin/user.php:215
|
2099 |
msgid "Video's title"
|
2100 |
msgstr ""
|
2101 |
|
2102 |
+
#: premium/admin/user.php:189 premium/admin/user.php:216
|
2103 |
msgid "Video's title with link"
|
2104 |
msgstr ""
|
2105 |
|
2106 |
+
#: premium/admin/user.php:190 premium/admin/user.php:217
|
2107 |
msgid "Video's url with link"
|
2108 |
msgstr ""
|
2109 |
|
2110 |
+
#: premium/admin/user.php:191 premium/admin/user.php:218
|
2111 |
msgid "Current date"
|
2112 |
msgstr ""
|
2113 |
|
2114 |
+
#: premium/admin/user.php:192 premium/admin/user.php:219
|
2115 |
msgid "Current time"
|
2116 |
msgstr ""
|
2117 |
|
2118 |
+
#: premium/admin/user.php:227 premium/includes/functions.php:237
|
2119 |
msgid "User Dashboard"
|
2120 |
msgstr ""
|
2121 |
|
2122 |
+
#: premium/admin/user.php:228
|
2123 |
msgid ""
|
2124 |
"This is the page where the users can manage (add, edit or delete) their "
|
2125 |
"videos in front-end. The [aiovg_user_dashboard] short code must be on this "
|
2126 |
"page."
|
2127 |
msgstr ""
|
2128 |
|
2129 |
+
#: premium/admin/user.php:235 premium/includes/functions.php:241
|
2130 |
msgid "Video Form"
|
2131 |
msgstr ""
|
2132 |
|
2133 |
+
#: premium/admin/user.php:236
|
2134 |
msgid ""
|
2135 |
"This is the form page where the users can add their videos in front-end. The "
|
2136 |
"[aiovg_video_form] short code must be on this page."
|
2137 |
msgstr ""
|
2138 |
|
2139 |
+
#: premium/includes/functions.php:91
|
2140 |
+
#: premium/public/templates/user-dashboard.php:45
|
2141 |
+
#: public/templates/search-form-template-horizontal.php:44
|
2142 |
+
#: public/templates/search-form-template-vertical.php:44
|
2143 |
+
msgid "Search"
|
2144 |
+
msgstr ""
|
2145 |
+
|
2146 |
+
#: premium/includes/functions.php:92
|
2147 |
+
msgid "Playlist"
|
2148 |
+
msgstr ""
|
2149 |
+
|
2150 |
+
#: premium/includes/functions.php:93
|
2151 |
+
msgid "Channel"
|
2152 |
+
msgstr ""
|
2153 |
+
|
2154 |
+
#: premium/includes/functions.php:95
|
2155 |
+
msgid "Videos"
|
2156 |
+
msgstr ""
|
2157 |
+
|
2158 |
+
#: premium/includes/functions.php:216
|
2159 |
+
msgid "Scheduled"
|
2160 |
+
msgstr ""
|
2161 |
+
|
2162 |
+
#: premium/includes/functions.php:218
|
2163 |
+
msgid "Rescheduled"
|
2164 |
+
msgstr ""
|
2165 |
+
|
2166 |
+
#: premium/includes/functions.php:220
|
2167 |
+
msgid "Completed"
|
2168 |
+
msgstr ""
|
2169 |
+
|
2170 |
+
#: premium/includes/functions.php:294
|
2171 |
msgid "Forgot your password?"
|
2172 |
msgstr ""
|
2173 |
|
2174 |
+
#: premium/includes/functions.php:299
|
2175 |
msgid "Create an account"
|
2176 |
msgstr ""
|
2177 |
|
2178 |
+
#: premium/includes/functions.php:333 premium/includes/functions.php:363
|
2179 |
msgid "Active"
|
2180 |
msgstr ""
|
2181 |
|
2182 |
+
#: premium/includes/functions.php:333 premium/includes/functions.php:363
|
2183 |
msgid "Pending review"
|
2184 |
msgstr ""
|
2185 |
|
2186 |
+
#: premium/includes/functions.php:338
|
2187 |
msgid "[{site_name}] New video received"
|
2188 |
msgstr ""
|
2189 |
|
2190 |
+
#: premium/includes/functions.php:341
|
2191 |
msgid ""
|
2192 |
"Dear Administrator,<br /><br />You have received a new video on the website "
|
2193 |
"{site_name}.<br />This e-mail contains the video details:<br /><br />Video "
|
2196 |
"generated and is for information purposes only."
|
2197 |
msgstr ""
|
2198 |
|
2199 |
+
#: premium/includes/functions.php:368
|
2200 |
msgid "[{site_name}] Video \"{video_title}\" edited"
|
2201 |
msgstr ""
|
2202 |
|
2203 |
+
#: premium/includes/functions.php:371
|
2204 |
msgid ""
|
2205 |
"Dear Administrator,<br /><br />This notification was for the video on the "
|
2206 |
"website {site_name} \"{video_title}\" and is edited.<br />This e-mail "
|
2210 |
"information purposes only."
|
2211 |
msgstr ""
|
2212 |
|
2213 |
+
#: premium/includes/functions.php:397
|
2214 |
+
msgid "[{site_name}] {videos_count} videos auto imported"
|
2215 |
+
msgstr ""
|
2216 |
+
|
2217 |
+
#: premium/includes/functions.php:400
|
2218 |
+
msgid ""
|
2219 |
+
"Dear Administrator,<br /><br />You have {videos_count} videos auto imported "
|
2220 |
+
"on the website {site_name} and waiting for your approval. You can find those "
|
2221 |
+
"videos using the link below,<br />{videos_link}<br />Import Source: "
|
2222 |
+
"{import_source_link}<br /><br />Please do not respond to this message. It is "
|
2223 |
+
"automatically generated and is for information purposes only."
|
2224 |
+
msgstr ""
|
2225 |
+
|
2226 |
+
#: premium/includes/youtube.php:56
|
2227 |
+
msgid "YouTube API Key Missing."
|
2228 |
+
msgstr ""
|
2229 |
+
|
2230 |
+
#: premium/includes/youtube.php:60
|
2231 |
+
msgid "Import source not found."
|
2232 |
+
msgstr ""
|
2233 |
+
|
2234 |
+
#: premium/includes/youtube.php:375 premium/includes/youtube.php:425
|
2235 |
+
#: premium/includes/youtube.php:462
|
2236 |
+
msgid "No videos found matching your query."
|
2237 |
+
msgstr ""
|
2238 |
+
|
2239 |
+
#: premium/public/adaptive-streaming.php:46
|
2240 |
+
msgid "Adaptive / Live Streaming"
|
2241 |
+
msgstr ""
|
2242 |
+
|
2243 |
#: premium/public/public.php:83
|
2244 |
msgid "This is a required field."
|
2245 |
msgstr ""
|
2246 |
|
2247 |
+
#: premium/public/public.php:84 premium/public/user.php:316
|
2248 |
+
#: premium/public/user.php:321
|
2249 |
msgid "Invalid file format."
|
2250 |
msgstr ""
|
2251 |
|
2265 |
msgid "Unknown error."
|
2266 |
msgstr ""
|
2267 |
|
2268 |
+
#: premium/public/slider.php:100
|
2269 |
+
msgid "Arrow Top Offset (in percentage)"
|
2270 |
+
msgstr ""
|
2271 |
+
|
2272 |
+
#: premium/public/slider.php:110
|
2273 |
+
msgid "Arrow Left Offset (in pixels)"
|
2274 |
+
msgstr ""
|
2275 |
+
|
2276 |
+
#: premium/public/slider.php:120
|
2277 |
+
msgid "Arrow Right Offset (in pixels)"
|
2278 |
+
msgstr ""
|
2279 |
+
|
2280 |
+
#: premium/public/slider.php:137
|
2281 |
+
msgid "Dot Size"
|
2282 |
+
msgstr ""
|
2283 |
+
|
2284 |
#: premium/public/templates/user-dashboard.php:18
|
2285 |
#, php-format
|
2286 |
msgid ""
|
2292 |
msgid "Deleted"
|
2293 |
msgstr ""
|
2294 |
|
2295 |
+
#: premium/public/templates/user-dashboard.php:41
|
2296 |
+
#: public/templates/search-form-template-horizontal.php:20
|
2297 |
+
#: public/templates/search-form-template-vertical.php:20
|
2298 |
+
msgid "Search videos by title"
|
2299 |
+
msgstr ""
|
2300 |
+
|
2301 |
#: premium/public/templates/user-dashboard.php:66
|
2302 |
msgid "Actions"
|
2303 |
msgstr ""
|
2359 |
msgid "Video Title"
|
2360 |
msgstr ""
|
2361 |
|
2362 |
+
#: premium/public/templates/video-form.php:43
|
2363 |
+
msgid "Enter your video title here"
|
2364 |
+
msgstr ""
|
2365 |
+
|
2366 |
#: premium/public/templates/video-form.php:108
|
2367 |
#: premium/public/templates/video-form.php:152
|
2368 |
#: premium/public/templates/video-form.php:179
|
2370 |
msgid "cancel"
|
2371 |
msgstr ""
|
2372 |
|
2373 |
+
#: premium/public/templates/video-form.php:113
|
2374 |
+
#: premium/public/templates/video-form.php:157
|
2375 |
+
#: premium/public/templates/video-form.php:292
|
2376 |
+
msgid "Enter your Direct File URL here"
|
2377 |
+
msgstr ""
|
2378 |
+
|
2379 |
+
#: premium/public/templates/video-form.php:305
|
2380 |
+
msgid "Enter your video description here"
|
2381 |
+
msgstr ""
|
2382 |
+
|
2383 |
#: premium/public/templates/video-form.php:316
|
2384 |
#, php-format
|
2385 |
msgid ""
|
2386 |
"I agree to the <a href=\"%s\" target=\"_blank\">terms and conditions</a>"
|
2387 |
msgstr ""
|
2388 |
|
2389 |
+
#: premium/public/templates/video-form.php:333 premium/public/user.php:405
|
2390 |
+
msgid "Save Draft"
|
2391 |
+
msgstr ""
|
2392 |
+
|
2393 |
+
#: premium/public/templates/video-form.php:335
|
2394 |
+
msgid "Save Changes"
|
2395 |
+
msgstr ""
|
2396 |
+
|
2397 |
#: premium/public/templates/videos-template-popup.php:18
|
2398 |
#: premium/public/templates/videos-template-slider.php:79
|
2399 |
#: public/templates/videos-template-classic.php:18
|
2401 |
msgid "%d video(s) found"
|
2402 |
msgstr ""
|
2403 |
|
2404 |
+
#: premium/public/user.php:155 premium/public/user.php:169
|
2405 |
msgid "You do not have sufficient permissions to access this page."
|
2406 |
msgstr ""
|
2407 |
|
2408 |
+
#: premium/public/user.php:298 premium/public/user.php:311
|
|
|
|
|
|
|
|
|
2409 |
msgid "You do not have permission to upload files."
|
2410 |
msgstr ""
|
2411 |
|
2412 |
+
#: premium/public/user.php:327
|
2413 |
msgid "Sorry, this file type is not permitted for security reasons."
|
2414 |
msgstr ""
|
2415 |
|
2416 |
+
#: premium/public/user.php:337
|
2417 |
msgid "Sorry, this file size is not allowed."
|
2418 |
msgstr ""
|
2419 |
|
2420 |
+
#: premium/public/user.php:361
|
2421 |
msgid "File is empty. Please upload something more substantial."
|
2422 |
msgstr ""
|
2423 |
|
2445 |
"Publisher Tag (GPT)</a> in the <a href=\"%s\">plugin settings</a>."
|
2446 |
msgstr ""
|
2447 |
|
2448 |
+
#: public/public.php:590
|
2449 |
#, php-format
|
2450 |
msgid "Showing results for \"%s\""
|
2451 |
msgstr ""
|
2460 |
msgid "Select a Category"
|
2461 |
msgstr ""
|
2462 |
|
|
|
|
|
|
|
|
|
|
|
2463 |
#: public/templates/single-video.php:26
|
2464 |
#, php-format
|
2465 |
msgid "Posted %s ago"
|
public/assets/mediaelement/renderers/soundcloud.js
DELETED
@@ -1,307 +0,0 @@
|
|
1 |
-
/*!
|
2 |
-
* MediaElement.js
|
3 |
-
* http://www.mediaelementjs.com/
|
4 |
-
*
|
5 |
-
* Wrapper that mimics native HTML5 MediaElement (audio and video)
|
6 |
-
* using a variety of technologies (pure JavaScript, Flash, iframe)
|
7 |
-
*
|
8 |
-
* Copyright 2010-2017, John Dyer (http://j.hn/)
|
9 |
-
* License: MIT
|
10 |
-
*
|
11 |
-
*/(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
|
12 |
-
'use strict';
|
13 |
-
|
14 |
-
var SoundCloudApi = {
|
15 |
-
|
16 |
-
promise: null,
|
17 |
-
|
18 |
-
load: function load(settings) {
|
19 |
-
|
20 |
-
if (typeof SC !== 'undefined') {
|
21 |
-
SoundCloudApi._createPlayer(settings);
|
22 |
-
} else {
|
23 |
-
SoundCloudApi.promise = SoundCloudApi.promise || mejs.Utils.loadScript('https://w.soundcloud.com/player/api.js');
|
24 |
-
SoundCloudApi.promise.then(function () {
|
25 |
-
SoundCloudApi._createPlayer(settings);
|
26 |
-
});
|
27 |
-
}
|
28 |
-
},
|
29 |
-
|
30 |
-
_createPlayer: function _createPlayer(settings) {
|
31 |
-
var player = SC.Widget(settings.iframe);
|
32 |
-
window['__ready__' + settings.id](player);
|
33 |
-
}
|
34 |
-
};
|
35 |
-
|
36 |
-
var SoundCloudIframeRenderer = {
|
37 |
-
name: 'soundcloud_iframe',
|
38 |
-
options: {
|
39 |
-
prefix: 'soundcloud_iframe'
|
40 |
-
},
|
41 |
-
|
42 |
-
canPlayType: function canPlayType(type) {
|
43 |
-
return ~['video/soundcloud', 'video/x-soundcloud'].indexOf(type.toLowerCase());
|
44 |
-
},
|
45 |
-
|
46 |
-
create: function create(mediaElement, options, mediaFiles) {
|
47 |
-
var sc = {},
|
48 |
-
apiStack = [],
|
49 |
-
readyState = 4,
|
50 |
-
autoplay = mediaElement.originalNode.autoplay,
|
51 |
-
isVideo = mediaElement.originalNode !== null && mediaElement.originalNode.tagName.toLowerCase() === 'video';
|
52 |
-
|
53 |
-
var duration = 0,
|
54 |
-
currentTime = 0,
|
55 |
-
bufferedTime = 0,
|
56 |
-
volume = 1,
|
57 |
-
muted = false,
|
58 |
-
paused = true,
|
59 |
-
ended = false,
|
60 |
-
scPlayer = null,
|
61 |
-
scIframe = null;
|
62 |
-
|
63 |
-
sc.options = options;
|
64 |
-
sc.id = mediaElement.id + '_' + options.prefix;
|
65 |
-
sc.mediaElement = mediaElement;
|
66 |
-
|
67 |
-
var props = mejs.html5media.properties,
|
68 |
-
assignGettersSetters = function assignGettersSetters(propName) {
|
69 |
-
var capName = '' + propName.substring(0, 1).toUpperCase() + propName.substring(1);
|
70 |
-
|
71 |
-
sc['get' + capName] = function () {
|
72 |
-
if (scPlayer !== null) {
|
73 |
-
var value = null;
|
74 |
-
|
75 |
-
switch (propName) {
|
76 |
-
case 'currentTime':
|
77 |
-
return currentTime;
|
78 |
-
case 'duration':
|
79 |
-
return duration;
|
80 |
-
case 'volume':
|
81 |
-
return volume;
|
82 |
-
case 'paused':
|
83 |
-
return paused;
|
84 |
-
case 'ended':
|
85 |
-
return ended;
|
86 |
-
case 'muted':
|
87 |
-
return muted;
|
88 |
-
case 'buffered':
|
89 |
-
return {
|
90 |
-
start: function start() {
|
91 |
-
return 0;
|
92 |
-
},
|
93 |
-
end: function end() {
|
94 |
-
return bufferedTime * duration;
|
95 |
-
},
|
96 |
-
length: 1
|
97 |
-
};
|
98 |
-
case 'src':
|
99 |
-
return scIframe ? scIframe.src : '';
|
100 |
-
case 'readyState':
|
101 |
-
return readyState;
|
102 |
-
}
|
103 |
-
return value;
|
104 |
-
} else {
|
105 |
-
return null;
|
106 |
-
}
|
107 |
-
};
|
108 |
-
|
109 |
-
sc['set' + capName] = function (value) {
|
110 |
-
if (scPlayer !== null) {
|
111 |
-
switch (propName) {
|
112 |
-
case 'src':
|
113 |
-
var url = typeof value === 'string' ? value : value[0].src;
|
114 |
-
scPlayer.load(url);
|
115 |
-
if (autoplay) {
|
116 |
-
scPlayer.play();
|
117 |
-
}
|
118 |
-
break;
|
119 |
-
case 'currentTime':
|
120 |
-
scPlayer.seekTo(value * 1000);
|
121 |
-
break;
|
122 |
-
case 'muted':
|
123 |
-
if (value) {
|
124 |
-
scPlayer.setVolume(0);
|
125 |
-
} else {
|
126 |
-
scPlayer.setVolume(1);
|
127 |
-
}
|
128 |
-
setTimeout(function () {
|
129 |
-
var event = mejs.Utils.createEvent('volumechange', sc);
|
130 |
-
mediaElement.dispatchEvent(event);
|
131 |
-
}, 50);
|
132 |
-
break;
|
133 |
-
case 'volume':
|
134 |
-
scPlayer.setVolume(value);
|
135 |
-
setTimeout(function () {
|
136 |
-
var event = mejs.Utils.createEvent('volumechange', sc);
|
137 |
-
mediaElement.dispatchEvent(event);
|
138 |
-
}, 50);
|
139 |
-
break;
|
140 |
-
case 'readyState':
|
141 |
-
var event = mejs.Utils.createEvent('canplay', sc);
|
142 |
-
mediaElement.dispatchEvent(event);
|
143 |
-
break;
|
144 |
-
|
145 |
-
default:
|
146 |
-
|
147 |
-
break;
|
148 |
-
}
|
149 |
-
} else {
|
150 |
-
apiStack.push({ type: 'set', propName: propName, value: value });
|
151 |
-
}
|
152 |
-
};
|
153 |
-
};
|
154 |
-
|
155 |
-
for (var i = 0, total = props.length; i < total; i++) {
|
156 |
-
assignGettersSetters(props[i]);
|
157 |
-
}
|
158 |
-
|
159 |
-
var methods = mejs.html5media.methods,
|
160 |
-
assignMethods = function assignMethods(methodName) {
|
161 |
-
sc[methodName] = function () {
|
162 |
-
if (scPlayer !== null) {
|
163 |
-
switch (methodName) {
|
164 |
-
case 'play':
|
165 |
-
return scPlayer.play();
|
166 |
-
case 'pause':
|
167 |
-
return scPlayer.pause();
|
168 |
-
case 'load':
|
169 |
-
return null;
|
170 |
-
}
|
171 |
-
} else {
|
172 |
-
apiStack.push({ type: 'call', methodName: methodName });
|
173 |
-
}
|
174 |
-
};
|
175 |
-
};
|
176 |
-
|
177 |
-
for (var _i = 0, _total = methods.length; _i < _total; _i++) {
|
178 |
-
assignMethods(methods[_i]);
|
179 |
-
}
|
180 |
-
|
181 |
-
window['__ready__' + sc.id] = function (_scPlayer) {
|
182 |
-
|
183 |
-
mediaElement.scPlayer = scPlayer = _scPlayer;
|
184 |
-
|
185 |
-
if (autoplay) {
|
186 |
-
scPlayer.play();
|
187 |
-
}
|
188 |
-
|
189 |
-
if (apiStack.length) {
|
190 |
-
for (var _i2 = 0, _total2 = apiStack.length; _i2 < _total2; _i2++) {
|
191 |
-
|
192 |
-
var stackItem = apiStack[_i2];
|
193 |
-
|
194 |
-
if (stackItem.type === 'set') {
|
195 |
-
var propName = stackItem.propName,
|
196 |
-
capName = '' + propName.substring(0, 1).toUpperCase() + propName.substring(1);
|
197 |
-
|
198 |
-
sc['set' + capName](stackItem.value);
|
199 |
-
} else if (stackItem.type === 'call') {
|
200 |
-
sc[stackItem.methodName]();
|
201 |
-
}
|
202 |
-
}
|
203 |
-
}
|
204 |
-
|
205 |
-
scPlayer.bind(SC.Widget.Events.PLAY_PROGRESS, function () {
|
206 |
-
paused = false;
|
207 |
-
ended = false;
|
208 |
-
scPlayer.getPosition(function (_currentTime) {
|
209 |
-
currentTime = _currentTime / 1000;
|
210 |
-
var event = mejs.Utils.createEvent('timeupdate', sc);
|
211 |
-
mediaElement.dispatchEvent(event);
|
212 |
-
});
|
213 |
-
});
|
214 |
-
scPlayer.bind(SC.Widget.Events.PAUSE, function () {
|
215 |
-
paused = true;
|
216 |
-
var event = mejs.Utils.createEvent('pause', sc);
|
217 |
-
mediaElement.dispatchEvent(event);
|
218 |
-
});
|
219 |
-
scPlayer.bind(SC.Widget.Events.PLAY, function () {
|
220 |
-
paused = false;
|
221 |
-
ended = false;
|
222 |
-
var event = mejs.Utils.createEvent('play', sc);
|
223 |
-
mediaElement.dispatchEvent(event);
|
224 |
-
});
|
225 |
-
scPlayer.bind(SC.Widget.Events.FINISHED, function () {
|
226 |
-
paused = false;
|
227 |
-
ended = true;
|
228 |
-
var event = mejs.Utils.createEvent('ended', sc);
|
229 |
-
mediaElement.dispatchEvent(event);
|
230 |
-
});
|
231 |
-
scPlayer.bind(SC.Widget.Events.READY, function () {
|
232 |
-
scPlayer.getDuration(function (_duration) {
|
233 |
-
duration = _duration / 1000;
|
234 |
-
var event = mejs.Utils.createEvent('loadedmetadata', sc);
|
235 |
-
mediaElement.dispatchEvent(event);
|
236 |
-
});
|
237 |
-
});
|
238 |
-
scPlayer.bind(SC.Widget.Events.LOAD_PROGRESS, function () {
|
239 |
-
scPlayer.getDuration(function (loadProgress) {
|
240 |
-
if (duration > 0) {
|
241 |
-
bufferedTime = duration * loadProgress;
|
242 |
-
var event = mejs.Utils.createEvent('progress', sc);
|
243 |
-
mediaElement.dispatchEvent(event);
|
244 |
-
}
|
245 |
-
});
|
246 |
-
scPlayer.getDuration(function (_duration) {
|
247 |
-
duration = _duration;
|
248 |
-
|
249 |
-
var event = mejs.Utils.createEvent('loadedmetadata', sc);
|
250 |
-
mediaElement.dispatchEvent(event);
|
251 |
-
});
|
252 |
-
});
|
253 |
-
|
254 |
-
var initEvents = ['rendererready', 'loadeddata', 'loadedmetadata', 'canplay'];
|
255 |
-
for (var _i3 = 0, _total3 = initEvents.length; _i3 < _total3; _i3++) {
|
256 |
-
var event = mejs.Utils.createEvent(initEvents[_i3], sc);
|
257 |
-
mediaElement.dispatchEvent(event);
|
258 |
-
}
|
259 |
-
};
|
260 |
-
|
261 |
-
scIframe = document.createElement('iframe');
|
262 |
-
scIframe.id = sc.id;
|
263 |
-
scIframe.width = isVideo ? '100%' : 1;
|
264 |
-
scIframe.height = isVideo ? '100%' : 1;
|
265 |
-
scIframe.frameBorder = 0;
|
266 |
-
scIframe.style.visibility = isVideo ? 'visible' : 'hidden';
|
267 |
-
scIframe.src = mediaFiles[0].src;
|
268 |
-
scIframe.scrolling = 'no';
|
269 |
-
|
270 |
-
mediaElement.appendChild(scIframe);
|
271 |
-
mediaElement.originalNode.style.display = 'none';
|
272 |
-
|
273 |
-
var scSettings = {
|
274 |
-
iframe: scIframe,
|
275 |
-
id: sc.id
|
276 |
-
};
|
277 |
-
|
278 |
-
SoundCloudApi.load(scSettings);
|
279 |
-
|
280 |
-
sc.setSize = function () {};
|
281 |
-
sc.hide = function () {
|
282 |
-
sc.pause();
|
283 |
-
if (scIframe) {
|
284 |
-
scIframe.style.display = 'none';
|
285 |
-
}
|
286 |
-
};
|
287 |
-
sc.show = function () {
|
288 |
-
if (scIframe) {
|
289 |
-
scIframe.style.display = '';
|
290 |
-
}
|
291 |
-
};
|
292 |
-
sc.destroy = function () {
|
293 |
-
scPlayer.destroy();
|
294 |
-
};
|
295 |
-
|
296 |
-
return sc;
|
297 |
-
}
|
298 |
-
};
|
299 |
-
|
300 |
-
mejs.Utils.typeChecks.push(function (url) {
|
301 |
-
return (/\/\/(w\.)?soundcloud.com/i.test(url) ? 'video/x-soundcloud' : null
|
302 |
-
);
|
303 |
-
});
|
304 |
-
|
305 |
-
mejs.Renderers.add(SoundCloudIframeRenderer);
|
306 |
-
|
307 |
-
},{}]},{},[1]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public/assets/mediaelement/renderers/soundcloud.min.js
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
/*!
|
2 |
-
* MediaElement.js
|
3 |
-
* http://www.mediaelementjs.com/
|
4 |
-
*
|
5 |
-
* Wrapper that mimics native HTML5 MediaElement (audio and video)
|
6 |
-
* using a variety of technologies (pure JavaScript, Flash, iframe)
|
7 |
-
*
|
8 |
-
* Copyright 2010-2017, John Dyer (http://j.hn/)
|
9 |
-
* License: MIT
|
10 |
-
*
|
11 |
-
*/
|
12 |
-
!function e(t,n,r){function a(s,o){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!o&&u)return u(s,!0);if(i)return i(s,!0);var d=new Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var c=n[s]={exports:{}};t[s][0].call(c.exports,function(e){var n=t[s][1][e];return a(n||e)},c,c.exports,e,t,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)a(r[s]);return a}({1:[function(e,t,n){"use strict";var r={promise:null,load:function(e){"undefined"!=typeof SC?r._createPlayer(e):(r.promise=r.promise||mejs.Utils.loadScript("https://w.soundcloud.com/player/api.js"),r.promise.then(function(){r._createPlayer(e)}))},_createPlayer:function(e){var t=SC.Widget(e.iframe);window["__ready__"+e.id](t)}},a={name:"soundcloud_iframe",options:{prefix:"soundcloud_iframe"},canPlayType:function(e){return~["video/soundcloud","video/x-soundcloud"].indexOf(e.toLowerCase())},create:function(e,t,n){var a={},i=[],s=e.originalNode.autoplay,o=null!==e.originalNode&&"video"===e.originalNode.tagName.toLowerCase(),u=0,d=0,c=0,l=!0,p=!1,f=null,v=null;a.options=t,a.id=e.id+"_"+t.prefix,a.mediaElement=e;for(var m=mejs.html5media.properties,h=0,y=m.length;h<y;h++)!function(t){var n=""+t.substring(0,1).toUpperCase()+t.substring(1);a["get"+n]=function(){if(null!==f){switch(t){case"currentTime":return d;case"duration":return u;case"volume":return 1;case"paused":return l;case"ended":return p;case"muted":return!1;case"buffered":return{start:function(){return 0},end:function(){return c*u},length:1};case"src":return v?v.src:"";case"readyState":return 4}return null}return null},a["set"+n]=function(n){if(null!==f)switch(t){case"src":var r="string"==typeof n?n:n[0].src;f.load(r),s&&f.play();break;case"currentTime":f.seekTo(1e3*n);break;case"muted":n?f.setVolume(0):f.setVolume(1),setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",a);e.dispatchEvent(t)},50);break;case"volume":f.setVolume(n),setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",a);e.dispatchEvent(t)},50);break;case"readyState":var o=mejs.Utils.createEvent("canplay",a);e.dispatchEvent(o)}else i.push({type:"set",propName:t,value:n})}}(m[h]);for(var E=mejs.html5media.methods,g=0,S=E.length;g<S;g++)!function(e){a[e]=function(){if(null!==f)switch(e){case"play":return f.play();case"pause":return f.pause();case"load":return null}else i.push({type:"call",methodName:e})}}(E[g]);window["__ready__"+a.id]=function(t){if(e.scPlayer=f=t,s&&f.play(),i.length)for(var n=0,r=i.length;n<r;n++){var o=i[n];if("set"===o.type){var v=o.propName,m=""+v.substring(0,1).toUpperCase()+v.substring(1);a["set"+m](o.value)}else"call"===o.type&&a[o.methodName]()}f.bind(SC.Widget.Events.PLAY_PROGRESS,function(){l=!1,p=!1,f.getPosition(function(t){d=t/1e3;var n=mejs.Utils.createEvent("timeupdate",a);e.dispatchEvent(n)})}),f.bind(SC.Widget.Events.PAUSE,function(){l=!0;var t=mejs.Utils.createEvent("pause",a);e.dispatchEvent(t)}),f.bind(SC.Widget.Events.PLAY,function(){l=!1,p=!1;var t=mejs.Utils.createEvent("play",a);e.dispatchEvent(t)}),f.bind(SC.Widget.Events.FINISHED,function(){l=!1,p=!0;var t=mejs.Utils.createEvent("ended",a);e.dispatchEvent(t)}),f.bind(SC.Widget.Events.READY,function(){f.getDuration(function(t){u=t/1e3;var n=mejs.Utils.createEvent("loadedmetadata",a);e.dispatchEvent(n)})}),f.bind(SC.Widget.Events.LOAD_PROGRESS,function(){f.getDuration(function(t){if(u>0){c=u*t;var n=mejs.Utils.createEvent("progress",a);e.dispatchEvent(n)}}),f.getDuration(function(t){u=t;var n=mejs.Utils.createEvent("loadedmetadata",a);e.dispatchEvent(n)})});for(var h=["rendererready","loadeddata","loadedmetadata","canplay"],y=0,E=h.length;y<E;y++){var g=mejs.Utils.createEvent(h[y],a);e.dispatchEvent(g)}},(v=document.createElement("iframe")).id=a.id,v.width=o?"100%":1,v.height=o?"100%":1,v.frameBorder=0,v.style.visibility=o?"visible":"hidden",v.src=n[0].src,v.scrolling="no",e.appendChild(v),e.originalNode.style.display="none";var U={iframe:v,id:a.id};return r.load(U),a.setSize=function(){},a.hide=function(){a.pause(),v&&(v.style.display="none")},a.show=function(){v&&(v.style.display="")},a.destroy=function(){f.destroy()},a}};mejs.Utils.typeChecks.push(function(e){return/\/\/(w\.)?soundcloud.com/i.test(e)?"video/x-soundcloud":null}),mejs.Renderers.add(a)},{}]},{},[1]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public/assets/mediaelement/renderers/twitch.js
DELETED
@@ -1,374 +0,0 @@
|
|
1 |
-
/*!
|
2 |
-
* MediaElement.js
|
3 |
-
* http://www.mediaelementjs.com/
|
4 |
-
*
|
5 |
-
* Wrapper that mimics native HTML5 MediaElement (audio and video)
|
6 |
-
* using a variety of technologies (pure JavaScript, Flash, iframe)
|
7 |
-
*
|
8 |
-
* Copyright 2010-2017, John Dyer (http://j.hn/)
|
9 |
-
* License: MIT
|
10 |
-
*
|
11 |
-
*/(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
|
12 |
-
'use strict';
|
13 |
-
|
14 |
-
var TwitchApi = {
|
15 |
-
|
16 |
-
promise: null,
|
17 |
-
|
18 |
-
load: function load(settings) {
|
19 |
-
if (typeof Twitch !== 'undefined') {
|
20 |
-
TwitchApi.promise = new Promise(function (resolve) {
|
21 |
-
resolve();
|
22 |
-
}).then(function () {
|
23 |
-
TwitchApi._createPlayer(settings);
|
24 |
-
});
|
25 |
-
} else {
|
26 |
-
TwitchApi.promise = TwitchApi.promise || mejs.Utils.loadScript('https://player.twitch.tv/js/embed/v1.js');
|
27 |
-
TwitchApi.promise.then(function () {
|
28 |
-
TwitchApi._createPlayer(settings);
|
29 |
-
});
|
30 |
-
}
|
31 |
-
},
|
32 |
-
|
33 |
-
_createPlayer: function _createPlayer(settings) {
|
34 |
-
var player = new Twitch.Player(settings.id, settings);
|
35 |
-
window['__ready__' + settings.id](player);
|
36 |
-
},
|
37 |
-
|
38 |
-
getTwitchId: function getTwitchId(url) {
|
39 |
-
var twitchId = '';
|
40 |
-
|
41 |
-
if (url.indexOf('?') > 0) {
|
42 |
-
twitchId = TwitchApi.getTwitchIdFromParam(url);
|
43 |
-
if (twitchId === '') {
|
44 |
-
twitchId = TwitchApi.getTwitchIdFromUrl(url);
|
45 |
-
}
|
46 |
-
} else {
|
47 |
-
twitchId = TwitchApi.getTwitchIdFromUrl(url);
|
48 |
-
}
|
49 |
-
|
50 |
-
return twitchId;
|
51 |
-
},
|
52 |
-
|
53 |
-
getTwitchIdFromParam: function getTwitchIdFromParam(url) {
|
54 |
-
if (url === undefined || url === null || !url.trim().length) {
|
55 |
-
return null;
|
56 |
-
}
|
57 |
-
|
58 |
-
var parts = url.split('?'),
|
59 |
-
parameters = parts[1].split('&');
|
60 |
-
|
61 |
-
var twitchId = '';
|
62 |
-
|
63 |
-
for (var i = 0, total = parameters.length; i < total; i++) {
|
64 |
-
var paramParts = parameters[i].split('=');
|
65 |
-
if (~paramParts[0].indexOf('channel')) {
|
66 |
-
twitchId = paramParts[1];
|
67 |
-
break;
|
68 |
-
} else if (~paramParts[0].indexOf('video')) {
|
69 |
-
twitchId = 'v' + paramParts[1];
|
70 |
-
break;
|
71 |
-
}
|
72 |
-
}
|
73 |
-
|
74 |
-
return twitchId;
|
75 |
-
},
|
76 |
-
|
77 |
-
getTwitchIdFromUrl: function getTwitchIdFromUrl(url) {
|
78 |
-
if (url === undefined || url === null || !url.trim().length) {
|
79 |
-
return null;
|
80 |
-
}
|
81 |
-
|
82 |
-
var parts = url.split('?');
|
83 |
-
url = parts[0];
|
84 |
-
var id = url.substring(url.lastIndexOf('/') + 1);
|
85 |
-
return (/^\d+$/i.test(id) ? 'v' + id : id
|
86 |
-
);
|
87 |
-
},
|
88 |
-
|
89 |
-
getTwitchType: function getTwitchType(id) {
|
90 |
-
return (/^v\d+/i.test(id) ? 'video' : 'channel'
|
91 |
-
);
|
92 |
-
}
|
93 |
-
};
|
94 |
-
|
95 |
-
var TwitchIframeRenderer = {
|
96 |
-
name: 'twitch_iframe',
|
97 |
-
options: {
|
98 |
-
prefix: 'twitch_iframe'
|
99 |
-
},
|
100 |
-
|
101 |
-
canPlayType: function canPlayType(type) {
|
102 |
-
return ~['video/twitch', 'video/x-twitch'].indexOf(type.toLowerCase());
|
103 |
-
},
|
104 |
-
|
105 |
-
create: function create(mediaElement, options, mediaFiles) {
|
106 |
-
var twitch = {},
|
107 |
-
apiStack = [],
|
108 |
-
readyState = 4,
|
109 |
-
twitchId = TwitchApi.getTwitchId(mediaFiles[0].src);
|
110 |
-
|
111 |
-
var twitchPlayer = null,
|
112 |
-
paused = true,
|
113 |
-
ended = false,
|
114 |
-
hasStartedPlaying = false,
|
115 |
-
volume = 1,
|
116 |
-
duration = Infinity,
|
117 |
-
time = 0;
|
118 |
-
|
119 |
-
twitch.options = options;
|
120 |
-
twitch.id = mediaElement.id + '_' + options.prefix;
|
121 |
-
twitch.mediaElement = mediaElement;
|
122 |
-
|
123 |
-
var props = mejs.html5media.properties,
|
124 |
-
assignGettersSetters = function assignGettersSetters(propName) {
|
125 |
-
var capName = '' + propName.substring(0, 1).toUpperCase() + propName.substring(1);
|
126 |
-
|
127 |
-
twitch['get' + capName] = function () {
|
128 |
-
if (twitchPlayer !== null) {
|
129 |
-
var value = null;
|
130 |
-
|
131 |
-
switch (propName) {
|
132 |
-
case 'currentTime':
|
133 |
-
time = twitchPlayer.getCurrentTime();
|
134 |
-
return time;
|
135 |
-
case 'duration':
|
136 |
-
duration = twitchPlayer.getDuration();
|
137 |
-
return duration;
|
138 |
-
case 'volume':
|
139 |
-
volume = twitchPlayer.getVolume();
|
140 |
-
return volume;
|
141 |
-
case 'paused':
|
142 |
-
paused = twitchPlayer.isPaused();
|
143 |
-
return paused;
|
144 |
-
case 'ended':
|
145 |
-
ended = twitchPlayer.getEnded();
|
146 |
-
return ended;
|
147 |
-
case 'muted':
|
148 |
-
return twitchPlayer.getMuted();
|
149 |
-
case 'buffered':
|
150 |
-
return {
|
151 |
-
start: function start() {
|
152 |
-
return 0;
|
153 |
-
},
|
154 |
-
end: function end() {
|
155 |
-
return 0;
|
156 |
-
},
|
157 |
-
length: 1
|
158 |
-
};
|
159 |
-
case 'src':
|
160 |
-
return TwitchApi.getTwitchType(twitchId) === 'channel' ? twitchPlayer.getChannel() : twitchPlayer.getVideo();
|
161 |
-
case 'readyState':
|
162 |
-
return readyState;
|
163 |
-
}
|
164 |
-
|
165 |
-
return value;
|
166 |
-
} else {
|
167 |
-
return null;
|
168 |
-
}
|
169 |
-
};
|
170 |
-
|
171 |
-
twitch['set' + capName] = function (value) {
|
172 |
-
if (twitchPlayer !== null) {
|
173 |
-
switch (propName) {
|
174 |
-
case 'src':
|
175 |
-
var url = typeof value === 'string' ? value : value[0].src,
|
176 |
-
videoId = TwitchApi.getTwitchId(url);
|
177 |
-
|
178 |
-
if (TwitchApi.getTwitchType(twitchId) === 'channel') {
|
179 |
-
twitchPlayer.setChannel(videoId);
|
180 |
-
} else {
|
181 |
-
twitchPlayer.setVideo(videoId);
|
182 |
-
}
|
183 |
-
break;
|
184 |
-
case 'currentTime':
|
185 |
-
twitchPlayer.seek(value);
|
186 |
-
setTimeout(function () {
|
187 |
-
var event = mejs.Utils.createEvent('timeupdate', twitch);
|
188 |
-
mediaElement.dispatchEvent(event);
|
189 |
-
}, 50);
|
190 |
-
break;
|
191 |
-
case 'muted':
|
192 |
-
twitchPlayer.setMuted(value);
|
193 |
-
setTimeout(function () {
|
194 |
-
var event = mejs.Utils.createEvent('volumechange', twitch);
|
195 |
-
mediaElement.dispatchEvent(event);
|
196 |
-
}, 50);
|
197 |
-
break;
|
198 |
-
case 'volume':
|
199 |
-
volume = value;
|
200 |
-
twitchPlayer.setVolume(value);
|
201 |
-
setTimeout(function () {
|
202 |
-
var event = mejs.Utils.createEvent('volumechange', twitch);
|
203 |
-
mediaElement.dispatchEvent(event);
|
204 |
-
}, 50);
|
205 |
-
break;
|
206 |
-
case 'readyState':
|
207 |
-
var event = mejs.Utils.createEvent('canplay', twitch);
|
208 |
-
mediaElement.dispatchEvent(event);
|
209 |
-
break;
|
210 |
-
default:
|
211 |
-
|
212 |
-
break;
|
213 |
-
}
|
214 |
-
} else {
|
215 |
-
apiStack.push({ type: 'set', propName: propName, value: value });
|
216 |
-
}
|
217 |
-
};
|
218 |
-
};
|
219 |
-
|
220 |
-
for (var i = 0, total = props.length; i < total; i++) {
|
221 |
-
assignGettersSetters(props[i]);
|
222 |
-
}
|
223 |
-
|
224 |
-
var methods = mejs.html5media.methods,
|
225 |
-
assignMethods = function assignMethods(methodName) {
|
226 |
-
twitch[methodName] = function () {
|
227 |
-
if (twitchPlayer !== null) {
|
228 |
-
switch (methodName) {
|
229 |
-
case 'play':
|
230 |
-
paused = false;
|
231 |
-
return twitchPlayer.play();
|
232 |
-
case 'pause':
|
233 |
-
paused = true;
|
234 |
-
return twitchPlayer.pause();
|
235 |
-
case 'load':
|
236 |
-
return null;
|
237 |
-
}
|
238 |
-
} else {
|
239 |
-
apiStack.push({ type: 'call', methodName: methodName });
|
240 |
-
}
|
241 |
-
};
|
242 |
-
};
|
243 |
-
|
244 |
-
for (var _i = 0, _total = methods.length; _i < _total; _i++) {
|
245 |
-
assignMethods(methods[_i]);
|
246 |
-
}
|
247 |
-
|
248 |
-
function sendEvents(events) {
|
249 |
-
for (var _i2 = 0, _total2 = events.length; _i2 < _total2; _i2++) {
|
250 |
-
var event = mejs.Utils.createEvent(events[_i2], twitch);
|
251 |
-
mediaElement.dispatchEvent(event);
|
252 |
-
}
|
253 |
-
}
|
254 |
-
|
255 |
-
window['__ready__' + twitch.id] = function (_twitchPlayer) {
|
256 |
-
mediaElement.twitchPlayer = twitchPlayer = _twitchPlayer;
|
257 |
-
|
258 |
-
if (apiStack.length) {
|
259 |
-
for (var _i3 = 0, _total3 = apiStack.length; _i3 < _total3; _i3++) {
|
260 |
-
var stackItem = apiStack[_i3];
|
261 |
-
|
262 |
-
if (stackItem.type === 'set') {
|
263 |
-
var propName = stackItem.propName,
|
264 |
-
capName = '' + propName.substring(0, 1).toUpperCase() + propName.substring(1);
|
265 |
-
|
266 |
-
twitch['set' + capName](stackItem.value);
|
267 |
-
} else if (stackItem.type === 'call') {
|
268 |
-
twitch[stackItem.methodName]();
|
269 |
-
}
|
270 |
-
}
|
271 |
-
}
|
272 |
-
|
273 |
-
var twitchIframe = document.getElementById(twitch.id).firstChild;
|
274 |
-
twitchIframe.style.width = '100%';
|
275 |
-
twitchIframe.style.height = '100%';
|
276 |
-
|
277 |
-
var events = ['mouseover', 'mouseout'],
|
278 |
-
assignEvents = function assignEvents(e) {
|
279 |
-
var event = mejs.Utils.createEvent(e.type, twitch);
|
280 |
-
mediaElement.dispatchEvent(event);
|
281 |
-
};
|
282 |
-
|
283 |
-
for (var _i4 = 0, _total4 = events.length; _i4 < _total4; _i4++) {
|
284 |
-
twitchIframe.addEventListener(events[_i4], assignEvents, false);
|
285 |
-
}
|
286 |
-
|
287 |
-
var timer = void 0;
|
288 |
-
|
289 |
-
twitchPlayer.addEventListener(Twitch.Player.READY, function () {
|
290 |
-
paused = false;
|
291 |
-
ended = false;
|
292 |
-
sendEvents(['rendererready', 'loadedmetadata', 'loadeddata', 'canplay']);
|
293 |
-
});
|
294 |
-
twitchPlayer.addEventListener(Twitch.Player.PLAY, function () {
|
295 |
-
if (!hasStartedPlaying) {
|
296 |
-
hasStartedPlaying = true;
|
297 |
-
}
|
298 |
-
paused = false;
|
299 |
-
ended = false;
|
300 |
-
sendEvents(['play', 'playing', 'progress']);
|
301 |
-
|
302 |
-
timer = setInterval(function () {
|
303 |
-
twitchPlayer.getCurrentTime();
|
304 |
-
sendEvents(['timeupdate']);
|
305 |
-
}, 250);
|
306 |
-
});
|
307 |
-
twitchPlayer.addEventListener(Twitch.Player.PAUSE, function () {
|
308 |
-
paused = true;
|
309 |
-
ended = false;
|
310 |
-
if (!twitchPlayer.getEnded()) {
|
311 |
-
sendEvents(['pause']);
|
312 |
-
}
|
313 |
-
});
|
314 |
-
twitchPlayer.addEventListener(Twitch.Player.ENDED, function () {
|
315 |
-
paused = true;
|
316 |
-
ended = true;
|
317 |
-
sendEvents(['ended']);
|
318 |
-
clearInterval(timer);
|
319 |
-
hasStartedPlaying = false;
|
320 |
-
timer = null;
|
321 |
-
});
|
322 |
-
};
|
323 |
-
|
324 |
-
var height = mediaElement.originalNode.height,
|
325 |
-
width = mediaElement.originalNode.width,
|
326 |
-
twitchContainer = document.createElement('div'),
|
327 |
-
type = TwitchApi.getTwitchType(twitchId),
|
328 |
-
twitchSettings = {
|
329 |
-
id: twitch.id,
|
330 |
-
width: width,
|
331 |
-
height: height,
|
332 |
-
playsinline: false,
|
333 |
-
autoplay: mediaElement.originalNode.autoplay,
|
334 |
-
muted: mediaElement.originalNode.muted
|
335 |
-
};
|
336 |
-
|
337 |
-
twitchSettings[type] = twitchId;
|
338 |
-
twitchContainer.id = twitch.id;
|
339 |
-
twitchContainer.style.width = '100%';
|
340 |
-
twitchContainer.style.height = '100%';
|
341 |
-
|
342 |
-
mediaElement.originalNode.parentNode.insertBefore(twitchContainer, mediaElement.originalNode);
|
343 |
-
mediaElement.originalNode.style.display = 'none';
|
344 |
-
mediaElement.originalNode.autoplay = false;
|
345 |
-
|
346 |
-
twitch.setSize = function (width, height) {
|
347 |
-
if (TwitchApi !== null && !isNaN(width) && !isNaN(height)) {
|
348 |
-
twitchContainer.setAttribute('width', width);
|
349 |
-
twitchContainer.setAttribute('height', height);
|
350 |
-
}
|
351 |
-
};
|
352 |
-
twitch.hide = function () {
|
353 |
-
twitch.pause();
|
354 |
-
twitchContainer.style.display = 'none';
|
355 |
-
};
|
356 |
-
twitch.show = function () {
|
357 |
-
twitchContainer.style.display = '';
|
358 |
-
};
|
359 |
-
twitch.destroy = function () {};
|
360 |
-
|
361 |
-
TwitchApi.load(twitchSettings);
|
362 |
-
|
363 |
-
return twitch;
|
364 |
-
}
|
365 |
-
};
|
366 |
-
|
367 |
-
mejs.Utils.typeChecks.push(function (url) {
|
368 |
-
return (/\/\/(www|player).twitch.tv/i.test(url) ? 'video/x-twitch' : null
|
369 |
-
);
|
370 |
-
});
|
371 |
-
|
372 |
-
mejs.Renderers.add(TwitchIframeRenderer);
|
373 |
-
|
374 |
-
},{}]},{},[1]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public/assets/mediaelement/renderers/twitch.min.js
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
/*!
|
2 |
-
* MediaElement.js
|
3 |
-
* http://www.mediaelementjs.com/
|
4 |
-
*
|
5 |
-
* Wrapper that mimics native HTML5 MediaElement (audio and video)
|
6 |
-
* using a variety of technologies (pure JavaScript, Flash, iframe)
|
7 |
-
*
|
8 |
-
* Copyright 2010-2017, John Dyer (http://j.hn/)
|
9 |
-
* License: MIT
|
10 |
-
*
|
11 |
-
*/
|
12 |
-
!function e(t,n,r){function i(s,o){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!o&&u)return u(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var d=n[s]={exports:{}};t[s][0].call(d.exports,function(e){var n=t[s][1][e];return i(n||e)},d,d.exports,e,t,n,r)}return n[s].exports}for(var a="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){"use strict";var r={promise:null,load:function(e){"undefined"!=typeof Twitch?r.promise=new Promise(function(e){e()}).then(function(){r._createPlayer(e)}):(r.promise=r.promise||mejs.Utils.loadScript("https://player.twitch.tv/js/embed/v1.js"),r.promise.then(function(){r._createPlayer(e)}))},_createPlayer:function(e){var t=new Twitch.Player(e.id,e);window["__ready__"+e.id](t)},getTwitchId:function(e){var t="";return e.indexOf("?")>0?""===(t=r.getTwitchIdFromParam(e))&&(t=r.getTwitchIdFromUrl(e)):t=r.getTwitchIdFromUrl(e),t},getTwitchIdFromParam:function(e){if(void 0===e||null===e||!e.trim().length)return null;for(var t=e.split("?")[1].split("&"),n="",r=0,i=t.length;r<i;r++){var a=t[r].split("=");if(~a[0].indexOf("channel")){n=a[1];break}if(~a[0].indexOf("video")){n="v"+a[1];break}}return n},getTwitchIdFromUrl:function(e){if(void 0===e||null===e||!e.trim().length)return null;var t=(e=e.split("?")[0]).substring(e.lastIndexOf("/")+1);return/^\d+$/i.test(t)?"v"+t:t},getTwitchType:function(e){return/^v\d+/i.test(e)?"video":"channel"}},i={name:"twitch_iframe",options:{prefix:"twitch_iframe"},canPlayType:function(e){return~["video/twitch","video/x-twitch"].indexOf(e.toLowerCase())},create:function(e,t,n){function i(t){for(var n=0,r=t.length;n<r;n++){var i=mejs.Utils.createEvent(t[n],a);e.dispatchEvent(i)}}var a={},s=[],o=r.getTwitchId(n[0].src),u=null,l=!0,d=!1,c=!1,h=1,f=1/0,p=0;a.options=t,a.id=e.id+"_"+t.prefix,a.mediaElement=e;for(var v=mejs.html5media.properties,m=0,g=v.length;m<g;m++)!function(t){var n=""+t.substring(0,1).toUpperCase()+t.substring(1);a["get"+n]=function(){if(null!==u){switch(t){case"currentTime":return p=u.getCurrentTime();case"duration":return f=u.getDuration();case"volume":return h=u.getVolume();case"paused":return l=u.isPaused();case"ended":return d=u.getEnded();case"muted":return u.getMuted();case"buffered":return{start:function(){return 0},end:function(){return 0},length:1};case"src":return"channel"===r.getTwitchType(o)?u.getChannel():u.getVideo();case"readyState":return 4}return null}return null},a["set"+n]=function(n){if(null!==u)switch(t){case"src":var i="string"==typeof n?n:n[0].src,l=r.getTwitchId(i);"channel"===r.getTwitchType(o)?u.setChannel(l):u.setVideo(l);break;case"currentTime":u.seek(n),setTimeout(function(){var t=mejs.Utils.createEvent("timeupdate",a);e.dispatchEvent(t)},50);break;case"muted":u.setMuted(n),setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",a);e.dispatchEvent(t)},50);break;case"volume":h=n,u.setVolume(n),setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",a);e.dispatchEvent(t)},50);break;case"readyState":var d=mejs.Utils.createEvent("canplay",a);e.dispatchEvent(d)}else s.push({type:"set",propName:t,value:n})}}(v[m]);for(var y=mejs.html5media.methods,w=0,T=y.length;w<T;w++)!function(e){a[e]=function(){if(null!==u)switch(e){case"play":return l=!1,u.play();case"pause":return l=!0,u.pause();case"load":return null}else s.push({type:"call",methodName:e})}}(y[w]);window["__ready__"+a.id]=function(t){if(e.twitchPlayer=u=t,s.length)for(var n=0,r=s.length;n<r;n++){var o=s[n];if("set"===o.type){var h=o.propName,f=""+h.substring(0,1).toUpperCase()+h.substring(1);a["set"+f](o.value)}else"call"===o.type&&a[o.methodName]()}var p=document.getElementById(a.id).firstChild;p.style.width="100%",p.style.height="100%";for(var v=["mouseover","mouseout"],m=0,g=v.length;m<g;m++)p.addEventListener(v[m],function(t){var n=mejs.Utils.createEvent(t.type,a);e.dispatchEvent(n)},!1);var y=void 0;u.addEventListener(Twitch.Player.READY,function(){l=!1,d=!1,i(["rendererready","loadedmetadata","loadeddata","canplay"])}),u.addEventListener(Twitch.Player.PLAY,function(){c||(c=!0),l=!1,d=!1,i(["play","playing","progress"]),y=setInterval(function(){u.getCurrentTime(),i(["timeupdate"])},250)}),u.addEventListener(Twitch.Player.PAUSE,function(){l=!0,d=!1,u.getEnded()||i(["pause"])}),u.addEventListener(Twitch.Player.ENDED,function(){l=!0,d=!0,i(["ended"]),clearInterval(y),c=!1,y=null})};var E=e.originalNode.height,N=e.originalNode.width,P=document.createElement("div"),U=r.getTwitchType(o),_={id:a.id,width:N,height:E,playsinline:!1,autoplay:e.originalNode.autoplay,muted:e.originalNode.muted};return _[U]=o,P.id=a.id,P.style.width="100%",P.style.height="100%",e.originalNode.parentNode.insertBefore(P,e.originalNode),e.originalNode.style.display="none",e.originalNode.autoplay=!1,a.setSize=function(e,t){null===r||isNaN(e)||isNaN(t)||(P.setAttribute("width",e),P.setAttribute("height",t))},a.hide=function(){a.pause(),P.style.display="none"},a.show=function(){P.style.display=""},a.destroy=function(){},r.load(_),a}};mejs.Utils.typeChecks.push(function(e){return/\/\/(www|player).twitch.tv/i.test(e)?"video/x-twitch":null}),mejs.Renderers.add(i)},{}]},{},[1]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public/public.php
CHANGED
@@ -477,6 +477,52 @@ class AIOVG_Public {
|
|
477 |
// Return
|
478 |
return $url;
|
479 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
480 |
|
481 |
/**
|
482 |
* Adds the Facebook OG tags and Twitter Cards.
|
477 |
// Return
|
478 |
return $url;
|
479 |
}
|
480 |
+
|
481 |
+
/**
|
482 |
+
* Filter Yoast SEO breadcrumbs.
|
483 |
+
*
|
484 |
+
* @since 1.6.2
|
485 |
+
* @param array $crumbs Array of crumbs.
|
486 |
+
* @return array $crumbs Filtered array of crumbs.
|
487 |
+
*/
|
488 |
+
public function wpseo_breadcrumb_links( $crumbs ) {
|
489 |
+
global $post;
|
490 |
+
|
491 |
+
if ( is_singular( 'aiovg_videos' ) ) {
|
492 |
+
foreach ( $crumbs as $index => $crumb ) {
|
493 |
+
if ( ! empty( $crumb['ptarchive'] ) && 'aiovg_videos' == $crumb['ptarchive'] ) {
|
494 |
+
$obj = get_post_type_object( 'aiovg_videos' );
|
495 |
+
|
496 |
+
$crumbs[ $index ] = array(
|
497 |
+
'text' => $obj->labels->name,
|
498 |
+
'url' => aiovg_get_search_page_url()
|
499 |
+
);
|
500 |
+
}
|
501 |
+
}
|
502 |
+
} else {
|
503 |
+
$page_settings = get_option( 'aiovg_page_settings' );
|
504 |
+
|
505 |
+
if ( $post->ID == $page_settings['category'] ) {
|
506 |
+
if ( $slug = get_query_var( 'aiovg_category' ) ) {
|
507 |
+
$term = get_term_by( 'slug', $slug, 'aiovg_categories' );
|
508 |
+
$crumbs[] = array(
|
509 |
+
'text' => $term->name
|
510 |
+
);
|
511 |
+
}
|
512 |
+
}
|
513 |
+
|
514 |
+
if ( $post->ID == $page_settings['user_videos'] ) {
|
515 |
+
if ( $slug = get_query_var( 'aiovg_user' ) ) {
|
516 |
+
$user = get_user_by( 'slug', $slug );
|
517 |
+
$crumbs[] = array(
|
518 |
+
'text' => $user->display_name
|
519 |
+
);
|
520 |
+
}
|
521 |
+
}
|
522 |
+
}
|
523 |
+
|
524 |
+
return $crumbs;
|
525 |
+
}
|
526 |
|
527 |
/**
|
528 |
* Adds the Facebook OG tags and Twitter Cards.
|
public/templates/categories-template-grid.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
<?php
|
15 |
// Display the title (if applicable)
|
16 |
if ( ! empty( $attributes['title'] ) ) : ?>
|
17 |
-
<h3 class="aiovg-header"><?php
|
18 |
<?php
|
19 |
endif;
|
20 |
|
@@ -22,7 +22,7 @@
|
|
22 |
foreach ( $terms as $key => $term ) {
|
23 |
if ( $key % $attributes['columns'] == 0 ) echo '<div class="aiovg-row">';
|
24 |
?>
|
25 |
-
<div class="aiovg-col aiovg-col-<?php echo (
|
26 |
<?php the_aiovg_category_thumbnail( $term, $attributes ); ?>
|
27 |
</div>
|
28 |
<?php if ( 0 == ( $key + 1 ) % $attributes['columns'] || ( $key + 1 ) == count( $terms ) ) echo '</div>';
|
14 |
<?php
|
15 |
// Display the title (if applicable)
|
16 |
if ( ! empty( $attributes['title'] ) ) : ?>
|
17 |
+
<h3 class="aiovg-header"><?php echo esc_html( $attributes['title'] ); ?></h3>
|
18 |
<?php
|
19 |
endif;
|
20 |
|
22 |
foreach ( $terms as $key => $term ) {
|
23 |
if ( $key % $attributes['columns'] == 0 ) echo '<div class="aiovg-row">';
|
24 |
?>
|
25 |
+
<div class="aiovg-col aiovg-col-<?php echo esc_attr( $attributes['columns'] ); ?>">
|
26 |
<?php the_aiovg_category_thumbnail( $term, $attributes ); ?>
|
27 |
</div>
|
28 |
<?php if ( 0 == ( $key + 1 ) % $attributes['columns'] || ( $key + 1 ) == count( $terms ) ) echo '</div>';
|
public/templates/categories-template-list.php
CHANGED
@@ -23,7 +23,8 @@ $list_categories = wp_list_categories( array(
|
|
23 |
) );
|
24 |
|
25 |
if ( empty( $list_categories ) ) {
|
26 |
-
|
|
|
27 |
return;
|
28 |
}
|
29 |
?>
|
23 |
) );
|
24 |
|
25 |
if ( empty( $list_categories ) ) {
|
26 |
+
$empty_message = aiovg_get_message( 'empty' );
|
27 |
+
echo esc_html( $empty_message );
|
28 |
return;
|
29 |
}
|
30 |
?>
|
public/templates/category-thumbnail.php
CHANGED
@@ -15,23 +15,23 @@ $image = aiovg_get_image_url( $image_id, 'large' );
|
|
15 |
?>
|
16 |
|
17 |
<div class="aiovg-thumbnail">
|
18 |
-
<a href="<?php echo esc_url( $permalink ); ?>" class="aiovg-responsive-container" style="padding-bottom: <?php
|
19 |
<img src="<?php echo esc_url( $image ); ?>" class="aiovg-responsive-element" />
|
20 |
</a>
|
21 |
|
22 |
<div class="aiovg-caption">
|
23 |
<div class="aiovg-title">
|
24 |
-
<a href="<?php echo esc_url( $permalink ); ?>" class="aiovg-link-title"><?php
|
25 |
</div>
|
26 |
|
27 |
<?php if ( ! empty( $attributes['show_description'] ) && $term->description ) : ?>
|
28 |
-
<div class="aiovg-description"><?php
|
29 |
<?php endif; ?>
|
30 |
|
31 |
<?php if ( ! empty( $attributes['show_count'] ) ) : ?>
|
32 |
<div class="aiovg-count aiovg-text-muted">
|
33 |
<span class="aiovg-icon-film"></span>
|
34 |
-
<?php printf(
|
35 |
</div>
|
36 |
<?php endif; ?>
|
37 |
</div>
|
15 |
?>
|
16 |
|
17 |
<div class="aiovg-thumbnail">
|
18 |
+
<a href="<?php echo esc_url( $permalink ); ?>" class="aiovg-responsive-container" style="padding-bottom: <?php echo esc_attr( $attributes['ratio'] ); ?>;">
|
19 |
<img src="<?php echo esc_url( $image ); ?>" class="aiovg-responsive-element" />
|
20 |
</a>
|
21 |
|
22 |
<div class="aiovg-caption">
|
23 |
<div class="aiovg-title">
|
24 |
+
<a href="<?php echo esc_url( $permalink ); ?>" class="aiovg-link-title"><?php echo esc_html( $term->name ); ?></a>
|
25 |
</div>
|
26 |
|
27 |
<?php if ( ! empty( $attributes['show_description'] ) && $term->description ) : ?>
|
28 |
+
<div class="aiovg-description"><?php echo esc_html( $term->description ); ?></div>
|
29 |
<?php endif; ?>
|
30 |
|
31 |
<?php if ( ! empty( $attributes['show_count'] ) ) : ?>
|
32 |
<div class="aiovg-count aiovg-text-muted">
|
33 |
<span class="aiovg-icon-film"></span>
|
34 |
+
<?php printf( esc_html__( '%d videos', 'all-in-one-video-gallery' ), $term->count ); ?>
|
35 |
</div>
|
36 |
<?php endif; ?>
|
37 |
</div>
|
public/templates/player-gdpr.php
CHANGED
@@ -117,7 +117,7 @@ if ( empty( $image ) ) {
|
|
117 |
<div id="privacy-wrapper" style="background-image: url(<?php echo esc_url_raw( $image ); ?>);">
|
118 |
<div id="privacy-consent-block" >
|
119 |
<div id="privacy-consent-message"><?php echo wp_kses_post( trim( $privacy_settings['consent_message'] ) ); ?></div>
|
120 |
-
<div id="privacy-consent-button"><?php
|
121 |
</div>
|
122 |
</div>
|
123 |
|
117 |
<div id="privacy-wrapper" style="background-image: url(<?php echo esc_url_raw( $image ); ?>);">
|
118 |
<div id="privacy-consent-block" >
|
119 |
<div id="privacy-consent-message"><?php echo wp_kses_post( trim( $privacy_settings['consent_message'] ) ); ?></div>
|
120 |
+
<div id="privacy-consent-button"><?php echo esc_html( $privacy_settings['consent_button_label'] ); ?></div>
|
121 |
</div>
|
122 |
</div>
|
123 |
|
public/templates/player-html5.php
CHANGED
@@ -262,7 +262,7 @@ $tracks = apply_filters( 'aiovg_video_tracks', $tracks );
|
|
262 |
|
263 |
<?php if ( ! empty( $brand_settings['copyright_text'] ) ) : ?>
|
264 |
<div id="contextmenu" class="contextmenu" style="display: none;">
|
265 |
-
<div class="contextmenu-item"><?php
|
266 |
</div>
|
267 |
<?php endif; ?>
|
268 |
|
262 |
|
263 |
<?php if ( ! empty( $brand_settings['copyright_text'] ) ) : ?>
|
264 |
<div id="contextmenu" class="contextmenu" style="display: none;">
|
265 |
+
<div class="contextmenu-item"><?php echo esc_html( $brand_settings['copyright_text'] ); ?></div>
|
266 |
</div>
|
267 |
<?php endif; ?>
|
268 |
|
public/templates/search-form-template-horizontal.php
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
<div class="aiovg aiovg-search-form aiovg-search-form-template-horizontal">
|
14 |
<form method="get" action="<?php echo esc_url( aiovg_get_search_page_url() ); ?>">
|
15 |
<?php if ( ! get_option('permalink_structure') ) : ?>
|
16 |
-
<input type="hidden" name="page_id" value="<?php
|
17 |
<?php endif; ?>
|
18 |
|
19 |
<div class="aiovg-form-group aiovg-field-keyword">
|
@@ -24,7 +24,7 @@
|
|
24 |
<div class="aiovg-form-group aiovg-field-category">
|
25 |
<?php
|
26 |
wp_dropdown_categories( array(
|
27 |
-
'show_option_none' => '-- ' .
|
28 |
'option_none_value' => '',
|
29 |
'taxonomy' => 'aiovg_categories',
|
30 |
'name' => 'ca',
|
@@ -41,7 +41,7 @@
|
|
41 |
<?php endif; ?>
|
42 |
|
43 |
<div class="aiovg-form-group aiovg-field-submit">
|
44 |
-
<input type="submit" class="aiovg-button" value="<?php
|
45 |
</div>
|
46 |
</form>
|
47 |
</div>
|
13 |
<div class="aiovg aiovg-search-form aiovg-search-form-template-horizontal">
|
14 |
<form method="get" action="<?php echo esc_url( aiovg_get_search_page_url() ); ?>">
|
15 |
<?php if ( ! get_option('permalink_structure') ) : ?>
|
16 |
+
<input type="hidden" name="page_id" value="<?php echo esc_attr( $attributes['search_page_id'] ); ?>" />
|
17 |
<?php endif; ?>
|
18 |
|
19 |
<div class="aiovg-form-group aiovg-field-keyword">
|
24 |
<div class="aiovg-form-group aiovg-field-category">
|
25 |
<?php
|
26 |
wp_dropdown_categories( array(
|
27 |
+
'show_option_none' => '-- ' . esc_html__( 'Select a Category', 'all-in-one-video-gallery' ) . ' --',
|
28 |
'option_none_value' => '',
|
29 |
'taxonomy' => 'aiovg_categories',
|
30 |
'name' => 'ca',
|
41 |
<?php endif; ?>
|
42 |
|
43 |
<div class="aiovg-form-group aiovg-field-submit">
|
44 |
+
<input type="submit" class="aiovg-button" value="<?php esc_attr_e( 'Search', 'all-in-one-video-gallery' ); ?>" />
|
45 |
</div>
|
46 |
</form>
|
47 |
</div>
|
public/templates/search-form-template-vertical.php
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
<div class="aiovg aiovg-search-form aiovg-search-form-template-vertical">
|
14 |
<form method="get" action="<?php echo esc_url( aiovg_get_search_page_url() ); ?>">
|
15 |
<?php if ( ! get_option('permalink_structure') ) : ?>
|
16 |
-
<input type="hidden" name="page_id" value="<?php
|
17 |
<?php endif; ?>
|
18 |
|
19 |
<div class="aiovg-form-group aiovg-field-keyword">
|
@@ -24,7 +24,7 @@
|
|
24 |
<div class="aiovg-form-group aiovg-field-category">
|
25 |
<?php
|
26 |
wp_dropdown_categories( array(
|
27 |
-
'show_option_none' => '-- ' .
|
28 |
'option_none_value' => '',
|
29 |
'taxonomy' => 'aiovg_categories',
|
30 |
'name' => 'ca',
|
@@ -41,7 +41,7 @@
|
|
41 |
<?php endif; ?>
|
42 |
|
43 |
<div class="aiovg-form-group aiovg-field-submit">
|
44 |
-
<input type="submit" class="aiovg-button" value="<?php
|
45 |
</div>
|
46 |
</form>
|
47 |
</div>
|
13 |
<div class="aiovg aiovg-search-form aiovg-search-form-template-vertical">
|
14 |
<form method="get" action="<?php echo esc_url( aiovg_get_search_page_url() ); ?>">
|
15 |
<?php if ( ! get_option('permalink_structure') ) : ?>
|
16 |
+
<input type="hidden" name="page_id" value="<?php echo esc_attr( $attributes['search_page_id'] ); ?>" />
|
17 |
<?php endif; ?>
|
18 |
|
19 |
<div class="aiovg-form-group aiovg-field-keyword">
|
24 |
<div class="aiovg-form-group aiovg-field-category">
|
25 |
<?php
|
26 |
wp_dropdown_categories( array(
|
27 |
+
'show_option_none' => '-- ' . esc_html__( 'Select a Category', 'all-in-one-video-gallery' ) . ' --',
|
28 |
'option_none_value' => '',
|
29 |
'taxonomy' => 'aiovg_categories',
|
30 |
'name' => 'ca',
|
41 |
<?php endif; ?>
|
42 |
|
43 |
<div class="aiovg-form-group aiovg-field-submit">
|
44 |
+
<input type="submit" class="aiovg-button" value="<?php esc_attr_e( 'Search', 'all-in-one-video-gallery' ); ?>" />
|
45 |
</div>
|
46 |
</form>
|
47 |
</div>
|
public/templates/single-video.php
CHANGED
@@ -23,7 +23,7 @@
|
|
23 |
$user_meta = array();
|
24 |
|
25 |
if ( $attributes['show_date'] ) {
|
26 |
-
$user_meta[] = sprintf(
|
27 |
}
|
28 |
|
29 |
if ( $attributes['show_user'] ) {
|
@@ -32,7 +32,7 @@
|
|
32 |
}
|
33 |
|
34 |
if ( count( $user_meta ) ) {
|
35 |
-
$meta[] = sprintf( '<div class="aiovg-user"><small>%s</small></div>', implode( ' ' .
|
36 |
}
|
37 |
|
38 |
// Category(s)
|
@@ -57,7 +57,7 @@
|
|
57 |
<span class="aiovg-icon-eye"></span>
|
58 |
<?php
|
59 |
$views_count = get_post_meta( get_the_ID(), 'views', true );
|
60 |
-
printf(
|
61 |
?>
|
62 |
</div>
|
63 |
<?php endif; ?>
|
@@ -66,7 +66,7 @@
|
|
66 |
</div>
|
67 |
|
68 |
<!-- Description -->
|
69 |
-
<div class="aiovg-description"><?php echo $content; ?></div>
|
70 |
|
71 |
<!-- Socialshare buttons -->
|
72 |
<?php the_aiovg_socialshare_buttons(); ?>
|
@@ -77,7 +77,7 @@
|
|
77 |
if ( $attributes['related'] ) {
|
78 |
$atts = array();
|
79 |
|
80 |
-
$atts[] = 'title="' .
|
81 |
|
82 |
if ( ! empty( $attributes['categories'] ) ) {
|
83 |
$ids = array();
|
23 |
$user_meta = array();
|
24 |
|
25 |
if ( $attributes['show_date'] ) {
|
26 |
+
$user_meta[] = sprintf( esc_html__( 'Posted %s ago', 'all-in-one-video-gallery' ), human_time_diff( get_the_time( 'U' ), current_time( 'timestamp' ) ) );
|
27 |
}
|
28 |
|
29 |
if ( $attributes['show_user'] ) {
|
32 |
}
|
33 |
|
34 |
if ( count( $user_meta ) ) {
|
35 |
+
$meta[] = sprintf( '<div class="aiovg-user"><small>%s</small></div>', implode( ' ' . esc_html__( "by", 'all-in-one-video-gallery' ) . ' ', $user_meta ) );
|
36 |
}
|
37 |
|
38 |
// Category(s)
|
57 |
<span class="aiovg-icon-eye"></span>
|
58 |
<?php
|
59 |
$views_count = get_post_meta( get_the_ID(), 'views', true );
|
60 |
+
printf( esc_html__( '%d views', 'all-in-one-video-gallery' ), $views_count );
|
61 |
?>
|
62 |
</div>
|
63 |
<?php endif; ?>
|
66 |
</div>
|
67 |
|
68 |
<!-- Description -->
|
69 |
+
<div class="aiovg-description"><?php echo wp_kses_post( $content ); ?></div>
|
70 |
|
71 |
<!-- Socialshare buttons -->
|
72 |
<?php the_aiovg_socialshare_buttons(); ?>
|
77 |
if ( $attributes['related'] ) {
|
78 |
$atts = array();
|
79 |
|
80 |
+
$atts[] = 'title="' . esc_html__( 'You may also like', 'all-in-one-video-gallery' ) . '"';
|
81 |
|
82 |
if ( ! empty( $attributes['categories'] ) ) {
|
83 |
$ids = array();
|
public/templates/video-thumbnail-image-left.php
CHANGED
@@ -13,14 +13,14 @@ $post_meta = get_post_meta( $post->ID );
|
|
13 |
$image = aiovg_get_image_url( $post_meta['image_id'][0], 'large', $post_meta['image'][0] );
|
14 |
?>
|
15 |
|
16 |
-
<div class="aiovg-thumbnail aiovg-thumbnail-style-image-left" data-id="<?php
|
17 |
<div class="aiovg-row">
|
18 |
<div class="aiovg-col aiovg-col-p-40">
|
19 |
-
<a href="<?php the_permalink(); ?>" class="aiovg-responsive-container" style="padding-bottom: <?php
|
20 |
<img src="<?php echo esc_url( $image ); ?>" class="aiovg-responsive-element" />
|
21 |
|
22 |
<?php if ( $attributes['show_duration'] && ! empty( $post_meta['duration'][0] ) ) : ?>
|
23 |
-
<div class="aiovg-duration"><small><?php
|
24 |
<?php endif; ?>
|
25 |
|
26 |
<img src="<?php echo AIOVG_PLUGIN_URL; ?>public/assets/images/play.png" class="aiovg-play" />
|
@@ -37,16 +37,16 @@ $image = aiovg_get_image_url( $post_meta['image_id'][0], 'large', $post_meta
|
|
37 |
$meta = array();
|
38 |
|
39 |
if ( $attributes['show_date'] ) {
|
40 |
-
$meta[] = sprintf(
|
41 |
}
|
42 |
|
43 |
if ( $attributes['show_user'] ) {
|
44 |
$author_url = aiovg_get_user_videos_page_url( $post->post_author );
|
45 |
-
$meta[] = sprintf( '%s <a href="%s" class="aiovg-link-author">%s</a>',
|
46 |
}
|
47 |
|
48 |
if ( count( $meta ) ) {
|
49 |
-
printf( '<div class="aiovg-user"><small>%s</small></div>',
|
50 |
}
|
51 |
?>
|
52 |
|
@@ -71,7 +71,7 @@ $image = aiovg_get_image_url( $post_meta['image_id'][0], 'large', $post_meta
|
|
71 |
<?php if ( $attributes['show_views'] ) : ?>
|
72 |
<div class="aiovg-views aiovg-text-muted">
|
73 |
<span class="aiovg-icon-eye"></span>
|
74 |
-
<?php printf(
|
75 |
</div>
|
76 |
<?php endif; ?>
|
77 |
</div>
|
13 |
$image = aiovg_get_image_url( $post_meta['image_id'][0], 'large', $post_meta['image'][0] );
|
14 |
?>
|
15 |
|
16 |
+
<div class="aiovg-thumbnail aiovg-thumbnail-style-image-left" data-id="<?php echo esc_attr( $post->ID ); ?>">
|
17 |
<div class="aiovg-row">
|
18 |
<div class="aiovg-col aiovg-col-p-40">
|
19 |
+
<a href="<?php the_permalink(); ?>" class="aiovg-responsive-container" style="padding-bottom: <?php echo esc_attr( $attributes['ratio'] ); ?>;">
|
20 |
<img src="<?php echo esc_url( $image ); ?>" class="aiovg-responsive-element" />
|
21 |
|
22 |
<?php if ( $attributes['show_duration'] && ! empty( $post_meta['duration'][0] ) ) : ?>
|
23 |
+
<div class="aiovg-duration"><small><?php echo esc_html( $post_meta['duration'][0] ); ?></small></div>
|
24 |
<?php endif; ?>
|
25 |
|
26 |
<img src="<?php echo AIOVG_PLUGIN_URL; ?>public/assets/images/play.png" class="aiovg-play" />
|
37 |
$meta = array();
|
38 |
|
39 |
if ( $attributes['show_date'] ) {
|
40 |
+
$meta[] = sprintf( esc_html__( '%s ago', 'all-in-one-video-gallery' ), human_time_diff( get_the_time( 'U' ), current_time( 'timestamp' ) ) );
|
41 |
}
|
42 |
|
43 |
if ( $attributes['show_user'] ) {
|
44 |
$author_url = aiovg_get_user_videos_page_url( $post->post_author );
|
45 |
+
$meta[] = sprintf( '%s <a href="%s" class="aiovg-link-author">%s</a>', esc_html__( 'by', 'all-in-one-video-gallery' ), esc_url( $author_url ), esc_html( get_the_author() ) );
|
46 |
}
|
47 |
|
48 |
if ( count( $meta ) ) {
|
49 |
+
printf( '<div class="aiovg-user"><small>%s</small></div>', esc_html__( "Posted", 'all-in-one-video-gallery' ) . ' ' . implode( ' ', $meta ) );
|
50 |
}
|
51 |
?>
|
52 |
|
71 |
<?php if ( $attributes['show_views'] ) : ?>
|
72 |
<div class="aiovg-views aiovg-text-muted">
|
73 |
<span class="aiovg-icon-eye"></span>
|
74 |
+
<?php printf( esc_html__( '%d views', 'all-in-one-video-gallery' ), $post_meta['views'][0] ); ?>
|
75 |
</div>
|
76 |
<?php endif; ?>
|
77 |
</div>
|
public/templates/video-thumbnail.php
CHANGED
@@ -13,12 +13,12 @@ $post_meta = get_post_meta( $post->ID );
|
|
13 |
$image = aiovg_get_image_url( $post_meta['image_id'][0], 'large', $post_meta['image'][0] );
|
14 |
?>
|
15 |
|
16 |
-
<div class="aiovg-thumbnail aiovg-thumbnail-style-image-top" data-id="<?php
|
17 |
-
<a href="<?php the_permalink(); ?>" class="aiovg-responsive-container" style="padding-bottom: <?php
|
18 |
<img src="<?php echo esc_url( $image ); ?>" class="aiovg-responsive-element" />
|
19 |
|
20 |
<?php if ( $attributes['show_duration'] && ! empty( $post_meta['duration'][0] ) ) : ?>
|
21 |
-
<div class="aiovg-duration"><small><?php
|
22 |
<?php endif; ?>
|
23 |
|
24 |
<img src="<?php echo AIOVG_PLUGIN_URL; ?>public/assets/images/play.png" class="aiovg-play" />
|
@@ -33,16 +33,16 @@ $image = aiovg_get_image_url( $post_meta['image_id'][0], 'large', $post_meta
|
|
33 |
$meta = array();
|
34 |
|
35 |
if ( $attributes['show_date'] ) {
|
36 |
-
$meta[] = sprintf(
|
37 |
}
|
38 |
|
39 |
if ( $attributes['show_user'] ) {
|
40 |
$author_url = aiovg_get_user_videos_page_url( $post->post_author );
|
41 |
-
$meta[] = sprintf( '%s <a href="%s" class="aiovg-link-author">%s</a>',
|
42 |
}
|
43 |
|
44 |
if ( count( $meta ) ) {
|
45 |
-
printf( '<div class="aiovg-user"><small>%s</small></div>',
|
46 |
}
|
47 |
?>
|
48 |
|
@@ -67,7 +67,7 @@ $image = aiovg_get_image_url( $post_meta['image_id'][0], 'large', $post_meta
|
|
67 |
<?php if ( $attributes['show_views'] ) : ?>
|
68 |
<div class="aiovg-views aiovg-text-muted">
|
69 |
<span class="aiovg-icon-eye"></span>
|
70 |
-
<?php printf(
|
71 |
</div>
|
72 |
<?php endif; ?>
|
73 |
</div>
|
13 |
$image = aiovg_get_image_url( $post_meta['image_id'][0], 'large', $post_meta['image'][0] );
|
14 |
?>
|
15 |
|
16 |
+
<div class="aiovg-thumbnail aiovg-thumbnail-style-image-top" data-id="<?php echo esc_attr( $post->ID ); ?>">
|
17 |
+
<a href="<?php the_permalink(); ?>" class="aiovg-responsive-container" style="padding-bottom: <?php echo esc_attr( $attributes['ratio'] ); ?>;">
|
18 |
<img src="<?php echo esc_url( $image ); ?>" class="aiovg-responsive-element" />
|
19 |
|
20 |
<?php if ( $attributes['show_duration'] && ! empty( $post_meta['duration'][0] ) ) : ?>
|
21 |
+
<div class="aiovg-duration"><small><?php echo esc_html( $post_meta['duration'][0] ); ?></small></div>
|
22 |
<?php endif; ?>
|
23 |
|
24 |
<img src="<?php echo AIOVG_PLUGIN_URL; ?>public/assets/images/play.png" class="aiovg-play" />
|
33 |
$meta = array();
|
34 |
|
35 |
if ( $attributes['show_date'] ) {
|
36 |
+
$meta[] = sprintf( esc_html__( '%s ago', 'all-in-one-video-gallery' ), human_time_diff( get_the_time( 'U' ), current_time( 'timestamp' ) ) );
|
37 |
}
|
38 |
|
39 |
if ( $attributes['show_user'] ) {
|
40 |
$author_url = aiovg_get_user_videos_page_url( $post->post_author );
|
41 |
+
$meta[] = sprintf( '%s <a href="%s" class="aiovg-link-author">%s</a>', esc_html__( 'by', 'all-in-one-video-gallery' ), esc_url( $author_url ), esc_html( get_the_author() ) );
|
42 |
}
|
43 |
|
44 |
if ( count( $meta ) ) {
|
45 |
+
printf( '<div class="aiovg-user"><small>%s</small></div>', esc_html__( "Posted", 'all-in-one-video-gallery' ) . ' ' . implode( ' ', $meta ) );
|
46 |
}
|
47 |
?>
|
48 |
|
67 |
<?php if ( $attributes['show_views'] ) : ?>
|
68 |
<div class="aiovg-views aiovg-text-muted">
|
69 |
<span class="aiovg-icon-eye"></span>
|
70 |
+
<?php printf( esc_html__( '%d views', 'all-in-one-video-gallery' ), $post_meta['views'][0] ); ?>
|
71 |
</div>
|
72 |
<?php endif; ?>
|
73 |
</div>
|
public/templates/videos-template-classic.php
CHANGED
@@ -15,13 +15,13 @@
|
|
15 |
// Display the videos count
|
16 |
if ( ! empty( $attributes['show_count'] ) ) : ?>
|
17 |
<div class="aiovg-header">
|
18 |
-
<?php printf(
|
19 |
</div>
|
20 |
<?php endif;
|
21 |
|
22 |
// Display the title (if applicable)
|
23 |
if ( ! empty( $attributes['title'] ) ) : ?>
|
24 |
-
<h3><?php
|
25 |
<?php
|
26 |
endif;
|
27 |
|
15 |
// Display the videos count
|
16 |
if ( ! empty( $attributes['show_count'] ) ) : ?>
|
17 |
<div class="aiovg-header">
|
18 |
+
<?php printf( esc_html__( "%d video(s) found", 'all-in-one-video-gallery' ), $attributes['count'] ); ?>
|
19 |
</div>
|
20 |
<?php endif;
|
21 |
|
22 |
// Display the title (if applicable)
|
23 |
if ( ! empty( $attributes['title'] ) ) : ?>
|
24 |
+
<h3><?php echo esc_html( $attributes['title'] ); ?></h3>
|
25 |
<?php
|
26 |
endif;
|
27 |
|
public/video.php
CHANGED
@@ -75,16 +75,22 @@ class AIOVG_Public_Video {
|
|
75 |
}
|
76 |
|
77 |
if ( 0 == $is_video_available ) {
|
78 |
-
$
|
79 |
-
'post_type'
|
80 |
-
'post_status'
|
81 |
'posts_per_page' => 1,
|
82 |
-
'fields'
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
}
|
89 |
}
|
90 |
|
75 |
}
|
76 |
|
77 |
if ( 0 == $is_video_available ) {
|
78 |
+
$args = array(
|
79 |
+
'post_type' => 'aiovg_videos',
|
80 |
+
'post_status' => 'publish',
|
81 |
'posts_per_page' => 1,
|
82 |
+
'fields' => 'ids',
|
83 |
+
'no_found_rows' => true,
|
84 |
+
'update_post_term_cache' => false,
|
85 |
+
'update_post_meta_cache' => false
|
86 |
+
);
|
87 |
+
|
88 |
+
$aiovg_query = new WP_Query( $args );
|
89 |
+
|
90 |
+
if ( $aiovg_query->have_posts() ) {
|
91 |
+
$posts = $aiovg_query->posts;
|
92 |
+
$post_id = (int) $posts[0];
|
93 |
+
}
|
94 |
}
|
95 |
}
|
96 |
|
widgets/forms/categories.php
CHANGED
@@ -10,17 +10,17 @@
|
|
10 |
*/
|
11 |
?>
|
12 |
|
13 |
-
<div class="aiovg aiovg-widget-form aiovg-widget-form-categories aiovg-template-<?php
|
14 |
<div class="aiovg-widget-field aiovg-widget-field-title">
|
15 |
-
<label class="aiovg-widget-label" for="<?php
|
16 |
-
<input type="text" name="<?php
|
17 |
</div>
|
18 |
|
19 |
<div class="aiovg-widget-field aiovg-widget-field-child_of">
|
20 |
-
<label class="aiovg-widget-label" for="<?php
|
21 |
<?php
|
22 |
wp_dropdown_categories( array(
|
23 |
-
'show_option_none' => '-- ' .
|
24 |
'option_none_value' => 0,
|
25 |
'taxonomy' => 'aiovg_categories',
|
26 |
'name' => $this->get_field_name( 'child_of' ),
|
@@ -36,12 +36,12 @@
|
|
36 |
</div>
|
37 |
|
38 |
<div class="aiovg-widget-field aiovg-widget-field-template">
|
39 |
-
<label class="aiovg-widget-label" for="<?php
|
40 |
-
<select name="<?php
|
41 |
<?php
|
42 |
$options = array(
|
43 |
-
'grid' =>
|
44 |
-
'list' =>
|
45 |
);
|
46 |
|
47 |
foreach( $options as $key => $value ) {
|
@@ -52,19 +52,19 @@
|
|
52 |
</div>
|
53 |
|
54 |
<div class="aiovg-widget-field aiovg-widget-field-columns">
|
55 |
-
<label class="aiovg-widget-label" for="<?php
|
56 |
-
<input type="text" name="<?php
|
57 |
</div>
|
58 |
|
59 |
<div class="aiovg-widget-field aiovg-widget-field-orderby">
|
60 |
-
<label class="aiovg-widget-label" for="<?php
|
61 |
-
<select name="<?php
|
62 |
<?php
|
63 |
$options = array(
|
64 |
-
'id' =>
|
65 |
-
'count' =>
|
66 |
-
'name' =>
|
67 |
-
'slug' =>
|
68 |
);
|
69 |
|
70 |
foreach( $options as $key => $value ) {
|
@@ -75,12 +75,12 @@
|
|
75 |
</div>
|
76 |
|
77 |
<div class="aiovg-widget-field aiovg-widget-field-order">
|
78 |
-
<label class="aiovg-widget-label" for="<?php
|
79 |
-
<select name="<?php
|
80 |
<?php
|
81 |
$options = array(
|
82 |
-
'asc' =>
|
83 |
-
'desc' =>
|
84 |
);
|
85 |
|
86 |
foreach( $options as $key => $value ) {
|
@@ -91,22 +91,22 @@
|
|
91 |
</div>
|
92 |
|
93 |
<div class="aiovg-widget-field aiovg-widget-field-hierarchical">
|
94 |
-
<input type="checkbox" name="<?php
|
95 |
-
<label for="<?php
|
96 |
</div>
|
97 |
|
98 |
<div class="aiovg-widget-field aiovg-widget-field-show_description">
|
99 |
-
<input type="checkbox" name="<?php
|
100 |
-
<label for="<?php
|
101 |
</div>
|
102 |
|
103 |
<div class="aiovg-widget-field aiovg-widget-field-show_count">
|
104 |
-
<input type="checkbox" name="<?php
|
105 |
-
<label for="<?php
|
106 |
</div>
|
107 |
|
108 |
<div class="aiovg-widget-field aiovg-widget-field-hide_empty">
|
109 |
-
<input type="checkbox" name="<?php
|
110 |
-
<label for="<?php
|
111 |
</div>
|
112 |
</div>
|
10 |
*/
|
11 |
?>
|
12 |
|
13 |
+
<div class="aiovg aiovg-widget-form aiovg-widget-form-categories aiovg-template-<?php echo esc_attr( $instance['template'] ); ?>">
|
14 |
<div class="aiovg-widget-field aiovg-widget-field-title">
|
15 |
+
<label class="aiovg-widget-label" for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php esc_html_e( 'Title', 'all-in-one-video-gallery' ); ?></label>
|
16 |
+
<input type="text" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" class="widefat aiovg-widget-input-title" value="<?php echo esc_attr( $instance['title'] ); ?>">
|
17 |
</div>
|
18 |
|
19 |
<div class="aiovg-widget-field aiovg-widget-field-child_of">
|
20 |
+
<label class="aiovg-widget-label" for="<?php echo esc_attr( $this->get_field_id( 'child_of' ) ); ?>"><?php esc_html_e( 'Select Parent', 'all-in-one-video-gallery' ); ?></label>
|
21 |
<?php
|
22 |
wp_dropdown_categories( array(
|
23 |
+
'show_option_none' => '-- ' . esc_html__( 'Select Parent', 'all-in-one-video-gallery' ) . ' --',
|
24 |
'option_none_value' => 0,
|
25 |
'taxonomy' => 'aiovg_categories',
|
26 |
'name' => $this->get_field_name( 'child_of' ),
|
36 |
</div>
|
37 |
|
38 |
<div class="aiovg-widget-field aiovg-widget-field-template">
|
39 |
+
<label class="aiovg-widget-label" for="<?php echo esc_attr( $this->get_field_id( 'template' ) ); ?>"><?php esc_html_e( 'Select Template', 'all-in-one-video-gallery' ); ?></label>
|
40 |
+
<select name="<?php echo esc_attr( $this->get_field_name( 'template' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'template' ) ); ?>" class="widefat aiovg-widget-input-template">
|
41 |
<?php
|
42 |
$options = array(
|
43 |
+
'grid' => esc_html__( 'Grid', 'all-in-one-video-gallery' ),
|
44 |
+
'list' => esc_html__( 'List', 'all-in-one-video-gallery' )
|
45 |
);
|
46 |
|
47 |
foreach( $options as $key => $value ) {
|
52 |
</div>
|
53 |
|
54 |
<div class="aiovg-widget-field aiovg-widget-field-columns">
|
55 |
+
<label class="aiovg-widget-label" for="<?php echo esc_attr( $this->get_field_id( 'columns' ) ); ?>"><?php esc_html_e( 'Columns', 'all-in-one-video-gallery' ); ?></label>
|
56 |
+
<input type="text" name="<?php echo esc_attr( $this->get_field_name( 'columns' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'columns' ) ); ?>" class="widefat aiovg-widget-input-columns" value="<?php echo esc_attr( $instance['columns'] ); ?>" />
|
57 |
</div>
|
58 |
|
59 |
<div class="aiovg-widget-field aiovg-widget-field-orderby">
|
60 |
+
<label class="aiovg-widget-label" for="<?php echo esc_attr( $this->get_field_id( 'orderby' ) ); ?>"><?php esc_html_e( 'Order By', 'all-in-one-video-gallery' ); ?></label>
|
61 |
+
<select name="<?php echo esc_attr( $this->get_field_name( 'orderby' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'orderby' ) ); ?>" class="widefat aiovg-widget-input-orderby">
|
62 |
<?php
|
63 |
$options = array(
|
64 |
+
'id' => esc_html__( 'ID', 'all-in-one-video-gallery' ),
|
65 |
+
'count' => esc_html__( 'Count', 'all-in-one-video-gallery' ),
|
66 |
+
'name' => esc_html__( 'Name', 'all-in-one-video-gallery' ),
|
67 |
+
'slug' => esc_html__( 'Slug', 'all-in-one-video-gallery' )
|
68 |
);
|
69 |
|
70 |
foreach( $options as $key => $value ) {
|
75 |
</div>
|
76 |
|
77 |
<div class="aiovg-widget-field aiovg-widget-field-order">
|
78 |
+
<label class="aiovg-widget-label" for="<?php echo esc_attr( $this->get_field_id( 'order' ) ); ?>"><?php esc_html_e( 'Order', 'all-in-one-video-gallery' ); ?></label>
|
79 |
+
<select name="<?php echo esc_attr( $this->get_field_name( 'order' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'order' ) ); ?>" class="widefat aiovg-widget-input-order">
|
80 |
<?php
|
81 |
$options = array(
|
82 |
+
'asc' => esc_html__( 'ASC', 'all-in-one-video-gallery' ),
|
83 |
+
'desc' => esc_html__( 'DESC', 'all-in-one-video-gallery' )
|
84 |
);
|
85 |
|
86 |
foreach( $options as $key => $value ) {
|
91 |
</div>
|
92 |
|
93 |
<div class="aiovg-widget-field aiovg-widget-field-hierarchical">
|
94 |
+
<input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'hierarchical' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'hierarchical' ) ); ?>" class="aiovg-widget-input-hierarchical" value="1" <?php checked( 1, $instance['hierarchical'] ); ?> />
|
95 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'hierarchical' ) ); ?>"><?php esc_html_e( 'Show Hierarchy', 'all-in-one-video-gallery' ); ?></label>
|
96 |
</div>
|
97 |
|
98 |
<div class="aiovg-widget-field aiovg-widget-field-show_description">
|
99 |
+
<input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'show_description' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'show_description' ) ); ?>" class="aiovg-widget-input-show_description" value="1" <?php checked( 1, $instance['show_description'] ); ?> />
|
100 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'show_description' ) ); ?>"><?php esc_html_e( 'Show Description', 'all-in-one-video-gallery' ); ?></label>
|
101 |
</div>
|
102 |
|
103 |
<div class="aiovg-widget-field aiovg-widget-field-show_count">
|
104 |
+
<input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'show_count' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'show_count' ) ); ?>" class="aiovg-widget-input-show_count" value="1" <?php checked( 1, $instance['show_count'] ); ?> />
|
105 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'show_count' ) ); ?>"><?php esc_html_e( 'Show Videos Count', 'all-in-one-video-gallery' ); ?></label>
|
106 |
</div>
|
107 |
|
108 |
<div class="aiovg-widget-field aiovg-widget-field-hide_empty">
|
109 |
+
<input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'hide_empty' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'hide_empty' ) ); ?>" class="aiovg-widget-input-hide_empty" value="1" <?php checked( 1, $instance['hide_empty'] ); ?> />
|
110 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'hide_empty' ) ); ?>"><?php esc_html_e( 'Hide Empty Categories', 'all-in-one-video-gallery' ); ?></label>
|
111 |
</div>
|
112 |
</div>
|
widgets/forms/search.php
CHANGED
@@ -12,17 +12,17 @@
|
|
12 |
|
13 |
<div class="aiovg aiovg-widget-form aiovg-widget-form-search">
|
14 |
<div class="aiovg-widget-field aiovg-widget-field-title">
|
15 |
-
<label class="aiovg-widget-label" for="<?php
|
16 |
-
<input type="text" name="<?php
|
17 |
</div>
|
18 |
|
19 |
<div class="aiovg-widget-field aiovg-widget-field-template">
|
20 |
-
<label class="aiovg-widget-label" for="<?php
|
21 |
-
<select name="<?php
|
22 |
<?php
|
23 |
$options = array(
|
24 |
-
'vertical' =>
|
25 |
-
'horizontal' =>
|
26 |
);
|
27 |
|
28 |
foreach( $options as $key => $value ) {
|
@@ -33,7 +33,7 @@
|
|
33 |
</div>
|
34 |
|
35 |
<div class="aiovg-widget-field aiovg-widget-field-has_category">
|
36 |
-
<input type="checkbox" name="<?php
|
37 |
-
<label for="<?php
|
38 |
</div>
|
39 |
</div>
|
12 |
|
13 |
<div class="aiovg aiovg-widget-form aiovg-widget-form-search">
|
14 |
<div class="aiovg-widget-field aiovg-widget-field-title">
|
15 |
+
<label class="aiovg-widget-label" for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php esc_html_e( 'Title', 'all-in-one-video-gallery' ); ?></label>
|
16 |
+
<input type="text" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" class="widefat aiovg-widget-input-title" value="<?php echo esc_attr( $instance['title'] ); ?>" />
|
17 |
</div>
|
18 |
|
19 |
<div class="aiovg-widget-field aiovg-widget-field-template">
|
20 |
+
<label class="aiovg-widget-label" for="<?php echo esc_attr( $this->get_field_id( 'template' ) ); ?>"><?php esc_html_e( 'Select Template', 'all-in-one-video-gallery' ); ?></label>
|
21 |
+
<select name="<?php echo esc_attr( $this->get_field_name( 'template' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'template' ) ); ?>" class="widefat aiovg-widget-input-template">
|
22 |
<?php
|
23 |
$options = array(
|
24 |
+
'vertical' => esc_html__( 'Vertical', 'all-in-one-video-gallery' ),
|
25 |
+
'horizontal' => esc_html__( 'Horizontal', 'all-in-one-video-gallery' )
|
26 |
);
|
27 |
|
28 |
foreach( $options as $key => $value ) {
|
33 |
</div>
|
34 |
|
35 |
<div class="aiovg-widget-field aiovg-widget-field-has_category">
|
36 |
+
<input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'has_category' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'has_category' ) ); ?>" class="aiovg-widget-input-has_category" value="1" <?php checked( 1, $instance['has_category'] ); ?> />
|
37 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'has_category' ) ); ?>"><?php esc_html_e( 'Search By Categories', 'all-in-one-video-gallery' ); ?></label>
|
38 |
</div>
|
39 |
</div>
|
widgets/forms/video.php
CHANGED
@@ -12,90 +12,98 @@
|
|
12 |
|
13 |
<div class="aiovg aiovg-widget-form aiovg-widget-form-video">
|
14 |
<div class="aiovg-widget-field aiovg-widget-field-title">
|
15 |
-
<label class="aiovg-widget-label" for="<?php
|
16 |
-
<input type="text" name="<?php
|
17 |
</div>
|
18 |
|
19 |
<div class="aiovg-widget-field aiovg-widget-field-id">
|
20 |
-
<label class="aiovg-widget-label" for="<?php
|
21 |
-
<select name="<?php
|
22 |
-
<option value="0">-- <?php
|
23 |
<?php
|
24 |
-
$
|
25 |
-
'post_type'
|
26 |
-
'
|
27 |
-
'
|
28 |
-
'
|
29 |
-
'
|
30 |
-
|
31 |
-
|
|
|
|
|
|
|
|
|
32 |
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
40 |
}
|
41 |
?>
|
42 |
</select>
|
43 |
</div>
|
44 |
|
45 |
<div class="aiovg-widget-field aiovg-widget-field-width">
|
46 |
-
<label class="aiovg-widget-label" for="<?php
|
47 |
-
<input type="text" name="<?php
|
48 |
</div>
|
49 |
|
50 |
<div class="aiovg-widget-field aiovg-widget-field-ratio">
|
51 |
-
<label class="aiovg-widget-label" for="<?php
|
52 |
-
<input type="text" name="<?php
|
53 |
</div>
|
54 |
|
55 |
<div class="aiovg-widget-field aiovg-widget-field-autoplay">
|
56 |
-
<input type="checkbox" name="<?php
|
57 |
-
<label for="<?php
|
58 |
</div>
|
59 |
|
60 |
<div class="aiovg-widget-field aiovg-widget-field-loop">
|
61 |
-
<input type="checkbox" name="<?php
|
62 |
-
<label for="<?php
|
63 |
</div>
|
64 |
|
65 |
-
<label class="aiovg-widget-label aiovg-widget-label-header"><?php
|
66 |
|
67 |
<div class="aiovg-widget-field aiovg-widget-field-playpause">
|
68 |
-
<input type="checkbox" name="<?php
|
69 |
-
<label for="<?php
|
70 |
</div>
|
71 |
|
72 |
<div class="aiovg-widget-field aiovg-widget-field-current">
|
73 |
-
<input type="checkbox" name="<?php
|
74 |
-
<label for="<?php
|
75 |
</div>
|
76 |
|
77 |
<div class="aiovg-widget-field aiovg-widget-field-progress">
|
78 |
-
<input type="checkbox" name="<?php
|
79 |
-
<label for="<?php
|
80 |
</div>
|
81 |
|
82 |
<div class="aiovg-widget-field aiovg-widget-field-duration">
|
83 |
-
<input type="checkbox" name="<?php
|
84 |
-
<label for="<?php
|
85 |
</div>
|
86 |
|
87 |
<div class="aiovg-widget-field aiovg-widget-field-tracks">
|
88 |
-
<input type="checkbox" name="<?php
|
89 |
-
<label for="<?php
|
90 |
</div>
|
91 |
|
92 |
<div class="aiovg-widget-field aiovg-widget-field-volume">
|
93 |
-
<input type="checkbox" name="<?php
|
94 |
-
<label for="<?php
|
95 |
</div>
|
96 |
|
97 |
<div class="aiovg-widget-field aiovg-widget-field-fullscreen">
|
98 |
-
<input type="checkbox" name="<?php
|
99 |
-
<label for="<?php
|
100 |
</div>
|
101 |
</div>
|
12 |
|
13 |
<div class="aiovg aiovg-widget-form aiovg-widget-form-video">
|
14 |
<div class="aiovg-widget-field aiovg-widget-field-title">
|
15 |
+
<label class="aiovg-widget-label" for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php esc_html_e( 'Title', 'all-in-one-video-gallery' ); ?></label>
|
16 |
+
<input type="text" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" class="widefat aiovg-widget-input-title" value="<?php echo esc_attr( $instance['title'] ); ?>" />
|
17 |
</div>
|
18 |
|
19 |
<div class="aiovg-widget-field aiovg-widget-field-id">
|
20 |
+
<label class="aiovg-widget-label" for="<?php echo esc_attr( $this->get_field_id( 'id' ) ); ?>"><?php esc_html_e( 'Select Video', 'all-in-one-video-gallery' ); ?></label>
|
21 |
+
<select name="<?php echo esc_attr( $this->get_field_name( 'id' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'id' ) ); ?>" class="widefat aiovg-widget-input-id">
|
22 |
+
<option value="0">-- <?php esc_html_e( 'Latest Video', 'all-in-one-video-gallery' ); ?> --</option>
|
23 |
<?php
|
24 |
+
$args = array(
|
25 |
+
'post_type' => 'aiovg_videos',
|
26 |
+
'post_status' => 'publish',
|
27 |
+
'posts_per_page' => 500,
|
28 |
+
'orderby' => 'title',
|
29 |
+
'order' => 'ASC',
|
30 |
+
'no_found_rows' => true,
|
31 |
+
'update_post_term_cache' => false,
|
32 |
+
'update_post_meta_cache' => false
|
33 |
+
);
|
34 |
+
|
35 |
+
$aiovg_query = new WP_Query( $args );
|
36 |
|
37 |
+
if ( $aiovg_query->have_posts() ) {
|
38 |
+
$posts = $aiovg_query->posts;
|
39 |
+
|
40 |
+
foreach ( $posts as $post ) {
|
41 |
+
printf(
|
42 |
+
'<option value="%d"%s>%s</option>',
|
43 |
+
$post->ID,
|
44 |
+
selected( $post->ID, (int) $instance['id'], false ),
|
45 |
+
esc_html( $post->post_title )
|
46 |
+
);
|
47 |
+
}
|
48 |
}
|
49 |
?>
|
50 |
</select>
|
51 |
</div>
|
52 |
|
53 |
<div class="aiovg-widget-field aiovg-widget-field-width">
|
54 |
+
<label class="aiovg-widget-label" for="<?php echo esc_attr( $this->get_field_id( 'width' ) ); ?>"><?php esc_html_e( 'Width', 'all-in-one-video-gallery' ); ?></label>
|
55 |
+
<input type="text" name="<?php echo esc_attr( $this->get_field_name( 'width' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'width' ) ); ?>" class="widefat aiovg-widget-input-width" value="<?php echo esc_attr( $instance['width'] ); ?>" />
|
56 |
</div>
|
57 |
|
58 |
<div class="aiovg-widget-field aiovg-widget-field-ratio">
|
59 |
+
<label class="aiovg-widget-label" for="<?php echo esc_attr( $this->get_field_id( 'ratio' ) ); ?>"><?php esc_html_e( 'Ratio', 'all-in-one-video-gallery' ); ?></label>
|
60 |
+
<input type="text" name="<?php echo esc_attr( $this->get_field_name( 'ratio' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'ratio' ) ); ?>" class="widefat aiovg-widget-input-ratio" value="<?php echo esc_attr( $instance['ratio'] ); ?>" />
|
61 |
</div>
|
62 |
|
63 |
<div class="aiovg-widget-field aiovg-widget-field-autoplay">
|
64 |
+
<input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'autoplay' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'autoplay' ) ); ?>" class="aiovg-widget-input-autoplay" value="1" <?php checked( 1, $instance['autoplay'] ); ?> />
|
65 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'autoplay' ) ); ?>"><?php esc_html_e( 'Autoplay', 'all-in-one-video-gallery' ); ?></label>
|
66 |
</div>
|
67 |
|
68 |
<div class="aiovg-widget-field aiovg-widget-field-loop">
|
69 |
+
<input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'loop' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'loop' ) ); ?>" class="aiovg-widget-input-loop" value="1" <?php checked( 1, $instance['loop'] ); ?> />
|
70 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'loop' ) ); ?>"><?php esc_html_e( 'Loop', 'all-in-one-video-gallery' ); ?></label>
|
71 |
</div>
|
72 |
|
73 |
+
<label class="aiovg-widget-label aiovg-widget-label-header"><?php esc_html_e( 'Player Controls', 'all-in-one-video-gallery' ); ?></label>
|
74 |
|
75 |
<div class="aiovg-widget-field aiovg-widget-field-playpause">
|
76 |
+
<input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'playpause' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'playpause' ) ); ?>" class="aiovg-widget-input-playpause" value="1" <?php checked( 1, $instance['playpause'] ); ?> />
|
77 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'playpause' ) ); ?>"><?php esc_html_e( 'Play / Pause', 'all-in-one-video-gallery' ); ?></label>
|
78 |
</div>
|
79 |
|
80 |
<div class="aiovg-widget-field aiovg-widget-field-current">
|
81 |
+
<input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'current' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'current' ) ); ?>" class="aiovg-widget-input-current" value="1" <?php checked( 1, $instance['current'] ); ?> />
|
82 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'current' ) ); ?>"><?php esc_html_e( 'Current Time', 'all-in-one-video-gallery' ); ?></label>
|
83 |
</div>
|
84 |
|
85 |
<div class="aiovg-widget-field aiovg-widget-field-progress">
|
86 |
+
<input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'progress' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'progress' ) ); ?>" class="aiovg-widget-input-progress" value="1" <?php checked( 1, $instance['progress'] ); ?> />
|
87 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'progress' ) ); ?>"><?php esc_html_e( 'Progressbar', 'all-in-one-video-gallery' ); ?></label>
|
88 |
</div>
|
89 |
|
90 |
<div class="aiovg-widget-field aiovg-widget-field-duration">
|
91 |
+
<input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'duration' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'duration' ) ); ?>" class="aiovg-widget-input-duration" value="1" <?php checked( 1, $instance['duration'] ); ?> />
|
92 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'duration' ) ); ?>"><?php esc_html_e( 'Duration', 'all-in-one-video-gallery' ); ?></label>
|
93 |
</div>
|
94 |
|
95 |
<div class="aiovg-widget-field aiovg-widget-field-tracks">
|
96 |
+
<input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'tracks' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'tracks' ) ); ?>" class="aiovg-widget-input-tracks" value="1" <?php checked( 1, $instance['tracks'] ); ?> />
|
97 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'tracks' ) ); ?>"><?php esc_html_e( 'Subtitles', 'all-in-one-video-gallery' ); ?></label>
|
98 |
</div>
|
99 |
|
100 |
<div class="aiovg-widget-field aiovg-widget-field-volume">
|
101 |
+
<input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'volume' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'volume' ) ); ?>" class="aiovg-widget-input-volume" value="1" <?php checked( 1, $instance['volume'] ); ?> />
|
102 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'volume' ) ); ?>"><?php esc_html_e( 'Volume', 'all-in-one-video-gallery' ); ?></label>
|
103 |
</div>
|
104 |
|
105 |
<div class="aiovg-widget-field aiovg-widget-field-fullscreen">
|
106 |
+
<input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'fullscreen' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'fullscreen' ) ); ?>" class="aiovg-widget-input-fullscreen" value="1" <?php checked( 1, $instance['fullscreen'] ); ?> />
|
107 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'fullscreen' ) ); ?>"><?php esc_html_e( 'Fullscreen', 'all-in-one-video-gallery' ); ?></label>
|
108 |
</div>
|
109 |
</div>
|
widgets/forms/videos.php
CHANGED
@@ -10,19 +10,19 @@
|
|
10 |
*/
|
11 |
?>
|
12 |
|
13 |
-
<div class="aiovg aiovg-widget-form aiovg-widget-form-videos aiovg-template-<?php
|
14 |
<?php foreach ( $this->fields['videos'] as $key => $section ) : ?>
|
15 |
-
<div class="aiovg-widget-section aiovg-widget-section-<?php
|
16 |
<div class="aiovg-widget-section-header"><?php echo wp_kses_post( $section['title'] ); ?></div>
|
17 |
|
18 |
<?php
|
19 |
foreach ( $section['fields'] as $field ) :
|
20 |
$field_name = sanitize_text_field( $field['name'] );
|
21 |
?>
|
22 |
-
<div class="aiovg-widget-field aiovg-widget-field-<?php
|
23 |
<?php if ( 'categories' == $field['type'] ) : ?>
|
24 |
-
<label class="aiovg-widget-label" for="<?php
|
25 |
-
<ul id="<?php
|
26 |
<?php
|
27 |
$args = array(
|
28 |
'taxonomy' => 'aiovg_categories',
|
@@ -35,11 +35,11 @@
|
|
35 |
?>
|
36 |
</ul>
|
37 |
<?php elseif ( 'text' == $field['type'] || 'url' == $field['type'] || 'number' == $field['type'] ) : ?>
|
38 |
-
<label class="aiovg-widget-label" for="<?php
|
39 |
-
<input type="text" name="<?php
|
40 |
<?php elseif ( 'select' == $field['type'] ) : ?>
|
41 |
-
<label class="aiovg-widget-label" for="<?php
|
42 |
-
<select name="<?php
|
43 |
<?php
|
44 |
foreach( $field['options'] as $key => $value ) {
|
45 |
printf( '<option value="%s"%s>%s</option>', $key, selected( $key, $instance[ $field_name ], false ), $value );
|
@@ -47,11 +47,11 @@
|
|
47 |
?>
|
48 |
</select>
|
49 |
<?php elseif ( 'checkbox' == $field['type'] ) : ?>
|
50 |
-
<input type="checkbox" name="<?php
|
51 |
-
<label for="<?php
|
52 |
<?php elseif ( 'color' == $field['type'] ) : ?>
|
53 |
-
<label class="aiovg-widget-label" for="<?php
|
54 |
-
<input type="text" name="<?php
|
55 |
<?php endif; ?>
|
56 |
|
57 |
<?php if ( ! empty( $field['description'] ) ) : // Description ?>
|
10 |
*/
|
11 |
?>
|
12 |
|
13 |
+
<div class="aiovg aiovg-widget-form aiovg-widget-form-videos aiovg-template-<?php echo esc_attr( $instance['template'] ); ?>">
|
14 |
<?php foreach ( $this->fields['videos'] as $key => $section ) : ?>
|
15 |
+
<div class="aiovg-widget-section aiovg-widget-section-<?php echo esc_attr( $key ); ?>">
|
16 |
<div class="aiovg-widget-section-header"><?php echo wp_kses_post( $section['title'] ); ?></div>
|
17 |
|
18 |
<?php
|
19 |
foreach ( $section['fields'] as $field ) :
|
20 |
$field_name = sanitize_text_field( $field['name'] );
|
21 |
?>
|
22 |
+
<div class="aiovg-widget-field aiovg-widget-field-<?php echo esc_attr( $field_name ); ?>">
|
23 |
<?php if ( 'categories' == $field['type'] ) : ?>
|
24 |
+
<label class="aiovg-widget-label" for="<?php echo esc_attr( $this->get_field_id( $field_name ) ); ?>"><?php echo esc_html( $field['label'] ); ?></label>
|
25 |
+
<ul id="<?php echo esc_attr( $this->get_field_id( $field_name ) ); ?>" class="widefat aiovg-widget-input-<?php echo esc_attr( $field_name ); ?> aiovg-checklist">
|
26 |
<?php
|
27 |
$args = array(
|
28 |
'taxonomy' => 'aiovg_categories',
|
35 |
?>
|
36 |
</ul>
|
37 |
<?php elseif ( 'text' == $field['type'] || 'url' == $field['type'] || 'number' == $field['type'] ) : ?>
|
38 |
+
<label class="aiovg-widget-label" for="<?php echo esc_attr( $this->get_field_id( $field_name ) ); ?>"><?php echo esc_html( $field['label'] ); ?></label>
|
39 |
+
<input type="text" name="<?php echo esc_attr( $this->get_field_name( $field_name ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( $field_name ) ); ?>" class="widefat aiovg-widget-input-<?php echo esc_attr( $field_name ); ?>" value="<?php echo esc_attr( $instance[ $field_name ] ); ?>" />
|
40 |
<?php elseif ( 'select' == $field['type'] ) : ?>
|
41 |
+
<label class="aiovg-widget-label" for="<?php echo esc_attr( $this->get_field_id( $field_name ) ); ?>"><?php echo esc_html( $field['label'] ); ?></label>
|
42 |
+
<select name="<?php echo esc_attr( $this->get_field_name( $field_name ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( $field_name ) ); ?>" class="widefat aiovg-widget-input-<?php echo esc_attr( $field_name ); ?>">
|
43 |
<?php
|
44 |
foreach( $field['options'] as $key => $value ) {
|
45 |
printf( '<option value="%s"%s>%s</option>', $key, selected( $key, $instance[ $field_name ], false ), $value );
|
47 |
?>
|
48 |
</select>
|
49 |
<?php elseif ( 'checkbox' == $field['type'] ) : ?>
|
50 |
+
<input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( $field_name ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( $field_name ) ); ?>" class="aiovg-widget-input-<?php echo esc_attr( $field_name ); ?>" value="1" <?php checked( 1, $instance[ $field_name ] ); ?> />
|
51 |
+
<label for="<?php echo esc_attr( $this->get_field_id( $field_name ) ); ?>"><?php echo esc_html( $field['label'] ); ?></label>
|
52 |
<?php elseif ( 'color' == $field['type'] ) : ?>
|
53 |
+
<label class="aiovg-widget-label" for="<?php echo esc_attr( $this->get_field_id( $field_name ) ); ?>"><?php echo esc_html( $field['label'] ); ?></label>
|
54 |
+
<input type="text" name="<?php echo esc_attr( $this->get_field_name( $field_name ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( $field_name ) ); ?>" class="widefat aiovg-widget-input-<?php echo esc_attr( $field_name ); ?> aiovg-color-picker-field" value="<?php echo esc_attr( $instance[ $field_name ] ); ?>" />
|
55 |
<?php endif; ?>
|
56 |
|
57 |
<?php if ( ! empty( $field['description'] ) ) : // Description ?>
|
widgets/video.php
CHANGED
@@ -56,19 +56,28 @@ class AIOVG_Widget_Video extends WP_Widget {
|
|
56 |
* @param array $instance The current instance of the widget.
|
57 |
*/
|
58 |
public function widget( $args, $instance ) {
|
59 |
-
// Vars
|
|
|
|
|
60 |
if ( ! empty( $instance['id'] ) ) {
|
61 |
$post_id = (int) $instance['id'];
|
62 |
} else {
|
63 |
-
$
|
64 |
-
'post_type'
|
65 |
-
'post_status'
|
66 |
'posts_per_page' => 1,
|
67 |
-
'fields'
|
68 |
-
|
69 |
-
|
|
|
|
|
|
|
|
|
70 |
|
71 |
-
|
|
|
|
|
|
|
72 |
}
|
73 |
|
74 |
// Process output
|
56 |
* @param array $instance The current instance of the widget.
|
57 |
*/
|
58 |
public function widget( $args, $instance ) {
|
59 |
+
// Vars
|
60 |
+
$post_id = 0;
|
61 |
+
|
62 |
if ( ! empty( $instance['id'] ) ) {
|
63 |
$post_id = (int) $instance['id'];
|
64 |
} else {
|
65 |
+
$query_args = array(
|
66 |
+
'post_type' => 'aiovg_videos',
|
67 |
+
'post_status' => 'publish',
|
68 |
'posts_per_page' => 1,
|
69 |
+
'fields' => 'ids',
|
70 |
+
'no_found_rows' => true,
|
71 |
+
'update_post_term_cache' => false,
|
72 |
+
'update_post_meta_cache' => false
|
73 |
+
);
|
74 |
+
|
75 |
+
$aiovg_query = new WP_Query( $query_args );
|
76 |
|
77 |
+
if ( $aiovg_query->have_posts() ) {
|
78 |
+
$posts = $aiovg_query->posts;
|
79 |
+
$post_id = (int) $posts[0];
|
80 |
+
}
|
81 |
}
|
82 |
|
83 |
// Process output
|