start_controls_section( 'restly_copyright_options', [ 'label' => esc_html__( 'Restly Copyright', 'restlycore' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'restly_copyright_area', [ 'label' => esc_html__( 'Copyright', 'restlycore' ), 'type' => \Elementor\Controls_Manager::WYSIWYG, 'default' => __( '© Restly 2021 | Developed by: Themepul ', 'restlycore' ), ] ); $this->end_controls_section(); $this->start_controls_section( 'restly_copyright_CSS', [ 'label' => esc_html__( 'Restly Copyright Style', 'restlycore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'restly_copyright_CSS_c', [ 'label' => esc_html__( 'Text Color', 'restlycore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .restly-copyright-test' => 'color: {{VALUE}}', ], ] ); $this->add_responsive_control( 'restly_copyright_CSS_link_c', [ 'label' => esc_html__( 'Link Color', 'restlycore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .restly-copyright-test a' => 'color: {{VALUE}}', ], ] ); $this->add_responsive_control( 'restly_copyright_CSS_link_ch', [ 'label' => esc_html__( 'Link Hover Color', 'restlycore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .restly-copyright-test a:hover' => 'color: {{VALUE}}', ], ] ); $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'restly_copyright_CSS_typo', 'label' => esc_html__( 'Typography', 'restlycore' ), 'selector' => '{{WRAPPER}} .restly-copyright-test', ] ); $this->add_responsive_control( 'restly_copyright_CSS_alig', [ 'label' => __( 'Alignment', 'restlycore' ), 'type' => \Elementor\Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => __( 'Left', 'restlycore' ), 'icon' => 'fa fa-align-left', ], 'center' => [ 'title' => __( 'Center', 'restlycore' ), 'icon' => 'fa fa-align-center', ], 'right' => [ 'title' => __( 'Right', 'restlycore' ), 'icon' => 'fa fa-align-right', ], ], 'default' => 'left', 'toggle' => true, 'selectors' => [ '{{WRAPPER}} .restly-copyright-test' => 'text-align: {{VALUE}}', ], ] ); $this->add_responsive_control( 'restly_copyright_CSS_margin', [ 'label' => esc_html__( 'Margin', 'restlycore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .restly-copyright-test' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'restly_copyright_CSS_padding', [ 'label' => esc_html__( 'Padding', 'restlycore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .restly-copyright-test' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); } //Render protected function render() { $settings = $this->get_settings_for_display(); ob_start(); ?>