esc_html__( 'Black', 'apollo13-framework-extensions' ), 'color' => esc_html__( 'Color', 'apollo13-framework-extensions' ), 'white' => esc_html__( 'White', 'apollo13-framework-extensions' ), 'semi-transparent' => esc_html__( 'Semi transparent', 'apollo13-framework-extensions' ), ); $this->start_controls_section( 'colors', [ 'label' => __( 'Color', 'apollo13-framework-extensions' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); /** @noinspection HtmlUnknownTarget */ $this->add_control( 'anchor_description', [ /* translators: %s: "Social icons" Customizer link */ 'raw' => sprintf( esc_html__( 'If you need to edit social links, you can do it in the Customizer in the %s settings.', 'apollo13-framework-extensions' ), ''.esc_html__( 'Social icons', 'apollo13-framework-extensions' ).'' ), 'type' => Controls_Manager::RAW_HTML, 'content_classes' => 'elementor-descriptor', ] ); $this->add_control( 'color', [ 'label' => __( 'Normal color', 'apollo13-framework-extensions' ), 'type' => Controls_Manager::SELECT, 'options' => $social_colors, 'default' => 'color', ] ); $this->add_control( 'hover_color', [ 'label' => __( 'Hover color', 'apollo13-framework-extensions' ), 'type' => Controls_Manager::SELECT, 'options' => $social_colors, 'default' => 'semi-transparent', ] ); $this->end_controls_section(); } protected function render() { $settings = $this->get_settings_for_display(); echo apollo13framework_social_icons( $settings['color'], $settings['hover_color'] ); } }