/home/techb158/l2hypotheques.com/wp-content/plugins/pyloncore/elementor/widgets
Edit: /home/techb158/l2hypotheques.com/wp-content/plugins/pyloncore/elementor/widgets/title-widget.php (28910B)
start_controls_section(
'pylon_title_options',
[
'label' => esc_html__( 'Pylon Title', 'pyloncore' ),
'tab' => Controls_Manager::TAB_CONTENT,
]
);
$this->add_control(
'pylon_title_style',
[
'label' => esc_html__( 'Box Style', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::SELECT,
'default' => '1',
'options' => [
'1' => esc_html__( 'Style One', 'pyloncore' ),
'2' => esc_html__( 'Style Two', 'pyloncore' ),
'3' => esc_html__( 'Style three', 'pyloncore' ),
],
]
);
$this->add_control(
'pylon_title_small_title_enable',
[
'label' => esc_html__( 'Show Title', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::SWITCHER,
'label_on' => esc_html__( 'Show', 'pyloncore' ),
'label_off' => esc_html__( 'Hide', 'pyloncore' ),
'return_value' => 'yes',
'default' => 'yes',
'condition' => [
'pylon_title_style' => '2',
],
]
);
$this->add_control(
'pylon_title_small_title_label',
[
'label' => esc_html__( 'Small Title Icon', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => esc_html__( '//', 'pyloncore' ),
'label_block' => true,
'condition' => [
'pylon_title_style' => '2',
'pylon_title_small_title_enable' =>'yes',
],
]
);
$this->add_control(
'pylon_title_small_title',
[
'label' => esc_html__( 'Small Title', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => esc_html__( 'Company Introductions', 'pyloncore' ),
'label_block' => true,
]
);
$this->add_control(
'pylon_title_title',
[
'label' => esc_html__( 'Title', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'default' => esc_html__( 'Our Loans will Fill Your Dreams', 'pyloncore' ),
]
);
$this->add_control(
'pylon_title_title_tag',
[
'label' => esc_html__( 'Select Title Tag', 'pyloncore' ),
'type' => Controls_Manager::SELECT,
'default' => 'h2',
'options' => [
'h1' => esc_html__( 'H1', 'pyloncore' ),
'h2' => esc_html__( 'H2', 'pyloncore' ),
'h3' => esc_html__( 'H3', 'pyloncore' ),
'h4' => esc_html__( 'H4', 'pyloncore' ),
'h5' => esc_html__( 'H5', 'pyloncore' ),
'h6' => esc_html__( 'H6', 'pyloncore' ),
'span' => esc_html__( 'Span', 'pyloncore' ),
'p' => esc_html__( 'P', 'pyloncore' ),
'div' => esc_html__( 'Div', 'pyloncore' ),
],
'condition' => [
'pylon_title_style' => '1',
],
]
);
$this->add_control(
'pylon_title_dec',
[
'label' => esc_html__( 'Description', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::WYSIWYG,
'default' => esc_html__( 'There are many variations of passages of lorem ipsum available the majority have suffered alteration in some form by injected humour. Duis aute irure dolor lipsum is simply free text available in the local markets in reprehenderit.', 'pyloncore' ),
'condition' => [
'pylon_title_style' => ['1'],
],
]
);
$this->add_control(
'pylon_title_style_three_dec_enable',
[
'label' => esc_html__( 'Show Description', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::SWITCHER,
'label_on' => esc_html__( 'Show', 'pyloncore' ),
'label_off' => esc_html__( 'Hide', 'pyloncore' ),
'return_value' => 'yes',
'default' => 'no',
'condition' => [
'pylon_title_style' => ['3'],
],
]
);
$this->add_control(
'pylon_title_style_three_dec',
[
'label' => esc_html__( 'Description', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::WYSIWYG,
'default' => esc_html__( 'Pylon provide you easy and secure loan with fdlow interest rate and prfdovide different kind of credit card like silver, gold, platinum and per day interest loan and personal, home, gold, wedding, education.', 'pyloncore' ),
'condition' => [
'pylon_title_style' => '3',
'pylon_title_style_three_dec_enable'=>'yes',
],
]
);
$this->add_control(
'pylon_title_btn_enable',
[
'label' => esc_html__( 'Enable Button', 'pyloncore' ),
'type' => Controls_Manager::SWITCHER,
'label_on' => esc_html__( 'On', 'pyloncore' ),
'label_off' => esc_html__( 'Off', 'pyloncore' ),
'return_value' => 'yes',
'default' => 'no',
'label_block' => true,
'condition' => [
'pylon_title_style' => '1',
],
]
);
$this->add_control(
'pylon_title_btn_select',
[
'label' => esc_html__( 'Select link Option', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::SELECT,
'default' => 'extranal',
'options' => [
'extranal' => esc_html__( 'Extranal', 'pyloncore' ),
'page' => esc_html__( 'Page', 'pyloncore' ),
],
'condition' => [
'pylon_title_btn_enable' => 'yes',
'pylon_title_style' => '1',
],
]
);
$this->add_control(
'pylon_title_link_extranal',
[
'label' => esc_html__( 'Link', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::URL,
'placeholder' => esc_html__( 'https://your-link.com', 'pyloncore' ),
'show_external' => true,
'label_block' => true,
'default' => [
'url' => '',
'is_external' => true,
'nofollow' => true,
],
'condition' => [
'pylon_title_btn_enable' => 'yes',
'pylon_title_btn_select' => 'extranal',
'pylon_title_style' => '1',
],
]
);
$this->add_control(
'pylon_title_btn_page',
[
'label' => esc_html__( 'Select link Option', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::SELECT,
'options' => pylon_page_list(),
'label_block' => true,
'condition' => [
'pylon_title_btn_enable' => 'yes',
'pylon_title_btn_select' => 'page',
'pylon_title_style' => '1',
],
]
);
$this->add_control(
'pylon_title_btn_label',
[
'label' => esc_html__( 'Button label', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => esc_html__( 'Discover More', 'pyloncore' ),
'label_block' => true,
'condition' => [
'pylon_title_btn_enable' => 'yes',
'pylon_title_style' => '1',
],
]
);
$this->end_controls_section();
$this->start_controls_section(
'pylon_title_box_styles',
[
'label' => esc_html__( 'Box', 'pyloncore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_control(
'pylon_title_box_text_align',
[
'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}} .pylon-title, {{WRAPPER}} .sec-title-three, {{WRAPPER}} .sec-title-two__tagline, {{WRAPPER}} .tagline_and_title_textalign' => 'text-align: {{VALUE}};',
],
]
);
$this->add_responsive_control(
'pylon_title_box_margin',
[
'label' => esc_html__( 'Margin', 'pyloncore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em'],
'selectors' => [
'{{WRAPPER}} .pylon-title,{{WRAPPER}} .sec-title-three' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
'separator' => 'before',
]
);
$this->add_responsive_control(
'pylon_title_box_padding',
[
'label' => esc_html__( 'Padding', 'pyloncore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em'],
'selectors' => [
'{{WRAPPER}} .pylon-title,{{WRAPPER}} .sec-title-three' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
'separator' => 'before',
]
);
$this->add_group_control(
\Elementor\Group_Control_Border::get_type(),
[
'name' => 'pylon_title_box_border',
'label' => esc_html__( 'Border', 'pyloncore' ),
'selector' => '{{WRAPPER}} .pylon-title',
]
);
$this->add_group_control(
\Elementor\Group_Control_Box_Shadow::get_type(),
[
'name' => 'pylon_title_box_shadow',
'label' => esc_html__( 'Box Shadow', 'pyloncore' ),
'selector' => '{{WRAPPER}} .pylon-title',
]
);
$this->add_group_control(
\Elementor\Group_Control_Background::get_type(),
[
'name' => 'pylon_title_box_bg',
'label' => esc_html__( 'Background', 'pyloncore' ),
'types' => ['classic', 'gradient', 'video'],
'selector' => '{{WRAPPER}} .pylon-title',
]
);
$this->add_responsive_control(
'pylon_title_box_radius',
[
'label' => esc_html__( 'Border Radius', 'pyloncore' ),
'type' => Controls_Manager::SLIDER,
'size_units' => ['px', '%'],
'range' => [
'px' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
'%' => [
'min' => 0,
'max' => 100,
],
],
'selectors' => [
'{{WRAPPER}} .pylon-title' => 'border-radius: {{SIZE}}{{UNIT}};',
],
]
);
$this->end_controls_section();
$this->start_controls_section(
'pylon_title_stitle_styles',
[
'label' => esc_html__( 'Small Title', 'pyloncore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_responsive_control(
'pylon_title_small_title_color',
[
'label' => esc_html__( 'Color', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .small-title,{{WRAPPER}} .sec-title-three .sub-title p,{{WRAPPER}} .sec-title-two__tagline' => 'color: {{VALUE}}',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'pylon_title_small_title_typo',
'label' => esc_html__( 'Typography', 'pyloncore' ),
'selector' => '{{WRAPPER}} .small-title,{{WRAPPER}} .sec-title-three .sub-title p,{{WRAPPER}} .sec-title-two__tagline',
]
);
$this->add_responsive_control(
'pylon_title_small_title_after_color',
[
'label' => esc_html__( 'Line Color', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .small-title:after' => 'background-color: {{VALUE}}',
],
]
);
$this->add_responsive_control(
'pylon_title_stitle_margin',
[
'label' => esc_html__( 'Margin', 'pyloncore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em'],
'selectors' => [
'{{WRAPPER}} .small-title,{{WRAPPER}} .sec-title-three .sub-title p,{{WRAPPER}} .sec-title-two__tagline' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
'separator' => 'before',
]
);
$this->add_responsive_control(
'pylon_title_stitle_padding',
[
'label' => esc_html__( 'Padding', 'pyloncore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em'],
'selectors' => [
'{{WRAPPER}} .small-title,{{WRAPPER}} .sec-title-three .sub-title p,{{WRAPPER}} .sec-title-two__tagline' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
'separator' => 'before',
]
);
$this->end_controls_section();
$this->start_controls_section(
'pylon_title_title_styles',
[
'label' => esc_html__( 'Title', 'pyloncore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_responsive_control(
'pylon_title_title_span_color',
[
'label' => esc_html__( 'SColor', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .introduction-one .sec-title-two__title span' => 'color: {{VALUE}}',
],
]
);
$this->add_control(
'pylon_title_hr',
[
'type' => \Elementor\Controls_Manager::DIVIDER,
]
);
$this->add_responsive_control(
'pylon_title_title_color',
[
'label' => esc_html__( 'Color', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .pylon-title .block-title .title-block,{{WRAPPER}} .sec-title-three h2,{{WRAPPER}} .sec-title-two__title' => 'color: {{VALUE}}',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'pylon_title_title_typo',
'label' => esc_html__( 'Typography', 'pyloncore' ),
'selector' => '{{WRAPPER}} .pylon-title .block-title .title-block,{{WRAPPER}} .sec-title-three h2,{{WRAPPER}} .sec-title-two__title',
]
);
$this->add_responsive_control(
'pylon_title_title_margin',
[
'label' => esc_html__( 'Margin', 'pyloncore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em'],
'default' => [
'top' => '0',
'right' => '0',
'bottom' => '50',
'left' => '0',
'isLinked' => true,
],
'selectors' => [
'{{WRAPPER}} .pylon-title .block-title,{{WRAPPER}} .sec-title-three h2,{{WRAPPER}} .sec-title-two__title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
'separator' => 'before',
]
);
$this->add_responsive_control(
'pylon_title_title_padding',
[
'label' => esc_html__( 'Padding', 'pyloncore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em'],
'selectors' => [
'{{WRAPPER}} .pylon-title .block-title .title-block,{{WRAPPER}} .sec-title-three h2,{{WRAPPER}} .sec-title-two__title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
'separator' => 'before',
]
);
$this->end_controls_section();
$this->start_controls_section(
'pylon_title_dec_styles',
[
'label' => esc_html__( 'Content', 'pyloncore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_responsive_control(
'pylon_title_dec_color',
[
'label' => esc_html__( 'Color', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .pylon-title>P' => 'color: {{VALUE}}',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'pylon_title_dec_typo',
'label' => esc_html__( 'Typography', 'pyloncore' ),
'selector' => '{{WRAPPER}} .pylon-title>P',
]
);
$this->add_responsive_control(
'pylon_title_dec_margin',
[
'label' => esc_html__( 'Margin', 'pyloncore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em'],
'selectors' => [
'{{WRAPPER}} .pylon-title>P' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
'separator' => 'before',
]
);
$this->add_responsive_control(
'pylon_title_dec_padding',
[
'label' => esc_html__( 'Padding', 'pyloncore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em'],
'selectors' => [
'{{WRAPPER}} .pylon-title>P' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
'separator' => 'before',
]
);
$this->add_control(
'pylon_title_dec_l',
[
'label' => esc_html__( 'List Item CSS', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::HEADING,
'separator' => 'before',
]
);
$this->add_responsive_control(
'pylon_title_list_color',
[
'label' => esc_html__( 'Color', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .pylon-title ul li, .pylon-title ol li' => 'color: {{VALUE}}',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'pylon_title_list_typo',
'label' => esc_html__( 'Typography', 'pyloncore' ),
'selector' => '{{WRAPPER}} .pylon-title ul li, .pylon-title ol li',
]
);
$this->add_responsive_control(
'pylon_title_list_margin',
[
'label' => esc_html__( 'Margin', 'pyloncore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em'],
'default' => [
'top' => '40',
'right' => '0',
'bottom' => '50',
'left' => '0',
'isLinked' => true,
],
'selectors' => [
'{{WRAPPER}} .pylon-title ul, .pylon-title ol' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
'separator' => 'before',
]
);
$this->add_responsive_control(
'pylon_title_list_padding',
[
'label' => esc_html__( 'Padding', 'pyloncore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em'],
'selectors' => [
'{{WRAPPER}} .pylon-title ul, .pylon-title ol' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
'separator' => 'before',
]
);
$this->add_responsive_control(
'pylon_title_list_icon',
[
'label' => esc_html__( 'Icon Color', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .pylon-title ul li:before, .pylon-title ol li:before' => 'color: {{VALUE}}',
],
]
);
$this->add_responsive_control(
'pylon_title_list_width',
[
'label' => esc_html__( 'Per List Width', 'pyloncore' ),
'type' => Controls_Manager::SLIDER,
'size_units' => ['%'],
'range' => [
'%' => [
'min' => 0,
'max' => 100,
],
],
'default' => [
'unit' => '%',
'size' => 50,
],
'selectors' => [
'{{WRAPPER}} .pylon-title ul li, .pylon-title ol li' => 'flex: 0 0 {{SIZE}}{{UNIT}};',
],
]
);
$this->end_controls_section();
}
//Render
protected function render() {
$settings = $this->get_settings_for_display();
if($settings['pylon_title_style'] == '1'){ ?>
' . esc_html( $settings['pylon_title_small_title'] ) . '';
}
if ( $settings['pylon_title_title'] ) {
echo '
<' . esc_attr( $settings['pylon_title_title_tag'] ) . ' class="title-block">' . esc_html( $settings['pylon_title_title'] ) . '' . esc_attr( $settings['pylon_title_title_tag'] ) . '>
';
}
?>
widgets_manager->register_widget_type( new Pylon_title_Widget );