Version Description
Download this release
Release Info
Developer | nico23 |
Plugin | ARVE Advanced Responsive Video Embedder (YouTube, Vimeo, HTML5 Video …) |
Version | 9.7.16 |
Comparing to | |
See all releases |
Code changes from version 9.7.15 to 9.7.16
- advanced-responsive-video-embedder.php +2 -3
- build/block.asset.php +1 -1
- build/block.js +1 -1
- build/main.asset.php +1 -1
- build/main.css +1 -1
- changelog.md +4 -0
- php/functions-oembed.php +6 -1
- readme.txt +6 -2
- src/block.json +1 -1
- src/main.scss +4 -0
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.7.
|
7 |
* Author: Nicolas Jonas
|
8 |
* Author URI: https://nextgenthemes.com
|
9 |
* License: GPL-3.0
|
@@ -16,10 +16,9 @@
|
|
16 |
* @license GPL 3.0
|
17 |
* @link https://nextgenthemes.com
|
18 |
*/
|
19 |
-
|
20 |
namespace Nextgenthemes\ARVE;
|
21 |
|
22 |
-
const VERSION = '9.7.
|
23 |
const PRO_VERSION_REQUIRED = '5.3.0-alpha1';
|
24 |
const NUM_TRACKS = 3;
|
25 |
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.7.16
|
7 |
* Author: Nicolas Jonas
|
8 |
* Author URI: https://nextgenthemes.com
|
9 |
* License: GPL-3.0
|
16 |
* @license GPL 3.0
|
17 |
* @link https://nextgenthemes.com
|
18 |
*/
|
|
|
19 |
namespace Nextgenthemes\ARVE;
|
20 |
|
21 |
+
const VERSION = '9.7.16';
|
22 |
const PRO_VERSION_REQUIRED = '5.3.0-alpha1';
|
23 |
const NUM_TRACKS = 3;
|
24 |
const PLUGIN_FILE = __FILE__;
|
build/block.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '7fab7a1975070f1640e1');
|
build/block.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(()=>{"use strict";var e={};function t(){return t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},e.d=(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const r=window.wp.element,n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"nextgenthemes/arve-block","title":"Video Embed (ARVE)","category":"embed","icon":"video-alt3","description":"Advanced Responsive Video Embedder","keywords":["embed","youtube","rumble","vimeo","odysee"],"version":"9.7.
|
1 |
+
(()=>{"use strict";var e={};function t(){return t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},e.d=(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const r=window.wp.element,n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"nextgenthemes/arve-block","title":"Video Embed (ARVE)","category":"embed","icon":"video-alt3","description":"Advanced Responsive Video Embedder","keywords":["embed","youtube","rumble","vimeo","odysee"],"version":"9.7.15","textdomain":"advanced-responsive-video-embedder","supports":{"align":["wide","full"]},"styles":[],"example":{"attributes":{"url":"https://www.youtube.com/watch?v=oe452WcY7fA","title":"Example Title"}},"editorScript":"arve-block","editorStyle":"arve","attributes":{"url":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"upload_date":{"type":"string"},"mode":{"type":"string"},"thumbnail":{"type":"string"},"hide_title":{"type":"boolean"},"grow":{"type":"string"},"fullscreen":{"type":"string"},"play_icon_style":{"type":"string"},"hover_effect":{"type":"string"},"disable_links":{"type":"string"},"align":{"type":"string"},"arve_link":{"type":"string"},"duration":{"type":"string"},"autoplay":{"type":"string"},"lightbox_maxwidth":{"type":"integer"},"sticky":{"type":"string"},"sticky_on_mobile":{"type":"string"},"sticky_position":{"type":"string"},"aspect_ratio":{"type":"string"},"parameters":{"type":"string"},"controlslist":{"type":"string"},"controls":{"type":"string"},"loop":{"type":"boolean"},"muted":{"type":"boolean"},"volume":{"type":"integer"},"random_video_url":{"type":"string"},"random_video_urls":{"type":"string"},"sandbox":{"type":"string"},"thumbnail_url":{"type":"string"}}}'),i=window.wp.i18n,a=window.wp.serverSideRender;var l=e.n(a);const o=window.wp.blockEditor,s=window.wp.components,c=window.wp.blocks,{name:d}=n,p=window.ARVEsettings,u=new DOMParser;function m(e){const t=[];return Object.entries(e).forEach((e=>{let[r,n]=e;const i={label:n,value:r};t.push(i)})),t}function b(e){if("string"!=typeof e.description)return"";if("string"==typeof e.descriptionlinktext){const t=e.description.split(e.descriptionlinktext);return(0,r.createElement)("span",null,(0,r.createElement)("span",null,t[0]),(0,r.createElement)("a",{href:e.descriptionlink},e.descriptionlinktext),",",(0,r.createElement)("span",null,t[1]))}return e.description}function g(e,t){const r=y(e,t);return e/r+":"+t/r}function y(e,t){return t?y(t,e%t):e}(0,c.registerBlockType)(d,{edit:function(e){const{attributes:{align:n},setAttributes:a}=e,c=(0,o.useBlockProps)(),d=function(e){const t=[],n={},a=(0,r.createElement)("p",null,(0,i.__)("To edit the featured image, you need permission to upload media."));let l=!1;Object.values(p).forEach((e=>{n[e.tag]=[]})),Object.entries(p).forEach((t=>{let[c,d]=t,p=e.attributes[c],y="";switch(d.type){case"boolean":"sandbox"===c&&void 0===p&&(p=!0),n[d.tag].push((0,r.createElement)(s.ToggleControl,{key:c,label:d.label,help:b(d),checked:!!p,onChange:t=>e.setAttributes({[c]:t})}));break;case"select":n[d.tag].push((0,r.createElement)(s.SelectControl,{key:c,value:p,label:d.label,help:b(d),options:m(d.options),onChange:t=>e.setAttributes({[c]:t})}));break;case"string":n[d.tag].push((0,r.createElement)(s.TextControl,{key:c,label:d.label,placeholder:d.placeholder,help:b(d),value:p,onChange:t=>(function(e,t,r){if("url"===e){const e=u.parseFromString(t,"text/html").querySelector("iframe");if(e&&e.getAttribute("src")){t=e.src;const n=e.width,i=e.height;n&&i&&r.setAttributes({aspect_ratio:g(n,i)})}}}(c,t,e),e.setAttributes({[c]:t}))}));break;case"attachment":y=e.attributes[c+"_url"],n[d.tag].push((0,r.createElement)(s.BaseControl,{className:"editor-post-featured-image",help:b(d),key:c},(0,r.createElement)(o.MediaUploadCheck,{fallback:a},(0,r.createElement)(o.MediaUpload,{title:(0,i.__)("Thumbnail"),onSelect:t=>(l=t,e.setAttributes({[c]:t.id.toString(),[c+"_url"]:t.url})),unstableFeaturedImageFlow:!0,allowedTypes:["image"],modalClass:"editor-post-featured-image__media-modal",render:e=>{let{open:t}=e;return(0,r.createElement)("div",{className:"editor-post-featured-image__container"},(0,r.createElement)(s.Button,{className:p?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:t,"aria-label":p?(0,i.__)("Edit or update the image"):null,"aria-describedby":p?`editor-post-featured-image-${p}-describedby`:""},!!p&&!!y&&(0,r.createElement)("div",{style:{overflow:"hidden"}},(0,r.createElement)(s.ResponsiveWrapper,{naturalWidth:640,naturalHeight:360,isInline:!0},(0,r.createElement)("img",{src:y,alt:"ARVE Thumbnail",style:{width:"100%",height:"100%",objectFit:"cover"}}))),!p&&(0,i.__)("Set Thumbnail")),(0,r.createElement)(s.DropZone,null))},value:p})),!!p&&!!y&&(0,r.createElement)(o.MediaUploadCheck,null,(0,r.createElement)(o.MediaUpload,{title:(0,i.__)("Thumbnail"),onSelect:t=>(l=t,e.setAttributes({[c]:t.id.toString(),[c+"_url"]:t.url})),unstableFeaturedImageFlow:!0,allowedTypes:["image"],modalClass:"editor-post-featured-image__media-modal",render:e=>{let{open:t}=e;return(0,r.createElement)(s.Button,{onClick:t,isSecondary:!0},(0,i.__)("Replace Thumbnail"))}})),!!p&&(0,r.createElement)(o.MediaUploadCheck,null,(0,r.createElement)(s.Button,{onClick:()=>e.setAttributes({[c]:"",[c+"_url"]:""}),isLink:!0,isDestructive:!0},(0,i.__)("Remove Thumbnail")))))}}));let c=!0;return n.main.push((0,r.createElement)(s.BaseControl,{key:"info",help:(0,i.__)("You can disable the extensive help texts on the ARVE settings page to clean up this UI","advanced-responsive-video-embedder")},(0,r.createElement)(s.BaseControl.VisualLabel,null,(0,i.__)("Info","advanced-responsive-video-embedder")))),Object.keys(n).forEach((e=>{var i;t.push((0,r.createElement)(s.PanelBody,{key:e,title:(i=e,i.charAt(0).toUpperCase()+i.slice(1)),initialOpen:c},n[e])),c=!1})),t}(e);return[(0,r.createElement)("div",t({},c,{key:"block"}),(0,r.createElement)("div",{className:"arve-select-helper",style:{textAlign:"center",padding:".1em"}},(0,i.__)("Select ARVE block","advanced-responsive-video-embedder")),(0,r.createElement)(l(),{block:"nextgenthemes/arve-block",attributes:e.attributes})),(0,r.createElement)(o.InspectorControls,{key:"insp"},d)]}})})();
|
build/main.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array(), 'version' => '
|
1 |
+
<?php return array('dependencies' => array(), 'version' => '54d2e76056851d3b806e');
|
build/main.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#html .arve{display:block;margin-bottom:1.5em;width:100%}#html .arve:after{clear:both;content:"";display:table}#html .arve.alignleft{margin-right:1.5em;margin-top:.4em}#html .arve.alignright{margin-left:1.5em;margin-top:.4em}#html .arve [hidden],#html .arve[hidden]{display:none}#html .arve-inner{display:block;margin:0;padding:0;width:auto}#html .arve-embed{display:block;margin:0;max-height:100vh;overflow:hidden;padding:0;position:relative;width:100%}#html .arve-embed--has-aspect-ratio{aspect-ratio:16/9}#html .arve-embed--has-aspect-ratio:after{clear:both;content:"";display:block}#html .arve-ar{display:block}#html .arve-iframe,#html .arve-play-btn,#html .arve-thumbnail{border:0;bottom:0;height:100%;left:0;margin:0;padding:0;position:absolute;top:0;width:100%}#html .arve-video{height:auto;margin:0;padding:0;width:100%}#html .arve-promote-link{float:right;font-family:Open Sans,Sagoe UI,Arvo,Lato,arial,sans-serif;font-size:.8em}.components-button--arve-thumbnail{display:block;height:auto}@supports(aspect-ratio:16/9){#html .arve-ar,#html .arve-embed--has-aspect-ratio:after{display:none}}
|
1 |
+
#html .arve{display:block;margin-bottom:1.5em;width:100%}#html .arve:after{clear:both;content:"";display:table}#html .arve.alignleft{margin-right:1.5em;margin-top:.4em}#html .arve.alignright{margin-left:1.5em;margin-top:.4em}#html .arve [hidden],#html .arve[hidden]{display:none}#html .arve-inner{display:block;margin:0;padding:0;width:auto}#html .arve-embed{display:block;margin:0;max-height:100vh;overflow:hidden;padding:0;position:relative;width:100%}#html .arve-embed--has-aspect-ratio{aspect-ratio:16/9}#html .arve-embed--has-aspect-ratio:after{clear:both;content:"";display:block}#html .arve-ar{display:block}#html .arve-iframe,#html .arve-play-btn,#html .arve-thumbnail{border:0;bottom:0;height:100%;left:0;margin:0;padding:0;position:absolute;top:0;width:100%}#html .arve-video{height:auto;margin:0;padding:0;width:100%}#html .arve-promote-link{float:right;font-family:Open Sans,Sagoe UI,Arvo,Lato,arial,sans-serif;font-size:.8em}.components-button--arve-thumbnail{display:block;height:auto}@supports(aspect-ratio:16/9){#html .arve-ar,#html .arve-embed--has-aspect-ratio:after{display:none}}.et-fb-tinymce-buttons #arve-btn{display:none}
|
changelog.md
CHANGED
@@ -4,6 +4,10 @@
|
|
4 |
* [ARVE Pro changelog](https://nextgenthemes.com/plugins/arve-pro/#changelog)
|
5 |
* [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog)
|
6 |
|
|
|
|
|
|
|
|
|
7 |
### 2022-08-30 9.7.15 ###
|
8 |
|
9 |
* Fix: Shortcode Creator dialog with Advanced Custom Fields plugin active.
|
4 |
* [ARVE Pro changelog](https://nextgenthemes.com/plugins/arve-pro/#changelog)
|
5 |
* [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog)
|
6 |
|
7 |
+
### 2022-09-01 9.7.16 ###
|
8 |
+
|
9 |
+
* Fix: Divi endless reload issue is hopefully finally fixed. ARVE Pro users please note this is a workaround that causes previews inside the Divi builder not have the correct data. Most noticable thumbnails and titles. If you provide a fallback thumbnail in ARVE Pro settings it will show that while you using Divi. The plugin works correctly on the frontend. The "Video (ARVE)" button currently does not work in
|
10 |
+
|
11 |
### 2022-08-30 9.7.15 ###
|
12 |
|
13 |
* Fix: Shortcode Creator dialog with Advanced Custom Fields plugin active.
|
php/functions-oembed.php
CHANGED
@@ -14,6 +14,11 @@ function add_oembed_providers() {
|
|
14 |
|
15 |
function filter_oembed_dataparse( $result, $data, $url ) {
|
16 |
|
|
|
|
|
|
|
|
|
|
|
17 |
if ( $data && 'video' === $data->type ) {
|
18 |
$data->arve_cachetime = gmdate('Y-m-d H:i:s');
|
19 |
$data->arve_url = $url;
|
@@ -26,7 +31,7 @@ function filter_oembed_dataparse( $result, $data, $url ) {
|
|
26 |
$data->$k = \esc_html($v);
|
27 |
}
|
28 |
|
29 |
-
$result .= '<script type="application/json" data-arve-oembed>'
|
30 |
}
|
31 |
|
32 |
return $result;
|
14 |
|
15 |
function filter_oembed_dataparse( $result, $data, $url ) {
|
16 |
|
17 |
+
// this is to fix Divi endless reload issue.
|
18 |
+
if ( is_admin() && function_exists('et_setup_theme') ) {
|
19 |
+
return $result;
|
20 |
+
}
|
21 |
+
|
22 |
if ( $data && 'video' === $data->type ) {
|
23 |
$data->arve_cachetime = gmdate('Y-m-d H:i:s');
|
24 |
$data->arve_url = $url;
|
31 |
$data->$k = \esc_html($v);
|
32 |
}
|
33 |
|
34 |
+
$result .= '<script type="application/json" data-arve-oembed>' . \wp_json_encode($data, JSON_UNESCAPED_UNICODE) . '</script>';
|
35 |
}
|
36 |
|
37 |
return $result;
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: nico23
|
|
3 |
Donate link: https://nextgenthemes.com/donate/
|
4 |
Tags: YouTube, Vimeo, lazyload, thumbnail, video, responsive, embeds, video-embedder, iframe, lightweight, simplicity, shortcodes
|
5 |
Requires at least: 4.9.16
|
6 |
-
Tested up to:
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 9.7.
|
9 |
License: GPL-3.0
|
10 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -196,6 +196,10 @@ Please read the [official documentation](https://wordpress.org/support/article/m
|
|
196 |
* [ARVE Pro changelog](https://nextgenthemes.com/plugins/arve-pro/#changelog)
|
197 |
* [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog)
|
198 |
|
|
|
|
|
|
|
|
|
199 |
### 2022-08-30 9.7.15 ###
|
200 |
|
201 |
* Fix: Shortcode Creator dialog with Advanced Custom Fields plugin active.
|
3 |
Donate link: https://nextgenthemes.com/donate/
|
4 |
Tags: YouTube, Vimeo, lazyload, thumbnail, video, responsive, embeds, video-embedder, iframe, lightweight, simplicity, shortcodes
|
5 |
Requires at least: 4.9.16
|
6 |
+
Tested up to: 6.0.2
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 9.7.16
|
9 |
License: GPL-3.0
|
10 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
196 |
* [ARVE Pro changelog](https://nextgenthemes.com/plugins/arve-pro/#changelog)
|
197 |
* [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog)
|
198 |
|
199 |
+
### 2022-09-01 9.7.16 ###
|
200 |
+
|
201 |
+
* Fix: Divi endless reload issue is hopefully finally fixed. ARVE Pro users please note this is a workaround that causes previews inside the Divi builder not have the correct data. Most noticable thumbnails and titles. If you provide a fallback thumbnail in ARVE Pro settings it will show that while you using Divi. The plugin works correctly on the frontend. The "Video (ARVE)" button currently does not work in
|
202 |
+
|
203 |
### 2022-08-30 9.7.15 ###
|
204 |
|
205 |
* Fix: Shortcode Creator dialog with Advanced Custom Fields plugin active.
|
src/block.json
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
"vimeo",
|
14 |
"odysee"
|
15 |
],
|
16 |
-
"version": "9.7.
|
17 |
"textdomain": "advanced-responsive-video-embedder",
|
18 |
"supports": {
|
19 |
"align": [
|
13 |
"vimeo",
|
14 |
"odysee"
|
15 |
],
|
16 |
+
"version": "9.7.16",
|
17 |
"textdomain": "advanced-responsive-video-embedder",
|
18 |
"supports": {
|
19 |
"align": [
|
src/main.scss
CHANGED
@@ -101,3 +101,7 @@
|
|
101 |
display: none;
|
102 |
}
|
103 |
}
|
|
|
|
|
|
|
|
101 |
display: none;
|
102 |
}
|
103 |
}
|
104 |
+
|
105 |
+
.et-fb-tinymce-buttons #arve-btn {
|
106 |
+
display: none;
|
107 |
+
}
|