Plugin Directory

Changeset 3220773


Ignore:
Timestamp:
01/11/2025 04:01:06 PM (14 months ago)
Author:
nico23
Message:

Update plugin to version 10.5.3 with NextgenThemes WordPress Plugin Deploy

Location:
advanced-responsive-video-embedder
Files:
6 added
20 edited
1 copied

Legend:

Unmodified
Added
Removed
  • advanced-responsive-video-embedder/tags/10.5.3/advanced-responsive-video-embedder.php

    r3219322 r3220773  
    44 * Plugin URI:        https://nextgenthemes.com/plugins/arve-pro/
    55 * Description:       Easy responsive video embeds via URL (like WordPress) or Shortcodes. Supports almost anything you can imagine.
    6  * Version:           10.5.2
     6 * Version:           10.5.3
    77 * Requires PHP:      7.4
    88 * Requires at least: 6.6
     
    2323namespace Nextgenthemes\ARVE;
    2424
    25 const VERSION               = '10.5.2';
     25const VERSION               = '10.5.3';
    2626const PRO_VERSION_REQUIRED  = '6.0.0-alpha3';
    2727const NUM_TRACKS            = 3;
  • advanced-responsive-video-embedder/tags/10.5.3/changelog.md

    r3219322 r3220773  
    33* [ARVE Pro changelog](https://nextgenthemes.com/plugins/arve-pro/#changelog)
    44* [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog)
     5
     6### 2024-01-11 10.5.3 ###
     7
     8* Fix: Fixed, improved and restored Shortcode UI functionality.
    59
    610### 2024-01-08 10.5.2 ###
  • advanced-responsive-video-embedder/tags/10.5.3/php/Admin/fn-admin.php

    r3216016 r3220773  
    268268function register_shortcode_ui(): void {
    269269
    270     $settings = settings( 'shortcode' )->to_array();
    271 
    272     foreach ( $settings as $k => $v ) :
    273 
    274         switch ( $v['type'] ) {
     270    $settings = settings( 'shortcode' )->get_all();
     271
     272    foreach ( $settings as $key => $s ) :
     273
     274        $field = array(
     275            'attr'  => $key,
     276            'label' => $s->label,
     277        );
     278
     279        if ( ! empty( $s->placeholder ) ) {
     280            $field['meta']['placeholder'] = $s->placeholder;
     281        }
     282
     283        if ( 'thumbnail' === $key ) {
     284            $field['type']        = 'attachment';
     285            $field['libraryType'] = array( 'image' );
     286            $field['addButton']   = __( 'Select Image', 'advanced-responsive-video-embedder' );
     287            $field['frameTitle']  = __( 'Select Image', 'advanced-responsive-video-embedder' );
     288        }
     289
     290        switch ( $s->type ) {
    275291            case 'boolean':
    276                 $v['type']    = 'select';
    277                 $v['options'] = array(
    278                     array(
    279                         'value' => '',
    280                         'label' => esc_html__( 'Default', 'advanced-responsive-video-embedder' ),
    281                     ),
    282                     array(
    283                         'value' => 'yes',
    284                         'label' => esc_html__( 'Yes', 'advanced-responsive-video-embedder' ),
    285                     ),
    286                     array(
    287                         'value' => 'no',
    288                         'label' => esc_html__( 'No', 'advanced-responsive-video-embedder' ),
    289                     ),
    290                 );
     292                $field['type'] = 'checkbox';
    291293                break;
    292294            case 'string':
    293                 $v['type'] = 'text';
     295                if ( $s->options ) {
     296                    $field['type']    = 'select';
     297                    $field['options'] = convert_to_shortcode_ui_options( $s->options );
     298                } else {
     299                    $field['type'] = 'text';
     300                }
    294301                break;
    295302            case 'integer':
    296                 $v['type'] = 'number';
     303                $field['type'] = 'number';
    297304                break;
    298305        }
    299306
    300         if ( 'thumbnail' === $k ) {
    301             $v['type']        = 'attachment';
    302             $v['libraryType'] = array( 'image' );
    303             $v['addButton']   = __( 'Select Image', 'advanced-responsive-video-embedder' );
    304             $v['frameTitle']  = __( 'Select Image', 'advanced-responsive-video-embedder' );
    305         }
    306 
    307         if ( ! empty( $v['placeholder'] ) ) {
    308             $v['meta']['placeholder'] = $v['placeholder'];
    309         }
    310 
    311         $v['attr'] = $k;
    312         $attrs[]   = $v;
     307        $attrs[] = $field;
    313308    endforeach;
    314309
     
    321316        )
    322317    );
     318}
     319
     320/**
     321 * Converts an associative array to an array of options suitable for Shortcode UI.
     322 * Each key-value pair in the input array is transformed into an associative array
     323 * with 'value' and 'label' keys.
     324 *
     325 * @param array $arr An associative array with keys as option values and values as option labels.
     326 *
     327 * @return array An array of associative arrays, each containing 'value' and 'label' keys.
     328 */
     329function convert_to_shortcode_ui_options( array $arr ): array {
     330    $result = array();
     331    foreach ( $arr as $key => $value ) {
     332        $result[] = array(
     333            'value' => $key,
     334            'label' => $value,
     335        );
     336    }
     337    return $result;
    323338}
    324339
  • advanced-responsive-video-embedder/tags/10.5.3/php/fn-settings.php

    r3215952 r3220773  
    88
    99use function Nextgenthemes\WP\nextgenthemes_settings_instance;
    10 use function Nextgenthemes\WP\validate_settings;
    1110
    1211function options(): array {
  • advanced-responsive-video-embedder/tags/10.5.3/readme.txt

    r3219322 r3220773  
    66Tested up to: 6.7
    77Requires PHP: 7.4
    8 Stable tag: 10.5.2
     8Stable tag: 10.5.3
    99License: GPL-3.0
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    194194* [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog)
    195195
     196### 2024-01-11 10.5.3 ###
     197
     198* Fix: Fixed, improved and restored Shortcode UI functionality.
     199
    196200### 2024-01-08 10.5.2 ###
    197201
  • advanced-responsive-video-embedder/tags/10.5.3/src/block.json

    r3219322 r3220773  
    1414        "odysee"
    1515    ],
    16     "version": "10.5.2",
     16    "version": "10.5.3",
    1717    "textdomain": "advanced-responsive-video-embedder",
    1818    "supports": {
  • advanced-responsive-video-embedder/tags/10.5.3/vendor/composer/installed.json

    r3219322 r3220773  
    7070        {
    7171            "name": "nextgenthemes/wp-shared",
    72             "version": "2025.01.08.22.13.18",
    73             "version_normalized": "2025.01.08.22.13.18",
     72            "version": "2025.01.11.15.57.57",
     73            "version_normalized": "2025.01.11.15.57.57",
    7474            "dist": {
    7575                "type": "path",
    7676                "url": "../../../../../../dev/composer-packages/wp-shared",
    77                 "reference": "c65f98e0de0c733a562326262a200dcc5c927bf3"
     77                "reference": "c20a24d2825414c85a095c279182f302e47474e2"
    7878            },
    7979            "require": {
  • advanced-responsive-video-embedder/tags/10.5.3/vendor/composer/installed.php

    r3219322 r3220773  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => '6dc433bc08b165c683f5c61fdd2efaa07c492d80',
     6        'reference' => '762e26e118396a8f6311c37d43144896ce1e314c',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2323            'pretty_version' => 'dev-master',
    2424            'version' => 'dev-master',
    25             'reference' => '6dc433bc08b165c683f5c61fdd2efaa07c492d80',
     25            'reference' => '762e26e118396a8f6311c37d43144896ce1e314c',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
     
    3030        ),
    3131        'nextgenthemes/wp-shared' => array(
    32             'pretty_version' => '2025.01.08.22.13.18',
    33             'version' => '2025.01.08.22.13.18',
    34             'reference' => 'c65f98e0de0c733a562326262a200dcc5c927bf3',
     32            'pretty_version' => '2025.01.11.15.57.57',
     33            'version' => '2025.01.11.15.57.57',
     34            'reference' => 'c20a24d2825414c85a095c279182f302e47474e2',
    3535            'type' => 'wp-package',
    3636            'install_path' => __DIR__ . '/../nextgenthemes/wp-shared',
  • advanced-responsive-video-embedder/tags/10.5.3/vendor/composer/jetpack_autoload_filemap.php

    r3219322 r3220773  
    88return array(
    99    '47777597fbe681453e41ea4bf4ad9988' => array(
    10         'version' => '2025.01.08.22.13.18',
     10        'version' => '2025.01.11.15.57.57',
    1111        'path'    => $vendorDir . '/nextgenthemes/wp-shared/includes/WP/init.php'
    1212    ),
  • advanced-responsive-video-embedder/tags/10.5.3/vendor/nextgenthemes/wp-shared/composer.json

    r3219322 r3220773  
    1616        "php": ">=7.4"
    1717    },
    18     "version": "2025.01.08.22.13.18"
     18    "version": "2025.01.11.15.57.57"
    1919}
  • advanced-responsive-video-embedder/trunk/advanced-responsive-video-embedder.php

    r3219322 r3220773  
    44 * Plugin URI:        https://nextgenthemes.com/plugins/arve-pro/
    55 * Description:       Easy responsive video embeds via URL (like WordPress) or Shortcodes. Supports almost anything you can imagine.
    6  * Version:           10.5.2
     6 * Version:           10.5.3
    77 * Requires PHP:      7.4
    88 * Requires at least: 6.6
     
    2323namespace Nextgenthemes\ARVE;
    2424
    25 const VERSION               = '10.5.2';
     25const VERSION               = '10.5.3';
    2626const PRO_VERSION_REQUIRED  = '6.0.0-alpha3';
    2727const NUM_TRACKS            = 3;
  • advanced-responsive-video-embedder/trunk/changelog.md

    r3219322 r3220773  
    33* [ARVE Pro changelog](https://nextgenthemes.com/plugins/arve-pro/#changelog)
    44* [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog)
     5
     6### 2024-01-11 10.5.3 ###
     7
     8* Fix: Fixed, improved and restored Shortcode UI functionality.
    59
    610### 2024-01-08 10.5.2 ###
  • advanced-responsive-video-embedder/trunk/php/Admin/fn-admin.php

    r3216016 r3220773  
    268268function register_shortcode_ui(): void {
    269269
    270     $settings = settings( 'shortcode' )->to_array();
    271 
    272     foreach ( $settings as $k => $v ) :
    273 
    274         switch ( $v['type'] ) {
     270    $settings = settings( 'shortcode' )->get_all();
     271
     272    foreach ( $settings as $key => $s ) :
     273
     274        $field = array(
     275            'attr'  => $key,
     276            'label' => $s->label,
     277        );
     278
     279        if ( ! empty( $s->placeholder ) ) {
     280            $field['meta']['placeholder'] = $s->placeholder;
     281        }
     282
     283        if ( 'thumbnail' === $key ) {
     284            $field['type']        = 'attachment';
     285            $field['libraryType'] = array( 'image' );
     286            $field['addButton']   = __( 'Select Image', 'advanced-responsive-video-embedder' );
     287            $field['frameTitle']  = __( 'Select Image', 'advanced-responsive-video-embedder' );
     288        }
     289
     290        switch ( $s->type ) {
    275291            case 'boolean':
    276                 $v['type']    = 'select';
    277                 $v['options'] = array(
    278                     array(
    279                         'value' => '',
    280                         'label' => esc_html__( 'Default', 'advanced-responsive-video-embedder' ),
    281                     ),
    282                     array(
    283                         'value' => 'yes',
    284                         'label' => esc_html__( 'Yes', 'advanced-responsive-video-embedder' ),
    285                     ),
    286                     array(
    287                         'value' => 'no',
    288                         'label' => esc_html__( 'No', 'advanced-responsive-video-embedder' ),
    289                     ),
    290                 );
     292                $field['type'] = 'checkbox';
    291293                break;
    292294            case 'string':
    293                 $v['type'] = 'text';
     295                if ( $s->options ) {
     296                    $field['type']    = 'select';
     297                    $field['options'] = convert_to_shortcode_ui_options( $s->options );
     298                } else {
     299                    $field['type'] = 'text';
     300                }
    294301                break;
    295302            case 'integer':
    296                 $v['type'] = 'number';
     303                $field['type'] = 'number';
    297304                break;
    298305        }
    299306
    300         if ( 'thumbnail' === $k ) {
    301             $v['type']        = 'attachment';
    302             $v['libraryType'] = array( 'image' );
    303             $v['addButton']   = __( 'Select Image', 'advanced-responsive-video-embedder' );
    304             $v['frameTitle']  = __( 'Select Image', 'advanced-responsive-video-embedder' );
    305         }
    306 
    307         if ( ! empty( $v['placeholder'] ) ) {
    308             $v['meta']['placeholder'] = $v['placeholder'];
    309         }
    310 
    311         $v['attr'] = $k;
    312         $attrs[]   = $v;
     307        $attrs[] = $field;
    313308    endforeach;
    314309
     
    321316        )
    322317    );
     318}
     319
     320/**
     321 * Converts an associative array to an array of options suitable for Shortcode UI.
     322 * Each key-value pair in the input array is transformed into an associative array
     323 * with 'value' and 'label' keys.
     324 *
     325 * @param array $arr An associative array with keys as option values and values as option labels.
     326 *
     327 * @return array An array of associative arrays, each containing 'value' and 'label' keys.
     328 */
     329function convert_to_shortcode_ui_options( array $arr ): array {
     330    $result = array();
     331    foreach ( $arr as $key => $value ) {
     332        $result[] = array(
     333            'value' => $key,
     334            'label' => $value,
     335        );
     336    }
     337    return $result;
    323338}
    324339
  • advanced-responsive-video-embedder/trunk/php/fn-settings.php

    r3215952 r3220773  
    88
    99use function Nextgenthemes\WP\nextgenthemes_settings_instance;
    10 use function Nextgenthemes\WP\validate_settings;
    1110
    1211function options(): array {
  • advanced-responsive-video-embedder/trunk/readme.txt

    r3219322 r3220773  
    66Tested up to: 6.7
    77Requires PHP: 7.4
    8 Stable tag: 10.5.2
     8Stable tag: 10.5.3
    99License: GPL-3.0
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    194194* [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog)
    195195
     196### 2024-01-11 10.5.3 ###
     197
     198* Fix: Fixed, improved and restored Shortcode UI functionality.
     199
    196200### 2024-01-08 10.5.2 ###
    197201
  • advanced-responsive-video-embedder/trunk/src/block.json

    r3219322 r3220773  
    1414        "odysee"
    1515    ],
    16     "version": "10.5.2",
     16    "version": "10.5.3",
    1717    "textdomain": "advanced-responsive-video-embedder",
    1818    "supports": {
  • advanced-responsive-video-embedder/trunk/vendor/composer/installed.json

    r3219322 r3220773  
    7070        {
    7171            "name": "nextgenthemes/wp-shared",
    72             "version": "2025.01.08.22.13.18",
    73             "version_normalized": "2025.01.08.22.13.18",
     72            "version": "2025.01.11.15.57.57",
     73            "version_normalized": "2025.01.11.15.57.57",
    7474            "dist": {
    7575                "type": "path",
    7676                "url": "../../../../../../dev/composer-packages/wp-shared",
    77                 "reference": "c65f98e0de0c733a562326262a200dcc5c927bf3"
     77                "reference": "c20a24d2825414c85a095c279182f302e47474e2"
    7878            },
    7979            "require": {
  • advanced-responsive-video-embedder/trunk/vendor/composer/installed.php

    r3219322 r3220773  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => '6dc433bc08b165c683f5c61fdd2efaa07c492d80',
     6        'reference' => '762e26e118396a8f6311c37d43144896ce1e314c',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2323            'pretty_version' => 'dev-master',
    2424            'version' => 'dev-master',
    25             'reference' => '6dc433bc08b165c683f5c61fdd2efaa07c492d80',
     25            'reference' => '762e26e118396a8f6311c37d43144896ce1e314c',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
     
    3030        ),
    3131        'nextgenthemes/wp-shared' => array(
    32             'pretty_version' => '2025.01.08.22.13.18',
    33             'version' => '2025.01.08.22.13.18',
    34             'reference' => 'c65f98e0de0c733a562326262a200dcc5c927bf3',
     32            'pretty_version' => '2025.01.11.15.57.57',
     33            'version' => '2025.01.11.15.57.57',
     34            'reference' => 'c20a24d2825414c85a095c279182f302e47474e2',
    3535            'type' => 'wp-package',
    3636            'install_path' => __DIR__ . '/../nextgenthemes/wp-shared',
  • advanced-responsive-video-embedder/trunk/vendor/composer/jetpack_autoload_filemap.php

    r3219322 r3220773  
    88return array(
    99    '47777597fbe681453e41ea4bf4ad9988' => array(
    10         'version' => '2025.01.08.22.13.18',
     10        'version' => '2025.01.11.15.57.57',
    1111        'path'    => $vendorDir . '/nextgenthemes/wp-shared/includes/WP/init.php'
    1212    ),
  • advanced-responsive-video-embedder/trunk/vendor/nextgenthemes/wp-shared/composer.json

    r3219322 r3220773  
    1616        "php": ">=7.4"
    1717    },
    18     "version": "2025.01.08.22.13.18"
     18    "version": "2025.01.11.15.57.57"
    1919}
Note: See TracChangeset for help on using the changeset viewer.