Untitled

 avatar
unknown
plain_text
4 years ago
1.0 kB
5
Indexable

$skin_colors = array(
    "light" => array(
        "playerBgColor" => "#ffffff",
        "playerAccent" => "#d24de9"
    ),
    "dark" => array(
        "playerBgColor" => "#1b1b1b",
        "playerAccent" => "#e91e63"
    )
);

$this->add_control(
    'skin',
    [
        'label' => __( 'Choose skin', 'elementor-brona' ),
        'type' => \Elementor\Controls_Manager::SELECT,
        'options' => [
            'light' => esc_html__( 'Light', 'elementor-brona' ),
            'dark' => esc_html__( 'Dark', 'elementor-brona' ),
        ],
        'default' => 'light',
    ]
);

$this->add_control(
    'playerBgColor',
    [
        'label' => esc_html__( 'Player background color', 'elementor-brona' ),
        'type' => \Elementor\Controls_Manager::COLOR,
        'scheme' => [
          'type' => \Elementor\Scheme_Color::get_type(),
          'value' => \Elementor\Scheme_Color::COLOR_1,
        ],
        'alpha' => false,
        'default' => ''
      
    ]
);


Editor is loading...