ARVE Advanced Responsive Video Embedder (YouTube, Vimeo, HTML5 Video …) - Version 8.10.2

Version Description

Download this release

Release Info

Developer nico23
Plugin Icon 128x128 ARVE Advanced Responsive Video Embedder (YouTube, Vimeo, HTML5 Video …)
Version 8.10.2
Comparing to
See all releases

Code changes from version 8.10.0 to 8.10.2

admin/functions-licensing.php CHANGED
@@ -1,5 +1,4 @@
1
<?php
2
-
3
add_action( 'admin_init', 'nextgenthemes_init_edd_updaters', 0 );
4
add_action( 'admin_init', 'nextgenthemes_activation_notices' );
5
add_action( 'admin_init', 'nextgenthemes_register_settings' );
@@ -15,6 +14,7 @@ function nextgenthemes_admin_install_search_url( $search_term ) {
15
return admin_url( $path );
16
}
17
}
18
function nextgenthemes_ads_page() { ?>
19
<style>
20
body {
@@ -455,7 +455,6 @@ function nextgenthemes_init_plugin_updater( $product ) {
455
array(
456
'version' => $product['version'],
457
'license' => nextgenthemes_get_key( $product['slug'] ),
458
- #'item_name' => $product['name'],
459
'item_id' => $product['id'],
460
'author' => $product['author']
461
)
1
<?php
2
add_action( 'admin_init', 'nextgenthemes_init_edd_updaters', 0 );
3
add_action( 'admin_init', 'nextgenthemes_activation_notices' );
4
add_action( 'admin_init', 'nextgenthemes_register_settings' );
14
return admin_url( $path );
15
}
16
}
17
+
18
function nextgenthemes_ads_page() { ?>
19
<style>
20
body {
455
array(
456
'version' => $product['version'],
457
'license' => nextgenthemes_get_key( $product['slug'] ),
458
'item_id' => $product['id'],
459
'author' => $product['author']
460
)
admin/html-debug-info.php CHANGED
@@ -1,14 +1,4 @@
1
<textarea style="font-family: monospace; width: 100%" rows="25">
2
- Version of the browser you see the issue in (for example Firefox 52, do not say latest):
3
-
4
- Link to test page on live site with the issue (do not change after posting):
5
-
6
- Shortcode(s) or URL(s) you used for embedding and have problems with:
7
-
8
- Detailed Description of the issue:
9
-
10
- What you are expecting and what you are seeing instead?
11
-
12
ARVE Version: <?php echo $arve_version . "\n"; ?>
13
ARVE-Pro Version: <?php echo $arve_pro_version . "\n"; ?>
14
WordPress Version: <?php echo $wp_version . "\n"; ?>
1
<textarea style="font-family: monospace; width: 100%" rows="25">
2
ARVE Version: <?php echo $arve_version . "\n"; ?>
3
ARVE-Pro Version: <?php echo $arve_pro_version . "\n"; ?>
4
WordPress Version: <?php echo $wp_version . "\n"; ?>
advanced-responsive-video-embedder.php CHANGED
@@ -3,7 +3,7 @@
3
* Plugin Name: ARVE Advanced Responsive Video Embedder
4
* Plugin URI: https://nextgenthemes.com/plugins/arve-pro/
5
* Description: Easy responsive video embeds via URL (like WordPress) or Shortcodes. Supports almost anything you can imagine.
6
- * Version: 8.10.0
7
* Author: Nicolas Jonas
8
* Author URI: https://nextgenthemes.com
9
* License: GPL-3.0
@@ -19,8 +19,8 @@ if ( ! defined( 'WPINC' ) ) {
19
}
20
21
define( 'ARVE_SLUG', 'advanced-responsive-video-embedder' );
22
- define( 'ARVE_VERSION', '8.10.0' );
23
- define( 'ARVE_PRO_VERSION_REQUIRED', '4.0.0' );
24
25
define( 'ARVE_URL', plugin_dir_url( __FILE__ ) );
26
define( 'ARVE_PUBLIC_URL', ARVE_URL . 'public/' );
3
* Plugin Name: ARVE Advanced Responsive Video Embedder
4
* Plugin URI: https://nextgenthemes.com/plugins/arve-pro/
5
* Description: Easy responsive video embeds via URL (like WordPress) or Shortcodes. Supports almost anything you can imagine.
6
+ * Version: 8.10.1
7
* Author: Nicolas Jonas
8
* Author URI: https://nextgenthemes.com
9
* License: GPL-3.0
19
}
20
21
define( 'ARVE_SLUG', 'advanced-responsive-video-embedder' );
22
+ define( 'ARVE_VERSION', '8.10.1' );
23
+ define( 'ARVE_PRO_VERSION_REQUIRED', '4.2.0' );
24
25
define( 'ARVE_URL', plugin_dir_url( __FILE__ ) );
26
define( 'ARVE_PUBLIC_URL', ARVE_URL . 'public/' );
public/functions-html-output.php CHANGED
@@ -61,57 +61,91 @@ function arve_get_debug_info( $input_html, $atts, $input_atts ) {
61
return $html;
62
}
63
64
- function arve_build_meta_html( $atts ) {
65
66
$meta = '';
67
68
- if ( ! empty( $atts['sources'] ) ) {
69
70
- $first_source = arve_get_first_array_value( $atts['sources'] );
71
72
$meta .= sprintf( '<meta itemprop="contentURL" content="%s">', esc_attr( $first_source['src'] ) );
73
}
74
75
- if ( ! empty( $atts['iframe_src'] ) ) {
76
- $meta .= sprintf( '<meta itemprop="embedURL" content="%s">', esc_attr( $atts['iframe_src'] ) );
77
}
78
79
- if ( ! empty( $atts['upload_date'] ) ) {
80
- $meta .= sprintf( '<meta itemprop="uploadDate" content="%s">', esc_attr( $atts['upload_date'] ) );
81
}
82
83
- if ( ! empty( $atts['duration'] ) ) {
84
- $meta .= sprintf( '<meta itemprop="duration" content="PT%s">', esc_attr( $atts['duration'] ) );
85
}
86
87
- if( ! empty( $atts['img_src'] ) ) :
88
89
- $meta .= sprintf(
90
- '<meta%s>',
91
- arve_attr( array(
92
- 'itemprop' => 'thumbnailUrl',
93
- 'content' => $atts['img_src'],
94
- ) )
95
);
96
97
endif;
98
99
- if ( ! empty( $atts['title'] )
100
- && in_array( $atts['mode'], array( 'lazyload', 'lazyload-lightbox' ) )
101
- && empty( $atts['hide_title'] )
102
- ) {
103
- $meta .= '<h5 itemprop="name" class="arve-title">' . trim( $atts['title'] ) . '</h5>';
104
- } elseif( ! empty( $atts['title'] ) ) {
105
- $meta .= sprintf( '<meta itemprop="name" content="%s">', esc_attr( trim( $atts['title'] ) ) );
106
}
107
108
- if ( ! empty( $atts['description'] ) ) {
109
- $meta .= '<span itemprop="description" class="arve-description arve-hidden">' . esc_html( trim( $atts['description'] ) ) . '</span>';
110
}
111
112
return $meta;
113
}
114
115
function arve_build_promote_link_html( $arve_link ) {
116
117
if ( $arve_link ) {
61
return $html;
62
}
63
64
+ function arve_build_meta_html( $a ) {
65
66
$meta = '';
67
68
+ if ( ! empty( $a['sources'] ) ) {
69
70
+ $first_source = arve_get_first_array_value( $a['sources'] );
71
72
$meta .= sprintf( '<meta itemprop="contentURL" content="%s">', esc_attr( $first_source['src'] ) );
73
}
74
75
+ if ( ! empty( $a['iframe_src'] ) ) {
76
+ $meta .= sprintf( '<meta itemprop="embedURL" content="%s">', esc_attr( $a['iframe_src'] ) );
77
}
78
79
+ if ( ! empty( $a['upload_date'] ) ) {
80
+ $meta .= sprintf( '<meta itemprop="uploadDate" content="%s">', esc_attr( $a['upload_date'] ) );
81
}
82
83
+ if ( ! empty( $a['duration'] ) ) {
84
+ $meta .= sprintf( '<meta itemprop="duration" content="PT%s">', esc_attr( $a['duration'] ) );
85
}
86
87
+ if( ! empty( $a['img_src'] ) ) :
88
89
+ $thumbnail = sprintf( '<meta itemprop="thumbnailUrl" content="%s">', esc_attr( $a['img_src'] ) );
90
+
91
+ $meta .= arve_build_tag(
92
+ [
93
+ 'name' => 'thumbnail',
94
+ 'tag' => 'meta',
95
+ 'attr' => [
96
+ 'itemprop' => 'thumbnailUrl',
97
+ 'content' => $a['img_src'],
98
+ ],
99
+ ],
100
+ $a
101
);
102
103
endif;
104
105
+ if ( ! empty( $a['title'] ) ) {
106
+
107
+ $meta .= arve_build_tag(
108
+ [
109
+ 'name' => 'title',
110
+ 'tag' => 'meta',
111
+ 'attr' => [
112
+ 'itemprop' => 'name',
113
+ 'content' => trim( $a['title'] ),
114
+ ]
115
+ ],
116
+ $a
117
+ );
118
}
119
120
+ if ( ! empty( $a['description'] ) ) {
121
+ $meta .= sprintf( '<span itemprop="description" class="arve-description arve-hidden">%s</span>', esc_html( trim( $a['description'] ) ) );
122
}
123
124
return $meta;
125
}
126
127
+ function arve_build_tag( $args, $a ) {
128
+
129
+ $args = apply_filters( "nextgenthemes/arve/{$args['name']}", $args, $a );
130
+
131
+ if ( ! empty( $args['content'] ) ) {
132
+ $out = sprintf(
133
+ '<%1$s%2$s>%3$s</%1$s>',
134
+ esc_html( $args['tag'] ),
135
+ arve_attr( $args['attr'] ),
136
+ $args['content']
137
+ );
138
+ } else {
139
+ $out = sprintf(
140
+ '<%s%s>',
141
+ esc_html( $args['tag'] ),
142
+ arve_attr( $args['attr'] )
143
+ );
144
+ }
145
+
146
+ return $out;
147
+ }
148
+
149
function arve_build_promote_link_html( $arve_link ) {
150
151
if ( $arve_link ) {
public/functions-shortcode-filters.php CHANGED
@@ -95,7 +95,7 @@ function arve_sc_filter_attr( $a ) {
95
}
96
97
$a['iframe_attr'] = array(
98
- 'allow' => 'autoplay; fullscreen',
99
'allowfullscreen' => '',
100
'class' => 'arve-iframe fitvidsignore',
101
'frameborder' => '0',
95
}
96
97
$a['iframe_attr'] = array(
98
+ 'allow' => 'accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture',
99
'allowfullscreen' => '',
100
'class' => 'arve-iframe fitvidsignore',
101
'frameborder' => '0',
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: YouTube, Vimeo, lazyload, thumbnail, video, responsive, embeds, video-embe
5
Requires at least: 4.4.0
6
Tested up to: 4.9.4
7
Requires PHP: 5.3
8
- Stable tag: 8.10.0
9
License: GPL-3.0
10
License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
@@ -153,11 +153,20 @@ This plugins embed is considered as 'custom player' by YouTube so you have to pa
153
2. URL Parameter Options
154
3. Pro Options
155
156
- ## Changelog ##
157
158
* [ARVE Pro addon changelog](https://nextgenthemes.com/plugins/arve-pro/changelog/)
159
* [ARVE AMP addon changelog](https://nextgenthemes.com/plugins/arve-amp/)
160
161
### 2018-11-27 - 8.10.0 ###
162
163
* Improved: Video max width setting now defaults (if empty) to your themes `$content_width` variable to optimize thumbnail loading in Pro Addon.
5
Requires at least: 4.4.0
6
Tested up to: 4.9.4
7
Requires PHP: 5.3
8
+ Stable tag: 8.10.2
9
License: GPL-3.0
10
License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
153
2. URL Parameter Options
154
3. Pro Options
155
156
+ ## Changelog #
157
158
* [ARVE Pro addon changelog](https://nextgenthemes.com/plugins/arve-pro/changelog/)
159
* [ARVE AMP addon changelog](https://nextgenthemes.com/plugins/arve-amp/)
160
161
+ ### 2019-01-16 - 8.10.2 ###
162
+
163
+ * Fix: Base code to fix titles not showing over thumbnails in recent Pro Addon version.
164
+ * Improved: Added `allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"` to iframe as per official YouTube embed code.
165
+
166
+ ### 2018-11-29 - 8.10.1 ###
167
+
168
+ * Improved: Display message to remind customers to update ARVE Pro 4.2.0. Auto updates seem to not work again ...
169
+
170
### 2018-11-27 - 8.10.0 ###
171
172
* Improved: Video max width setting now defaults (if empty) to your themes `$content_width` variable to optimize thumbnail loading in Pro Addon.