/home/techb158/l2hypotheques.com/wp-content/plugins/pyloncore/elementor/widgets
Edit: /home/techb158/l2hypotheques.com/wp-content/plugins/pyloncore/elementor/widgets/company-ceo.php (11289B)
start_controls_section(
'pylon_company_ceo_content_section',
[
'label' => esc_html__( 'Content', 'pyloncore' ),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
]
);
$this->add_control(
'pylon_company_ceo_style',
[
'label' => esc_html__( 'Ceo Style', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::SELECT,
'default' => '1',
'options' => [
'1' => esc_html__( 'Style One', 'pyloncore' ),
'2' => esc_html__( 'Style Two', 'pyloncore' ),
],
]
);
$this->add_control(
'pylon_company_ceo_background_image',
[
'label' => esc_html__( 'Choose Image', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [
'url' => \Elementor\Utils::get_placeholder_image_src(),
],
]
);
$this->add_control(
'pylon_company_ceo_image',
[
'label' => esc_html__( 'Choose Image', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [
'url' => \Elementor\Utils::get_placeholder_image_src(),
],
'condition' => [
'pylon_company_ceo_style' => '1',
],
]
);
$this->add_control(
'pylon_company_ceo_icon',
[
'label' => esc_html__( 'Ceo Icon', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::ICONS,
'default' => [
'value' => 'pylon-two-icon-check-circle',
'library' => 'fa-solid',
],
'condition' => [
'pylon_company_ceo_style' => '2',
],
]
);
$this->add_responsive_control(
'pylon_company_ceo_content_alingment',
[
'label' => esc_html__( 'Alignment', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::CHOOSE,
'options' => [
'left' => [
'title' => esc_html__( 'Left', 'pyloncore' ),
'icon' => 'eicon-text-align-left',
],
'center' => [
'title' => esc_html__( 'Center', 'pyloncore' ),
'icon' => 'eicon-text-align-center',
],
'right' => [
'title' => esc_html__( 'Right', 'pyloncore' ),
'icon' => 'eicon-text-align-right',
],
],
'default' => 'left',
'toggle' => true,
'selectors' => [
'{{WRAPPER}} .trusted-company-two__author, {{WRAPPER}} .introduction-one__caption' => 'text-align: {{VALUE}}',
],
]
);
$this->add_control(
'pylon_company_ceo_widget_title',
[
'label' => esc_html__( 'Title', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => esc_html__( 'Vernon Ray', 'pyloncore' ),
'placeholder' => esc_html__( 'Type your title here', 'pyloncore' ),
]
);
$this->add_control(
'pylon_company_ceo_widget_title1',
[
'label' => esc_html__( 'Titlee', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => esc_html__( 'CEO', 'pyloncore' ),
'placeholder' => esc_html__( '', 'pyloncore' ),
'condition' => [
'pylon_company_ceo_style' => '1',
],
]
);
$this->add_control(
'pylon_company_ceo_item_description',
[
'label' => esc_html__( 'Description', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'rows' => 5,
'default' => esc_html__( 'I was very impresed by the company
service lore ipsum is simply free text used by copy typing refreshing.', 'pyloncore' ),
'placeholder' => esc_html__( 'Type your description here', 'pyloncore' ),
]
);
$this->end_controls_section();
$this->start_controls_section(
'pylon_company_ceo_background_style',
[
'label' => esc_html__( 'background', 'pyloncore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_responsive_control(
'pylon_company_ceo__Widget_background_color',
[
'label' => esc_html__( 'Color', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .trusted-company-two__author' => 'background: {{VALUE}}',
],
]
);
$this->end_controls_section();
$this->start_controls_section(
'pylon_company_ceo_title_style',
[
'label' => esc_html__( 'Title', 'pyloncore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_responsive_control(
'pylon_company_ceo__Widget_title_color',
[
'label' => esc_html__( 'Color', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .introduction-one__caption__content .trusted-company-two__author__name,{{WRAPPER}} .introduction-one__caption__title' => 'color: {{VALUE}}',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'pylon_company_ceo__Widget_title_typography',
'selector' => '{{WRAPPER}} .introduction-one__caption__content .trusted-company-two__author__name,{{WRAPPER}} .introduction-one__caption__title',
]
);
$this->end_controls_section();
$this->start_controls_section(
'pylon_company_ceo_designation_style',
[
'label' => esc_html__( 'designation', 'pyloncore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_responsive_control(
'pylon_company_ceo__Widget_designation_color',
[
'label' => esc_html__( ' Designation Color', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .trusted-company-two__author__designation' => 'color: {{VALUE}}',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'pylon_company_ceo__Widget_designation_typography',
'selector' => '{{WRAPPER}} .trusted-company-two__author__designation',
]
);
$this->end_controls_section();
$this->start_controls_section(
'pylon_company_ceo_desc_style',
[
'label' => esc_html__( 'Desc', 'pyloncore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_responsive_control(
'pylon_company_ceo__Widget_description_color',
[
'label' => esc_html__( 'Color', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .trusted-company-two__author__text,{{WRAPPER}} .introduction-one__caption__text' => 'color: {{VALUE}}',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'pylon_company_ceo_widget_description_typography',
'selector' => '{{WRAPPER}} .trusted-company-two__author__text,{{WRAPPER}} .introduction-one__caption__text',
]
);
$this->end_controls_section();
}
protected function render() {
$settings = $this->get_settings_for_display();
if($settings['pylon_company_ceo_style'] == '1'){?>
widgets_manager->register_widget_type( new Pylon_Company_CEO_Widget );