# darkify/1.3.0/src/Admin/Views/VideoStyle.php

Darkify – Dark Mode &amp; Night Mode for Website &amp; Admin (Dark Theme Included), version 1.3.0. 157 lines.

- Page: https://pluginprobe.com/plugins/darkify/1.3.0/code/src/Admin/Views/VideoStyle.php
- Raw: https://pluginprobe.com/plugins/darkify/1.3.0/raw/src/Admin/Views/VideoStyle.php
- Modified: 2025-03-21T01:44:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/darkify/1.3.0/code/src/Admin/Views/VideoStyle.php#L10-L20`.

```php
<?php

/**
 * Views class for Shortcode generator options.
 *
 * @link       https://themeatelier.net
 * @since      1.0.0
 *
 * @package darkify
 * @subpackage darkify/src/Admin/Views/VideoStyle
 * @author     ThemeAtelier<themeatelierbd@gmail.com>
 */

namespace ThemeAtelier\Darkify\Admin\Views;

use ThemeAtelier\Darkify\Admin\Framework\Classes\Darkify;

class VideoStyle
{
    /**
     * Create Option fields for the setting options.
     *
     * @param string $prefix Option setting key prefix.
     * @return void
     */
    public static function options($prefix)
    {
        Darkify::createSection($prefix, array(
            'title'  => esc_html__('VIDEO STYLE', 'darkify'),
            'icon'   => 'icofont-video-clapper',
            'fields' => array(

                // Appearance Control
                array(
                    'type'    => 'heading',
                    'content' => esc_html__('Appearance Control', 'darkify'),
                ),

                // Low Brightness
                array(
                    'id'     => 'video_brightness',
                    'type'   => 'fieldset',
                    'fields' => array(
                        array(
                            'id' => 'enable_low_video_brightness',
                            'type'  => 'switcher',
                            'title' => esc_html__('Low Brightness', 'darkify'),
                            'desc'  => esc_html__('Switch and select the brightness level of videos on dark mode.', 'darkify'),
                            'text_on' => esc_html__('Yes', 'darkify'),
                            'text_off' => esc_html__('No', 'darkify'),
                            'default' => true,
                        ),
                        array(
                            'id' => 'low_video_brightness_label',
                            'type'  => 'select',
                            'title' => esc_html__('Brightness Label', 'darkify'),
                            'options' => array(
                                '0' => esc_html__('0% Brightness', 'darkify'),
                                '10' => esc_html__('10% Brightness', 'darkify'),
                                '20' => esc_html__('20% Brightness', 'darkify'),
                                '30' => esc_html__('30% Brightness', 'darkify'),
                                '40' => esc_html__('40% Brightness', 'darkify'),
                                '50' => esc_html__('50% Brightness', 'darkify'),
                                '60' => esc_html__('60% Brightness', 'darkify'),
                                '70' => esc_html__('70% Brightness', 'darkify'),
                                '80' => esc_html__('80% Brightness', 'darkify'),
                                '90' => esc_html__('90% Brightness', 'darkify'),
                                '100' => esc_html__('100% Brightness', 'darkify'),
                            ),
                            'default'     => '80',
                            'dependency' => array('enable_low_video_brightness', '==', 'true', 'all'),
                        ),
                    ),
                ),

                // Grayscale Video
                array(
                    'id'     => 'video_grayscale',
                    'type'   => 'fieldset',
                    'fields' => array(
                        array(
                            'id' => 'enable_video_grayscale',
                            'type'  => 'switcher',
                            'title' => esc_html__('Grayscale Video', 'darkify'),
                            'desc'  => esc_html__('Switch and select the grayscale level of videos on dark mode.', 'darkify'),
                            'text_on' => esc_html__('Yes', 'darkify'),
                            'text_off' => esc_html__('No', 'darkify'),
                            'default' => false,
                        ),
                        array(
                            'id' => 'video_grayscale_label',
                            'type'  => 'select',
                            'title' => esc_html__('Grayscale Label', 'darkify'),
                            'options' => array(
                                '0' => esc_html__('0% Brightness', 'darkify'),
                                '10' => esc_html__('10% Grayscale', 'darkify'),
                                '20' => esc_html__('20% Grayscale', 'darkify'),
                                '30' => esc_html__('30% Grayscale', 'darkify'),
                                '40' => esc_html__('40% Grayscale', 'darkify'),
                                '50' => esc_html__('50% Grayscale', 'darkify'),
                                '60' => esc_html__('60% Grayscale', 'darkify'),
                                '70' => esc_html__('70% Grayscale', 'darkify'),
                                '80' => esc_html__('80% Grayscale', 'darkify'),
                                '90' => esc_html__('90% Grayscale', 'darkify'),
                                '100' => esc_html__('100% Grayscale', 'darkify'),
                            ),
                            'default'     => '80',
                            'dependency' => array('enable_video_grayscale', '==', 'true', 'all'),
                        ),
                    ),
                ),
                // Video Replacement
                array(
                    'type'    => 'heading',
                    'content' => esc_html__('Video Replacement', 'darkify'),
                ),

                array(
                    'id'        => 'video_replacements',
                    'type'      => 'repeater',
                    'class'      => 'repeater_pro_only',
                    'title'     => esc_html__('Replace video', 'darkify'),
                    'fields'    => array(

                        array(
                            'id'           => 'normal_video',
                            'type'         => 'upload',
                            'title'        => esc_html__('Normal Mode Video', 'darkify'),
                            'library'      => 'video',
                            'placeholder'  => esc_html__('Video URL', 'darkify'),
                            'button_title' => esc_html__('Add Video', 'darkify'),
                            'remove_title' => esc_html__('Remove Video', 'darkify'),
                        ),

                        array(
                            'id'           => 'dark_video',
                            'type'         => 'upload',
                            'title'        => esc_html__('Dark Mode Video', 'darkify'),
                            'library'      => 'video',
                            'placeholder'  =>   esc_html__('Video URL', 'darkify'),
                            'button_title' => esc_html__('Add Video', 'darkify'),
                            'remove_title' => esc_html__('Remove Video', 'darkify'),
                        ),

                    ),
                    'default'   => array(
                        array(
                            'normal_video' => '',
                            'dark_video' => '',
                        ),
                    )
                ),
            )
        ));
    }
}

```
