| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Product Video Options. |
| 5 |
* |
| 6 |
* @package Merchant |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; // Exit if accessed directly |
| 11 |
} |
| 12 |
|
| 13 |
// Settings |
| 14 |
Merchant_Admin_Options::create( array( |
| 15 |
'title' => esc_html__( 'Settings', 'merchant' ), |
| 16 |
'module' => 'product-video', |
| 17 |
'fields' => array( |
| 18 |
|
| 19 |
// Autoplay. |
| 20 |
array( |
| 21 |
'id' => 'autoplay', |
| 22 |
'type' => 'switcher', |
| 23 |
'title' => esc_html__( 'Autoplay', 'merchant' ), |
| 24 |
'desc' => esc_html__( 'Autoplay may cause usability issues for some users.', 'merchant' ), |
| 25 |
'default' => false |
| 26 |
), |
| 27 |
|
| 28 |
// Aspect ratio. |
| 29 |
array( |
| 30 |
'id' => 'aspect_ratio', |
| 31 |
'type' => 'select', |
| 32 |
'title' => esc_html__( 'Aspect ratio', 'merchant' ), |
| 33 |
'desc' => esc_html__( 'The aspect ratio definition is the proportional relationship between the width and height of a video.', 'merchant' ), |
| 34 |
'options' => array( |
| 35 |
'16-9' => '16:9', |
| 36 |
'9-16' => '9:16', |
| 37 |
'4-3' => '4:3', |
| 38 |
'3-2' => '3:2', |
| 39 |
'1-1' => '1:1', |
| 40 |
'auto' => 'auto', |
| 41 |
), |
| 42 |
'default' => '16-9', |
| 43 |
), |
| 44 |
|
| 45 |
) |
| 46 |
) ); |
| 47 |
|