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

Version Description

Download this release

Release Info

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

Code changes from version 9.2.1 to 9.2.3

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.2.1
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.2.1';
25
  const PRO_VERSION_REQUIRED = '5.1.5';
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.2.3
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.2.3';
25
  const PRO_VERSION_REQUIRED = '5.1.5';
26
  const NUM_TRACKS = 3;
27
  const PLUGIN_FILE = __FILE__;
changelog.md CHANGED
@@ -4,9 +4,9 @@
4
  * [ARVE Pro changelog](https://nextgenthemes.com/plugins/arve-pro/#changelog)
5
  * [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/random-video/#changelog)
6
 
7
- ### 2021-01-21 9.2.0 ###
8
 
9
- * Revert some changes that cause the latest Pro tests to fail.
10
 
11
  ### 2021-01-21 9.2.0 ###
12
 
4
  * [ARVE Pro changelog](https://nextgenthemes.com/plugins/arve-pro/#changelog)
5
  * [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/random-video/#changelog)
6
 
7
+ ### 2021-01-21 9.2.3 ###
8
 
9
+ * Revert some things that made latest Pro tests fail
10
 
11
  ### 2021-01-21 9.2.0 ###
12
 
php/Common/functions-string.php CHANGED
@@ -44,9 +44,9 @@ function dashes_to_camel_case( $string, $capitalize_first_character = false ) {
44
  return $str;
45
  }
46
 
47
- function kses_basic( $html ) {
48
  return wp_kses(
49
- $html,
50
  [
51
  'a' => [
52
  'href' => [],
@@ -56,7 +56,6 @@ function kses_basic( $html ) {
56
  'br' => [],
57
  'em' => [],
58
  'strong' => [],
59
- 'code' => [],
60
  ]
61
  );
62
  }
44
  return $str;
45
  }
46
 
47
+ function kses_basic( $html_with_a ) {
48
  return wp_kses(
49
+ $html_with_a,
50
  [
51
  'a' => [
52
  'href' => [],
56
  'br' => [],
57
  'em' => [],
58
  'strong' => [],
 
59
  ]
60
  );
61
  }
php/functions-settings.php CHANGED
@@ -24,19 +24,19 @@ function settings_instance() {
24
  'namespace' => __NAMESPACE__,
25
  'settings' => settings(),
26
  'sections' => [
27
- 'main' => esc_html__( 'Main', 'advanced-responsive-video-embedder' ),
28
- 'pro' => esc_html__( 'Pro', 'advanced-responsive-video-embedder' ),
29
- 'sticky-videos' => esc_html__( 'Sticky Videos', 'advanced-responsive-video-embedder' ),
30
- 'random-video' => esc_html__( 'Random Video', 'advanced-responsive-video-embedder' ),
31
- 'urlparams' => esc_html__( 'URL Parameters', 'advanced-responsive-video-embedder' ),
32
- 'html5' => esc_html__( 'HTML5', 'advanced-responsive-video-embedder' ),
33
- 'debug' => esc_html__( 'Debug Info', 'advanced-responsive-video-embedder' ),
34
- #'videojs' => esc_html__( 'Video.js', 'advanced-responsive-video-embedder' ),
35
  ],
36
  'premium_sections' => [ 'pro', 'sticky-videos', 'random-video', 'videojs' ],
37
  'menu_parent_slug' => 'options-general.php',
38
- 'menu_title' => esc_html__( 'ARVE', 'advanced-responsive-video-embedder' ),
39
- 'settings_page_title' => esc_html__( 'ARVE Settings', 'advanced-responsive-video-embedder' ),
40
  ]
41
  );
42
  }
@@ -265,9 +265,9 @@ function all_settings() {
265
  $auto_title = implode( ', ', $auto_title );
266
  $embed_code_only = implode( ', ', $embed_code_only );
267
  $def_bool_options = [
268
- '' => esc_html__( 'Default (settings page)', 'advanced-responsive-video-embedder' ),
269
- 'true' => esc_html__( 'True', 'advanced-responsive-video-embedder' ),
270
- 'false' => esc_html__( 'False', 'advanced-responsive-video-embedder' ),
271
  ];
272
 
273
  $provider_list_link = 'https://nextgenthemes.com/plugins/arve-pro/#video-host-support';
@@ -277,7 +277,7 @@ function all_settings() {
277
  'url' => [
278
  'default' => null,
279
  'option' => false,
280
- 'label' => esc_html__( 'Video URL / iframe Embed Code', 'advanced-responsive-video-embedder' ),
281
  'type' => 'string',
282
  'placeholder' => esc_attr__( 'Video URL / iframe Embed Code', 'advanced-responsive-video-embedder' ),
283
  'description' => sprintf(
@@ -292,7 +292,7 @@ function all_settings() {
292
  'title' => [
293
  'default' => null,
294
  'option' => false,
295
- 'label' => esc_html__( 'Title', 'advanced-responsive-video-embedder' ),
296
  'type' => 'string',
297
  'description' => sprintf(
298
  // Translators: Provider list
@@ -306,9 +306,9 @@ function all_settings() {
306
  'description' => [
307
  'default' => null,
308
  'option' => false,
309
- 'label' => esc_html__( 'Description', 'advanced-responsive-video-embedder' ),
310
  'type' => 'string',
311
- 'placeholder' => esc_html__( 'Used for SEO (needed, ARVE Pro auto fills this)', 'advanced-responsive-video-embedder' ),
312
 
313
  'description' => sprintf(
314
  // translators: URL
@@ -321,9 +321,9 @@ function all_settings() {
321
  'upload_date' => [
322
  'default' => null,
323
  'option' => false,
324
- 'label' => esc_html__( 'Upload Date', 'advanced-responsive-video-embedder' ),
325
  'type' => 'string',
326
- 'placeholder' => esc_html__( '2019-09-29 (ARVE Pro fills this with post date)', 'advanced-responsive-video-embedder' ),
327
  'description' => sprintf(
328
  // translators: URL
329
  kses_basic( __( '<a href="%s">ARVE Pro</a> fills this automatically', 'advanced-responsive-video-embedder' ) ),
@@ -335,13 +335,13 @@ function all_settings() {
335
  'mode' => [
336
  'tag' => 'pro',
337
  'default' => 'normal',
338
- 'label' => esc_html__( 'Mode', 'advanced-responsive-video-embedder' ),
339
  'type' => 'select',
340
  'options' => [
341
- '' => esc_html__( 'Default (settings page)', 'advanced-responsive-video-embedder' ),
342
- 'lazyload' => esc_html__( 'Lazyload', 'advanced-responsive-video-embedder' ),
343
- 'lightbox' => esc_html__( 'Lightbox', 'advanced-responsive-video-embedder' ),
344
- 'link-lightbox' => esc_html__( 'Link -> Lightbox', 'advanced-responsive-video-embedder' ),
345
  ],
346
  'description' => sprintf(
347
  // translators: URL
@@ -356,28 +356,28 @@ function all_settings() {
356
  'default' => '',
357
  'ui' => 'image_upload',
358
  'shortcode' => false,
359
- 'label' => esc_html__( 'Thumbnail Fallback', 'advanced-responsive-video-embedder' ),
360
  'type' => 'string',
361
- 'placeholder' => esc_html__( 'URL or media gallery image ID used for thumbnail', 'advanced-responsive-video-embedder' ),
362
- 'description' => esc_html__( 'URL or media gallery image ID used for thumbnail', 'advanced-responsive-video-embedder' ),
363
  ],
364
  'thumbnail_post_image_fallback' => [
365
  'tag' => 'pro',
366
  'default' => false,
367
  'shortcode' => false,
368
- 'label' => esc_html__( 'Thumbnail Featured Image Fallback', 'advanced-responsive-video-embedder' ),
369
  'type' => 'boolean',
370
  ],
371
  'thumbnail' => [
372
  'default' => null,
373
  'shortcode' => true,
374
  'option' => false,
375
- 'label' => esc_html__( 'Thumbnail', 'advanced-responsive-video-embedder' ),
376
  'type' => 'attachment',
377
  'libraryType' => [ 'image' ],
378
- 'addButton' => esc_html__( 'Select Image', 'advanced-responsive-video-embedder' ),
379
- 'frameTitle' => esc_html__( 'Select Image', 'advanced-responsive-video-embedder' ),
380
- 'placeholder' => esc_html__( 'Media library image ID or image URL', 'advanced-responsive-video-embedder' ),
381
  'description' => sprintf(
382
  // Translators: 1 Link, 2 Provider list
383
  kses_basic( __( 'Media library image ID (Select above in Gutenberg) or image URL for preview image for Lazyload modes, always used for SEO. <a href="%1$s">ARVE Pro</a> is able to get them from %2$s automatically.', 'advanced-responsive-video-embedder' ) ),
@@ -391,126 +391,126 @@ function all_settings() {
391
  'default' => false,
392
  'shortcode' => true,
393
  'tag' => 'pro',
394
- 'label' => esc_html__( 'Hide Title (Lazyload & Lightbox only)', 'advanced-responsive-video-embedder' ),
395
  'type' => 'boolean',
396
- 'description' => esc_html__( 'Usefull when the thumbnail image already displays the video title (Lazyload & Lightbox modes).', 'advanced-responsive-video-embedder' ),
397
  ],
398
  'grow' => [
399
  'tag' => 'pro',
400
  'default' => true,
401
  'type' => 'select',
402
  'options' => $def_bool_options,
403
- 'label' => esc_html__( 'Expand on play? (Lazyload only)', 'advanced-responsive-video-embedder' ),
404
- 'description' => esc_html__( 'Expands video size after clicking the thumbnail (Lazyload Mode)', 'advanced-responsive-video-embedder' ),
405
  ],
406
  'fullscreen' => [
407
  'tag' => 'pro',
408
  'default' => 'disabled',
409
  'type' => 'select',
410
- 'label' => esc_html__( 'Go Fullscreen on opening Lightbox?', 'advanced-responsive-video-embedder' ),
411
- 'desc_detail' => esc_html__( 'Makes the Browser go fullscreen when opening the Lighbox. Optionally stay in Fullscreen mode even after the Lightbox is closed', 'advanced-responsive-video-embedder' ),
412
  'options' => [
413
- '' => esc_html__( 'Default (settings page)', 'advanced-responsive-video-embedder' ),
414
- 'enabled-exit' => esc_html__( 'Enabled, exit FS on lightbox close', 'advanced-responsive-video-embedder' ),
415
- 'enabled-stick' => esc_html__( 'Enabled, stay FS on lightbox close', 'advanced-responsive-video-embedder' ),
416
- 'disabled' => esc_html__( 'Disabled', 'advanced-responsive-video-embedder' ),
417
  ],
418
  ],
419
  'play_icon_style' => [
420
  'tag' => 'pro',
421
  'default' => 'youtube',
422
- 'label' => esc_html__( 'Play Button', 'advanced-responsive-video-embedder' ),
423
  'type' => 'select',
424
  'options' => [
425
  // Translators: 1 %s is play icon style.
426
- '' => esc_html__( 'Default (settings page)', 'advanced-responsive-video-embedder' ),
427
- 'youtube' => esc_html__( 'Youtube', 'advanced-responsive-video-embedder' ),
428
- 'youtube-red-diamond' => esc_html__( 'Youtube Red Diamond', 'advanced-responsive-video-embedder' ),
429
- 'vimeo' => esc_html__( 'Vimeo', 'advanced-responsive-video-embedder' ),
430
- 'circle' => esc_html__( 'Circle', 'advanced-responsive-video-embedder' ),
431
- 'none' => esc_html__( 'No play image', 'advanced-responsive-video-embedder' ),
432
- 'custom' => esc_html__( 'Custom (for PHP filter)', 'advanced-responsive-video-embedder' ),
433
  ],
434
  ],
435
  'hover_effect' => [
436
  'tag' => 'pro',
437
  'default' => 'zoom',
438
- 'label' => esc_html__( 'Hover Effect (Lazyload/Lightbox only)', 'advanced-responsive-video-embedder' ),
439
  'type' => 'select',
440
  'options' => [
441
- '' => esc_html__( 'Default (settings page)', 'advanced-responsive-video-embedder' ),
442
- 'zoom' => esc_html__( 'Zoom Thumbnail', 'advanced-responsive-video-embedder' ),
443
- 'rectangle' => esc_html__( 'Move Rectangle in', 'advanced-responsive-video-embedder' ),
444
- 'none' => esc_html__( 'None', 'advanced-responsive-video-embedder' ),
445
  ],
446
  ],
447
  'disable_links' => [
448
  'tag' => 'pro',
449
  'default' => false,
450
- 'label' => esc_html__( 'Disable links', 'advanced-responsive-video-embedder' ),
451
  'type' => 'select',
452
  'options' => $def_bool_options,
453
- 'description' => esc_html__( 'Prevent embeds to open new popups/tabs from links inside video embeds. Note: breaks functionality like sharing.', 'advanced-responsive-video-embedder' ),
454
  ],
455
  // 'mobile_inview' => [
456
  // 'tag' => 'pro',
457
  // 'default' => true,
458
  // 'shortcode' => false,
459
- // 'label' => esc_html__( 'Mobile Inview Fallback', 'advanced-responsive-video-embedder' ),
460
  // 'type' => 'boolean',
461
- // 'description' => esc_html__( 'This is not needed/used for YouTube and Vimeo. On mobiles fallback Lazyload mode to Lazyload Inview as workarround for the problem that it otherwise needs two touches to play a lazyloaded video because mobile browsers prevent autoplay. Note that this will prevent users to see your custom thumbnails or titles!', 'advanced-responsive-video-embedder' ),
462
  // ],
463
  'align' => [
464
  'default' => 'none',
465
  'shortcode' => true,
466
- 'label' => esc_html__( 'Alignment', 'advanced-responsive-video-embedder' ),
467
  'type' => 'select',
468
  'options' => [
469
- '' => esc_html__( 'Default (settings page)', 'advanced-responsive-video-embedder' ),
470
- 'none' => esc_html__( 'None', 'advanced-responsive-video-embedder' ),
471
- 'left' => esc_html__( 'Left', 'advanced-responsive-video-embedder' ),
472
- 'right' => esc_html__( 'Right', 'advanced-responsive-video-embedder' ),
473
- 'center' => esc_html__( 'Center', 'advanced-responsive-video-embedder' ),
474
  ],
475
  ],
476
  'lightbox_script' => [
477
  'tag' => 'pro',
478
  'default' => 'bigpicture',
479
  'shortcode' => false,
480
- 'label' => esc_html__( 'Lightbox Script', 'advanced-responsive-video-embedder' ),
481
  'type' => 'select',
482
  'options' => [
483
- 'bigpicture' => esc_html__( 'BigPicture', 'advanced-responsive-video-embedder' ),
484
- 'lity' => esc_html__( 'Lity', 'advanced-responsive-video-embedder' ),
485
  ],
486
- 'description' => esc_html__( 'Only use Lity if you have issues with Big Picture', 'advanced-responsive-video-embedder' ),
487
  ],
488
  'arve_link' => [
489
  'default' => false,
490
- 'label' => esc_html__( 'ARVE Link', 'advanced-responsive-video-embedder' ),
491
  'type' => 'select',
492
  'options' => $def_bool_options,
493
- 'description' => esc_html__( "Shows a small 'ARVE' link below the videos. Be the most awesome person and help promoting this plugin.", 'advanced-responsive-video-embedder' ),
494
  ],
495
  'duration' => [
496
  'default' => null,
497
  'option' => false,
498
- 'label' => esc_html__( 'Duration', 'advanced-responsive-video-embedder' ),
499
  'type' => 'string',
500
  'placeholder' => '1H2M3S',
501
- 'description' => esc_html__( '`1H2M3S` for 1 hour, 2 minutes and 3 seconds. `5M` for 5 minutes.', 'advanced-responsive-video-embedder' ),
502
  ],
503
  'autoplay' => [
504
  'default' => false,
505
  'shortcode' => true,
506
- 'label' => esc_html__( 'Autoplay', 'advanced-responsive-video-embedder' ),
507
  'type' => 'select',
508
  'options' => $def_bool_options,
509
- 'description' => esc_html__( 'Do not expect this to work! Browsers (especially mobile) or user settings prevent it, some video hosts do not support it at all. Only used in normal mode. ARVE will mute HTML5 video playback in case to make autoplay work for the broadest audience.', 'advanced-responsive-video-embedder' ),
510
  ],
511
  'maxwidth' => [
512
  'default' => 0,
513
- 'label' => esc_html__( 'Maximal Width', 'advanced-responsive-video-embedder' ),
514
  'type' => 'integer',
515
  'description' => sprintf(
516
  // Translators: $content_width value.
@@ -521,16 +521,16 @@ function all_settings() {
521
  'lightbox_maxwidth' => [
522
  'tag' => 'pro',
523
  'default' => 1174,
524
- 'label' => esc_html__( 'Lightbox Maximal Width', 'advanced-responsive-video-embedder' ),
525
  'type' => 'integer',
526
- 'placeholder' => esc_html__( 'Leave empty for default from settings page', 'advanced-responsive-video-embedder' ),
527
- 'description' => esc_html__( 'default 1174', 'advanced-responsive-video-embedder' ),
528
  ],
529
  'sticky_width' => [
530
  'tag' => 'sticky-videos',
531
  'default' => '350px',
532
  'shortcode' => false,
533
- 'label' => esc_html__( 'Sticky Video Width', 'advanced-responsive-video-embedder' ),
534
  'type' => 'string',
535
  'description' => esc_attr__( 'CSS value (px, vw, ...) 350px is default.', 'advanced-responsive-video-embedder' ),
536
  ],
@@ -538,7 +538,7 @@ function all_settings() {
538
  'tag' => 'sticky-videos',
539
  'default' => '0',
540
  'shortcode' => false,
541
- 'label' => esc_html__( 'Sticky Video Corner Gap', 'advanced-responsive-video-embedder' ),
542
  'type' => 'string',
543
  'description' => esc_attr__( 'CSS value (px, vw, ...).', 'advanced-responsive-video-embedder' ),
544
  ],
@@ -546,7 +546,7 @@ function all_settings() {
546
  'tag' => 'sticky-videos',
547
  'default' => '0',
548
  'shortcode' => false,
549
- 'label' => esc_html__( 'Close Button Position X', 'advanced-responsive-video-embedder' ),
550
  'type' => 'string',
551
  'description' => esc_attr__( 'The base poition is always in the corner pointing to the middle of the screem, nagative values will position the button outside of video.', 'advanced-responsive-video-embedder' ),
552
  ],
@@ -554,45 +554,45 @@ function all_settings() {
554
  'tag' => 'sticky-videos',
555
  'default' => '-15px',
556
  'shortcode' => false,
557
- 'label' => esc_html__( 'Close Button Position X', 'advanced-responsive-video-embedder' ),
558
  'type' => 'string',
559
  'description' => esc_attr__( 'The base poition is always in the corner pointing to the middle of the screem, nagative values will position the button outside of video.', 'advanced-responsive-video-embedder' ),
560
  ],
561
  'sticky_pos' => [
562
  'tag' => 'sticky-videos',
563
  'default' => 'top-left',
564
- 'label' => esc_html__( 'Sticky Video Position', 'advanced-responsive-video-embedder' ),
565
  'type' => 'select',
566
  'options' => [
567
- 'top-left' => esc_html__( 'Top left', 'advanced-responsive-video-embedder' ),
568
- 'top-right' => esc_html__( 'Top right', 'advanced-responsive-video-embedder' ),
569
- 'bottom-left' => esc_html__( 'Bottom left', 'advanced-responsive-video-embedder' ),
570
- 'bottom-right' => esc_html__( 'Bottom right', 'advanced-responsive-video-embedder' ),
571
  ],
572
  'description' => esc_attr__( 'Corner the video gets pinned to on bigger screens.', 'advanced-responsive-video-embedder' ),
573
  ],
574
  'align_maxwidth' => [
575
  'default' => 400,
576
  'shortcode' => false,
577
- 'label' => esc_html__( 'Align Maximal Width', 'advanced-responsive-video-embedder' ),
578
  'type' => 'integer',
579
  'description' => esc_attr__( 'In px, Needed! Must be 100+ to work.', 'advanced-responsive-video-embedder' ),
580
  ],
581
  'aspect_ratio' => [
582
  'default' => null,
583
  'option' => false,
584
- 'label' => esc_html__( 'Aspect Ratio', 'advanced-responsive-video-embedder' ),
585
  'type' => 'string',
586
- 'description' => esc_html__( 'E.g. 4:3, 21:9. Only needed in rare cases. ARVE is usually smart enough to figure this out on its own.', 'advanced-responsive-video-embedder' ),
587
- 'placeholder' => esc_html__( '4:3, 21:9 ...', 'advanced-responsive-video-embedder' ),
588
  ],
589
  'parameters' => [
590
  'default' => null,
591
  'html5' => false,
592
  'option' => false,
593
- 'label' => esc_html__( 'Parameters', 'advanced-responsive-video-embedder' ),
594
  'type' => 'string',
595
- 'placeholder' => esc_html__( 'example=1&foo=bar', 'advanced-responsive-video-embedder' ),
596
  'description' => sprintf(
597
  kses_basic( __( 'Provider specific player settings on iframe src. See <a href="%s">documentation.</a>', 'advanced-responsive-video-embedder' ) ), // phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment
598
  esc_url( 'https://nextgenthemes.com/plugins/arve/documentation/#parematers' )
@@ -602,72 +602,72 @@ function all_settings() {
602
  'tag' => 'html5',
603
  'default' => true,
604
  'shortcode' => false,
605
- 'label' => esc_html__( 'Use ARVE for video files?', 'advanced-responsive-video-embedder' ),
606
  'type' => 'boolean',
607
- 'description' => esc_html__( 'Use ARVE to embed HTML5 video files. ARVE uses the browsers players instead of loading the mediaelement player that WP uses.', 'advanced-responsive-video-embedder' ),
608
  ],
609
  'controlslist' => [
610
  'tag' => 'html5',
611
  'default' => '',
612
- 'label' => esc_html__( 'Chrome HTML5 Player controls', 'advanced-responsive-video-embedder' ),
613
  'type' => 'string',
614
  'placeholder' => 'nodownload nofullscreen noremoteplayback',
615
- 'description' => kses_basic( __( 'controlsList attribute on &lt;video&gt; for example use <code>nodownload nofullscreen noremoteplayback</code> to hide the download and the fullscreen button and disable remote playback. Or just the option(s) you like.', 'advanced-responsive-video-embedder' ) ),
616
  ],
617
  'controls' => [
618
  'tag' => 'html5',
619
  'default' => true,
620
- 'label' => esc_html__( 'Show Controls? (Video file only)', 'advanced-responsive-video-embedder' ),
621
  'type' => 'select',
622
  'options' => $def_bool_options,
623
- 'description' => esc_html__( 'Show controls on HTML5 video.', 'advanced-responsive-video-embedder' ),
624
  ],
625
  'loop' => [
626
  'tag' => 'html5',
627
  'default' => 'n',
628
  'shortcode' => true,
629
  'option' => false,
630
- 'label' => esc_html__( 'Loop?', 'advanced-responsive-video-embedder' ),
631
  'type' => 'boolean',
632
- 'description' => esc_html__( 'Loop HTML5 video.', 'advanced-responsive-video-embedder' ),
633
  ],
634
  'muted' => [
635
  'tag' => 'html5',
636
  'default' => 'n',
637
  'shortcode' => true,
638
  'option' => false,
639
- 'label' => esc_html__( 'Mute?', 'advanced-responsive-video-embedder' ),
640
  'type' => 'boolean',
641
- 'description' => esc_html__( 'Mute HTML5 video.', 'advanced-responsive-video-embedder' ),
642
  ],
643
  'volume' => [
644
  'tag' => 'pro',
645
  'default' => 100,
646
  'shortcode' => true,
647
- 'label' => esc_html__( 'Volume?', 'advanced-responsive-video-embedder' ),
648
  'placeholder' => '100',
649
  'type' => 'integer',
650
- 'description' => esc_html__( 'Works with video files only.', 'advanced-responsive-video-embedder' ),
651
  ],
652
  'always_enqueue_assets' => [
653
  'shortcode' => false,
654
  'default' => false,
655
- 'label' => esc_html__( 'Always load assets', 'advanced-responsive-video-embedder' ),
656
  'type' => 'boolean',
657
- 'description' => esc_html__( 'Default=No ARVE will loads its scripts and styles only when the posts content contains a arve video. In case your content is loaded via AJAX at a later stage this detection will not work or the styles are not loaded for another reason you may have to enable this option', 'advanced-responsive-video-embedder' ),
658
  ],
659
  'youtube_nocookie' => [
660
  'default' => true,
661
  'shortcode' => false,
662
- 'label' => esc_html__( 'Use youtube-nocookie.com url?', 'advanced-responsive-video-embedder' ),
663
  'type' => 'boolean',
664
- 'description' => esc_html__( 'Privacy enhanced mode, will NOT disable cookies but only sets them when a user starts to play a video. There is currently a youtube bug that opens highlighed video boxes with a wrong -nocookie.com url so you need to disble this if you need those.', 'advanced-responsive-video-embedder' ),
665
  ],
666
  'vimeo_api_id' => [
667
  'tag' => 'random-video',
668
  'default' => '',
669
  'shortcode' => false,
670
- 'label' => esc_html__( 'Vimeo client identifier', 'advanced-responsive-video-embedder' ),
671
  'type' => 'string',
672
  'description' => sprintf(
673
  // Translators: URL
@@ -681,7 +681,7 @@ function all_settings() {
681
  'tag' => 'random-video',
682
  'default' => '',
683
  'shortcode' => false,
684
- 'label' => esc_html__( 'Vimeo client secret', 'advanced-responsive-video-embedder' ),
685
  'type' => 'string',
686
  'description' => sprintf(
687
  // Translators: URL
@@ -695,7 +695,7 @@ function all_settings() {
695
  'tag' => 'random-video',
696
  'default' => '',
697
  'shortcode' => false,
698
- 'label' => esc_html__( 'Vimeo API Token', 'advanced-responsive-video-embedder' ),
699
  'type' => 'string',
700
  'description' => sprintf(
701
  // Translators: URL
@@ -738,61 +738,61 @@ function all_settings() {
738
  'legacy_shortcodes' => [
739
  'default' => true,
740
  'shortcode' => false,
741
- 'label' => esc_html__( 'Enable lagacy shortcodes', 'advanced-responsive-video-embedder' ),
742
  'type' => 'boolean',
743
- 'description' => esc_html__( 'Enable the old and deprected <code>[youtube id="abcde" /]</code> or <code>[vimeo id="abcde" /]</code> ... style shortcodes. Only enable if you have them in your content.', 'advanced-responsive-video-embedder' ),
744
  ],
745
  'sandbox' => [
746
  'default' => true,
747
  'shortcode' => true,
748
- 'label' => esc_html__( 'Sandbox', 'advanced-responsive-video-embedder' ),
749
  'type' => 'boolean',
750
- 'description' => esc_html__( "Only disable if you have to. If you embed encrypted media you have to disable this. 'Disable Links' feature from ARVE Pro will not work when without sandbox.", 'advanced-responsive-video-embedder' ),
751
  ],
752
  'seo_data' => [
753
  'tag' => 'main',
754
  'default' => true,
755
  'shortcode' => false,
756
- 'label' => esc_html__( 'Enable structured data (schema.org)', 'advanced-responsive-video-embedder' ),
757
  'type' => 'boolean',
758
- 'description' => esc_html__( 'Disable if you use Yoast Video SEO or another plugin that generates the data already.', 'advanced-responsive-video-embedder' ),
759
  ],
760
  'gutenberg_help' => [
761
  'default' => true,
762
  'shortcode' => false,
763
- 'label' => esc_html__( 'Enable help text in the Block sidebar?', 'advanced-responsive-video-embedder' ),
764
  'type' => 'boolean',
765
- 'description' => esc_html__( 'Disabling this makes the interface much cleaner.', 'advanced-responsive-video-embedder' ),
766
  ],
767
  'feed' => [
768
  'default' => true,
769
  'shortcode' => false,
770
  'option' => true,
771
- 'label' => esc_html__( 'Use in RSS/Atom Feeds?', 'advanced-responsive-video-embedder' ),
772
  'type' => 'boolean',
773
- 'description' => esc_html__( 'Enable the plugin in RSS/Atom feeds? Disabling will not completely diable everything but it will use native WP behavior in feeds where possible.', 'advanced-responsive-video-embedder' ),
774
  ],
775
  /*
776
  'videojs_theme' => [
777
  'tag' => 'videojs',
778
  'default' => 'default',
779
  'shortcode' => false,
780
- 'label' => esc_html__( 'Video.js Theme', 'advanced-responsive-video-embedder' ),
781
  'type' => 'select',
782
  'options' => [
783
- 'default' => esc_html__( 'Default', 'advanced-responsive-video-embedder' ),
784
- 'netfoutube' => esc_html__( 'Netfoutube', 'advanced-responsive-video-embedder' ),
785
- 'city' => esc_html__( 'City', 'advanced-responsive-video-embedder' ),
786
- 'forest' => esc_html__( 'Forest', 'advanced-responsive-video-embedder' ),
787
- 'fantasy' => esc_html__( 'Fantasy', 'advanced-responsive-video-embedder' ),
788
- 'sea' => esc_html__( 'Sea', 'advanced-responsive-video-embedder' ),
789
  ],
790
  ],
791
  'videojs_youtube' => [
792
  'tag' => 'videojs',
793
  'default' => false,
794
  'shortcode' => false,
795
- 'label' => esc_html__( 'Use Video.js for YouTube', 'advanced-responsive-video-embedder' ),
796
  'type' => 'boolean',
797
  ],
798
  */
@@ -800,9 +800,9 @@ function all_settings() {
800
  'default' => false,
801
  'shortcode' => false,
802
  'option' => true,
803
- 'label' => esc_html__( 'Admin bar ARVE button', 'advanced-responsive-video-embedder' ),
804
  'type' => 'boolean',
805
- 'description' => esc_html__( 'For quickly accessing the ARVE settings page.', 'advanced-responsive-video-embedder' ),
806
  ],
807
  ];
808
 
@@ -818,7 +818,7 @@ function all_settings() {
818
  'option' => true,
819
  'shortcode' => false,
820
  // Translators: %s is Provider
821
- 'label' => sprintf( esc_html__( '%s url parameters', 'advanced-responsive-video-embedder' ), $provider ),
822
  'type' => 'string',
823
  ];
824
  }
24
  'namespace' => __NAMESPACE__,
25
  'settings' => settings(),
26
  'sections' => [
27
+ 'main' => __( 'Main', 'advanced-responsive-video-embedder' ),
28
+ 'pro' => __( 'Pro', 'advanced-responsive-video-embedder' ),
29
+ 'sticky-videos' => __( 'Sticky Videos', 'advanced-responsive-video-embedder' ),
30
+ 'random-video' => __( 'Random Video', 'advanced-responsive-video-embedder' ),
31
+ 'urlparams' => __( 'URL Parameters', 'advanced-responsive-video-embedder' ),
32
+ 'html5' => __( 'HTML5', 'advanced-responsive-video-embedder' ),
33
+ 'debug' => __( 'Debug Info', 'advanced-responsive-video-embedder' ),
34
+ #'videojs' => __( 'Video.js', 'advanced-responsive-video-embedder' ),
35
  ],
36
  'premium_sections' => [ 'pro', 'sticky-videos', 'random-video', 'videojs' ],
37
  'menu_parent_slug' => 'options-general.php',
38
+ 'menu_title' => __( 'ARVE', 'advanced-responsive-video-embedder' ),
39
+ 'settings_page_title' => __( 'ARVE Settings', 'advanced-responsive-video-embedder' ),
40
  ]
41
  );
42
  }
265
  $auto_title = implode( ', ', $auto_title );
266
  $embed_code_only = implode( ', ', $embed_code_only );
267
  $def_bool_options = [
268
+ '' => __( 'Default (settings page)', 'advanced-responsive-video-embedder' ),
269
+ 'true' => __( 'True', 'advanced-responsive-video-embedder' ),
270
+ 'false' => __( 'False', 'advanced-responsive-video-embedder' ),
271
  ];
272
 
273
  $provider_list_link = 'https://nextgenthemes.com/plugins/arve-pro/#video-host-support';
277
  'url' => [
278
  'default' => null,
279
  'option' => false,
280
+ 'label' => __( 'Video URL / iframe Embed Code', 'advanced-responsive-video-embedder' ),
281
  'type' => 'string',
282
  'placeholder' => esc_attr__( 'Video URL / iframe Embed Code', 'advanced-responsive-video-embedder' ),
283
  'description' => sprintf(
292
  'title' => [
293
  'default' => null,
294
  'option' => false,
295
+ 'label' => __( 'Title', 'advanced-responsive-video-embedder' ),
296
  'type' => 'string',
297
  'description' => sprintf(
298
  // Translators: Provider list
306
  'description' => [
307
  'default' => null,
308
  'option' => false,
309
+ 'label' => __( 'Description', 'advanced-responsive-video-embedder' ),
310
  'type' => 'string',
311
+ 'placeholder' => __( 'Used for SEO (needed, ARVE Pro auto fills this)', 'advanced-responsive-video-embedder' ),
312
 
313
  'description' => sprintf(
314
  // translators: URL
321
  'upload_date' => [
322
  'default' => null,
323
  'option' => false,
324
+ 'label' => __( 'Upload Date', 'advanced-responsive-video-embedder' ),
325
  'type' => 'string',
326
+ 'placeholder' => __( '2019-09-29 (ARVE Pro fills this with post date)', 'advanced-responsive-video-embedder' ),
327
  'description' => sprintf(
328
  // translators: URL
329
  kses_basic( __( '<a href="%s">ARVE Pro</a> fills this automatically', 'advanced-responsive-video-embedder' ) ),
335
  'mode' => [
336
  'tag' => 'pro',
337
  'default' => 'normal',
338
+ 'label' => __( 'Mode', 'advanced-responsive-video-embedder' ),
339
  'type' => 'select',
340
  'options' => [
341
+ '' => __( 'Default (settings page)', 'advanced-responsive-video-embedder' ),
342
+ 'lazyload' => __( 'Lazyload', 'advanced-responsive-video-embedder' ),
343
+ 'lightbox' => __( 'Lightbox', 'advanced-responsive-video-embedder' ),
344
+ 'link-lightbox' => __( 'Link -> Lightbox', 'advanced-responsive-video-embedder' ),
345
  ],
346
  'description' => sprintf(
347
  // translators: URL
356
  'default' => '',
357
  'ui' => 'image_upload',
358
  'shortcode' => false,
359
+ 'label' => __( 'Thumbnail Fallback', 'advanced-responsive-video-embedder' ),
360
  'type' => 'string',
361
+ 'placeholder' => __( 'URL or media gallery image ID used for thumbnail', 'advanced-responsive-video-embedder' ),
362
+ 'description' => __( 'URL or media gallery image ID used for thumbnail', 'advanced-responsive-video-embedder' ),
363
  ],
364
  'thumbnail_post_image_fallback' => [
365
  'tag' => 'pro',
366
  'default' => false,
367
  'shortcode' => false,
368
+ 'label' => __( 'Thumbnail Featured Image Fallback', 'advanced-responsive-video-embedder' ),
369
  'type' => 'boolean',
370
  ],
371
  'thumbnail' => [
372
  'default' => null,
373
  'shortcode' => true,
374
  'option' => false,
375
+ 'label' => __( 'Thumbnail', 'advanced-responsive-video-embedder' ),
376
  'type' => 'attachment',
377
  'libraryType' => [ 'image' ],
378
+ 'addButton' => __( 'Select Image', 'advanced-responsive-video-embedder' ),
379
+ 'frameTitle' => __( 'Select Image', 'advanced-responsive-video-embedder' ),
380
+ 'placeholder' => __( 'Media library image ID or image URL', 'advanced-responsive-video-embedder' ),
381
  'description' => sprintf(
382
  // Translators: 1 Link, 2 Provider list
383
  kses_basic( __( 'Media library image ID (Select above in Gutenberg) or image URL for preview image for Lazyload modes, always used for SEO. <a href="%1$s">ARVE Pro</a> is able to get them from %2$s automatically.', 'advanced-responsive-video-embedder' ) ),
391
  'default' => false,
392
  'shortcode' => true,
393
  'tag' => 'pro',
394
+ 'label' => __( 'Hide Title (Lazyload & Lightbox only)', 'advanced-responsive-video-embedder' ),
395
  'type' => 'boolean',
396
+ 'description' => __( 'Usefull when the thumbnail image already displays the video title (Lazyload & Lightbox modes).', 'advanced-responsive-video-embedder' ),
397
  ],
398
  'grow' => [
399
  'tag' => 'pro',
400
  'default' => true,
401
  'type' => 'select',
402
  'options' => $def_bool_options,
403
+ 'label' => __( 'Expand on play? (Lazyload only)', 'advanced-responsive-video-embedder' ),
404
+ 'description' => __( 'Expands video size after clicking the thumbnail (Lazyload Mode)', 'advanced-responsive-video-embedder' ),
405
  ],
406
  'fullscreen' => [
407
  'tag' => 'pro',
408
  'default' => 'disabled',
409
  'type' => 'select',
410
+ 'label' => __( 'Go Fullscreen on opening Lightbox?', 'advanced-responsive-video-embedder' ),
411
+ 'desc_detail' => __( 'Makes the Browser go fullscreen when opening the Lighbox. Optionally stay in Fullscreen mode even after the Lightbox is closed', 'advanced-responsive-video-embedder' ),
412
  'options' => [
413
+ '' => __( 'Default (settings page)', 'advanced-responsive-video-embedder' ),
414
+ 'enabled-exit' => __( 'Enabled, exit FS on lightbox close', 'advanced-responsive-video-embedder' ),
415
+ 'enabled-stick' => __( 'Enabled, stay FS on lightbox close', 'advanced-responsive-video-embedder' ),
416
+ 'disabled' => __( 'Disabled', 'advanced-responsive-video-embedder' ),
417
  ],
418
  ],
419
  'play_icon_style' => [
420
  'tag' => 'pro',
421
  'default' => 'youtube',
422
+ 'label' => __( 'Play Button', 'advanced-responsive-video-embedder' ),
423
  'type' => 'select',
424
  'options' => [
425
  // Translators: 1 %s is play icon style.
426
+ '' => __( 'Default (settings page)', 'advanced-responsive-video-embedder' ),
427
+ 'youtube' => __( 'Youtube', 'advanced-responsive-video-embedder' ),
428
+ 'youtube-red-diamond' => __( 'Youtube Red Diamond', 'advanced-responsive-video-embedder' ),
429
+ 'vimeo' => __( 'Vimeo', 'advanced-responsive-video-embedder' ),
430
+ 'circle' => __( 'Circle', 'advanced-responsive-video-embedder' ),
431
+ 'none' => __( 'No play image', 'advanced-responsive-video-embedder' ),
432
+ 'custom' => __( 'Custom (for PHP filter)', 'advanced-responsive-video-embedder' ),
433
  ],
434
  ],
435
  'hover_effect' => [
436
  'tag' => 'pro',
437
  'default' => 'zoom',
438
+ 'label' => __( 'Hover Effect (Lazyload/Lightbox only)', 'advanced-responsive-video-embedder' ),
439
  'type' => 'select',
440
  'options' => [
441
+ '' => __( 'Default (settings page)', 'advanced-responsive-video-embedder' ),
442
+ 'zoom' => __( 'Zoom Thumbnail', 'advanced-responsive-video-embedder' ),
443
+ 'rectangle' => __( 'Move Rectangle in', 'advanced-responsive-video-embedder' ),
444
+ 'none' => __( 'None', 'advanced-responsive-video-embedder' ),
445
  ],
446
  ],
447
  'disable_links' => [
448
  'tag' => 'pro',
449
  'default' => false,
450
+ 'label' => __( 'Disable links', 'advanced-responsive-video-embedder' ),
451
  'type' => 'select',
452
  'options' => $def_bool_options,
453
+ 'description' => __( 'Prevent embeds to open new popups/tabs from links inside video embeds. Note: breaks functionality like sharing.', 'advanced-responsive-video-embedder' ),
454
  ],
455
  // 'mobile_inview' => [
456
  // 'tag' => 'pro',
457
  // 'default' => true,
458
  // 'shortcode' => false,
459
+ // 'label' => __( 'Mobile Inview Fallback', 'advanced-responsive-video-embedder' ),
460
  // 'type' => 'boolean',
461
+ // 'description' => __( 'This is not needed/used for YouTube and Vimeo. On mobiles fallback Lazyload mode to Lazyload Inview as workarround for the problem that it otherwise needs two touches to play a lazyloaded video because mobile browsers prevent autoplay. Note that this will prevent users to see your custom thumbnails or titles!', 'advanced-responsive-video-embedder' ),
462
  // ],
463
  'align' => [
464
  'default' => 'none',
465
  'shortcode' => true,
466
+ 'label' => __( 'Alignment', 'advanced-responsive-video-embedder' ),
467
  'type' => 'select',
468
  'options' => [
469
+ '' => __( 'Default (settings page)', 'advanced-responsive-video-embedder' ),
470
+ 'none' => __( 'None', 'advanced-responsive-video-embedder' ),
471
+ 'left' => __( 'Left', 'advanced-responsive-video-embedder' ),
472
+ 'right' => __( 'Right', 'advanced-responsive-video-embedder' ),
473
+ 'center' => __( 'Center', 'advanced-responsive-video-embedder' ),
474
  ],
475
  ],
476
  'lightbox_script' => [
477
  'tag' => 'pro',
478
  'default' => 'bigpicture',
479
  'shortcode' => false,
480
+ 'label' => __( 'Lightbox Script', 'advanced-responsive-video-embedder' ),
481
  'type' => 'select',
482
  'options' => [
483
+ 'bigpicture' => __( 'BigPicture', 'advanced-responsive-video-embedder' ),
484
+ 'lity' => __( 'Lity', 'advanced-responsive-video-embedder' ),
485
  ],
486
+ 'description' => __( 'Only use Lity if you have issues with Big Picture', 'advanced-responsive-video-embedder' ),
487
  ],
488
  'arve_link' => [
489
  'default' => false,
490
+ 'label' => __( 'ARVE Link', 'advanced-responsive-video-embedder' ),
491
  'type' => 'select',
492
  'options' => $def_bool_options,
493
+ 'description' => __( "Shows a small 'ARVE' link below the videos. Be the most awesome person and help promoting this plugin.", 'advanced-responsive-video-embedder' ),
494
  ],
495
  'duration' => [
496
  'default' => null,
497
  'option' => false,
498
+ 'label' => __( 'Duration', 'advanced-responsive-video-embedder' ),
499
  'type' => 'string',
500
  'placeholder' => '1H2M3S',
501
+ 'description' => __( '`1H2M3S` for 1 hour, 2 minutes and 3 seconds. `5M` for 5 minutes.', 'advanced-responsive-video-embedder' ),
502
  ],
503
  'autoplay' => [
504
  'default' => false,
505
  'shortcode' => true,
506
+ 'label' => __( 'Autoplay', 'advanced-responsive-video-embedder' ),
507
  'type' => 'select',
508
  'options' => $def_bool_options,
509
+ 'description' => __( 'Do not expect this to work! Browsers (especially mobile) or user settings prevent it, some video hosts do not support it at all. Only used in normal mode. ARVE will mute HTML5 video playback in case to make autoplay work for the broadest audience.', 'advanced-responsive-video-embedder' ),
510
  ],
511
  'maxwidth' => [
512
  'default' => 0,
513
+ 'label' => __( 'Maximal Width', 'advanced-responsive-video-embedder' ),
514
  'type' => 'integer',
515
  'description' => sprintf(
516
  // Translators: $content_width value.
521
  'lightbox_maxwidth' => [
522
  'tag' => 'pro',
523
  'default' => 1174,
524
+ 'label' => __( 'Lightbox Maximal Width', 'advanced-responsive-video-embedder' ),
525
  'type' => 'integer',
526
+ 'placeholder' => __( 'Leave empty for default from settings page', 'advanced-responsive-video-embedder' ),
527
+ 'description' => __( 'default 1174', 'advanced-responsive-video-embedder' ),
528
  ],
529
  'sticky_width' => [
530
  'tag' => 'sticky-videos',
531
  'default' => '350px',
532
  'shortcode' => false,
533
+ 'label' => __( 'Sticky Video Width', 'advanced-responsive-video-embedder' ),
534
  'type' => 'string',
535
  'description' => esc_attr__( 'CSS value (px, vw, ...) 350px is default.', 'advanced-responsive-video-embedder' ),
536
  ],
538
  'tag' => 'sticky-videos',
539
  'default' => '0',
540
  'shortcode' => false,
541
+ 'label' => __( 'Sticky Video Corner Gap', 'advanced-responsive-video-embedder' ),
542
  'type' => 'string',
543
  'description' => esc_attr__( 'CSS value (px, vw, ...).', 'advanced-responsive-video-embedder' ),
544
  ],
546
  'tag' => 'sticky-videos',
547
  'default' => '0',
548
  'shortcode' => false,
549
+ 'label' => __( 'Close Button Position X', 'advanced-responsive-video-embedder' ),
550
  'type' => 'string',
551
  'description' => esc_attr__( 'The base poition is always in the corner pointing to the middle of the screem, nagative values will position the button outside of video.', 'advanced-responsive-video-embedder' ),
552
  ],
554
  'tag' => 'sticky-videos',
555
  'default' => '-15px',
556
  'shortcode' => false,
557
+ 'label' => __( 'Close Button Position X', 'advanced-responsive-video-embedder' ),
558
  'type' => 'string',
559
  'description' => esc_attr__( 'The base poition is always in the corner pointing to the middle of the screem, nagative values will position the button outside of video.', 'advanced-responsive-video-embedder' ),
560
  ],
561
  'sticky_pos' => [
562
  'tag' => 'sticky-videos',
563
  'default' => 'top-left',
564
+ 'label' => __( 'Sticky Video Position', 'advanced-responsive-video-embedder' ),
565
  'type' => 'select',
566
  'options' => [
567
+ 'top-left' => __( 'Top left', 'advanced-responsive-video-embedder' ),
568
+ 'top-right' => __( 'Top right', 'advanced-responsive-video-embedder' ),
569
+ 'bottom-left' => __( 'Bottom left', 'advanced-responsive-video-embedder' ),
570
+ 'bottom-right' => __( 'Bottom right', 'advanced-responsive-video-embedder' ),
571
  ],
572
  'description' => esc_attr__( 'Corner the video gets pinned to on bigger screens.', 'advanced-responsive-video-embedder' ),
573
  ],
574
  'align_maxwidth' => [
575
  'default' => 400,
576
  'shortcode' => false,
577
+ 'label' => __( 'Align Maximal Width', 'advanced-responsive-video-embedder' ),
578
  'type' => 'integer',
579
  'description' => esc_attr__( 'In px, Needed! Must be 100+ to work.', 'advanced-responsive-video-embedder' ),
580
  ],
581
  'aspect_ratio' => [
582
  'default' => null,
583
  'option' => false,
584
+ 'label' => __( 'Aspect Ratio', 'advanced-responsive-video-embedder' ),
585
  'type' => 'string',
586
+ 'description' => __( 'E.g. 4:3, 21:9. Only needed in rare cases. ARVE is usually smart enough to figure this out on its own.', 'advanced-responsive-video-embedder' ),
587
+ 'placeholder' => __( '4:3, 21:9 ...', 'advanced-responsive-video-embedder' ),
588
  ],
589
  'parameters' => [
590
  'default' => null,
591
  'html5' => false,
592
  'option' => false,
593
+ 'label' => __( 'Parameters', 'advanced-responsive-video-embedder' ),
594
  'type' => 'string',
595
+ 'placeholder' => __( 'example=1&foo=bar', 'advanced-responsive-video-embedder' ),
596
  'description' => sprintf(
597
  kses_basic( __( 'Provider specific player settings on iframe src. See <a href="%s">documentation.</a>', 'advanced-responsive-video-embedder' ) ), // phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment
598
  esc_url( 'https://nextgenthemes.com/plugins/arve/documentation/#parematers' )
602
  'tag' => 'html5',
603
  'default' => true,
604
  'shortcode' => false,
605
+ 'label' => __( 'Use ARVE for video files?', 'advanced-responsive-video-embedder' ),
606
  'type' => 'boolean',
607
+ 'description' => __( 'Use ARVE to embed HTML5 video files. ARVE uses the browsers players instead of loading the mediaelement player that WP uses.', 'advanced-responsive-video-embedder' ),
608
  ],
609
  'controlslist' => [
610
  'tag' => 'html5',
611
  'default' => '',
612
+ 'label' => __( 'Chrome HTML5 Player controls', 'advanced-responsive-video-embedder' ),
613
  'type' => 'string',
614
  'placeholder' => 'nodownload nofullscreen noremoteplayback',
615
+ 'description' => __( 'controlsList attribute on &lt;video&gt; for example use <code>nodownload nofullscreen noremoteplayback</code> to hide the download and the fullscreen button on the chrome HTML5 video player and disable remote playback.', 'advanced-responsive-video-embedder' ),
616
  ],
617
  'controls' => [
618
  'tag' => 'html5',
619
  'default' => true,
620
+ 'label' => __( 'Show Controls? (Video file only)', 'advanced-responsive-video-embedder' ),
621
  'type' => 'select',
622
  'options' => $def_bool_options,
623
+ 'description' => __( 'Show controls on HTML5 video.', 'advanced-responsive-video-embedder' ),
624
  ],
625
  'loop' => [
626
  'tag' => 'html5',
627
  'default' => 'n',
628
  'shortcode' => true,
629
  'option' => false,
630
+ 'label' => __( 'Loop?', 'advanced-responsive-video-embedder' ),
631
  'type' => 'boolean',
632
+ 'description' => __( 'Loop HTML5 video.', 'advanced-responsive-video-embedder' ),
633
  ],
634
  'muted' => [
635
  'tag' => 'html5',
636
  'default' => 'n',
637
  'shortcode' => true,
638
  'option' => false,
639
+ 'label' => __( 'Mute?', 'advanced-responsive-video-embedder' ),
640
  'type' => 'boolean',
641
+ 'description' => __( 'Mute HTML5 video.', 'advanced-responsive-video-embedder' ),
642
  ],
643
  'volume' => [
644
  'tag' => 'pro',
645
  'default' => 100,
646
  'shortcode' => true,
647
+ 'label' => __( 'Volume?', 'advanced-responsive-video-embedder' ),
648
  'placeholder' => '100',
649
  'type' => 'integer',
650
+ 'description' => __( 'Works with video files only.', 'advanced-responsive-video-embedder' ),
651
  ],
652
  'always_enqueue_assets' => [
653
  'shortcode' => false,
654
  'default' => false,
655
+ 'label' => __( 'Always load assets', 'advanced-responsive-video-embedder' ),
656
  'type' => 'boolean',
657
+ 'description' => __( 'Default=No ARVE will loads its scripts and styles only when the posts content contains a arve video. In case your content is loaded via AJAX at a later stage this detection will not work or the styles are not loaded for another reason you may have to enable this option', 'advanced-responsive-video-embedder' ),
658
  ],
659
  'youtube_nocookie' => [
660
  'default' => true,
661
  'shortcode' => false,
662
+ 'label' => __( 'Use youtube-nocookie.com url?', 'advanced-responsive-video-embedder' ),
663
  'type' => 'boolean',
664
+ 'description' => __( 'Privacy enhanced mode, will NOT disable cookies but only sets them when a user starts to play a video. There is currently a youtube bug that opens highlighed video boxes with a wrong -nocookie.com url so you need to disble this if you need those.', 'advanced-responsive-video-embedder' ),
665
  ],
666
  'vimeo_api_id' => [
667
  'tag' => 'random-video',
668
  'default' => '',
669
  'shortcode' => false,
670
+ 'label' => __( 'Vimeo client identifier', 'advanced-responsive-video-embedder' ),
671
  'type' => 'string',
672
  'description' => sprintf(
673
  // Translators: URL
681
  'tag' => 'random-video',
682
  'default' => '',
683
  'shortcode' => false,
684
+ 'label' => __( 'Vimeo client secret', 'advanced-responsive-video-embedder' ),
685
  'type' => 'string',
686
  'description' => sprintf(
687
  // Translators: URL
695
  'tag' => 'random-video',
696
  'default' => '',
697
  'shortcode' => false,
698
+ 'label' => __( 'Vimeo API Token', 'advanced-responsive-video-embedder' ),
699
  'type' => 'string',
700
  'description' => sprintf(
701
  // Translators: URL
738
  'legacy_shortcodes' => [
739
  'default' => true,
740
  'shortcode' => false,
741
+ 'label' => __( 'Enable lagacy shortcodes', 'advanced-responsive-video-embedder' ),
742
  'type' => 'boolean',
743
+ 'description' => __( 'Enable the old and deprected <code>[youtube id="abcde" /]</code> or <code>[vimeo id="abcde" /]</code> ... style shortcodes. Only enable if you have them in your content.', 'advanced-responsive-video-embedder' ),
744
  ],
745
  'sandbox' => [
746
  'default' => true,
747
  'shortcode' => true,
748
+ 'label' => __( 'Sandbox', 'advanced-responsive-video-embedder' ),
749
  'type' => 'boolean',
750
+ 'description' => __( "Only disable if you have to. If you embed encrypted media you have to disable this. 'Disable Links' feature from ARVE Pro will not work when without sandbox.", 'advanced-responsive-video-embedder' ),
751
  ],
752
  'seo_data' => [
753
  'tag' => 'main',
754
  'default' => true,
755
  'shortcode' => false,
756
+ 'label' => __( 'Enable structured data (schema.org)', 'advanced-responsive-video-embedder' ),
757
  'type' => 'boolean',
758
+ 'description' => __( 'Disable if you use Yoast Video SEO or another plugin that generates the data already.', 'advanced-responsive-video-embedder' ),
759
  ],
760
  'gutenberg_help' => [
761
  'default' => true,
762
  'shortcode' => false,
763
+ 'label' => __( 'Enable help text in the Block sidebar?', 'advanced-responsive-video-embedder' ),
764
  'type' => 'boolean',
765
+ 'description' => __( 'Disabling this makes the interface much cleaner.', 'advanced-responsive-video-embedder' ),
766
  ],
767
  'feed' => [
768
  'default' => true,
769
  'shortcode' => false,
770
  'option' => true,
771
+ 'label' => __( 'Use in RSS/Atom Feeds?', 'advanced-responsive-video-embedder' ),
772
  'type' => 'boolean',
773
+ 'description' => __( 'Enable the plugin in RSS/Atom feeds? Disabling will not completely diable everything but it will use native WP behavior in feeds where possible.', 'advanced-responsive-video-embedder' ),
774
  ],
775
  /*
776
  'videojs_theme' => [
777
  'tag' => 'videojs',
778
  'default' => 'default',
779
  'shortcode' => false,
780
+ 'label' => __( 'Video.js Theme', 'advanced-responsive-video-embedder' ),
781
  'type' => 'select',
782
  'options' => [
783
+ 'default' => __( 'Default', 'advanced-responsive-video-embedder' ),
784
+ 'netfoutube' => __( 'Netfoutube', 'advanced-responsive-video-embedder' ),
785
+ 'city' => __( 'City', 'advanced-responsive-video-embedder' ),
786
+ 'forest' => __( 'Forest', 'advanced-responsive-video-embedder' ),
787
+ 'fantasy' => __( 'Fantasy', 'advanced-responsive-video-embedder' ),
788
+ 'sea' => __( 'Sea', 'advanced-responsive-video-embedder' ),
789
  ],
790
  ],
791
  'videojs_youtube' => [
792
  'tag' => 'videojs',
793
  'default' => false,
794
  'shortcode' => false,
795
+ 'label' => __( 'Use Video.js for YouTube', 'advanced-responsive-video-embedder' ),
796
  'type' => 'boolean',
797
  ],
798
  */
800
  'default' => false,
801
  'shortcode' => false,
802
  'option' => true,
803
+ 'label' => __( 'Admin bar ARVE button', 'advanced-responsive-video-embedder' ),
804
  'type' => 'boolean',
805
+ 'description' => __( 'For quickly accessing the ARVE settings page.', 'advanced-responsive-video-embedder' ),
806
  ],
807
  ];
808
 
818
  'option' => true,
819
  'shortcode' => false,
820
  // Translators: %s is Provider
821
+ 'label' => sprintf( __( '%s url parameters', 'advanced-responsive-video-embedder' ), $provider ),
822
  'type' => 'string',
823
  ];
824
  }
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: YouTube, Vimeo, lazyload, thumbnail, video, responsive, embeds, video-embe
5
  Requires at least: 4.4.24
6
  Tested up to: 5.6
7
  Requires PHP: 5.6
8
- Stable tag: 9.2.1
9
  License: GPL-3.0
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -172,9 +172,9 @@ This plugins embed is considered as 'custom player' by YouTube so you have to pa
172
  * [ARVE Pro changelog](https://nextgenthemes.com/plugins/arve-pro/#changelog)
173
  * [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/random-video/#changelog)
174
 
175
- ### 2021-01-21 9.2.0 ###
176
 
177
- * Revert some changes that cause the latest Pro tests to fail.
178
 
179
  ### 2021-01-21 9.2.0 ###
180
 
5
  Requires at least: 4.4.24
6
  Tested up to: 5.6
7
  Requires PHP: 5.6
8
+ Stable tag: 9.2.3
9
  License: GPL-3.0
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
172
  * [ARVE Pro changelog](https://nextgenthemes.com/plugins/arve-pro/#changelog)
173
  * [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/random-video/#changelog)
174
 
175
+ ### 2021-01-21 9.2.3 ###
176
 
177
+ * Revert some things that made latest Pro tests fail
178
 
179
  ### 2021-01-21 9.2.0 ###
180