Elementor\Widget_Audio::_register_controls PHP Метод

_register_controls() защищенный Метод

protected _register_controls ( )
    protected function _register_controls()
    {
        $this->start_controls_section('section_audio', ['label' => __('SoundCloud', 'elementor')]);
        $this->add_control('link', ['label' => __('Link', 'elementor'), 'type' => Controls_Manager::URL, 'default' => ['url' => 'https://soundcloud.com/shchxango/john-coltrane-1963-my-favorite'], 'show_external' => false]);
        $this->add_control('visual', ['label' => __('Visual Player', 'elementor'), 'type' => Controls_Manager::SELECT, 'default' => 'no', 'options' => ['yes' => __('Yes', 'elementor'), 'no' => __('No', 'elementor')]]);
        $this->add_control('sc_options', ['label' => __('Additional Options', 'elementor'), 'type' => Controls_Manager::HEADING, 'separator' => 'before']);
        $this->add_control('sc_auto_play', ['label' => __('Autoplay', 'elementor'), 'type' => Controls_Manager::SELECT, 'default' => 'no', 'options' => ['yes' => __('Yes', 'elementor'), 'no' => __('No', 'elementor')]]);
        $this->add_control('sc_buying', ['label' => __('Buy Button', 'elementor'), 'type' => Controls_Manager::SELECT, 'default' => 'show', 'options' => ['show' => __('Show', 'elementor'), 'hide' => __('Hide', 'elementor')]]);
        $this->add_control('sc_liking', ['label' => __('Like Button', 'elementor'), 'type' => Controls_Manager::SELECT, 'default' => 'show', 'options' => ['show' => __('Show', 'elementor'), 'hide' => __('Hide', 'elementor')]]);
        $this->add_control('sc_download', ['label' => __('Download Button', 'elementor'), 'type' => Controls_Manager::SELECT, 'default' => 'show', 'options' => ['show' => __('Show', 'elementor'), 'hide' => __('Hide', 'elementor')]]);
        $this->add_control('sc_sharing', ['label' => __('Share Button', 'elementor'), 'type' => Controls_Manager::SELECT, 'default' => 'show', 'options' => ['show' => __('Show', 'elementor'), 'hide' => __('Hide', 'elementor')]]);
        $this->add_control('sc_show_comments', ['label' => __('Comments', 'elementor'), 'type' => Controls_Manager::SELECT, 'default' => 'show', 'options' => ['show' => __('Show', 'elementor'), 'hide' => __('Hide', 'elementor')]]);
        $this->add_control('sc_show_playcount', ['label' => __('Play Counts', 'elementor'), 'type' => Controls_Manager::SELECT, 'default' => 'show', 'options' => ['show' => __('Show', 'elementor'), 'hide' => __('Hide', 'elementor')]]);
        $this->add_control('sc_show_user', ['label' => __('Username', 'elementor'), 'type' => Controls_Manager::SELECT, 'default' => 'show', 'options' => ['show' => __('Show', 'elementor'), 'hide' => __('Hide', 'elementor')]]);
        $this->add_control('sc_color', ['label' => __('Controls Color', 'elementor'), 'type' => Controls_Manager::COLOR]);
        $this->add_control('view', ['label' => __('View', 'elementor'), 'type' => Controls_Manager::HIDDEN, 'default' => 'soundcloud']);
        $this->end_controls_section();
    }