Plugin Directory

Changeset 3826337


Ignore:
Timestamp:
11/26/2026 10:02:49 AM (less than one hour ago)
Author:
plugins360
Message:

Commit Version 5.2.1

Location:
all-in-one-video-gallery/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • all-in-one-video-gallery/trunk/README.txt

    r3804420 r3826337  
    55Tags: video gallery, video player, youtube, vimeo, html5 video
    66Requires at least: 6.3
    7 Tested up to: 7.1
     7Tested up to: 7.2
    88Requires PHP: 7.4
    9 Stable tag: 5.2.0
     9Stable tag: 5.2.1
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
    … …  
    230230== Changelog ==
    231231
     232= 5.2.1 =
     233
     234* Security Fix: "Authenticated (Subscriber+) Stored Cross-Site Scripting via 'embedcode' Video Metabox Field" issue that was discovered by [Jacek Sowiński (dzaku)](https://www.wordfence.com/threat-intel/vulnerabilities/researchers/id/7842), and reported responsibly to us by [Wordfence](https://www.wordfence.com/).
     235* Security Fix: "Authenticated (Subscriber+) Stored Cross-Site Scripting via 'content' Shortcode" issue that was discovered by [UKO - Korea univ.](https://www.wordfence.com/threat-intel/vulnerabilities/researchers/id/6017), and reported responsibly to us by [Wordfence](https://www.wordfence.com/).
     236* Tweak: Premium - Automations now accept YouTube handle URLs (youtube.com/@name) and show "No new videos found" when a run finds nothing new.
     237* Fix: Premium - Automations: a new upload no longer ends a first import early, and other import issues are fixed, including duplicate or missed Vimeo videos, the "Exclude URLs" list, and runs that time out.
     238* Fix: Various performance and security improvements.
     239
    232240= 5.2.0 =
    233241
    … …  
    365373== Upgrade Notice ==
    366374
    367 = 5.2.0 =
    368 
    369 Security, performance and code quality improvements. After updating, we recommend clearing your site and CDN caches so your visitors get the latest files. [See changelog](https://wordpress.org/plugins/all-in-one-video-gallery/#developers)
     375= 5.2.1 =
     376
     377Fixes two security issues, one of them in the free plugin, and an Automations bug where a new upload could end a channel's first import early. Recommended for all users. [See changelog](https://wordpress.org/plugins/all-in-one-video-gallery/#developers)
  • all-in-one-video-gallery/trunk/admin/videos.php

    r3804420 r3826337  
    404404
    405405                                $type = isset( $_POST['type'] ) ? sanitize_text_field( wp_unslash( $_POST['type'] ) ) : 'default';
     406
     407                                // Same rule as the form, which offers this type only to these users
     408                                $can_use_embedcode = current_user_can( 'unfiltered_html' );
     409                                if ( 'embedcode' === $type && ! $can_use_embedcode ) {
     410                                        $type = 'default';
     411                                }
     412
    406413                                update_post_meta( $post_id, 'type', $type );
    407414
    … …  
    489496                                update_post_meta( $post_id, 'facebook', $facebook );
    490497
    491                                 $embedcode = isset( $_POST['embedcode'] ) ? trim( wp_unslash( $_POST['embedcode'] ) ) : ''; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Sanitized by aiovg_sanitize_embedcode() below.
    492                                
    493                                 if ( $embedcode && filter_var( $embedcode, FILTER_VALIDATE_URL ) ) {
    494                                         $parsed = wp_parse_url( $embedcode );
    495 
    496                                         // Allow only http / https URLs
    497                                         if ( isset( $parsed['scheme'] ) && in_array( $parsed['scheme'], array( 'http', 'https' ) ) ) {
    498                                                 $embedcode = sprintf(
    499                                                         '<iframe src="%s" width="560" height="315" frameborder="0" scrolling="no" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>',
    500                                                         esc_url( $embedcode )
    501                                                 );
    502                                         }
    503                                 }
    504 
    505                                 $embedcode = aiovg_sanitize_embedcode( $embedcode );
    506                                 update_post_meta( $post_id, 'embedcode', $embedcode );
     498                                $embedcode = '';
     499
     500                                // Others leave the stored code untouched
     501                                if ( $can_use_embedcode ) {
     502                                        $embedcode = isset( $_POST['embedcode'] ) ? trim( wp_unslash( $_POST['embedcode'] ) ) : ''; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Sanitized by aiovg_sanitize_embedcode() below.
     503
     504                                        if ( $embedcode && filter_var( $embedcode, FILTER_VALIDATE_URL ) ) {
     505                                                $parsed = wp_parse_url( $embedcode );
     506
     507                                                // Allow only http / https URLs
     508                                                if ( isset( $parsed['scheme'] ) && in_array( $parsed['scheme'], array( 'http', 'https' ) ) ) {
     509                                                        $embedcode = sprintf(
     510                                                                '<iframe src="%s" width="560" height="315" frameborder="0" scrolling="no" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>',
     511                                                                esc_url( $embedcode )
     512                                                        );
     513                                                }
     514                                        }
     515
     516                                        $embedcode = aiovg_sanitize_embedcode( $embedcode );
     517                                        update_post_meta( $post_id, 'embedcode', $embedcode );
     518                                }
    507519                               
    508520                                $duration = '';
    … …  
    686698                                                // OK to save meta data
    687699                                                $trailer_type = isset( $_POST['trailer_type'] ) ? sanitize_text_field( wp_unslash( $_POST['trailer_type'] ) ) : '';
     700
     701                                                // Same rule as the form, which offers this type only to these users
     702                                                if ( 'embedcode' === $trailer_type && ! current_user_can( 'unfiltered_html' ) ) {
     703                                                        $trailer_type = '';
     704                                                }
     705
    688706                                                update_post_meta( $post_id, 'trailer_type', $trailer_type );
    689707
  • all-in-one-video-gallery/trunk/all-in-one-video-gallery.php

    r3804420 r3826337  
    44 * The plugin bootstrap file.
    55 *
    6  * @link            https://plugins360.com
    7  * @since           1.0.0
    8  * @package         All_In_One_Video_Gallery
     6 * @link              https://plugins360.com
     7 * @since             1.0.0
     8 * @package           All_In_One_Video_Gallery
    99 *
    1010 * @wordpress-plugin
    11  * Plugin Name:     All-in-One Video Gallery
    12  * Plugin URI:      https://plugins360.com/all-in-one-video-gallery/
    13  * Description:     An ultimate video player and video gallery plugin – no coding required. Suitable for YouTubers, Video Bloggers, Course Creators, Podcasters, Sales & Marketing Professionals, and anyone using video on a website.
    14  * Version:         5.2.0
     11 * Plugin Name:       All-in-One Video Gallery
     12 * Plugin URI:        https://plugins360.com/all-in-one-video-gallery/
     13 * Description:       An ultimate video player and video gallery plugin – no coding required. Suitable for YouTubers, Video Bloggers, Course Creators, Podcasters, Sales & Marketing Professionals, and anyone using video on a website.
     14 * Version:           5.2.1
    1515 * Requires at least: 6.3
    16  * Requires PHP:    7.4
    17  * Author:          Team Plugins360
    18  * Author URI:      https://plugins360.com
    19  * License:         GPL-2.0+
    20  * License URI:     http://www.gnu.org/licenses/gpl-2.0.txt
    21  * Text Domain:     all-in-one-video-gallery
    22  * Domain Path:     /languages
     16 * Requires PHP:      7.4
     17 * Author:            Team Plugins360
     18 * Author URI:        https://plugins360.com
     19 * License:           GPL-2.0+
     20 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
     21 * Text Domain:       all-in-one-video-gallery
     22 * Domain Path:       /languages
    2323 *
    2424 */
    … …  
    7373// The current version of the plugin
    7474if ( !defined( 'AIOVG_PLUGIN_VERSION' ) ) {
    75     define( 'AIOVG_PLUGIN_VERSION', '5.2.0' );
     75    define( 'AIOVG_PLUGIN_VERSION', '5.2.1' );
    7676}
    7777// The unique identifier of the plugin
  • all-in-one-video-gallery/trunk/includes/helpers/functions.php

    r3804420 r3826337  
    868868 */
    869869function aiovg_get_default_settings() {
    870         static $defaults = null;
    871 
    872         if ( null !== $defaults ) {
    873                 return $defaults;
     870        static $cached      = null;
     871        static $is_building = false;
     872
     873        if ( null !== $cached ) {
     874                return $cached;
    874875        }
    875876
    … …  
    884885                        break;
    885886                }
    886         }       
    887 
    888         $defaults = array(             
     887        }
     888
     889        // Creating the pages runs queries whose hooks may read our settings and call back in here.
     890        // Those nested calls get no pages rather than creating them again, and are not cached (5.2.1)
     891        $is_nested = $is_building;
     892
     893        if ( $is_nested ) {
     894                $page_settings = array();
     895        } else {
     896                $is_building   = true;
     897                $page_settings = aiovg_insert_custom_pages();
     898                $is_building   = false;
     899        }
     900
     901        $defaults = array(
    889902                'aiovg_player_settings' => array(
    890903                        'player'                  => 'videojs',
    … …  
    10801093                        'token_expiry'                => 3600
    10811094                ),
    1082                 'aiovg_page_settings' => aiovg_insert_custom_pages()                                                   
     1095                'aiovg_page_settings' => $page_settings
    10831096        );
    1084                
    1085         return $defaults;               
     1097
     1098        if ( ! $is_nested ) {
     1099                $cached = $defaults;
     1100        }
     1101
     1102        return $defaults;
    10861103}
    10871104
  • all-in-one-video-gallery/trunk/languages/all-in-one-video-gallery.pot

    r3804420 r3826337  
    22msgstr ""
    33"Project-Id-Version: All-in-One Video Gallery\n"
    4 "POT-Creation-Date: 2026-11-10 20:14+0530\n"
    5 "PO-Revision-Date: 2026-11-10 20:14+0530\n"
     4"POT-Creation-Date: 2026-11-26 10:54+0530\n"
     5"PO-Revision-Date: 2026-11-26 10:54+0530\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
    … …  
    1818"X-Poedit-SearchPath-0: .\n"
    1919
    20 #: admin/admin.php:267 public/video.php:602
     20#: admin/admin.php:267 public/video.php:601
    2121msgid "You may also like"
    2222msgstr ""
    … …  
    2626msgstr ""
    2727
    28 #: admin/admin.php:503 admin/videos.php:77 includes/helpers/functions.php:1814
     28#: admin/admin.php:503 admin/videos.php:77 includes/helpers/functions.php:1831
    2929#: widgets/videos.php:540
    3030msgid "Video Gallery"
    … …  
    107107
    108108#: admin/admin.php:918 admin/settings.php:1204
    109 #: includes/helpers/functions.php:1041 includes/player/base.php:744
     109#: includes/helpers/functions.php:1054 includes/player/base.php:744
    110110#: public/templates/player-videojs.php:547
    111111#: public/templates/player-vidstack.php:584
    … …  
    173173
    174174#: admin/admin.php:1002 blocks/blocks.php:108
    175 #: includes/helpers/functions.php:2357 widgets/forms/search.php:89
     175#: includes/helpers/functions.php:2374 widgets/forms/search.php:89
    176176msgid "Search Results Page"
    177177msgstr ""
    … …  
    218218
    219219#: admin/categories.php:33 admin/categories.php:66 admin/import-export.php:2659
    220 #: admin/partials/import-export.php:149 admin/videos.php:853
     220#: admin/partials/import-export.php:149 admin/videos.php:871
    221221#: premium/admin/partials/automations-video-options.php:66
    222222#: widgets/categories.php:54
    … …  
    224224msgstr ""
    225225
    226 #: admin/categories.php:67 admin/videos.php:1048
     226#: admin/categories.php:67 admin/videos.php:1066
    227227#: premium/admin/automations.php:228 public/videos.php:99
    228228msgid "All Categories"
    … …  
    277277msgstr ""
    278278
    279 #: admin/categories.php:80 includes/helpers/functions.php:1321
     279#: admin/categories.php:80 includes/helpers/functions.php:1338
    280280msgid "No categories found"
    281281msgstr ""
    … …  
    294294
    295295#: admin/categories.php:175 admin/settings.php:907 admin/tags.php:125
    296 #: admin/videos.php:1205 blocks/blocks.php:82
    297 #: includes/helpers/functions.php:2238 widgets/forms/categories.php:81
     296#: admin/videos.php:1223 blocks/blocks.php:82
     297#: includes/helpers/functions.php:2255 widgets/forms/categories.php:81
    298298msgid "ID"
    299299msgstr ""
    … …  
    530530msgstr ""
    531531
    532 #: admin/import-export.php:2654 admin/settings.php:842 admin/videos.php:814
    533 #: includes/helpers/email-capture.php:120 includes/helpers/functions.php:1962
     532#: admin/import-export.php:2654 admin/settings.php:842 admin/videos.php:832
     533#: includes/helpers/email-capture.php:120 includes/helpers/functions.php:1979
    534534#: premium/admin/partials/automations-video-options.php:26
    535535#: premium/admin/slider.php:61 premium/public/slider.php:81
    … …  
    544544
    545545#: admin/import-export.php:2656 admin/partials/video-image.php:39
    546 #: admin/videos.php:842 blocks/blocks.php:124
     546#: admin/videos.php:860 blocks/blocks.php:124
    547547msgid "Poster Image"
    548548msgstr ""
    549549
    550 #: admin/import-export.php:2657 admin/videos.php:113 admin/videos.php:821
     550#: admin/import-export.php:2657 admin/videos.php:113 admin/videos.php:839
    551551#: premium/admin/partials/automations-video-options.php:38
    552552#: premium/admin/slider.php:62 premium/public/slider.php:89
    … …  
    560560
    561561#: admin/import-export.php:2660 admin/partials/import-export.php:172
    562 #: admin/tags.php:33 admin/tags.php:75 admin/videos.php:860
     562#: admin/tags.php:33 admin/tags.php:75 admin/videos.php:878
    563563#: premium/admin/partials/automations-video-options.php:88
    564564msgid "Video Tags"
    … …  
    566566
    567567#: admin/import-export.php:2661 admin/partials/video-metabox.php:38
    568 #: admin/settings.php:426 includes/helpers/functions.php:1741
     568#: admin/settings.php:426 includes/helpers/functions.php:1758
    569569#: widgets/forms/video.php:147
    570570msgid "Subtitles"
    … …  
    572572
    573573#: admin/import-export.php:2662 admin/partials/video-metabox.php:44
    574 #: admin/settings.php:427 includes/helpers/functions.php:1748
     574#: admin/settings.php:427 includes/helpers/functions.php:1765
    575575#: widgets/forms/video.php:154
    576576msgid "Chapters"
    … …  
    578578
    579579#: admin/import-export.php:2663 admin/partials/video-additional-info.php:25
    580 #: admin/settings.php:851 includes/helpers/functions.php:2025
     580#: admin/settings.php:851 includes/helpers/functions.php:2042
    581581msgid "Video Duration"
    582582msgstr ""
    … …  
    584584#: admin/import-export.php:2664 admin/partials/video-additional-info.php:30
    585585#: admin/settings.php:805 admin/settings.php:847 admin/settings.php:992
    586 #: admin/settings.php:1046 includes/helpers/functions.php:1870
    587 #: includes/helpers/functions.php:1997
     586#: admin/settings.php:1046 includes/helpers/functions.php:1887
     587#: includes/helpers/functions.php:2014
    588588#: premium/admin/partials/automations-sources.php:194
    589589msgid "Views Count"
    … …  
    592592#: admin/import-export.php:2665 admin/partials/video-additional-info.php:35
    593593#: admin/settings.php:806 admin/settings.php:848 admin/settings.php:1047
    594 #: includes/helpers/functions.php:1871 includes/helpers/functions.php:2004
     594#: includes/helpers/functions.php:1888 includes/helpers/functions.php:2021
    595595msgid "Likes Count"
    596596msgstr ""
    … …  
    598598#: admin/import-export.php:2666 admin/partials/video-additional-info.php:40
    599599#: admin/settings.php:807 admin/settings.php:849 admin/settings.php:1048
    600 #: includes/helpers/functions.php:1872 includes/helpers/functions.php:2011
     600#: includes/helpers/functions.php:1889 includes/helpers/functions.php:2028
    601601msgid "Dislikes Count"
    602602msgstr ""
    … …  
    607607
    608608#: admin/import-export.php:2668 admin/partials/video-submitbox.php:23
    609 #: admin/videos.php:1279
     609#: admin/videos.php:1297
    610610msgid "Featured"
    611611msgstr ""
    … …  
    613613#: admin/import-export.php:2669 admin/partials/import-export.php:232
    614614#: admin/partials/video-metabox.php:52 admin/settings.php:183
    615 #: blocks/blocks.php:141 includes/helpers/functions.php:2377
    616 #: premium/admin/partials/automations-video-options.php:194
     615#: blocks/blocks.php:141 includes/helpers/functions.php:2394
     616#: premium/admin/partials/automations-video-options.php:196
    617617#: widgets/forms/video.php:217
    618618msgid "Email & Lead Capture"
    … …  
    625625#: admin/import-export.php:2671 admin/partials/import-export.php:263
    626626#: admin/partials/video-restrictions.php:23 admin/settings.php:1110
    627 #: premium/admin/partials/automations-video-options.php:228
     627#: premium/admin/partials/automations-video-options.php:230
    628628msgid "Access Control"
    629629msgstr ""
    … …  
    631631#: admin/import-export.php:2672 admin/partials/import-export.php:293
    632632#: admin/partials/video-restrictions.php:51 admin/settings.php:1122
    633 #: premium/admin/partials/automations-video-options.php:261
     633#: premium/admin/partials/automations-video-options.php:263
    634634msgid "Allowed User Roles"
    635635msgstr ""
    … …  
    640640
    641641#: admin/import-export.php:2674
    642 #: premium/admin/partials/automations-video-options.php:165
     642#: premium/admin/partials/automations-video-options.php:167
    643643msgid "Video Status"
    644644msgstr ""
    645645
    646646#: admin/import-export.php:2675
    647 #: premium/admin/partials/automations-video-options.php:146
     647#: premium/admin/partials/automations-video-options.php:148
    648648msgid "Video Author"
    649649msgstr ""
    … …  
    654654
    655655#: admin/partials/category-fields.php:20 admin/partials/category-fields.php:47
    656 #: includes/helpers/functions.php:1666
     656#: includes/helpers/functions.php:1683
    657657msgid "Image"
    658658msgstr ""
    … …  
    843843
    844844#: admin/partials/import-export.php:188
    845 #: premium/admin/partials/automations-video-options.php:113
     845#: premium/admin/partials/automations-video-options.php:115
    846846msgid "Assign tags to the imported videos."
    847847msgstr ""
    … …  
    877877#: admin/partials/import-export.php:238
    878878#: admin/partials/video-email-capture.php:32 blocks/blocks.php:146
    879 #: includes/helpers/functions.php:2385
    880 #: premium/admin/partials/automations-video-options.php:200
     879#: includes/helpers/functions.php:2402
     880#: premium/admin/partials/automations-video-options.php:202
    881881#: widgets/forms/video.php:226
    882882msgid "Default"
    … …  
    885885#: admin/partials/import-export.php:239
    886886#: admin/partials/video-email-capture.php:33 blocks/blocks.php:147
    887 #: includes/helpers/functions.php:2386
    888 #: premium/admin/partials/automations-video-options.php:201
     887#: includes/helpers/functions.php:2403
     888#: premium/admin/partials/automations-video-options.php:203
    889889#: widgets/forms/video.php:227
    890890msgid "Enable"
    … …  
    893893#: admin/partials/import-export.php:240
    894894#: admin/partials/video-email-capture.php:34 blocks/blocks.php:148
    895 #: includes/helpers/functions.php:2387
    896 #: premium/admin/partials/automations-video-options.php:202
     895#: includes/helpers/functions.php:2404
     896#: premium/admin/partials/automations-video-options.php:204
    897897#: widgets/forms/video.php:228
    898898msgid "Disable"
    … …  
    900900
    901901#: admin/partials/import-export.php:254
    902 #: premium/admin/partials/automations-video-options.php:217
     902#: premium/admin/partials/automations-video-options.php:219
    903903msgid "Show an email collection form on the imported videos to capture leads."
    904904msgstr ""
    … …  
    906906#: admin/partials/import-export.php:269
    907907#: admin/partials/video-restrictions.php:28
    908 #: premium/admin/partials/automations-video-options.php:234
     908#: premium/admin/partials/automations-video-options.php:236
    909909msgid "Global"
    910910msgstr ""
    … …  
    912912#: admin/partials/import-export.php:270
    913913#: admin/partials/video-restrictions.php:29 admin/settings.php:1114
    914 #: premium/admin/partials/automations-video-options.php:235
     914#: premium/admin/partials/automations-video-options.php:237
    915915msgid "Everyone"
    916916msgstr ""
    … …  
    918918#: admin/partials/import-export.php:271
    919919#: admin/partials/video-restrictions.php:30 admin/settings.php:1115
    920 #: premium/admin/partials/automations-video-options.php:236
     920#: premium/admin/partials/automations-video-options.php:238
    921921msgid "Logged out users"
    922922msgstr ""
    … …  
    924924#: admin/partials/import-export.php:272
    925925#: admin/partials/video-restrictions.php:31 admin/settings.php:1116
    926 #: premium/admin/partials/automations-video-options.php:237
     926#: premium/admin/partials/automations-video-options.php:239
    927927msgid "Logged in users"
    928928msgstr ""
    929929
    930930#: admin/partials/import-export.php:286
    931 #: premium/admin/partials/automations-video-options.php:252
     931#: premium/admin/partials/automations-video-options.php:254
    932932msgid "Select who can access the imported videos."
    933933msgstr ""
    … …  
    935935#: admin/partials/import-export.php:311
    936936#: admin/partials/video-restrictions.php:68
    937 #: premium/admin/partials/automations-video-options.php:279
     937#: premium/admin/partials/automations-video-options.php:281
    938938msgid ""
    939939"If no roles are selected, the global setting will be used. Users with "
    … …  
    11741174
    11751175#: admin/partials/shortcode-builder.php:163 blocks/blocks.php:74
    1176 #: includes/helpers/functions.php:2185 widgets/forms/categories.php:48
     1176#: includes/helpers/functions.php:2202 widgets/forms/categories.php:48
    11771177#: widgets/forms/categories.php:51
    11781178msgid "Select Parent"
    … …  
    14121412
    14131413#: admin/partials/video-email-capture.php:27 admin/settings.php:486
    1414 #: admin/videos.php:1303 blocks/blocks.php:142
    1415 #: includes/helpers/functions.php:2381 widgets/forms/video.php:222
     1414#: admin/videos.php:1321 blocks/blocks.php:142
     1415#: includes/helpers/functions.php:2398 widgets/forms/video.php:222
    14161416msgid "Email Capture"
    14171417msgstr ""
    … …  
    14861486
    14871487#: admin/partials/video-metabox.php:32 admin/settings.php:223
    1488 #: blocks/blocks.php:116 includes/helpers/functions.php:1587
    1489 #: includes/helpers/functions.php:1817 includes/helpers/functions.php:2162
    1490 #: includes/helpers/functions.php:2300
     1488#: blocks/blocks.php:116 includes/helpers/functions.php:1604
     1489#: includes/helpers/functions.php:1834 includes/helpers/functions.php:2179
     1490#: includes/helpers/functions.php:2317
    14911491msgid "General"
    14921492msgstr ""
    … …  
    15011501
    15021502#: admin/partials/video-metabox.php:82 admin/partials/video-trailer.php:30
    1503 #: admin/videos.php:828 includes/helpers/functions.php:1598
     1503#: admin/videos.php:846 includes/helpers/functions.php:1615
    15041504#: premium/admin/automations.php:986
    15051505#: premium/admin/partials/automations-sources.php:57
    … …  
    15631563#: admin/partials/video-sources.php:223 admin/partials/video-sources.php:228
    15641564#: admin/partials/video-sources.php:233 admin/partials/video-sources.php:249
    1565 #: admin/partials/video-sources.php:254 includes/helpers/functions.php:1614
    1566 #: includes/helpers/functions.php:1621 includes/helpers/functions.php:1628
    1567 #: includes/helpers/functions.php:1635 includes/helpers/functions.php:1642
    1568 #: includes/helpers/functions.php:1653 includes/helpers/functions.php:1660
     1565#: admin/partials/video-sources.php:254 includes/helpers/functions.php:1631
     1566#: includes/helpers/functions.php:1638 includes/helpers/functions.php:1645
     1567#: includes/helpers/functions.php:1652 includes/helpers/functions.php:1659
     1568#: includes/helpers/functions.php:1670 includes/helpers/functions.php:1677
    15691569#: premium/admin/partials/automations-sources.php:92
    15701570#: premium/admin/partials/automations-sources.php:108
    … …  
    16051605msgstr ""
    16061606
    1607 #: admin/partials/video-sources.php:239 includes/helpers/functions.php:1644
     1607#: admin/partials/video-sources.php:239 includes/helpers/functions.php:1661
    16081608#, php-format
    16091609msgid ""
    … …  
    16761676msgstr ""
    16771677
    1678 #: admin/partials/video-trailer.php:37 includes/helpers/functions.php:2467
     1678#: admin/partials/video-trailer.php:37 includes/helpers/functions.php:2484
    16791679msgid "Third-Party Player Code"
    16801680msgstr ""
    … …  
    17271727
    17281728#: admin/settings.php:133 admin/settings.php:993 admin/settings.php:1017
    1729 #: includes/helpers/functions.php:1013 includes/helpers/functions.php:1898
     1729#: includes/helpers/functions.php:1026 includes/helpers/functions.php:1915
    17301730msgid "Related Videos"
    17311731msgstr ""
    … …  
    17481748
    17491749#: admin/settings.php:162 admin/settings.php:1067
    1750 #: includes/helpers/functions.php:2053
     1750#: includes/helpers/functions.php:2070
    17511751msgid "Pagination"
    17521752msgstr ""
    … …  
    19001900
    19011901#: admin/settings.php:336 blocks/blocks.php:117
    1902 #: includes/helpers/functions.php:1673 premium/widgets/forms/companion.php:22
     1902#: includes/helpers/functions.php:1690 premium/widgets/forms/companion.php:22
    19031903#: widgets/forms/video.php:80
    19041904msgid "Width"
    … …  
    19061906
    19071907#: admin/settings.php:337 blocks/blocks.php:118
    1908 #: includes/helpers/functions.php:1674
     1908#: includes/helpers/functions.php:1691
    19091909msgid ""
    19101910"In pixels. Maximum width of the player. Leave this field empty to scale 100% "
    … …  
    19131913
    19141914#: admin/settings.php:343 blocks/blocks.php:119
    1915 #: includes/helpers/functions.php:1680 includes/helpers/functions.php:1910
    1916 #: includes/helpers/functions.php:2207 widgets/forms/video.php:85
     1915#: includes/helpers/functions.php:1697 includes/helpers/functions.php:1927
     1916#: includes/helpers/functions.php:2224 widgets/forms/video.php:85
    19171917msgid "Height (Ratio)"
    19181918msgstr ""
    19191919
    19201920#: admin/settings.php:346 blocks/blocks.php:120
    1921 #: includes/helpers/functions.php:1681
     1921#: includes/helpers/functions.php:1698
    19221922msgid ""
    19231923"In percentage. Calculates the player’s height based on the entered ratio."
    … …  
    19611961
    19621962#: admin/settings.php:362 blocks/blocks.php:121
    1963 #: includes/helpers/functions.php:1687 widgets/forms/video.php:92
     1963#: includes/helpers/functions.php:1704 widgets/forms/video.php:92
    19641964msgid "Autoplay"
    19651965msgstr ""
    … …  
    19701970
    19711971#: admin/settings.php:369 blocks/blocks.php:122
    1972 #: includes/helpers/functions.php:1694 widgets/forms/video.php:99
     1972#: includes/helpers/functions.php:1711 widgets/forms/video.php:99
    19731973msgid "Loop"
    19741974msgstr ""
    … …  
    19811981
    19821982#: admin/settings.php:376 blocks/blocks.php:123
    1983 #: includes/helpers/functions.php:1701 widgets/forms/video.php:106
     1983#: includes/helpers/functions.php:1718 widgets/forms/video.php:106
    19841984msgid "Muted"
    19851985msgstr ""
    … …  
    20132013msgstr ""
    20142014
    2015 #: admin/settings.php:394 admin/videos.php:1204
     2015#: admin/settings.php:394 admin/videos.php:1222
    20162016msgid "Metadata"
    20172017msgstr ""
    … …  
    20392039
    20402040#: admin/settings.php:415 blocks/blocks.php:128
    2041 #: includes/helpers/functions.php:1709 widgets/forms/video.php:112
     2041#: includes/helpers/functions.php:1726 widgets/forms/video.php:112
    20422042msgid "Player Controls"
    20432043msgstr ""
    … …  
    20492049
    20502050#: admin/settings.php:422 blocks/blocks.php:129
    2051 #: includes/helpers/functions.php:1713 widgets/forms/video.php:119
     2051#: includes/helpers/functions.php:1730 widgets/forms/video.php:119
    20522052msgid "Play / Pause"
    20532053msgstr ""
    20542054
    20552055#: admin/settings.php:423 admin/settings.php:653 blocks/blocks.php:130
    2056 #: includes/helpers/functions.php:1720 premium/admin/user.php:270
     2056#: includes/helpers/functions.php:1737 premium/admin/user.php:270
    20572057#: premium/admin/user.php:300 widgets/forms/video.php:126
    20582058msgid "Current Time"
    … …  
    20602060
    20612061#: admin/settings.php:424 blocks/blocks.php:131
    2062 #: includes/helpers/functions.php:1727 widgets/forms/video.php:133
     2062#: includes/helpers/functions.php:1744 widgets/forms/video.php:133
    20632063msgid "Progressbar"
    20642064msgstr ""
    20652065
    20662066#: admin/settings.php:425 blocks/blocks.php:132
    2067 #: includes/helpers/functions.php:1734
     2067#: includes/helpers/functions.php:1751
    20682068#: premium/includes/vimeo-api/resource-objects.php:148
    20692069#: widgets/forms/video.php:140
    … …  
    20722072
    20732073#: admin/settings.php:428 blocks/blocks.php:133
    2074 #: includes/helpers/functions.php:1755 widgets/forms/video.php:161
     2074#: includes/helpers/functions.php:1772 widgets/forms/video.php:161
    20752075msgid "Speed Control"
    20762076msgstr ""
    20772077
    20782078#: admin/settings.php:429 blocks/blocks.php:134
    2079 #: includes/helpers/functions.php:1762 widgets/forms/video.php:168
     2079#: includes/helpers/functions.php:1779 widgets/forms/video.php:168
    20802080msgid "Quality Selector"
    20812081msgstr ""
    20822082
    20832083#: admin/settings.php:430 blocks/blocks.php:135
    2084 #: includes/helpers/functions.php:1769 widgets/forms/video.php:175
     2084#: includes/helpers/functions.php:1786 widgets/forms/video.php:175
    20852085msgid "Volume Button"
    20862086msgstr ""
    20872087
    20882088#: admin/settings.php:431 blocks/blocks.php:136
    2089 #: includes/helpers/functions.php:1776 widgets/forms/video.php:182
     2089#: includes/helpers/functions.php:1793 widgets/forms/video.php:182
    20902090msgid "Picture-in-Picture Button"
    20912091msgstr ""
    20922092
    20932093#: admin/settings.php:432 blocks/blocks.php:137
    2094 #: includes/helpers/functions.php:1783 widgets/forms/video.php:189
     2094#: includes/helpers/functions.php:1800 widgets/forms/video.php:189
    20952095msgid "Fullscreen Button"
    20962096msgstr ""
    20972097
    20982098#: admin/settings.php:433 admin/settings.php:994 blocks/blocks.php:138
    2099 #: includes/helpers/functions.php:1790 widgets/forms/video.php:196
     2099#: includes/helpers/functions.php:1807 widgets/forms/video.php:196
    21002100msgid "Share Buttons"
    21012101msgstr ""
    21022102
    21032103#: admin/settings.php:434 blocks/blocks.php:139
    2104 #: includes/helpers/functions.php:1797 widgets/forms/video.php:203
     2104#: includes/helpers/functions.php:1814 widgets/forms/video.php:203
    21052105msgid "Embed Button"
    21062106msgstr ""
    21072107
    21082108#: admin/settings.php:435 blocks/blocks.php:140
    2109 #: includes/helpers/functions.php:1804 widgets/forms/video.php:210
     2109#: includes/helpers/functions.php:1821 widgets/forms/video.php:210
    21102110msgid "Download Button"
    21112111msgstr ""
    … …  
    21242124msgstr ""
    21252125
    2126 #: admin/settings.php:445 includes/helpers/functions.php:1627
    2127 #: includes/helpers/functions.php:2459 premium/includes/functions.php:171
     2126#: admin/settings.php:445 includes/helpers/functions.php:1644
     2127#: includes/helpers/functions.php:2476 premium/includes/functions.php:171
    21282128msgid "YouTube"
    21292129msgstr ""
    21302130
    2131 #: admin/settings.php:446 includes/helpers/functions.php:1634
    2132 #: includes/helpers/functions.php:2460 premium/includes/functions.php:172
     2131#: admin/settings.php:446 includes/helpers/functions.php:1651
     2132#: includes/helpers/functions.php:2477 premium/includes/functions.php:172
    21332133msgid "Vimeo"
    21342134msgstr ""
    … …  
    22002200msgstr ""
    22012201
    2202 #: admin/settings.php:490 admin/videos.php:1294 premium/admin/ads.php:90
     2202#: admin/settings.php:490 admin/videos.php:1312 premium/admin/ads.php:90
    22032203msgid "Disabled"
    22042204msgstr ""
    … …  
    23692369
    23702370#: admin/settings.php:577 includes/helpers/email-capture.php:515
    2371 #: includes/helpers/functions.php:928
     2371#: includes/helpers/functions.php:941
    23722372#: public/templates/player-email-capture.php:68
    23732373msgid "Enter your email to continue watching"
    … …  
    23942394
    23952395#: admin/settings.php:592 includes/helpers/email-capture.php:517
    2396 #: includes/helpers/functions.php:930
     2396#: includes/helpers/functions.php:943
    23972397#: public/templates/player-email-capture.php:70
    23982398msgid "Submit"
    … …  
    24102410
    24112411#: admin/settings.php:600 includes/helpers/email-capture.php:518
    2412 #: includes/helpers/functions.php:931
     2412#: includes/helpers/functions.php:944
    24132413#: public/templates/player-email-capture.php:71
    24142414msgid "Skip"
    … …  
    26532653msgstr ""
    26542654
    2655 #: admin/settings.php:745 includes/helpers/functions.php:1659
    2656 #: includes/helpers/functions.php:2463 includes/helpers/render.php:561
     2655#: admin/settings.php:745 includes/helpers/functions.php:1676
     2656#: includes/helpers/functions.php:2480 includes/helpers/render.php:561
    26572657#: includes/player/base.php:789 public/templates/player-videojs.php:386
    26582658#: public/templates/player-vidstack.php:451
    … …  
    27152715
    27162716#: admin/settings.php:774 admin/settings.php:874 blocks/blocks.php:75
    2717 #: includes/helpers/functions.php:1828 includes/helpers/functions.php:2173
    2718 #: includes/helpers/functions.php:2304 widgets/forms/categories.php:26
     2717#: includes/helpers/functions.php:1845 includes/helpers/functions.php:2190
     2718#: includes/helpers/functions.php:2321 widgets/forms/categories.php:26
    27192719#: widgets/forms/search.php:26
    27202720msgid "Select Template"
    27212721msgstr ""
    27222722
    2723 #: admin/settings.php:775 includes/helpers/functions.php:1829
     2723#: admin/settings.php:775 includes/helpers/functions.php:1846
    27242724#, php-format
    27252725msgid ""
    … …  
    27292729
    27302730#: admin/settings.php:782 admin/settings.php:886 admin/settings.php:1023
    2731 #: blocks/blocks.php:79 includes/helpers/functions.php:1917
    2732 #: includes/helpers/functions.php:2214 widgets/forms/categories.php:67
     2731#: blocks/blocks.php:79 includes/helpers/functions.php:1934
     2732#: includes/helpers/functions.php:2231 widgets/forms/categories.php:67
    27332733msgid "Columns"
    27342734msgstr ""
    … …  
    27392739
    27402740#: admin/settings.php:792 admin/settings.php:896 admin/settings.php:1033
    2741 #: blocks/blocks.php:80 includes/helpers/functions.php:1927
    2742 #: includes/helpers/functions.php:2224 widgets/forms/categories.php:72
     2741#: blocks/blocks.php:80 includes/helpers/functions.php:1944
     2742#: includes/helpers/functions.php:2241 widgets/forms/categories.php:72
    27432743msgid "Limit (per page)"
    27442744msgstr ""
    … …  
    27502750
    27512751#: admin/settings.php:799 admin/settings.php:903 admin/settings.php:1040
    2752 #: blocks/blocks.php:81 includes/helpers/functions.php:1864
    2753 #: includes/helpers/functions.php:2234
     2752#: blocks/blocks.php:81 includes/helpers/functions.php:1881
     2753#: includes/helpers/functions.php:2251
    27542754#: premium/admin/partials/automations-sources.php:185
    27552755#: widgets/forms/categories.php:77
    … …  
    27582758
    27592759#: admin/settings.php:803 admin/settings.php:1015 admin/settings.php:1044
    2760 #: includes/helpers/functions.php:1821 includes/helpers/functions.php:1868
    2761 #: includes/helpers/functions.php:2166
     2760#: includes/helpers/functions.php:1838 includes/helpers/functions.php:1885
     2761#: includes/helpers/functions.php:2183
    27622762#: premium/admin/partials/automations-sources.php:193
    27632763#: widgets/forms/categories.php:21 widgets/forms/search.php:21
    … …  
    27672767
    27682768#: admin/settings.php:804 admin/settings.php:845 admin/settings.php:990
    2769 #: admin/settings.php:1045 includes/helpers/functions.php:1869
    2770 #: includes/helpers/functions.php:1983
     2769#: admin/settings.php:1045 includes/helpers/functions.php:1886
     2770#: includes/helpers/functions.php:2000
    27712771msgid "Date Added"
    27722772msgstr ""
    27732773
    27742774#: admin/settings.php:808 admin/settings.php:1049
    2775 #: includes/helpers/functions.php:1873
     2775#: includes/helpers/functions.php:1890
    27762776msgid "Random"
    27772777msgstr ""
    27782778
    27792779#: admin/settings.php:809 admin/settings.php:911 admin/settings.php:1050
    2780 #: blocks/blocks.php:86 includes/helpers/functions.php:1874
    2781 #: includes/helpers/functions.php:2242 widgets/forms/categories.php:85
     2780#: blocks/blocks.php:86 includes/helpers/functions.php:1891
     2781#: includes/helpers/functions.php:2259 widgets/forms/categories.php:85
    27822782msgid "Menu Order"
    27832783msgstr ""
    27842784
    27852785#: admin/settings.php:815 admin/settings.php:917 admin/settings.php:1056
    2786 #: blocks/blocks.php:87 includes/helpers/functions.php:1880
    2787 #: includes/helpers/functions.php:2248 widgets/forms/categories.php:101
     2786#: blocks/blocks.php:87 includes/helpers/functions.php:1897
     2787#: includes/helpers/functions.php:2265 widgets/forms/categories.php:101
    27882788msgid "Order"
    27892789msgstr ""
    … …  
    27972797msgstr ""
    27982798
    2799 #: admin/settings.php:826 includes/helpers/functions.php:1937
     2799#: admin/settings.php:826 includes/helpers/functions.php:1954
    28002800msgid "Image Position"
    28012801msgstr ""
    28022802
    2803 #: admin/settings.php:830 includes/helpers/functions.php:1941
    2804 #: includes/helpers/functions.php:2148
     2803#: admin/settings.php:830 includes/helpers/functions.php:1958
     2804#: includes/helpers/functions.php:2165
    28052805msgid "Top"
    28062806msgstr ""
    28072807
    2808 #: admin/settings.php:831 includes/helpers/functions.php:1942
    2809 #: includes/helpers/functions.php:2149
     2808#: admin/settings.php:831 includes/helpers/functions.php:1959
     2809#: includes/helpers/functions.php:2166
    28102810msgid "Left"
    28112811msgstr ""
    28122812
    2813 #: admin/settings.php:837 includes/helpers/functions.php:1948
     2813#: admin/settings.php:837 includes/helpers/functions.php:1965
    28142814msgid "Show / Hide (Thumbnails)"
    28152815msgstr ""
    28162816
    2817 #: admin/settings.php:841 includes/helpers/functions.php:1955
     2817#: admin/settings.php:841 includes/helpers/functions.php:1972
    28182818msgid "Videos Count"
    28192819msgstr ""
    28202820
    28212821#: admin/settings.php:843 admin/settings.php:988
    2822 #: includes/helpers/functions.php:1969
     2822#: includes/helpers/functions.php:1986
    28232823msgid "Category Name(s)"
    28242824msgstr ""
    28252825
    28262826#: admin/settings.php:844 admin/settings.php:989
    2827 #: includes/helpers/functions.php:1976
     2827#: includes/helpers/functions.php:1993
    28282828msgid "Tag Name(s)"
    28292829msgstr ""
    28302830
    28312831#: admin/settings.php:846 admin/settings.php:991
    2832 #: includes/helpers/functions.php:1990
     2832#: includes/helpers/functions.php:2007
    28332833msgid "Author Name"
    28342834msgstr ""
    28352835
    2836 #: admin/settings.php:850 includes/helpers/functions.php:2018
     2836#: admin/settings.php:850 includes/helpers/functions.php:2035
    28372837msgid "Comments Count"
    28382838msgstr ""
    28392839
    2840 #: admin/settings.php:852 includes/helpers/functions.php:2032
     2840#: admin/settings.php:852 includes/helpers/functions.php:2049
    28412841msgid "Video Excerpt (Short Description)"
    28422842msgstr ""
    28432843
    2844 #: admin/settings.php:858 includes/helpers/functions.php:2039
     2844#: admin/settings.php:858 includes/helpers/functions.php:2056
    28452845msgid "Title Length"
    28462846msgstr ""
    … …  
    28502850msgstr ""
    28512851
    2852 #: admin/settings.php:865 includes/helpers/functions.php:2046
     2852#: admin/settings.php:865 includes/helpers/functions.php:2063
    28532853msgid "Excerpt Length"
    28542854msgstr ""
    28552855
    28562856#: admin/settings.php:878 blocks/blocks.php:76
    2857 #: includes/helpers/functions.php:2177 widgets/forms/categories.php:30
     2857#: includes/helpers/functions.php:2194 widgets/forms/categories.php:30
    28582858msgid "Grid"
    28592859msgstr ""
    28602860
    28612861#: admin/settings.php:879 blocks/blocks.php:77
    2862 #: includes/helpers/functions.php:2178 widgets/forms/categories.php:31
     2862#: includes/helpers/functions.php:2195 widgets/forms/categories.php:31
    28632863msgid "List"
    28642864msgstr ""
    28652865
    28662866#: admin/settings.php:880 blocks/blocks.php:78
    2867 #: includes/helpers/functions.php:2179 widgets/forms/categories.php:32
     2867#: includes/helpers/functions.php:2196 widgets/forms/categories.php:32
    28682868msgid "Dropdown"
    28692869msgstr ""
    … …  
    28802880
    28812881#: admin/settings.php:908 blocks/blocks.php:83
    2882 #: includes/helpers/functions.php:2239 widgets/forms/categories.php:82
     2882#: includes/helpers/functions.php:2256 widgets/forms/categories.php:82
    28832883msgid "Count"
    28842884msgstr ""
    28852885
    28862886#: admin/settings.php:909 blocks/blocks.php:84
    2887 #: includes/helpers/email-capture.php:118 includes/helpers/functions.php:2240
     2887#: includes/helpers/email-capture.php:118 includes/helpers/functions.php:2257
    28882888#: widgets/forms/categories.php:83
    28892889msgid "Name"
    … …  
    28912891
    28922892#: admin/settings.php:910 blocks/blocks.php:85
    2893 #: includes/helpers/functions.php:2241 widgets/forms/categories.php:84
     2893#: includes/helpers/functions.php:2258 widgets/forms/categories.php:84
    28942894msgid "Slug"
    28952895msgstr ""
    28962896
    28972897#: admin/settings.php:928 blocks/blocks.php:90
    2898 #: includes/helpers/functions.php:2259 widgets/forms/categories.php:124
     2898#: includes/helpers/functions.php:2276 widgets/forms/categories.php:124
    28992899msgid "Show Hierarchy"
    29002900msgstr ""
    … …  
    29052905
    29062906#: admin/settings.php:935 blocks/blocks.php:91
    2907 #: includes/helpers/functions.php:2266 widgets/forms/categories.php:131
     2907#: includes/helpers/functions.php:2283 widgets/forms/categories.php:131
    29082908msgid "Show Description"
    29092909msgstr ""
    … …  
    29142914
    29152915#: admin/settings.php:942 blocks/blocks.php:92
    2916 #: includes/helpers/functions.php:2273 widgets/forms/categories.php:138
     2916#: includes/helpers/functions.php:2290 widgets/forms/categories.php:138
    29172917msgid "Show Videos Count"
    29182918msgstr ""
    … …  
    29232923
    29242924#: admin/settings.php:949 blocks/blocks.php:93
    2925 #: includes/helpers/functions.php:2280 widgets/forms/categories.php:145
     2925#: includes/helpers/functions.php:2297 widgets/forms/categories.php:145
    29262926msgid "Hide Empty Categories"
    29272927msgstr ""
    … …  
    30743074msgstr ""
    30753075
    3076 #: admin/settings.php:1147 includes/helpers/functions.php:1032
     3076#: admin/settings.php:1147 includes/helpers/functions.php:1045
    30773077msgid "Restricted"
    30783078msgstr ""
    … …  
    33363336msgstr ""
    33373337
    3338 #: admin/settings.php:1354 premium/includes/vimeo-api/query.php:271
     3338#: admin/settings.php:1354 premium/includes/vimeo-api/query.php:284
    33393339#, php-format
    33403340msgid ""
    … …  
    35883588msgstr ""
    35893589
    3590 #: admin/tags.php:89 includes/helpers/functions.php:1324 public/public.php:251
     3590#: admin/tags.php:89 includes/helpers/functions.php:1341 public/public.php:251
    35913591#: public/public.php:358
    35923592msgid "No tags found"
    … …  
    36093609msgstr ""
    36103610
    3611 #: admin/videos.php:33 admin/videos.php:82 admin/videos.php:1065
     3611#: admin/videos.php:33 admin/videos.php:82 admin/videos.php:1083
    36123612msgid "All Videos"
    36133613msgstr ""
    36143614
    36153615#: admin/videos.php:78 admin/videos.php:112 admin/videos.php:292
    3616 #: blocks/blocks.php:113 includes/helpers/functions.php:1606
     3616#: blocks/blocks.php:113 includes/helpers/functions.php:1623
    36173617msgid "Video"
    36183618msgstr ""
    … …  
    36583658msgstr ""
    36593659
    3660 #: admin/videos.php:91 includes/helpers/functions.php:1318
     3660#: admin/videos.php:91 includes/helpers/functions.php:1335
    36613661#: premium/admin/partials/playlist-fields.php:63
    36623662msgid "No videos found"
    … …  
    37033703msgstr ""
    37043704
    3705 #: admin/videos.php:754 admin/videos.php:1182
     3705#: admin/videos.php:772 admin/videos.php:1200
    37063706msgid "Export Emails"
    37073707msgstr ""
    37083708
    3709 #: admin/videos.php:796 premium/admin/automations.php:947
     3709#: admin/videos.php:814 premium/admin/automations.php:947
    37103710msgid "Take a Guided Tour"
    37113711msgstr ""
    37123712
    3713 #: admin/videos.php:798 premium/admin/automations.php:949
     3713#: admin/videos.php:816 premium/admin/automations.php:949
    37143714#, php-format
    37153715msgid "%1$s of %2$s"
    37163716msgstr ""
    37173717
    3718 #: admin/videos.php:799 premium/admin/automations.php:950
     3718#: admin/videos.php:817 premium/admin/automations.php:950
    37193719msgid "Next →"
    37203720msgstr ""
    37213721
    3722 #: admin/videos.php:800 premium/admin/automations.php:951
     3722#: admin/videos.php:818 premium/admin/automations.php:951
    37233723msgid "← Previous"
    37243724msgstr ""
    37253725
    3726 #: admin/videos.php:801 premium/admin/automations.php:952
     3726#: admin/videos.php:819 premium/admin/automations.php:952
    37273727msgid "Done"
    37283728msgstr ""
    37293729
    3730 #: admin/videos.php:807 premium/admin/automations.php:958
     3730#: admin/videos.php:825 premium/admin/automations.php:958
    37313731msgid "Welcome to the Quick Tour"
    37323732msgstr ""
    37333733
    3734 #: admin/videos.php:808
     3734#: admin/videos.php:826
    37353735msgid ""
    37363736"This form lets you add or edit videos for your gallery.<br><br>Let's walk "
    … …  
    37383738msgstr ""
    37393739
    3740 #: admin/videos.php:815
     3740#: admin/videos.php:833
    37413741msgid ""
    37423742"Start by entering a <strong>clear, descriptive title</strong> for your video."
    … …  
    37453745msgstr ""
    37463746
    3747 #: admin/videos.php:822
     3747#: admin/videos.php:840
    37483748msgid ""
    37493749"Next, add a <strong>description</strong> for your video.<br><br>This is "
    … …  
    37533753msgstr ""
    37543754
    3755 #: admin/videos.php:822
     3755#: admin/videos.php:840
    37563756msgid ""
    37573757"<strong>Do not add your video here.</strong> You will add it in the "
    … …  
    37593759msgstr ""
    37603760
    3761 #: admin/videos.php:829
     3761#: admin/videos.php:847
    37623762msgid ""
    37633763"Choose where your video is hosted — <strong>YouTube</strong>, <strong>Vimeo</"
    … …  
    37663766msgstr ""
    37673767
    3768 #: admin/videos.php:835
     3768#: admin/videos.php:853
    37693769msgid "Video File Input"
    37703770msgstr ""
    37713771
    3772 #: admin/videos.php:836
     3772#: admin/videos.php:854
    37733773msgid ""
    37743774"Depending on the source you selected, either <strong>upload a video file</"
    … …  
    37763776msgstr ""
    37773777
    3778 #: admin/videos.php:845
     3778#: admin/videos.php:863
    37793779#, php-format
    37803780msgid ""
    … …  
    37873787msgstr ""
    37883788
    3789 #: admin/videos.php:854
     3789#: admin/videos.php:872
    37903790msgid ""
    37913791"Assign your video to <strong>categories</strong> to help visitors find "
    … …  
    37943794msgstr ""
    37953795
    3796 #: admin/videos.php:861
     3796#: admin/videos.php:879
    37973797msgid ""
    37983798"Add <strong>tags</strong> to describe your video in more detail.<br><br>Tags "
    … …  
    38003800msgstr ""
    38013801
    3802 #: admin/videos.php:867
     3802#: admin/videos.php:885
    38033803msgid "Save Your Video"
    38043804msgstr ""
    38053805
    3806 #: admin/videos.php:868
     3806#: admin/videos.php:886
    38073807msgid ""
    38083808"All set? Great!<br><br>Click <strong>\"Publish\"</strong> to save your video."
    … …  
    38103810msgstr ""
    38113811
    3812 #: admin/videos.php:874 premium/admin/automations.php:1050
     3812#: admin/videos.php:892 premium/admin/automations.php:1057
    38133813msgid "Next Steps"
    38143814msgstr ""
    38153815
    3816 #: admin/videos.php:877
     3816#: admin/videos.php:895
    38173817#, php-format
    38183818msgid ""
    … …  
    38273827msgstr ""
    38283828
    3829 #: admin/videos.php:966
     3829#: admin/videos.php:984
    38303830msgid ""
    38313831"Video description (optional). Add the video itself in the \"Video\" box "
    … …  
    38333833msgstr ""
    38343834
    3835 #: admin/videos.php:1066 includes/helpers/functions.php:1891
     3835#: admin/videos.php:1084 includes/helpers/functions.php:1908
    38363836msgid "Featured Only"
    38373837msgstr ""
    38383838
    3839 #: admin/videos.php:1160
     3839#: admin/videos.php:1178
    38403840msgid "Copy URL"
    38413841msgstr ""
    38423842
    3843 #: admin/videos.php:1169
     3843#: admin/videos.php:1187
    38443844msgid "Copy Shortcode"
    38453845msgstr ""
    38463846
    3847 #: admin/videos.php:1208 includes/helpers/functions.php:2159
     3847#: admin/videos.php:1226 includes/helpers/functions.php:2176
    38483848#: premium/admin/automations.php:320
    38493849msgid "Categories"
    38503850msgstr ""
    38513851
    3852 #: admin/videos.php:1209 premium/admin/automations.php:321
     3852#: admin/videos.php:1227 premium/admin/automations.php:321
    38533853msgid "Tags"
    38543854msgstr ""
    38553855
    3856 #: admin/videos.php:1251
     3856#: admin/videos.php:1269
    38573857msgid "Views"
    38583858msgstr ""
    38593859
    3860 #: admin/videos.php:1260 premium/includes/vimeo-api/resource-objects.php:166
     3860#: admin/videos.php:1278 premium/includes/vimeo-api/resource-objects.php:166
    38613861#: public/public.php:275 public/public.php:359
    38623862msgid "Likes"
    38633863msgstr ""
    38643864
    3865 #: admin/videos.php:1269 public/public.php:276 public/public.php:360
     3865#: admin/videos.php:1287 public/public.php:276 public/public.php:360
    38663866msgid "Dislikes"
    38673867msgstr ""
    38683868
    3869 #: admin/videos.php:1292 premium/admin/ads.php:88
     3869#: admin/videos.php:1310 premium/admin/ads.php:88
    38703870msgid "Enabled"
    38713871msgstr ""
    38723872
    3873 #: admin/videos.php:1296
     3873#: admin/videos.php:1314
    38743874msgid "Default (On)"
    38753875msgstr ""
    38763876
    3877 #: admin/videos.php:1298
     3877#: admin/videos.php:1316
    38783878msgid "Default (Off)"
    38793879msgstr ""
    38803880
    3881 #: all-in-one-video-gallery.php:124
     3881#: all-in-one-video-gallery.php:125
    38823882msgid ""
    38833883"Sorry, this plugin cannot be activated network-wide. Please activate it "
    … …  
    38853885msgstr ""
    38863886
    3887 #: all-in-one-video-gallery.php:125
     3887#: all-in-one-video-gallery.php:126
    38883888msgid "Network Activation Not Allowed"
    38893889msgstr ""
    … …  
    38973897msgstr ""
    38983898
    3899 #: blocks/blocks.php:88 includes/helpers/functions.php:1884
    3900 #: includes/helpers/functions.php:2252 widgets/forms/categories.php:105
     3899#: blocks/blocks.php:88 includes/helpers/functions.php:1901
     3900#: includes/helpers/functions.php:2269 widgets/forms/categories.php:105
    39013901msgid "ASC"
    39023902msgstr ""
    39033903
    3904 #: blocks/blocks.php:89 includes/helpers/functions.php:1885
    3905 #: includes/helpers/functions.php:2253 widgets/forms/categories.php:106
     3904#: blocks/blocks.php:89 includes/helpers/functions.php:1902
     3905#: includes/helpers/functions.php:2270 widgets/forms/categories.php:106
    39063906msgid "DESC"
    39073907msgstr ""
    39083908
    3909 #: blocks/blocks.php:94 includes/helpers/functions.php:2287
     3909#: blocks/blocks.php:94 includes/helpers/functions.php:2304
    39103910msgid "Show Pagination"
    39113911msgstr ""
    … …  
    39313931msgstr ""
    39323932
    3933 #: blocks/blocks.php:100 includes/helpers/functions.php:2125
    3934 #: includes/helpers/functions.php:2308 widgets/forms/search.php:30
     3933#: blocks/blocks.php:100 includes/helpers/functions.php:2142
     3934#: includes/helpers/functions.php:2325 widgets/forms/search.php:30
    39353935msgid "Vertical"
    39363936msgstr ""
    39373937
    3938 #: blocks/blocks.php:101 includes/helpers/functions.php:2126
    3939 #: includes/helpers/functions.php:2309 widgets/forms/search.php:31
     3938#: blocks/blocks.php:101 includes/helpers/functions.php:2143
     3939#: includes/helpers/functions.php:2326 widgets/forms/search.php:31
    39403940msgid "Horizontal"
    39413941msgstr ""
    39423942
    3943 #: blocks/blocks.php:102 includes/helpers/functions.php:2322
     3943#: blocks/blocks.php:102 includes/helpers/functions.php:2339
    39443944#: widgets/forms/search.php:56
    39453945msgid "Search By Categories"
    39463946msgstr ""
    39473947
    3948 #: blocks/blocks.php:103 includes/helpers/functions.php:2315
     3948#: blocks/blocks.php:103 includes/helpers/functions.php:2332
    39493949#: widgets/forms/search.php:49
    39503950msgid "Search By Video Title, Description"
    39513951msgstr ""
    39523952
    3953 #: blocks/blocks.php:104 includes/helpers/functions.php:2329
     3953#: blocks/blocks.php:104 includes/helpers/functions.php:2346
    39543954#: widgets/forms/search.php:63
    39553955msgid "Search By Tags"
    39563956msgstr ""
    39573957
    3958 #: blocks/blocks.php:105 includes/helpers/functions.php:2107
    3959 #: includes/helpers/functions.php:2336 widgets/forms/search.php:70
     3958#: blocks/blocks.php:105 includes/helpers/functions.php:2124
     3959#: includes/helpers/functions.php:2353 widgets/forms/search.php:70
    39603960msgid "Sort By Dropdown"
    39613961msgstr ""
    39623962
    3963 #: blocks/blocks.php:106 includes/helpers/functions.php:2343
     3963#: blocks/blocks.php:106 includes/helpers/functions.php:2360
    39643964#: widgets/forms/search.php:77
    39653965msgid "Search Button"
    39663966msgstr ""
    39673967
    3968 #: blocks/blocks.php:107 includes/helpers/functions.php:2114
    3969 #: includes/helpers/functions.php:2350 widgets/forms/search.php:84
     3968#: blocks/blocks.php:107 includes/helpers/functions.php:2131
     3969#: includes/helpers/functions.php:2367 widgets/forms/search.php:84
    39703970msgid "Reset Button"
    39713971msgstr ""
    39723972
    3973 #: blocks/blocks.php:109 includes/helpers/functions.php:2361
     3973#: blocks/blocks.php:109 includes/helpers/functions.php:2378
    39743974#: widgets/forms/search.php:93
    39753975msgid "Use Plugin's Default Search Results Page"
    39763976msgstr ""
    39773977
    3978 #: blocks/blocks.php:110 includes/helpers/functions.php:2362
     3978#: blocks/blocks.php:110 includes/helpers/functions.php:2379
    39793979#: widgets/forms/search.php:94
    39803980msgid "Display Results on Current Page"
    … …  
    40034003msgstr ""
    40044004
    4005 #: blocks/blocks.php:143 includes/helpers/functions.php:2382
     4005#: blocks/blocks.php:143 includes/helpers/functions.php:2399
    40064006#: widgets/forms/video.php:242
    40074007msgid ""
    … …  
    40554055msgstr ""
    40564056
    4057 #: includes/helpers/functions.php:937
     4057#: includes/helpers/functions.php:950
    40584058msgid "[{site_name}] New lead captured on \"{video_title}\""
    40594059msgstr ""
    40604060
    4061 #: includes/helpers/functions.php:938
     4061#: includes/helpers/functions.php:951
    40624062msgid ""
    40634063"A new lead was captured on \"{video_title}\".\n"
    … …  
    40734073msgstr ""
    40744074
    4075 #: includes/helpers/functions.php:1030 includes/helpers/functions.php:1523
    4076 #: public/templates/player.php:68 public/video.php:751
     4075#: includes/helpers/functions.php:1043 includes/helpers/functions.php:1540
     4076#: public/templates/player.php:68 public/video.php:750
    40774077msgid "Sorry, but you do not have permission to view this video."
    40784078msgstr ""
    40794079
    4080 #: includes/helpers/functions.php:1047
     4080#: includes/helpers/functions.php:1060
    40814081msgid ""
    40824082"<strong>Please accept cookies to play this video</strong>. By accepting you "
    … …  
    40844084msgstr ""
    40854085
    4086 #: includes/helpers/functions.php:1048
     4086#: includes/helpers/functions.php:1061
    40874087msgid "I Agree"
    40884088msgstr ""
    40894089
    4090 #: includes/helpers/functions.php:1327
     4090#: includes/helpers/functions.php:1344
    40914091msgid "Sorry, you need to login to view this content."
    40924092msgstr ""
    40934093
    4094 #: includes/helpers/functions.php:1530
     4094#: includes/helpers/functions.php:1547
    40954095#, php-format
    40964096msgid ""
    … …  
    40994099msgstr ""
    41004100
    4101 #: includes/helpers/functions.php:1554
     4101#: includes/helpers/functions.php:1571
    41024102msgid "Title - Ascending"
    41034103msgstr ""
    41044104
    4105 #: includes/helpers/functions.php:1555
     4105#: includes/helpers/functions.php:1572
    41064106msgid "Title - Descending"
    41074107msgstr ""
    41084108
    4109 #: includes/helpers/functions.php:1556
     4109#: includes/helpers/functions.php:1573
    41104110msgid "Newest First"
    41114111msgstr ""
    41124112
    4113 #: includes/helpers/functions.php:1557
     4113#: includes/helpers/functions.php:1574
    41144114msgid "Oldest First"
    41154115msgstr ""
    41164116
    4117 #: includes/helpers/functions.php:1558
     4117#: includes/helpers/functions.php:1575
    41184118msgid "Most Viewed"
    41194119msgstr ""
    41204120
    4121 #: includes/helpers/functions.php:1563
     4121#: includes/helpers/functions.php:1580
    41224122msgid "Most Liked"
    41234123msgstr ""
    41244124
    4125 #: includes/helpers/functions.php:1584
     4125#: includes/helpers/functions.php:1601
    41264126msgid "Single Video"
    41274127msgstr ""
    41284128
    4129 #: includes/helpers/functions.php:1591 widgets/forms/video.php:29
     4129#: includes/helpers/functions.php:1608 widgets/forms/video.php:29
    41304130#: widgets/forms/video.php:45
    41314131msgid "Select Video"
    41324132msgstr ""
    41334133
    4134 #: includes/helpers/functions.php:1607 includes/helpers/functions.php:1667
     4134#: includes/helpers/functions.php:1624 includes/helpers/functions.php:1684
    41354135msgid ""
    41364136"Enter your direct file URL in the textbox above (OR) upload your file using "
    … …  
    41384138msgstr ""
    41394139
    4140 #: includes/helpers/functions.php:1613
     4140#: includes/helpers/functions.php:1630
    41414141#: premium/public/templates/video-form.php:156
    41424142msgid "HLS"
    41434143msgstr ""
    41444144
    4145 #: includes/helpers/functions.php:1620
     4145#: includes/helpers/functions.php:1637
    41464146#: premium/public/templates/video-form.php:156
    41474147msgid "MPEG-DASH"
    41484148msgstr ""
    41494149
    4150 #: includes/helpers/functions.php:1641 includes/helpers/functions.php:2461
     4150#: includes/helpers/functions.php:1658 includes/helpers/functions.php:2478
    41514151msgid "Dailymotion"
    41524152msgstr ""
    41534153
    4154 #: includes/helpers/functions.php:1652 includes/helpers/functions.php:2462
     4154#: includes/helpers/functions.php:1669 includes/helpers/functions.php:2479
    41554155msgid "Rumble"
    41564156msgstr ""
    41574157
    4158 #: includes/helpers/functions.php:1836
     4158#: includes/helpers/functions.php:1853
    41594159#: premium/public/templates/video-form.php:242
    41604160#: premium/public/templates/video-form.php:249
    … …  
    41644164msgstr ""
    41654165
    4166 #: includes/helpers/functions.php:1843
     4166#: includes/helpers/functions.php:1860
    41674167#: premium/public/templates/video-form.php:284
    41684168#: premium/public/templates/video-form.php:291
    … …  
    41724172msgstr ""
    41734173
    4174 #: includes/helpers/functions.php:1850
     4174#: includes/helpers/functions.php:1867
    41754175msgid "Include Video ID(s)"
    41764176msgstr ""
    41774177
    4178 #: includes/helpers/functions.php:1857
     4178#: includes/helpers/functions.php:1874
    41794179msgid "Exclude Video ID(s)"
    41804180msgstr ""
    41814181
    4182 #: includes/helpers/functions.php:1898
     4182#: includes/helpers/functions.php:1915
    41834183msgid "Follow URL"
    41844184msgstr ""
    41854185
    4186 #: includes/helpers/functions.php:1906
     4186#: includes/helpers/functions.php:1923
    41874187msgid "Gallery"
    41884188msgstr ""
    41894189
    4190 #: includes/helpers/functions.php:2060
     4190#: includes/helpers/functions.php:2077
    41914191msgid "More Button"
    41924192msgstr ""
    41934193
    4194 #: includes/helpers/functions.php:2067 widgets/forms/categories.php:157
     4194#: includes/helpers/functions.php:2084 widgets/forms/categories.php:157
    41954195msgid "More Button Label"
    41964196msgstr ""
    41974197
    4198 #: includes/helpers/functions.php:2070 widgets/categories.php:67
     4198#: includes/helpers/functions.php:2087 widgets/categories.php:67
    41994199#: widgets/videos.php:478
    42004200msgid "Show More"
    42014201msgstr ""
    42024202
    4203 #: includes/helpers/functions.php:2074 widgets/forms/categories.php:162
     4203#: includes/helpers/functions.php:2091 widgets/forms/categories.php:162
    42044204msgid "More Button Link"
    42054205msgstr ""
    42064206
    4207 #: includes/helpers/functions.php:2075 widgets/forms/categories.php:164
     4207#: includes/helpers/functions.php:2092 widgets/forms/categories.php:164
    42084208msgid "Leave this field blank to use Ajax"
    42094209msgstr ""
    42104210
    4211 #: includes/helpers/functions.php:2082
     4211#: includes/helpers/functions.php:2099
    42124212msgid "Filters & Search Form"
    42134213msgstr ""
    42144214
    4215 #: includes/helpers/functions.php:2086
     4215#: includes/helpers/functions.php:2103
    42164216msgid "Filter By Video Title, Description"
    42174217msgstr ""
    42184218
    4219 #: includes/helpers/functions.php:2087
     4219#: includes/helpers/functions.php:2104
    42204220msgid ""
    42214221"Enable keyword search that allows visitors to filter videos by matching "
    … …  
    42234223msgstr ""
    42244224
    4225 #: includes/helpers/functions.php:2093
     4225#: includes/helpers/functions.php:2110
    42264226msgid "Filter By Categories"
    42274227msgstr ""
    42284228
    4229 #: includes/helpers/functions.php:2094
     4229#: includes/helpers/functions.php:2111
    42304230msgid "Allow visitors to filter videos based on assigned categories."
    42314231msgstr ""
    42324232
    4233 #: includes/helpers/functions.php:2100
     4233#: includes/helpers/functions.php:2117
    42344234msgid "Filter By Tags"
    42354235msgstr ""
    42364236
    4237 #: includes/helpers/functions.php:2101
     4237#: includes/helpers/functions.php:2118
    42384238msgid "Allow visitors to filter videos based on assigned tags."
    42394239msgstr ""
    42404240
    4241 #: includes/helpers/functions.php:2108
     4241#: includes/helpers/functions.php:2125
    42424242msgid ""
    42434243"Enable a dropdown to let visitors sort videos by options like date, title, "
    … …  
    42454245msgstr ""
    42464246
    4247 #: includes/helpers/functions.php:2115
     4247#: includes/helpers/functions.php:2132
    42484248msgid "Show a reset button to allow visitors to clear all selected filters."
    42494249msgstr ""
    42504250
    4251 #: includes/helpers/functions.php:2121
     4251#: includes/helpers/functions.php:2138
    42524252msgid "Filters Template"
    42534253msgstr ""
    42544254
    4255 #: includes/helpers/functions.php:2122
     4255#: includes/helpers/functions.php:2139
    42564256msgid ""
    42574257"Choose how the filters will be displayed — vertically (stacked) or "
    … …  
    42594259msgstr ""
    42604260
    4261 #: includes/helpers/functions.php:2132
     4261#: includes/helpers/functions.php:2149
    42624262msgid "Filters Mode"
    42634263msgstr ""
    42644264
    4265 #: includes/helpers/functions.php:2133
     4265#: includes/helpers/functions.php:2150
    42664266msgid "How should the filter form behave when users interact with it?"
    42674267msgstr ""
    42684268
    4269 #: includes/helpers/functions.php:2136
     4269#: includes/helpers/functions.php:2153
    42704270msgid "Live - Update instantly"
    42714271msgstr ""
    42724272
    4273 #: includes/helpers/functions.php:2137
     4273#: includes/helpers/functions.php:2154
    42744274msgid "Ajax - Update instantly without page reload"
    42754275msgstr ""
    42764276
    4277 #: includes/helpers/functions.php:2138
     4277#: includes/helpers/functions.php:2155
    42784278msgid "Search - Update on button click"
    42794279msgstr ""
    42804280
    4281 #: includes/helpers/functions.php:2144
     4281#: includes/helpers/functions.php:2161
    42824282msgid "Filters Position"
    42834283msgstr ""
    42844284
    4285 #: includes/helpers/functions.php:2145
     4285#: includes/helpers/functions.php:2162
    42864286msgid ""
    42874287"Decide where the filters should appear — above the gallery (Top), on the "
    … …  
    42894289msgstr ""
    42904290
    4291 #: includes/helpers/functions.php:2150 premium/admin/playlist.php:39
     4291#: includes/helpers/functions.php:2167 premium/admin/playlist.php:39
    42924292#: premium/public/playlist.php:57
    42934293msgid "Right"
    42944294msgstr ""
    42954295
    4296 #: includes/helpers/functions.php:2193
     4296#: includes/helpers/functions.php:2210
    42974297msgid "Include Category ID(s)"
    42984298msgstr ""
    42994299
    4300 #: includes/helpers/functions.php:2200
     4300#: includes/helpers/functions.php:2217
    43014301msgid "Exclude Category ID(s)"
    43024302msgstr ""
    43034303
    4304 #: includes/helpers/functions.php:2297
     4304#: includes/helpers/functions.php:2314
    43054305msgid "Search Form"
    43064306msgstr ""
    43074307
    4308 #: includes/helpers/functions.php:2358 widgets/forms/search.php:107
     4308#: includes/helpers/functions.php:2375 widgets/forms/search.php:107
    43094309msgid ""
    43104310"The selected \"Search Results Page\" must include the [aiovg_search] "
    … …  
    43124312msgstr ""
    43134313
    4314 #: includes/helpers/functions.php:2429
     4314#: includes/helpers/functions.php:2446
    43154315#, php-format
    43164316msgid "%s ago"
    43174317msgstr ""
    43184318
    4319 #: includes/helpers/functions.php:2457
     4319#: includes/helpers/functions.php:2474
    43204320msgid "Video File (mp4, webm, ogv, m4v, mov)"
    43214321msgstr ""
    43224322
    4323 #: includes/helpers/functions.php:2458
     4323#: includes/helpers/functions.php:2475
    43244324msgid "HLS / MPEG-DASH"
    43254325msgstr ""
    43264326
    4327 #: includes/helpers/functions.php:2481
     4327#: includes/helpers/functions.php:2498
    43284328msgid "Classic"
    43294329msgstr ""
    … …  
    46924692
    46934693#: premium/admin/automations.php:425
    4694 #: premium/admin/partials/automations-statistics.php:69
     4694#: premium/admin/partials/automations-statistics.php:76
    46954695msgid "Next scheduled update"
    46964696msgstr ""
    … …  
    47084708msgstr ""
    47094709
    4710 #: premium/admin/automations.php:515 premium/admin/automations.php:1043
     4710#: premium/admin/automations.php:515 premium/admin/automations.php:1050
    47114711msgid "Import Log"
    47124712msgstr ""
    47134713
    4714 #: premium/admin/automations.php:867 premium/admin/automations.php:1000
    4715 msgid "Preview Import"
     4714#: premium/admin/automations.php:867 premium/admin/automations.php:1007
     4715msgid "Preview"
    47164716msgstr ""
    47174717
    … …  
    47654765
    47664766#: premium/admin/automations.php:993
     4767#: premium/admin/partials/automations-sources.php:252
     4768msgid "User ID"
     4769msgstr ""
     4770
     4771#: premium/admin/automations.php:994
     4772msgid ""
     4773"Enter the <strong>User ID</strong> of the Vimeo account that owns this "
     4774"source.<br><br>Showcase, Folder and Portfolio imports need it along with "
     4775"their own ID."
     4776msgstr ""
     4777
     4778#: premium/admin/automations.php:1000
    47674779msgid "Configure Source Input"
    47684780msgstr ""
    47694781
    4770 #: premium/admin/automations.php:994
     4782#: premium/admin/automations.php:1001
    47714783msgid ""
    47724784"Based on the selected <strong>Source Type</strong>, you will see relevant "
    … …  
    47764788msgstr ""
    47774789
    4778 #: premium/admin/automations.php:1001
    4779 msgid ""
    4780 "Click <strong>Preview Import</strong> to preview videos from your source."
    4781 "<br><br>If any errors appear, correct them before proceeding."
    4782 msgstr ""
    4783 
    4784 #: premium/admin/automations.php:1007
     4790#: premium/admin/automations.php:1008
     4791msgid ""
     4792"Click <strong>Preview</strong> to see the videos this automation would "
     4793"import.<br><br>If any errors appear, correct them before proceeding."
     4794msgstr ""
     4795
     4796#: premium/admin/automations.php:1014
    47854797#: premium/admin/partials/automations-sources.php:450
    47864798msgid "Batch Limit"
    47874799msgstr ""
    47884800
    4789 #: premium/admin/automations.php:1008
     4801#: premium/admin/automations.php:1015
    47904802msgid ""
    47914803"Set the maximum number of videos to import in each batch.<br><br>For optimal "
    … …  
    47934805msgstr ""
    47944806
    4795 #: premium/admin/automations.php:1014
     4807#: premium/admin/automations.php:1021
    47964808msgid "Schedule Frequency"
    47974809msgstr ""
    47984810
    4799 #: premium/admin/automations.php:1015
     4811#: premium/admin/automations.php:1022
    48004812msgid ""
    48014813"Decide how often the plugin should check for new videos.<br><br>Options "
    … …  
    48044816msgstr ""
    48054817
    4806 #: premium/admin/automations.php:1021
     4818#: premium/admin/automations.php:1028
    48074819msgid "Auto-Continue"
    48084820msgstr ""
    48094821
    4810 #: premium/admin/automations.php:1022
     4822#: premium/admin/automations.php:1029
    48114823msgid ""
    48124824"Enable this option if you want the plugin to keep checking for new videos "
    … …  
    48144826msgstr ""
    48154827
    4816 #: premium/admin/automations.php:1028
     4828#: premium/admin/automations.php:1035
    48174829msgid "Video Settings"
    48184830msgstr ""
    48194831
    4820 #: premium/admin/automations.php:1029
     4832#: premium/admin/automations.php:1036
    48214833msgid ""
    48224834"Decide how imported videos should be handled:<br><br>- Assign "
    … …  
    48304842msgstr ""
    48314843
    4832 #: premium/admin/automations.php:1036
     4844#: premium/admin/automations.php:1043
    48334845msgid "Start Import"
    48344846msgstr ""
    48354847
    4836 #: premium/admin/automations.php:1037
     4848#: premium/admin/automations.php:1044
    48374849msgid ""
    48384850"Ready to go?<br><br>Click <strong>Publish & Import</strong> to begin "
    … …  
    48424854msgstr ""
    48434855
    4844 #: premium/admin/automations.php:1044
     4856#: premium/admin/automations.php:1051
    48454857msgid ""
    48464858"This section logs every import batch with a timestamp.<br><br>Click any "
    … …  
    48484860msgstr ""
    48494861
    4850 #: premium/admin/automations.php:1053
     4862#: premium/admin/automations.php:1060
    48514863#, php-format
    48524864msgid ""
    … …  
    48784890
    48794891#: premium/admin/partials/automations-sources.php:93
    4880 msgid "Enter the YouTube Channel ID (or) a YouTube Video URL from the Channel."
     4892msgid ""
     4893"Enter the channel URL (for example, https://www.youtube.com/@name), the "
     4894"channel ID, or the URL of any video from the channel."
    48814895msgstr ""
    48824896
    … …  
    49164930#: premium/admin/partials/automations-sources.php:169
    49174931#: premium/admin/partials/automations-sources.php:420
    4918 msgid ""
    4919 "Enter the list of video URLs those should be excluded during the import. "
    4920 "Enter one video per line."
     4932msgid "Videos to skip during import. Enter one URL per line."
    49214933msgstr ""
    49224934
    … …  
    49424954msgstr ""
    49434955
    4944 #: premium/admin/partials/automations-sources.php:252
    4945 msgid "User ID"
    4946 msgstr ""
    4947 
    49484956#: premium/admin/partials/automations-sources.php:256
    49494957msgid "Enter your Vimeo User ID"
    … …  
    50245032#: premium/admin/partials/automations-sources.php:454
    50255033msgid ""
    5026 "Enter the maximum amount of videos to be imported per batch. We recommend "
    5027 "keeping this value less than 500."
     5034"The maximum number of videos to import in each batch. We recommend keeping "
     5035"this below 500."
    50285036msgstr ""
    50295037
    … …  
    50535061
    50545062#: premium/admin/partials/automations-sources.php:484
    5055 msgid "Configure how frequent the plugin the plugin should import videos."
     5063msgid ""
     5064"How often to import the next batch. Choose \"Only Once\" to import batches "
     5065"only when you click the button."
    50565066msgstr ""
    50575067
    … …  
    50615071
    50625072#: premium/admin/partials/automations-sources.php:494
    5063 msgid ""
    5064 "Check this option if the plugin should check for new videos after the import "
    5065 "has been completed."
     5073msgid "Keep checking for new videos after the whole source has been imported."
    50665074msgstr ""
    50675075
    … …  
    50745082msgstr ""
    50755083
    5076 #: premium/admin/partials/automations-statistics.php:74
     5084#: premium/admin/partials/automations-statistics.php:70
     5085msgid ""
     5086"No new videos found. Everything from this source has already been imported."
     5087msgstr ""
     5088
     5089#: premium/admin/partials/automations-statistics.php:81
    50775090msgid "History"
    50785091msgstr ""
    50795092
    5080 #: premium/admin/partials/automations-statistics.php:82
     5093#: premium/admin/partials/automations-statistics.php:89
    50815094#, php-format
    50825095msgid "Imported %1$d videos on %2$s"
    50835096msgstr ""
    50845097
    5085 #: premium/admin/partials/automations-statistics.php:90
     5098#: premium/admin/partials/automations-statistics.php:97
    50865099msgid "You have not started importing videos."
    50875100msgstr ""
    … …  
    50895102#: premium/admin/partials/automations-submitbox.php:21
    50905103msgid ""
    5091 "We are importing your videos. Please do not refresh or leave this page. This "
    5092 "can take a few minutes."
     5104"Please wait while we process your request. Do not refresh or leave this "
     5105"page. This can take a few minutes."
    50935106msgstr ""
    50945107
    50955108#: premium/admin/partials/automations-test-screen.php:27
    50965109msgid ""
    5097 "Congrats! Your configuration is working. You can publish the form and start "
    5098 "importing videos."
     5110"Congrats! Your source and API connection are working. Below is a sample of "
     5111"videos from this source."
    50995112msgstr ""
    51005113
    … …  
    51485161msgstr ""
    51495162
    5150 #: premium/admin/partials/automations-video-options.php:93
     5163#: premium/admin/partials/automations-video-options.php:94
    51515164msgid "Check this box to automatically import tags from the Vimeo website."
    51525165msgstr ""
    51535166
    5154 #: premium/admin/partials/automations-video-options.php:119
     5167#: premium/admin/partials/automations-video-options.php:121
    51555168msgid "Video Date"
    51565169msgstr ""
    51575170
    5158 #: premium/admin/partials/automations-video-options.php:125
     5171#: premium/admin/partials/automations-video-options.php:127
    51595172msgid "Original date on the video service"
    51605173msgstr ""
    51615174
    5162 #: premium/admin/partials/automations-video-options.php:126
     5175#: premium/admin/partials/automations-video-options.php:128
    51635176msgid "Date when the video is imported"
    51645177msgstr ""
    51655178
    5166 #: premium/admin/partials/automations-video-options.php:140
     5179#: premium/admin/partials/automations-video-options.php:142
    51675180msgid ""
    51685181"Select whether to use the original posting date on the video service, or the "
    … …  
    51705183msgstr ""
    51715184
    5172 #: premium/admin/partials/automations-video-options.php:159
     5185#: premium/admin/partials/automations-video-options.php:161
    51735186msgid "Select the author to whom the video should be assigned."
    51745187msgstr ""
    51755188
    5176 #: premium/admin/partials/automations-video-options.php:171
     5189#: premium/admin/partials/automations-video-options.php:173
    51775190msgid "Draft"
    51785191msgstr ""
    51795192
    5180 #: premium/admin/partials/automations-video-options.php:172
     5193#: premium/admin/partials/automations-video-options.php:174
    51815194#: premium/admin/user.php:168 premium/admin/user.php:179
    51825195msgid "Pending"
    51835196msgstr ""
    51845197
    5185 #: premium/admin/partials/automations-video-options.php:173
     5198#: premium/admin/partials/automations-video-options.php:175
    51865199#: premium/admin/user.php:167 premium/admin/user.php:178
    51875200msgid "Publish"
    51885201msgstr ""
    51895202
    5190 #: premium/admin/partials/automations-video-options.php:187
     5203#: premium/admin/partials/automations-video-options.php:189
    51915204msgid ""
    51925205"Select the default status of the imported videos. Site admin will be "
    … …  
    58795892msgstr ""
    58805893
    5881 #: premium/includes/vimeo-api/query.php:269
     5894#: premium/includes/vimeo-api/query.php:157
     5895#, php-format
     5896msgid "Could not connect to the Vimeo API: %s"
     5897msgstr ""
     5898
     5899#: premium/includes/vimeo-api/query.php:282
    58825900msgid "Vimeo access token not found."
    58835901msgstr ""
    58845902
    5885 #: premium/includes/vimeo-api/query.php:277
     5903#: premium/includes/vimeo-api/query.php:290
    58865904#, php-format
    58875905msgid "%1$s: %2$s (error code: %3$s)"
    58885906msgstr ""
    58895907
    5890 #: premium/includes/vimeo-api/query.php:278
    5891 #: premium/includes/vimeo-api/query.php:286
     5908#: premium/includes/vimeo-api/query.php:291
     5909#: premium/includes/vimeo-api/query.php:299
    58925910msgid "Vimeo API error encountered"
    58935911msgstr ""
    58945912
    5895 #: premium/includes/vimeo-api/query.php:290
     5913#: premium/includes/vimeo-api/query.php:303
    58965914msgid "An unknown Vimeo API error has happened. Please try again."
    58975915msgstr ""
    … …  
    59395957msgstr ""
    59405958
    5941 #: premium/includes/vimeo-import.php:131
    5942 #: premium/includes/youtube-api/youtube-api.php:447
    5943 #: premium/includes/youtube-api/youtube-api.php:497
     5959#: premium/includes/vimeo-import.php:173
     5960#: premium/includes/youtube-api/youtube-api.php:473
     5961#: premium/includes/youtube-api/youtube-api.php:530
    59445962msgid "No videos found matching your query."
    59455963msgstr ""
    … …  
    59515969#: premium/includes/youtube-api/youtube-api.php:64
    59525970msgid "Import source not found."
     5971msgstr ""
     5972
     5973#: premium/includes/youtube-api/youtube-api.php:525
     5974#, php-format
     5975msgid "No YouTube channel found for the handle %s. Check the channel URL."
     5976msgstr ""
     5977
     5978#: premium/includes/youtube-api/youtube-api.php:672
     5979msgid ""
     5980"The daily YouTube API quota for this API key is used up. It resets at "
     5981"midnight Pacific Time."
    59535982msgstr ""
    59545983
    … …  
    62906319msgstr ""
    62916320
    6292 #: premium/public/thumbnail-generator.php:53 public/video.php:992
     6321#: premium/public/thumbnail-generator.php:53 public/video.php:991
    62936322msgid "Invalid file format."
    62946323msgstr ""
    … …  
    64116440msgstr ""
    64126441
    6413 #: public/video.php:747 public/video.php:765 public/video.php:805
    6414 #: public/video.php:811 public/video.php:818 public/video.php:822
     6442#: public/video.php:746 public/video.php:764 public/video.php:804
     6443#: public/video.php:810 public/video.php:817 public/video.php:821
    64156444msgid "File is not readable or not found."
    64166445msgstr ""
  • all-in-one-video-gallery/trunk/public/assets/js/vidstack.js

    r3804420 r3826337  
    322322                                this._playerEl.classList.remove( 'aiovg-is-ended' );
    323323                        });
     324
     325                        // Stream track names come from the playlist and Plyr prints them as HTML
     326                        if ( this._params.hasOwnProperty( 'hls' ) || this._params.hasOwnProperty( 'dash' ) ) {
     327                                const addTextTrack = video.addTextTrack.bind( video );
     328                                const escape = ( value ) => 'string' === typeof value ? value.replace( /</g, '&lt;' ).replace( />/g, '&gt;' ) : value;
     329
     330                                video.addTextTrack = ( kind, label, language ) => addTextTrack( kind, escape( label ), escape( language ) );
     331                        }
    324332
    325333                        // HLS
  • all-in-one-video-gallery/trunk/public/assets/js/vidstack.min.js

    r3804420 r3826337  
    1 !function(){"use strict";class e extends HTMLElement{constructor(){super(),this._isRendered=!1,this._isCookieConsentLoaded=!1,this._isPlayerLoaded=!1,this._hasVideoStarted=!1,this._player=null,this._playerEl=null,this._cookieConsentEl=null,this._emailCaptureEl=null,this._intersectionObserver=null,this._isInViewport=!1,this._playerId="",this._params={}}connectedCallback(){this._playerId=this.dataset.id||"",this._params=this.dataset.params?JSON.parse(this.dataset.params):{},this._render()}get cookieConsent(){return this.hasAttribute("cookieconsent")}set cookieConsent(e){let t=Boolean(e);t?this.setAttribute("cookieconsent",""):this.removeAttribute("cookieconsent")}get emailCapture(){return this.hasAttribute("emailcapture")}set emailCapture(e){let t=Boolean(e);t?this.setAttribute("emailcapture",""):this.removeAttribute("emailcapture")}_render(){if(this._isRendered)return!1;if(this._params.lazyloading&&!this._isInViewport)return this._initIntersectionObserver(),!1;if(this.emailCapture){if(this._emailCaptureEl=this.querySelector(".aiovg-email-capture"),this._emailCaptureEl){if(parseInt(this._emailCaptureEl.dataset.pre_roll))return this._initPreRollEmailCapture(),!1}else this.emailCapture=!1}if(this.cookieConsent)return this._addCookieConsent(),!1;this._isRendered=!0,this._addPlayer()}_addCookieConsent(){if(this._isCookieConsentLoaded)return!1;if(this._isCookieConsentLoaded=!0,this._cookieConsentEl=this.querySelector(".aiovg-privacy-wrapper"),!this._cookieConsentEl)return this.cookieConsent=!1,this._isRendered=!0,this._addPlayer(),!1;let t=this._cookieConsentEl.getAttribute("data-poster")||"";e.isValidUrl(t)&&(this._cookieConsentEl.style.backgroundImage=`url("${t}")`),this._cookieConsentEl.querySelector(".aiovg-privacy-consent-button").addEventListener("click",()=>this._onCookieConsent())}_onCookieConsent(){this._isRendered=!0,this._cookieConsentEl.remove(),this.cookieConsent=!1,this._params.player.autoplay=!0,this._addPlayer(),this._setCookie();let e=document.querySelectorAll(".aiovg-player-element");for(let t=0;t<e.length;t++)e[t].removeCookieConsent();window.postMessage({message:"aiovg-cookie-consent"},window.location.origin)}_initPreRollEmailCapture(){this.classList.add("aiovg-show-email-capture");let t=this._emailCaptureEl.getAttribute("data-poster")||"";e.isValidUrl(t)&&(this._emailCaptureEl.style.backgroundImage=`url("${t}")`);let a=this._emailCaptureEl.querySelector("input");a&&!a.value&&a.focus(),this._initEmailCaptureForm(e=>{if(!this._emailCaptureEl||this._isRendered||this._emailCaptureEl.classList.contains("aiovg-is-loading"))return!1;this._emailCaptureEl.classList.add("aiovg-is-loading");let t=this._emailCaptureEl.dataset.capture_key||"",a=new XMLHttpRequest;a.onreadystatechange=()=>{if(4==a.readyState){let e=null;if(200==a.status&&a.responseText)try{e=JSON.parse(a.responseText)}catch(i){}if(e&&e.success){this._isRendered=!0,this.classList.remove("aiovg-show-email-capture"),this._emailCaptureEl.remove(),this._emailCaptureEl=null,this.emailCapture=!1,this._params.player.autoplay=!0,this._addPlayer();let s=!(e.data&&!1===e.data.remembered),r=document.querySelectorAll(".aiovg-player-element");for(let l=0;l<r.length;l++)r[l].removeCookieConsent(),s&&r[l].removeEmailCapture(t);window.postMessage(s?{message:"aiovg-email-captured",capture_key:t}:{message:"aiovg-cookie-consent"},window.location.origin)}else{let o=this._emailCaptureEl.querySelector(".aiovg-email-capture-error");return o&&(o.textContent=e&&e.data&&"string"==typeof e.data?e.data:o.getAttribute("data-error_generic"),o.style.display="block"),this._emailCaptureEl.classList.remove("aiovg-is-loading"),!1}}},a.open("POST",this._params.ajax_url+"?action=aiovg_save_email_lead&security="+this._params.ajax_nonce,!0),a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),a.send(e)})}_addPlayer(){if(this._isPlayerLoaded)return!1;this._isPlayerLoaded=!0;let e=this.querySelector("#"+this._playerId);if(!e)return!1;this._player=new Plyr(e,this._params.player),this._playerEl=this.querySelector(".plyr");let t={player:this._player,settings:this._params};if(this.dispatchEvent(new CustomEvent("player.init",{detail:t,bubbles:!0,cancelable:!0})),this._disableYouTubeCaptions(),this._player.on("ready",()=>{let e=this._player.elements.container.querySelector('[data-plyr="restart"]');if(e){let t=document.createElement("div");t.className="plyr__controls__item plyr__spacer",t.setAttribute("aria-hidden","true"),e.parentNode.replaceChild(t,e)}this._initShareEmbed(),this._initLogo(),this._initTrailerBadge(),this._initEmailCapture()}),this._player.on("playing",()=>{this._hasVideoStarted||(this._hasVideoStarted=!0,this._updateViewsCount());let e=document.querySelectorAll(".aiovg-player-element");for(let t=0;t<e.length;t++)e[t]!=this&&e[t].pause();window.postMessage({message:"aiovg-video-playing"},window.location.origin)}),this._player.on("ended",()=>{this._playerEl.className+=" plyr--stopped",this._playerEl.classList.add("aiovg-is-ended")}),this._player.on("play",()=>{this._playerEl.classList.remove("aiovg-is-ended")}),this._params.hasOwnProperty("hls")){let a=new Hls;a.loadSource(this._params.hls),a.attachMedia(e),this._player.on("languagechange",()=>{setTimeout(()=>a.subtitleTrack=this._player.currentTrack,50)})}if(this._params.hasOwnProperty("dash")){let i=dashjs.MediaPlayer().create();i.initialize(e,this._params.dash,this._params.player.autoplay||!1)}this._player.ads&&this._initAds(),this._params.hasOwnProperty("contextmenu")&&this._initContextMenu()}_disableYouTubeCaptions(){let e=this._params.player.youtube;if(!e||0!==e.cc_load_policy)return;let t=()=>{let e=this._player.embed;if(e&&"function"==typeof e.unloadModule){try{e.setOption("captions","track",{})}catch(t){}try{e.unloadModule("captions")}catch(a){}try{e.unloadModule("cc")}catch(i){}}},a=()=>{[0,300,1200].forEach(e=>setTimeout(t,e))};this._player.on("ready",a),this._player.on("playing",a)}_initAds(){this._player.ads.config.tagUrl=this._getVastUrl();let e=!1;this._player.ads.on("loaded",()=>{if(e)return!1;e=!0;let t=this._player.ads.manager,a=document.createElement("button");a.type="button",a.className="plyr__control plyr__control--overlaid",a.style.display="none",a.innerHTML='<svg aria-hidden="true" focusable="false"><use href="'+this._params.player.iconUrl+'#plyr-play"></use></svg><span class="plyr__sr-only">Play</span>',this.querySelector(".plyr__ads").appendChild(a),a.addEventListener("click",()=>{a.style.display="none",t.resume()}),t.addEventListener(google.ima.AdEvent.Type.STARTED,e=>{this.classList.add("aiovg-ads-playing"),this._params.player.ads.companion&&this._initCompanionAds(e)}),t.addEventListener(google.ima.AdEvent.Type.PAUSED,e=>{a.style.display=""}),t.addEventListener(google.ima.AdEvent.Type.RESUMED,e=>{a.style.display="none"}),t.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,e=>{this.classList.remove("aiovg-ads-playing")})})}_getVastUrl(){let e=this._params.player.ads.tagUrl.replace(/%5B/gi,"[").replace(/%5D/gi,"]");return(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace("[domain]",encodeURIComponent(this._params.site_url))).replace("[player_width]",this._player.elements.container.offsetWidth)).replace("[player_height]",this._player.elements.container.offsetHeight)).replace("[random_number]",Date.now())).replace("[timestamp]",Date.now())).replace("[page_url]",encodeURIComponent(window.location))).replace("[referrer]",encodeURIComponent(document.referrer))).replace("[ip_address]",this._params.ip_address)).replace("[post_id]",this._params.post_id)).replace("[post_title]",encodeURIComponent(this._params.post_title))).replace("[post_excerpt]",encodeURIComponent(this._params.post_excerpt))).replace("[video_file]",encodeURIComponent(this._player.source))).replace("[video_duration]",this._player.duration||"")).replace("[autoplay]",this._params.player.autoplay||!1)}_initCompanionAds(e){let t=e.getAd(),a=[];try{a=window.AIOVGGetCompanionElements()}catch(i){}if(a.length){let s=new google.ima.CompanionAdSelectionSettings;s.resourceType=google.ima.CompanionAdSelectionSettings.ResourceType.ALL,s.creativeType=google.ima.CompanionAdSelectionSettings.CreativeType.ALL,s.sizeCriteria=google.ima.CompanionAdSelectionSettings.SizeCriteria.SELECT_NEAR_MATCH;for(let r=0;r<a.length;r++){let l=a[r].id,o=a[r].width,n=a[r].height;try{let p=t.getCompanionAds(o,n,s),d=p[0],h=d.getContent();document.getElementById(l).innerHTML=h}catch(c){}}}}_initShareEmbed(){if(!this._params.hasOwnProperty("share")&&!this._params.hasOwnProperty("embed"))return!1;let e=document.createElement("button");e.type="button",e.className="plyr__controls__item plyr__control plyr__share-embed-button aiovg-icon-share",e.innerHTML='<span class="plyr__sr-only">Share</span>',this._playerEl.appendChild(e);let t=this.querySelector(".plyr__share-embed-modal-close-button"),a=this.querySelector(".plyr__share-embed-modal");this._playerEl.appendChild(a),a.style.display="";let i=!1;e.addEventListener("click",()=>{this._player.playing?(i=!0,this._player.pause()):i=!1,e.style.display="none",a.className+=" fadein"}),t.addEventListener("click",()=>{i&&this._player.play(),a.className=a.className.replace(" fadein",""),setTimeout(function(){e.style.display=""},500)}),this._params.hasOwnProperty("embed")&&this.querySelector(".plyr__embed-code-input").addEventListener("focus",function(){this.select(),navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(this.value).catch(()=>{}):document.execCommand("copy")})}_initLogo(){if(!this._params.hasOwnProperty("logo"))return!1;let e="bottom:50px; left:"+this._params.logo.margin+"px;";switch(this._params.logo.position){case"topleft":e="top:"+this._params.logo.margin+"px; left:"+this._params.logo.margin+"px;";break;case"topright":e="top:"+this._params.logo.margin+"px; right:"+this._params.logo.margin+"px;";break;case"bottomright":e="bottom:50px; right:"+this._params.logo.margin+"px;"}let t=document.createElement("div");t.className="plyr__logo",t.innerHTML='<a href="'+this._params.logo.link+'" target="_top" style="'+e+'"><img src="'+this._params.logo.image+'" alt="" /><span class="plyr__sr-only">Logo</span></a>',this._playerEl.appendChild(t)}_initTrailerBadge(){if(!this._params.hasOwnProperty("trailer"))return!1;let e=this._params.trailer,t=document.createElement(e.url?"a":"span");t.className="aiovg-trailer-badge",t.textContent=e.label,e.url&&(t.href=e.url,t.target="_top",this._playerEl.classList.add("aiovg-has-trailer-cta")),this._params.hasOwnProperty("logo")&&"topleft"==this._params.logo.position&&t.classList.add("aiovg-trailer-badge-bottom"),this._playerEl.appendChild(t)}_initEmailCapture(){if(!this.emailCapture||!this._emailCaptureEl)return!1;this._emailCaptureEl.style.backgroundImage="none",this._playerEl.appendChild(this._emailCaptureEl);let e=!1,t=!1,a=()=>{if(!this._emailCaptureEl||e)return!1;e=!0,this._player.ended||(t=!this._player.paused||this._player.seeking,this._player.pause()),this.classList.add("aiovg-show-email-capture");let a=this._emailCaptureEl.querySelector("input");a&&!a.value&&a.focus()},i=()=>{if(!this._emailCaptureEl||!e)return!1;e=!1,this.classList.remove("aiovg-show-email-capture"),this._emailCaptureEl.remove(),this._emailCaptureEl=null,this.emailCapture=!1,t&&this._player.play()},s=e=>{if(!this._emailCaptureEl||this._emailCaptureEl.classList.contains("aiovg-is-loading"))return!1;this._emailCaptureEl.classList.add("aiovg-is-loading");let t=this._emailCaptureEl.dataset.capture_key||"",a=new XMLHttpRequest;a.onreadystatechange=()=>{if(4==a.readyState){let e=null;if(200==a.status&&a.responseText)try{e=JSON.parse(a.responseText)}catch(s){}if(e&&e.success){i();let r=!(e.data&&!1===e.data.remembered),l=document.querySelectorAll(".aiovg-player-element");for(let o=0;o<l.length;o++)l[o].removeCookieConsent(),r&&l[o].removeEmailCapture(t);window.postMessage(r?{message:"aiovg-email-captured",capture_key:t}:{message:"aiovg-cookie-consent"},window.location.origin)}else{let n=this._emailCaptureEl.querySelector(".aiovg-email-capture-error");n&&(n.textContent=e&&e.data&&"string"==typeof e.data?e.data:n.getAttribute("data-error_generic"),n.style.display="block"),this._emailCaptureEl.classList.remove("aiovg-is-loading")}}},a.open("POST",this._params.ajax_url+"?action=aiovg_save_email_lead&security="+this._params.ajax_nonce,!0),a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),a.send(e)},r=parseInt(this._emailCaptureEl.dataset.mid_roll);if(r){let l=!1,o=()=>{if(!this._emailCaptureEl)return this._player.off("timeupdate",o),!1;if(l)return!1;let e=this._player.duration,t=this._player.currentTime;e&&t>=r/100*e&&(l=!0,this._player.off("timeupdate",o),a())};this._player.on("timeupdate",o)}let n=parseInt(this._emailCaptureEl.dataset.post_roll),p=this._params.hasOwnProperty("trailer")&&this._params.trailer.url;n&&!p&&this._player.on("ended",()=>{a()}),this._player.on("play",()=>{if(!this._emailCaptureEl||!e)return!1;t=!0,this._player.pause()}),this._player.on("playing",()=>{if(!this._emailCaptureEl||!e)return!1;t=!0,this._player.pause()}),this._initEmailCaptureForm(e=>s(e))}_initEmailCaptureForm(e){let t=this._emailCaptureEl.querySelector(".aiovg-email-capture-submit"),a=this._emailCaptureEl.querySelector(".aiovg-email-capture-skip"),i=()=>{if("aiovg_videos"==this._params.post_type&&this._params.post_id)return"&video_id="+encodeURIComponent(this._params.post_id);let e="&video_id=0";return this._emailCaptureEl&&this._emailCaptureEl.dataset.video_url&&(e+="&video_url="+encodeURIComponent(this._emailCaptureEl.dataset.video_url)),e};if(t&&t.addEventListener("click",()=>{let t=this._emailCaptureEl.querySelector(".aiovg-email-capture-email"),a=this._emailCaptureEl.querySelector(".aiovg-email-capture-error"),s=t?t.value.trim():"";if(!s||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)){if(a){let r=a.getAttribute("data-invalid_email")||"Please enter a valid email address.";a.textContent=r,a.style.display="block"}return t&&(t.classList.add("aiovg-is-invalid"),t.setAttribute("aria-invalid","true")),!1}a&&(a.style.display="none"),t&&(t.classList.remove("aiovg-is-invalid"),t.removeAttribute("aria-invalid"));let l="email="+encodeURIComponent(s),o=this._emailCaptureEl.querySelector(".aiovg-email-capture-name");o&&o.value.trim()&&(l+="&name="+encodeURIComponent(o.value.trim()));let n=this._emailCaptureEl.querySelector(".aiovg-email-capture-phone");n&&n.value.trim()&&(l+="&phone="+encodeURIComponent(n.value.trim())),l+=i(),e(l+="&page_url="+encodeURIComponent(window.location.href))}),a){let s=()=>e("skipped=1"+i());a.addEventListener("click",s),a.addEventListener("keydown",e=>{(13===e.keyCode||32===e.keyCode)&&(e.preventDefault(),s())})}}_initContextMenu(){if(!window.AIOVGIsContextMenuAdded){window.AIOVGIsContextMenuAdded=!0;let e=document.createElement("div");e.id="aiovg-contextmenu",e.style.display="none",e.innerHTML='<div class="aiovg-contextmenu-content">'+this._params.contextmenu.content+"</div>",document.body.appendChild(e)}let t=document.getElementById("aiovg-contextmenu"),a="";this._playerEl.addEventListener("contextmenu",function(e){if(3==e.keyCode||3==e.which){e.preventDefault(),e.stopPropagation();let i=t.offsetWidth,s=t.offsetHeight,r=e.pageX,l=e.pageY,o=document.documentElement,n=(window.pageXOffset||o.scrollLeft)-(o.clientLeft||0),p=(window.pageYOffset||o.scrollTop)-(o.clientTop||0),d=r+i>window.innerWidth+n?r-i:r,h=l+s>window.innerHeight+p?l-s:l;t.style.display="",t.style.left=d+"px",t.style.top=h+"px",clearTimeout(a),a=setTimeout(function(){t.style.display="none"},1500)}}),document.addEventListener("click",()=>{t.style.display="none"})}_initIntersectionObserver(){if(this._intersectionObserver)return!1;this._intersectionObserver=new IntersectionObserver((e,t)=>{e.forEach(e=>{e.isIntersecting?(this._isInViewport=!0,this._render(),this._isRendered&&t.unobserve(this)):this._isInViewport=!1})},{root:null,rootMargin:"0px",threshold:0}),this._intersectionObserver.observe(this)}async _updateViewsCount(){if(this._params.statistics&&"aiovg_videos"==this._params.post_type){let e=new FormData;e.append("action","aiovg_update_views_count"),e.append("post_id",parseInt(this._params.post_id)),e.append("duration",this._player.duration||0),e.append("security",this._params.ajax_nonce),fetch(this._params.ajax_url,{method:"POST",body:e})}}async _setCookie(){let e=new FormData;e.append("action","aiovg_set_cookie"),e.append("security",this._params.ajax_nonce),fetch(this._params.ajax_url,{method:"POST",body:e})}static isValidUrl(e){if(""===e)return!1;try{return new URL(e),!0}catch(t){return!1}}removeCookieConsent(){if(this._isRendered||!this._cookieConsentEl)return!1;this._cookieConsentEl.remove(),this.cookieConsent=!1,this._render()}removeEmailCapture(e){if(!this._emailCaptureEl||e&&this._emailCaptureEl.dataset.capture_key!==e)return!1;this.classList.remove("aiovg-show-email-capture"),this._emailCaptureEl.remove(),this._emailCaptureEl=null,this.emailCapture=!1,this._isRendered||this._render()}pause(){this._player&&this._player.pause()}seekTo(e){this._player&&(this._player.currentTime=e,this._hasVideoStarted||this._player.play())}}window.AIOVGIsContextMenuAdded=!1,document.addEventListener("DOMContentLoaded",function(){customElements.get("aiovg-video")||customElements.define("aiovg-video",e),window.addEventListener("message",function(e){if(e.origin!=window.location.origin||!e.data.hasOwnProperty("context")||"iframe"!=e.data.context||!e.data.hasOwnProperty("message"))return!1;if("aiovg-cookie-consent"==e.data.message){let t=document.querySelectorAll(".aiovg-player-element");for(let a=0;a<t.length;a++)t[a].removeCookieConsent()}if("aiovg-email-captured"==e.data.message){let i=document.querySelectorAll(".aiovg-player-element");for(let s=0;s<i.length;s++)i[s].removeCookieConsent(),i[s].removeEmailCapture(e.data.capture_key||"")}if("aiovg-video-playing"==e.data.message){let r=document.querySelectorAll("aiovg-video");for(let l=0;l<r.length;l++)r[l].pause()}})})}();
     1!function(){"use strict";class e extends HTMLElement{constructor(){super(),this._isRendered=!1,this._isCookieConsentLoaded=!1,this._isPlayerLoaded=!1,this._hasVideoStarted=!1,this._player=null,this._playerEl=null,this._cookieConsentEl=null,this._emailCaptureEl=null,this._intersectionObserver=null,this._isInViewport=!1,this._playerId="",this._params={}}connectedCallback(){this._playerId=this.dataset.id||"",this._params=this.dataset.params?JSON.parse(this.dataset.params):{},this._render()}get cookieConsent(){return this.hasAttribute("cookieconsent")}set cookieConsent(e){let t=Boolean(e);t?this.setAttribute("cookieconsent",""):this.removeAttribute("cookieconsent")}get emailCapture(){return this.hasAttribute("emailcapture")}set emailCapture(e){let t=Boolean(e);t?this.setAttribute("emailcapture",""):this.removeAttribute("emailcapture")}_render(){if(this._isRendered)return!1;if(this._params.lazyloading&&!this._isInViewport)return this._initIntersectionObserver(),!1;if(this.emailCapture){if(this._emailCaptureEl=this.querySelector(".aiovg-email-capture"),this._emailCaptureEl){if(parseInt(this._emailCaptureEl.dataset.pre_roll))return this._initPreRollEmailCapture(),!1}else this.emailCapture=!1}if(this.cookieConsent)return this._addCookieConsent(),!1;this._isRendered=!0,this._addPlayer()}_addCookieConsent(){if(this._isCookieConsentLoaded)return!1;if(this._isCookieConsentLoaded=!0,this._cookieConsentEl=this.querySelector(".aiovg-privacy-wrapper"),!this._cookieConsentEl)return this.cookieConsent=!1,this._isRendered=!0,this._addPlayer(),!1;let t=this._cookieConsentEl.getAttribute("data-poster")||"";e.isValidUrl(t)&&(this._cookieConsentEl.style.backgroundImage=`url("${t}")`),this._cookieConsentEl.querySelector(".aiovg-privacy-consent-button").addEventListener("click",()=>this._onCookieConsent())}_onCookieConsent(){this._isRendered=!0,this._cookieConsentEl.remove(),this.cookieConsent=!1,this._params.player.autoplay=!0,this._addPlayer(),this._setCookie();let e=document.querySelectorAll(".aiovg-player-element");for(let t=0;t<e.length;t++)e[t].removeCookieConsent();window.postMessage({message:"aiovg-cookie-consent"},window.location.origin)}_initPreRollEmailCapture(){this.classList.add("aiovg-show-email-capture");let t=this._emailCaptureEl.getAttribute("data-poster")||"";e.isValidUrl(t)&&(this._emailCaptureEl.style.backgroundImage=`url("${t}")`);let a=this._emailCaptureEl.querySelector("input");a&&!a.value&&a.focus(),this._initEmailCaptureForm(e=>{if(!this._emailCaptureEl||this._isRendered||this._emailCaptureEl.classList.contains("aiovg-is-loading"))return!1;this._emailCaptureEl.classList.add("aiovg-is-loading");let t=this._emailCaptureEl.dataset.capture_key||"",a=new XMLHttpRequest;a.onreadystatechange=()=>{if(4==a.readyState){let e=null;if(200==a.status&&a.responseText)try{e=JSON.parse(a.responseText)}catch(i){}if(e&&e.success){this._isRendered=!0,this.classList.remove("aiovg-show-email-capture"),this._emailCaptureEl.remove(),this._emailCaptureEl=null,this.emailCapture=!1,this._params.player.autoplay=!0,this._addPlayer();let s=!(e.data&&!1===e.data.remembered),r=document.querySelectorAll(".aiovg-player-element");for(let l=0;l<r.length;l++)r[l].removeCookieConsent(),s&&r[l].removeEmailCapture(t);window.postMessage(s?{message:"aiovg-email-captured",capture_key:t}:{message:"aiovg-cookie-consent"},window.location.origin)}else{let o=this._emailCaptureEl.querySelector(".aiovg-email-capture-error");return o&&(o.textContent=e&&e.data&&"string"==typeof e.data?e.data:o.getAttribute("data-error_generic"),o.style.display="block"),this._emailCaptureEl.classList.remove("aiovg-is-loading"),!1}}},a.open("POST",this._params.ajax_url+"?action=aiovg_save_email_lead&security="+this._params.ajax_nonce,!0),a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),a.send(e)})}_addPlayer(){if(this._isPlayerLoaded)return!1;this._isPlayerLoaded=!0;let e=this.querySelector("#"+this._playerId);if(!e)return!1;this._player=new Plyr(e,this._params.player),this._playerEl=this.querySelector(".plyr");let t={player:this._player,settings:this._params};if(this.dispatchEvent(new CustomEvent("player.init",{detail:t,bubbles:!0,cancelable:!0})),this._disableYouTubeCaptions(),this._player.on("ready",()=>{let e=this._player.elements.container.querySelector('[data-plyr="restart"]');if(e){let t=document.createElement("div");t.className="plyr__controls__item plyr__spacer",t.setAttribute("aria-hidden","true"),e.parentNode.replaceChild(t,e)}this._initShareEmbed(),this._initLogo(),this._initTrailerBadge(),this._initEmailCapture()}),this._player.on("playing",()=>{this._hasVideoStarted||(this._hasVideoStarted=!0,this._updateViewsCount());let e=document.querySelectorAll(".aiovg-player-element");for(let t=0;t<e.length;t++)e[t]!=this&&e[t].pause();window.postMessage({message:"aiovg-video-playing"},window.location.origin)}),this._player.on("ended",()=>{this._playerEl.className+=" plyr--stopped",this._playerEl.classList.add("aiovg-is-ended")}),this._player.on("play",()=>{this._playerEl.classList.remove("aiovg-is-ended")}),this._params.hasOwnProperty("hls")||this._params.hasOwnProperty("dash")){let a=e.addTextTrack.bind(e),i=e=>"string"==typeof e?e.replace(/</g,"&lt;").replace(/>/g,"&gt;"):e;e.addTextTrack=(e,t,s)=>a(e,i(t),i(s))}if(this._params.hasOwnProperty("hls")){let s=new Hls;s.loadSource(this._params.hls),s.attachMedia(e),this._player.on("languagechange",()=>{setTimeout(()=>s.subtitleTrack=this._player.currentTrack,50)})}if(this._params.hasOwnProperty("dash")){let r=dashjs.MediaPlayer().create();r.initialize(e,this._params.dash,this._params.player.autoplay||!1)}this._player.ads&&this._initAds(),this._params.hasOwnProperty("contextmenu")&&this._initContextMenu()}_disableYouTubeCaptions(){let e=this._params.player.youtube;if(!e||0!==e.cc_load_policy)return;let t=()=>{let e=this._player.embed;if(e&&"function"==typeof e.unloadModule){try{e.setOption("captions","track",{})}catch(t){}try{e.unloadModule("captions")}catch(a){}try{e.unloadModule("cc")}catch(i){}}},a=()=>{[0,300,1200].forEach(e=>setTimeout(t,e))};this._player.on("ready",a),this._player.on("playing",a)}_initAds(){this._player.ads.config.tagUrl=this._getVastUrl();let e=!1;this._player.ads.on("loaded",()=>{if(e)return!1;e=!0;let t=this._player.ads.manager,a=document.createElement("button");a.type="button",a.className="plyr__control plyr__control--overlaid",a.style.display="none",a.innerHTML='<svg aria-hidden="true" focusable="false"><use href="'+this._params.player.iconUrl+'#plyr-play"></use></svg><span class="plyr__sr-only">Play</span>',this.querySelector(".plyr__ads").appendChild(a),a.addEventListener("click",()=>{a.style.display="none",t.resume()}),t.addEventListener(google.ima.AdEvent.Type.STARTED,e=>{this.classList.add("aiovg-ads-playing"),this._params.player.ads.companion&&this._initCompanionAds(e)}),t.addEventListener(google.ima.AdEvent.Type.PAUSED,e=>{a.style.display=""}),t.addEventListener(google.ima.AdEvent.Type.RESUMED,e=>{a.style.display="none"}),t.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,e=>{this.classList.remove("aiovg-ads-playing")})})}_getVastUrl(){let e=this._params.player.ads.tagUrl.replace(/%5B/gi,"[").replace(/%5D/gi,"]");return(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace("[domain]",encodeURIComponent(this._params.site_url))).replace("[player_width]",this._player.elements.container.offsetWidth)).replace("[player_height]",this._player.elements.container.offsetHeight)).replace("[random_number]",Date.now())).replace("[timestamp]",Date.now())).replace("[page_url]",encodeURIComponent(window.location))).replace("[referrer]",encodeURIComponent(document.referrer))).replace("[ip_address]",this._params.ip_address)).replace("[post_id]",this._params.post_id)).replace("[post_title]",encodeURIComponent(this._params.post_title))).replace("[post_excerpt]",encodeURIComponent(this._params.post_excerpt))).replace("[video_file]",encodeURIComponent(this._player.source))).replace("[video_duration]",this._player.duration||"")).replace("[autoplay]",this._params.player.autoplay||!1)}_initCompanionAds(e){let t=e.getAd(),a=[];try{a=window.AIOVGGetCompanionElements()}catch(i){}if(a.length){let s=new google.ima.CompanionAdSelectionSettings;s.resourceType=google.ima.CompanionAdSelectionSettings.ResourceType.ALL,s.creativeType=google.ima.CompanionAdSelectionSettings.CreativeType.ALL,s.sizeCriteria=google.ima.CompanionAdSelectionSettings.SizeCriteria.SELECT_NEAR_MATCH;for(let r=0;r<a.length;r++){let l=a[r].id,o=a[r].width,n=a[r].height;try{let p=t.getCompanionAds(o,n,s),d=p[0],h=d.getContent();document.getElementById(l).innerHTML=h}catch(c){}}}}_initShareEmbed(){if(!this._params.hasOwnProperty("share")&&!this._params.hasOwnProperty("embed"))return!1;let e=document.createElement("button");e.type="button",e.className="plyr__controls__item plyr__control plyr__share-embed-button aiovg-icon-share",e.innerHTML='<span class="plyr__sr-only">Share</span>',this._playerEl.appendChild(e);let t=this.querySelector(".plyr__share-embed-modal-close-button"),a=this.querySelector(".plyr__share-embed-modal");this._playerEl.appendChild(a),a.style.display="";let i=!1;e.addEventListener("click",()=>{this._player.playing?(i=!0,this._player.pause()):i=!1,e.style.display="none",a.className+=" fadein"}),t.addEventListener("click",()=>{i&&this._player.play(),a.className=a.className.replace(" fadein",""),setTimeout(function(){e.style.display=""},500)}),this._params.hasOwnProperty("embed")&&this.querySelector(".plyr__embed-code-input").addEventListener("focus",function(){this.select(),navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(this.value).catch(()=>{}):document.execCommand("copy")})}_initLogo(){if(!this._params.hasOwnProperty("logo"))return!1;let e="bottom:50px; left:"+this._params.logo.margin+"px;";switch(this._params.logo.position){case"topleft":e="top:"+this._params.logo.margin+"px; left:"+this._params.logo.margin+"px;";break;case"topright":e="top:"+this._params.logo.margin+"px; right:"+this._params.logo.margin+"px;";break;case"bottomright":e="bottom:50px; right:"+this._params.logo.margin+"px;"}let t=document.createElement("div");t.className="plyr__logo",t.innerHTML='<a href="'+this._params.logo.link+'" target="_top" style="'+e+'"><img src="'+this._params.logo.image+'" alt="" /><span class="plyr__sr-only">Logo</span></a>',this._playerEl.appendChild(t)}_initTrailerBadge(){if(!this._params.hasOwnProperty("trailer"))return!1;let e=this._params.trailer,t=document.createElement(e.url?"a":"span");t.className="aiovg-trailer-badge",t.textContent=e.label,e.url&&(t.href=e.url,t.target="_top",this._playerEl.classList.add("aiovg-has-trailer-cta")),this._params.hasOwnProperty("logo")&&"topleft"==this._params.logo.position&&t.classList.add("aiovg-trailer-badge-bottom"),this._playerEl.appendChild(t)}_initEmailCapture(){if(!this.emailCapture||!this._emailCaptureEl)return!1;this._emailCaptureEl.style.backgroundImage="none",this._playerEl.appendChild(this._emailCaptureEl);let e=!1,t=!1,a=()=>{if(!this._emailCaptureEl||e)return!1;e=!0,this._player.ended||(t=!this._player.paused||this._player.seeking,this._player.pause()),this.classList.add("aiovg-show-email-capture");let a=this._emailCaptureEl.querySelector("input");a&&!a.value&&a.focus()},i=()=>{if(!this._emailCaptureEl||!e)return!1;e=!1,this.classList.remove("aiovg-show-email-capture"),this._emailCaptureEl.remove(),this._emailCaptureEl=null,this.emailCapture=!1,t&&this._player.play()},s=e=>{if(!this._emailCaptureEl||this._emailCaptureEl.classList.contains("aiovg-is-loading"))return!1;this._emailCaptureEl.classList.add("aiovg-is-loading");let t=this._emailCaptureEl.dataset.capture_key||"",a=new XMLHttpRequest;a.onreadystatechange=()=>{if(4==a.readyState){let e=null;if(200==a.status&&a.responseText)try{e=JSON.parse(a.responseText)}catch(s){}if(e&&e.success){i();let r=!(e.data&&!1===e.data.remembered),l=document.querySelectorAll(".aiovg-player-element");for(let o=0;o<l.length;o++)l[o].removeCookieConsent(),r&&l[o].removeEmailCapture(t);window.postMessage(r?{message:"aiovg-email-captured",capture_key:t}:{message:"aiovg-cookie-consent"},window.location.origin)}else{let n=this._emailCaptureEl.querySelector(".aiovg-email-capture-error");n&&(n.textContent=e&&e.data&&"string"==typeof e.data?e.data:n.getAttribute("data-error_generic"),n.style.display="block"),this._emailCaptureEl.classList.remove("aiovg-is-loading")}}},a.open("POST",this._params.ajax_url+"?action=aiovg_save_email_lead&security="+this._params.ajax_nonce,!0),a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),a.send(e)},r=parseInt(this._emailCaptureEl.dataset.mid_roll);if(r){let l=!1,o=()=>{if(!this._emailCaptureEl)return this._player.off("timeupdate",o),!1;if(l)return!1;let e=this._player.duration,t=this._player.currentTime;e&&t>=r/100*e&&(l=!0,this._player.off("timeupdate",o),a())};this._player.on("timeupdate",o)}let n=parseInt(this._emailCaptureEl.dataset.post_roll),p=this._params.hasOwnProperty("trailer")&&this._params.trailer.url;n&&!p&&this._player.on("ended",()=>{a()}),this._player.on("play",()=>{if(!this._emailCaptureEl||!e)return!1;t=!0,this._player.pause()}),this._player.on("playing",()=>{if(!this._emailCaptureEl||!e)return!1;t=!0,this._player.pause()}),this._initEmailCaptureForm(e=>s(e))}_initEmailCaptureForm(e){let t=this._emailCaptureEl.querySelector(".aiovg-email-capture-submit"),a=this._emailCaptureEl.querySelector(".aiovg-email-capture-skip"),i=()=>{if("aiovg_videos"==this._params.post_type&&this._params.post_id)return"&video_id="+encodeURIComponent(this._params.post_id);let e="&video_id=0";return this._emailCaptureEl&&this._emailCaptureEl.dataset.video_url&&(e+="&video_url="+encodeURIComponent(this._emailCaptureEl.dataset.video_url)),e};if(t&&t.addEventListener("click",()=>{let t=this._emailCaptureEl.querySelector(".aiovg-email-capture-email"),a=this._emailCaptureEl.querySelector(".aiovg-email-capture-error"),s=t?t.value.trim():"";if(!s||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)){if(a){let r=a.getAttribute("data-invalid_email")||"Please enter a valid email address.";a.textContent=r,a.style.display="block"}return t&&(t.classList.add("aiovg-is-invalid"),t.setAttribute("aria-invalid","true")),!1}a&&(a.style.display="none"),t&&(t.classList.remove("aiovg-is-invalid"),t.removeAttribute("aria-invalid"));let l="email="+encodeURIComponent(s),o=this._emailCaptureEl.querySelector(".aiovg-email-capture-name");o&&o.value.trim()&&(l+="&name="+encodeURIComponent(o.value.trim()));let n=this._emailCaptureEl.querySelector(".aiovg-email-capture-phone");n&&n.value.trim()&&(l+="&phone="+encodeURIComponent(n.value.trim())),l+=i(),e(l+="&page_url="+encodeURIComponent(window.location.href))}),a){let s=()=>e("skipped=1"+i());a.addEventListener("click",s),a.addEventListener("keydown",e=>{(13===e.keyCode||32===e.keyCode)&&(e.preventDefault(),s())})}}_initContextMenu(){if(!window.AIOVGIsContextMenuAdded){window.AIOVGIsContextMenuAdded=!0;let e=document.createElement("div");e.id="aiovg-contextmenu",e.style.display="none",e.innerHTML='<div class="aiovg-contextmenu-content">'+this._params.contextmenu.content+"</div>",document.body.appendChild(e)}let t=document.getElementById("aiovg-contextmenu"),a="";this._playerEl.addEventListener("contextmenu",function(e){if(3==e.keyCode||3==e.which){e.preventDefault(),e.stopPropagation();let i=t.offsetWidth,s=t.offsetHeight,r=e.pageX,l=e.pageY,o=document.documentElement,n=(window.pageXOffset||o.scrollLeft)-(o.clientLeft||0),p=(window.pageYOffset||o.scrollTop)-(o.clientTop||0),d=r+i>window.innerWidth+n?r-i:r,h=l+s>window.innerHeight+p?l-s:l;t.style.display="",t.style.left=d+"px",t.style.top=h+"px",clearTimeout(a),a=setTimeout(function(){t.style.display="none"},1500)}}),document.addEventListener("click",()=>{t.style.display="none"})}_initIntersectionObserver(){if(this._intersectionObserver)return!1;this._intersectionObserver=new IntersectionObserver((e,t)=>{e.forEach(e=>{e.isIntersecting?(this._isInViewport=!0,this._render(),this._isRendered&&t.unobserve(this)):this._isInViewport=!1})},{root:null,rootMargin:"0px",threshold:0}),this._intersectionObserver.observe(this)}async _updateViewsCount(){if(this._params.statistics&&"aiovg_videos"==this._params.post_type){let e=new FormData;e.append("action","aiovg_update_views_count"),e.append("post_id",parseInt(this._params.post_id)),e.append("duration",this._player.duration||0),e.append("security",this._params.ajax_nonce),fetch(this._params.ajax_url,{method:"POST",body:e})}}async _setCookie(){let e=new FormData;e.append("action","aiovg_set_cookie"),e.append("security",this._params.ajax_nonce),fetch(this._params.ajax_url,{method:"POST",body:e})}static isValidUrl(e){if(""===e)return!1;try{return new URL(e),!0}catch(t){return!1}}removeCookieConsent(){if(this._isRendered||!this._cookieConsentEl)return!1;this._cookieConsentEl.remove(),this.cookieConsent=!1,this._render()}removeEmailCapture(e){if(!this._emailCaptureEl||e&&this._emailCaptureEl.dataset.capture_key!==e)return!1;this.classList.remove("aiovg-show-email-capture"),this._emailCaptureEl.remove(),this._emailCaptureEl=null,this.emailCapture=!1,this._isRendered||this._render()}pause(){this._player&&this._player.pause()}seekTo(e){this._player&&(this._player.currentTime=e,this._hasVideoStarted||this._player.play())}}window.AIOVGIsContextMenuAdded=!1,document.addEventListener("DOMContentLoaded",function(){customElements.get("aiovg-video")||customElements.define("aiovg-video",e),window.addEventListener("message",function(e){if(e.origin!=window.location.origin||!e.data.hasOwnProperty("context")||"iframe"!=e.data.context||!e.data.hasOwnProperty("message"))return!1;if("aiovg-cookie-consent"==e.data.message){let t=document.querySelectorAll(".aiovg-player-element");for(let a=0;a<t.length;a++)t[a].removeCookieConsent()}if("aiovg-email-captured"==e.data.message){let i=document.querySelectorAll(".aiovg-player-element");for(let s=0;s<i.length;s++)i[s].removeCookieConsent(),i[s].removeEmailCapture(e.data.capture_key||"")}if("aiovg-video-playing"==e.data.message){let r=document.querySelectorAll("aiovg-video");for(let l=0;l<r.length;l++)r[l].pause()}})})}();
  • all-in-one-video-gallery/trunk/public/templates/player-vidstack.php

    r3804420 r3826337  
    19451945                                plyr.classList.remove( 'aiovg-is-ended' );
    19461946                        });
     1947
     1948                        // Stream track names come from the playlist and Plyr prints them as HTML
     1949                        if ( settings.hasOwnProperty( 'hls' ) || settings.hasOwnProperty( 'dash' ) ) {
     1950                                const addTextTrack = video.addTextTrack.bind( video );
     1951                                const escape = ( value ) => 'string' === typeof value ? value.replace( /</g, '&lt;' ).replace( />/g, '&gt;' ) : value;
     1952
     1953                                video.addTextTrack = ( kind, label, language ) => addTextTrack( kind, escape( label ), escape( language ) );
     1954                        }
    19471955
    19481956                        // HLS
  • all-in-one-video-gallery/trunk/public/video.php

    r3804420 r3826337  
    149149                                        $attributes[ $format ] = aiovg_sanitize_url( $attributes[ $format ] );
    150150                                        $is_video_available = 1;
    151                                         break;
    152151                                }
    153152                        }
Note: See TracChangeset for help on using the changeset viewer.