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

Version Description

Download this release

Release Info

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

Code changes from version 9.1.0 to 9.1.1

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: 9.1.0
7
  * Author: Nicolas Jonas
8
  * Author URI: https://nextgenthemes.com
9
  * License: GPL-3.0
@@ -21,7 +21,7 @@
21
 
22
  namespace Nextgenthemes\ARVE;
23
 
24
- const VERSION = '9.1.0';
25
  const PRO_VERSION_REQUIRED = '5.0.0-beta5';
26
  const NUM_TRACKS = 3;
27
  const PLUGIN_FILE = __FILE__;
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: 9.1.1
7
  * Author: Nicolas Jonas
8
  * Author URI: https://nextgenthemes.com
9
  * License: GPL-3.0
21
 
22
  namespace Nextgenthemes\ARVE;
23
 
24
+ const VERSION = '9.1.1';
25
  const PRO_VERSION_REQUIRED = '5.0.0-beta5';
26
  const NUM_TRACKS = 3;
27
  const PLUGIN_FILE = __FILE__;
build/common/notice-ajax.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => 'ccb0798b2390e3f5c2a57fa48a574f33');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => '2b1e2d09d7a3fba1f57b17c63f372313');
build/common/notice-ajax.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}({18:function(e,t,n){"use strict";n.r(t),document.body.addEventListener("click",e=>{const t=e.target;if(!t)return;const n=t.closest("[data-nextgenthemes-notice-id]");n&&window.jQuery.ajax({url:window.ajaxurl,data:{action:n.dataset.nextgenthemesNoticeId}})},!1)}});
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}({18:function(e,t,n){"use strict";n.r(t),document.body.addEventListener("click",e=>{const t=e.target;if(!t)return;const n=t.closest("[data-nextgenthemes-notice-id]");if(!n)return;const r=new XMLHttpRequest,o="action="+n.dataset.nextgenthemesNoticeId;r.open("POST",window.ajaxurl),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.send(o)},!1)}});
php/Common/Admin/NoticeFactory.php CHANGED
@@ -7,6 +7,7 @@ class NoticeFactory {
7
 
8
  public $slug;
9
  public $notice;
 
10
  public $dismiss_forever;
11
 
12
  public function __construct( $slug, $notice, $dismiss_forever = true, $capabilities = 'activate_plugins' ) {
@@ -33,7 +34,7 @@ class NoticeFactory {
33
  $user_id = get_current_user_id();
34
  $user_meta = get_user_meta( $user_id, $this->notice_id );
35
 
36
- if ( $this->dismiss_forever && ! empty( $user_meta ) ) {
37
  return;
38
  } elseif ( get_transient( $this->notice_id ) ) {
39
  return;
@@ -51,10 +52,9 @@ class NoticeFactory {
51
  Common\enqueue_asset(
52
  [
53
  'handle' => 'nextgenthemes-notice-ajax',
54
- 'deps' => [ 'jquery' ],
55
  'src' => Common\plugin_or_theme_src( 'build/common/notice-ajax.js' ),
56
  'path' => dirname( dirname( dirname( __DIR__ ) ) ) . '/build/common/notice-ajax.js',
57
- 'async' => false,
58
  ]
59
  );
60
  }
@@ -64,7 +64,7 @@ class NoticeFactory {
64
  $user_id = get_current_user_id();
65
 
66
  if ( $this->dismiss_forever ) {
67
- add_user_meta( $user_id, $this->notice_id, true );
68
  } else {
69
  set_transient( $this->notice_id, true, HOUR_IN_SECONDS );
70
  }
7
 
8
  public $slug;
9
  public $notice;
10
+ public $notice_id;
11
  public $dismiss_forever;
12
 
13
  public function __construct( $slug, $notice, $dismiss_forever = true, $capabilities = 'activate_plugins' ) {
34
  $user_id = get_current_user_id();
35
  $user_meta = get_user_meta( $user_id, $this->notice_id );
36
 
37
+ if ( $this->dismiss_forever && $user_meta ) {
38
  return;
39
  } elseif ( get_transient( $this->notice_id ) ) {
40
  return;
52
  Common\enqueue_asset(
53
  [
54
  'handle' => 'nextgenthemes-notice-ajax',
 
55
  'src' => Common\plugin_or_theme_src( 'build/common/notice-ajax.js' ),
56
  'path' => dirname( dirname( dirname( __DIR__ ) ) ) . '/build/common/notice-ajax.js',
57
+ 'footer' => false,
58
  ]
59
  );
60
  }
64
  $user_id = get_current_user_id();
65
 
66
  if ( $this->dismiss_forever ) {
67
+ update_user_meta( $user_id, $this->notice_id, 'ngt-notice-dismissed' );
68
  } else {
69
  set_transient( $this->notice_id, true, HOUR_IN_SECONDS );
70
  }
php/functions-shortcodes.php CHANGED
@@ -167,11 +167,15 @@ function create_shortcodes() {
167
  add_shortcode( 'arve_test', __NAMESPACE__ . '\test_shortcode' );
168
  }
169
 
 
170
  function wp_video_shortcode_override( $out, $attr ) {
171
 
172
  $options = options();
173
 
174
- if ( ! $options['wp_video_override'] ||
 
 
 
175
  ! empty( $attr['wmv'] ) ||
176
  ! empty( $attr['flv'] ) ||
177
  disabled_on_feeds()
167
  add_shortcode( 'arve_test', __NAMESPACE__ . '\test_shortcode' );
168
  }
169
 
170
+ // TODO sometimes $attr is string, investigate when and what it is exacly
171
  function wp_video_shortcode_override( $out, $attr ) {
172
 
173
  $options = options();
174
 
175
+ if (
176
+ ! $options['wp_video_override'] ||
177
+ empty( $attr ) ||
178
+ ! is_array( $attr ) ||
179
  ! empty( $attr['wmv'] ) ||
180
  ! empty( $attr['flv'] ) ||
181
  disabled_on_feeds()
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: 5.6
7
  Requires PHP: 5.6
8
- Stable tag: 9.1.0
9
  License: GPL-3.0
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -16,9 +16,12 @@ Easy responsive video embeds via URLs or shortcodes. Perfect drop-in replacement
16
  * [ARVE Pro addon changelog](https://nextgenthemes.com/plugins/arve-pro/changelog/)
17
  * [ARVE AMP addon changelog](https://nextgenthemes.com/plugins/arve-amp/)
18
 
 
 
 
 
19
  ### 2020-12-23 9.1.0 ###
20
 
21
- * Maybe fixes not dismissible admin messages.
22
  * Fix: Correct backwards compatibility for deprecated mode values.
23
  * Fix: Expand on click UI in Gutenberg.
24
  * New: Wrapper element `.arve-inner` for more custom control over embeds.
5
  Requires at least: 4.4.0
6
  Tested up to: 5.6
7
  Requires PHP: 5.6
8
+ Stable tag: 9.1.1
9
  License: GPL-3.0
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
16
  * [ARVE Pro addon changelog](https://nextgenthemes.com/plugins/arve-pro/changelog/)
17
  * [ARVE AMP addon changelog](https://nextgenthemes.com/plugins/arve-amp/)
18
 
19
+ ### 2020-12-24 9.1.1 ###
20
+
21
+ * Marry XMAS, bitches.
22
+
23
  ### 2020-12-23 9.1.0 ###
24
 
 
25
  * Fix: Correct backwards compatibility for deprecated mode values.
26
  * Fix: Expand on click UI in Gutenberg.
27
  * New: Wrapper element `.arve-inner` for more custom control over embeds.