/
home
/
techb158
/
l2hypotheques.com
/
wp-content
/
plugins
/
pyloncore
/
elementor
/
widgets
/
/home/techb158/l2hypotheques.com/wp-content/plugins/pyloncore/elementor/widgets
mkdir
upload
Name
Size
Mode
Actions
about-widget.php
28968
0644
edit
dl
rm
accordion-widget.php
22046
0644
edit
dl
rm
animation-shape.php
6751
0644
edit
dl
rm
animation-shape1.php
6554
0644
edit
dl
rm
banner-widget.php
20414
0644
edit
dl
rm
blog-widget.php
54710
0644
edit
dl
rm
button-widget.php
13626
0644
edit
dl
rm
call-to-action-widget.php
30409
0644
edit
dl
rm
client-logo-widget.php
14507
0644
edit
dl
rm
company-ceo.php
11289
0644
edit
dl
rm
contact-static-info-widget.php
22925
0644
edit
dl
rm
content-list-widget.php
29429
0644
edit
dl
rm
counter-box.php
16659
0644
edit
dl
rm
credit-card-widget.php
25564
0644
edit
dl
rm
custom-ripple-widget.php
2311
0644
edit
dl
rm
featuredbox-widget.php
43339
0644
edit
dl
rm
funfact-widget.php
26527
0644
edit
dl
rm
iconbox-widget.php
42282
0644
edit
dl
rm
image-float-widget.php
4050
0644
edit
dl
rm
image-widget.php
51246
0644
edit
dl
rm
image-with-title-widget.php
13185
0644
edit
dl
rm
loan-calculator-widget.php
56730
0644
edit
dl
rm
loan-combined-calculator-widget.php
75266
0644
edit
dl
rm
loan-eligibility-widget.php
24342
0644
edit
dl
rm
popup-widget.php
17573
0644
edit
dl
rm
progress-widget.php
15577
0644
edit
dl
rm
responsive-image-widget.php
1672
0644
edit
dl
rm
service-widget.php
60028
0644
edit
dl
rm
slider-widget.php
49682
0644
edit
dl
rm
slider2-widget.php
37782
0644
edit
dl
rm
team-two-widget.php
19602
0644
edit
dl
rm
team-widget.php
31622
0644
edit
dl
rm
testimonial-widget.php
55646
0644
edit
dl
rm
title-widget.php
28910
0644
edit
dl
rm
total-loan-calculator-widget.php
54789
0644
edit
dl
rm
why-choose-us-widget.php
10166
0644
edit
dl
rm
Edit:
/home/techb158/l2hypotheques.com/wp-content/plugins/pyloncore/elementor/widgets/company-ceo.php
(11289B)
<?php namespace Elementor; if (!defined('ABSPATH')) { exit; // Exit if accessed directly } class Pylon_Company_CEO_Widget extends Widget_Base { public function get_name() { return 'pylon_company_ceo_Widget'; } public function get_title() { return esc_html__( 'Pylon Company CEO', 'pyloncore' ); } public function get_icon() { return 'eicon-pojome'; } public function get_categories() { return ['pylon']; } protected function register_controls() { $this->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'){?> <div class="trusted-company-two__author" style="background-image: url(<?php echo esc_url(( $settings['pylon_company_ceo_background_image']['url'] )); ?>);"> <div class="trusted-company-two__author__image"> <img src="<?php echo esc_url($settings['pylon_company_ceo_image']['url'])?>" alt=""> </div><!-- /.trusted-company-two__author__image --> <div class="trusted-company-two__author__content"> <h3 class="trusted-company-two__author__name"><?php echo esc_html($settings['pylon_company_ceo_widget_title']);?></h3> <!-- /.trusted-company-two__author__name --> <p class="trusted-company-two__author__designation"><?php echo esc_html($settings['pylon_company_ceo_widget_title1']);?></p> <!-- /.trusted-company-two__author__designation --> <p class="trusted-company-two__author__text"><?php echo esc_html($settings['pylon_company_ceo_item_description']);?></p> <!-- /.trusted-company-two__author__text --> </div><!-- /.trusted-company-two__author__content --> </div> <?php }elseif ($settings['pylon_company_ceo_style'] == '2') { ?> <div class="introduction-one__caption" style="background-image: url(<?php echo esc_url(( $settings['pylon_company_ceo_background_image']['url'] )); ?>);"> <div class="introduction-one__caption__icon"> <i class="<?php echo esc_attr($settings['pylon_company_ceo_icon']['value']); ?>"></i> </div><!-- /.introduction-one__caption__icon --> <div class="introduction-one__caption__content"> <h3 class="introduction-one__caption__title"><?php echo esc_html($settings['pylon_company_ceo_widget_title']);?></h3> <!-- /.introduction-one__caption__title --> <p class="introduction-one__caption__text"><?php echo esc_html($settings['pylon_company_ceo_item_description']);?></p> <!-- /.introduction-one__caption__text --> </div><!-- /.introduction-one__caption__content --> </div><!-- /.introduction-one__caption --> <?php } ?> <?php } } Plugin::instance()->widgets_manager->register_widget_type( new Pylon_Company_CEO_Widget );
Save
cmd:
run