start_controls_section( 'section_detail', array( 'label' => esc_html__( 'Section Setting', 'accesspress-parallax' ), ) ); $this->add_control( 'section_layout', array( 'label' => esc_html__( 'Section Layout:', 'accesspress-parallax' ), 'type' => Controls_Manager::SELECT, 'label_block' => true, 'options' => array( 'layout1' => esc_html__('Layout 1','accesspress-parallax'), 'layout2' => esc_html__('Layout 2','accesspress-parallax'), ) ) ); $this->add_control( 'team_image', array( 'label' => esc_html__( 'Image:', 'accesspress-parallax' ), 'type' => Controls_Manager::MEDIA, 'label_block' => true, ) ); $this->add_control( 'team_name', array( 'label' => esc_html__( 'Name:', 'accesspress-parallax' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, ) ); $this->add_control( 'team_details', array( 'label' => esc_html__( 'Team Details:', 'accesspress-parallax' ), 'type' => Controls_Manager::TEXTAREA, 'label_block' => true, ) ); $this->add_control( 'team_designation', array( 'label' => esc_html__( 'Team Designation:', 'accesspress-parallax' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, ) ); $this->end_controls_section(); // Widget title section $this->start_controls_section( 'social_links', array( 'label' => esc_html__( 'Social Links', 'accesspress-parallax' ), ) ); $this->add_control( 'facebook_link', [ 'label' => esc_html__( 'Facebook Link', 'accesspress-parallax' ), 'type' => \Elementor\Controls_Manager::URL, 'placeholder' => __( 'https://facebook.com', 'accesspress-parallax' ), 'show_external' => false, ] ); $this->add_control( 'twitter_link', [ 'label' => esc_html__( 'Twitter Link', 'accesspress-parallax' ), 'type' => \Elementor\Controls_Manager::URL, 'placeholder' => __( 'https://twitter.com', 'accesspress-parallax' ), 'show_external' => false, ] ); $this->add_control( 'youtube_link', [ 'label' => esc_html__( 'Youtube Link', 'accesspress-parallax' ), 'type' => \Elementor\Controls_Manager::URL, 'placeholder' => __( 'https://youtube.com', 'accesspress-parallax' ), 'show_external' => false, ] ); $this->add_control( 'instagram_link', [ 'label' => esc_html__( 'Instagram Link', 'accesspress-parallax' ), 'type' => \Elementor\Controls_Manager::URL, 'placeholder' => __( 'https://instagram.com', 'accesspress-parallax' ), 'show_external' => false, ] ); $this->end_controls_section(); //styling tab $this->start_controls_section( 'section_general_style', [ 'label' => esc_html__( 'General Styles', 'accesspress-parallax' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'team_title_color', [ 'label' => esc_html__( 'Name Color', 'accesspress-parallax' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} h4.team-name' => 'color: {{VALUE}};', ], ] ); $this->add_control( 'team_description_color', [ 'label' => esc_html__( 'Details Color', 'accesspress-parallax' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .team-details' => 'color: {{VALUE}};', ], ] ); $this->add_control( 'team_designation_color', [ 'label' => esc_html__( 'Designation Color', 'accesspress-parallax' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .team-designation' => 'color: {{VALUE}};', ], ] ); $this->add_control( 'overlay_background_color', [ 'label' => esc_html__( 'Overlay Background Color', 'accesspress-parallax' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ap-team-wrapper.layout1 .team-content-wrapper' => 'background-color: {{VALUE}};', ], 'condition' => [ 'section_layout' => 'layout1', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'team_title_typography', 'label' => esc_html__( 'Name Typography', 'accesspress-parallax' ), 'scheme' => Scheme_Typography::TYPOGRAPHY_4, 'selector' => '{{WRAPPER}} h4.team-name', ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'team_details_typography', 'label' => esc_html__( 'Details Typography', 'accesspress-parallax' ), 'scheme' => Scheme_Typography::TYPOGRAPHY_4, 'selector' => '{{WRAPPER}} .team-details', ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'team_designation_typography', 'label' => esc_html__( 'Designation Typography', 'accesspress-parallax' ), 'scheme' => Scheme_Typography::TYPOGRAPHY_4, 'selector' => '{{WRAPPER}} .team-designation', ] ); $this->end_controls_section();//end for styling tab } /** * Render Accesspress_Parallax_Team widget output on the frontend. * * Written in PHP and used to generate the final HTML. * * @access protected */ protected function render() { $settings = $this->get_settings(); $this->add_render_attribute( 'ap-team', 'class', 'ap-team-section' ); $team_image = isset( $settings[ 'team_image' ] )? $settings[ 'team_image' ] : ''; $layout = isset( $settings[ 'section_layout' ] )? $settings[ 'section_layout' ] : ''; $team_name = isset( $settings[ 'team_name' ] )? $settings[ 'team_name' ] : ''; $team_details = isset( $settings[ 'team_details' ] )? $settings[ 'team_details' ] : ''; $team_designation = isset( $settings[ 'team_designation' ] )? $settings[ 'team_designation' ] : ''; $facebook_link = isset( $settings[ 'facebook_link' ] )? $settings[ 'facebook_link' ] : ''; $twitter_link = isset( $settings[ 'twitter_link' ] )? $settings[ 'twitter_link' ] : ''; $youtube_link = isset( $settings[ 'youtube_link' ] )? $settings[ 'youtube_link' ] : ''; $instagram_link = isset( $settings[ 'instagram_link' ] )? $settings[ 'instagram_link' ] : ''; ?>
get_render_attribute_string( 'ap-team' ); ?>>
<?php echo esc_attr($team_name);?>

<?php echo esc_attr($team_name);?>