/home/techb158/public_html/wp-content/themes/engitech/inc/backend/elementor-widgets
NameSizeModeActions
header/-0777rm
accordions.php98920666editdlrm
button.php84890666editdlrm
contact-form7.php87290666editdlrm
contact-info.php91630666editdlrm
countdown.php78770666editdlrm
counter-2.php98340666editdlrm
counter-3.php76030666editdlrm
counter.php75040666editdlrm
domain-checker.php75040666editdlrm
domain-list.php101050666editdlrm
flip-box.php87520666editdlrm
heading.php66230666editdlrm
icon-box-1.php100380666editdlrm
icon-box-2.php139980666editdlrm
icon-box-3.php123240666editdlrm
image-box.php42650666editdlrm
image-carousel.php98250666editdlrm
industries-carousel.php129050666editdlrm
message-box.php82210666editdlrm
number-box.php118440666editdlrm
portfolio-carousel.php152090666editdlrm
portfolio-filter.php160640666editdlrm
post-carousel.php120040666editdlrm
post-grid.php102680666editdlrm
pricing-table-2.php152460666editdlrm
pricing-table-3.php143530666editdlrm
pricing-table.php177000666editdlrm
progress-bars.php85350666editdlrm
service-box-1.php116430666editdlrm
service-box-2.php137500666editdlrm
social-share.php107120666editdlrm
support-box.php118360666editdlrm
switcher.php51820666editdlrm
tab-titles-2.php53900666editdlrm
tab-titles.php86350666editdlrm
tabs.php75050666editdlrm
team.php122650666editdlrm
tech-box.php101300666editdlrm
testimonial-carousel-2.php157120666editdlrm
testimonial-carousel-3.php105480666editdlrm
testimonial-carousel.php142410666editdlrm
video-button.php79870666editdlrm
widgets.php39880666editdlrm
Edit: /home/techb158/public_html/wp-content/themes/engitech/inc/backend/elementor-widgets/support-box.php (11836B)
start_controls_section( 'content_section', [ 'label' => __( 'Support Box', 'engitech' ), ] ); $this->add_responsive_control( 'align', [ 'label' => __( 'Alignment', 'engitech' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => __( 'Left', 'engitech' ), 'icon' => 'fa fa-align-left', ], 'center' => [ 'title' => __( 'Center', 'engitech' ), 'icon' => 'fa fa-align-center', ], 'right' => [ 'title' => __( 'Right', 'engitech' ), 'icon' => 'fa fa-align-right', ] ], 'selectors' => [ '{{WRAPPER}}' => 'text-align: {{VALUE}};', ], ] ); $this->add_control( 'icon_font', [ 'label' => __( 'Icon', 'engitech' ), 'type' => Controls_Manager::ICONS, 'label_block' => true, 'fa4compatibility' => 'icon', 'default' => [ 'value' => 'fas fa-star', 'library' => 'fa-solid', ], ] ); $this->add_control( 'title', [ 'label' => __( 'Title', 'engitech' ), 'type' => Controls_Manager::TEXT, 'default' => __( 'Content Marketing', 'engitech' ), 'label_block' => true, ] ); $this->add_control( 'des', [ 'label' => 'Description', 'type' => Controls_Manager::TEXTAREA, 'default' => __( 'You can provide the answers that your potential customers are trying to find, so you can become the industry.', 'engitech' ), ] ); $this->add_control( 'link', [ 'label' => __( 'Link', 'engitech' ), 'type' => Controls_Manager::URL, 'placeholder' => __( 'https://your-link.com', 'engitech' ), ] ); $this->add_control( 'btn_text', [ 'label' => __( 'Text Link', 'engitech' ), 'type' => Controls_Manager::TEXT, 'default' => __( 'Go to help page', 'engitech' ), 'label_block' => true, ] ); $this->end_controls_section(); //Style $this->start_controls_section( 'style_box_section', [ 'label' => __( 'General', 'engitech' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'bg_box', [ 'label' => __( 'Background Box', 'engitech' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .support-box-s2' => 'background: {{VALUE}};', ], ] ); $this->add_responsive_control( 'box_padding', [ 'label' => 'Padding Box', 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .support-box-s2' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' => 'before', ] ); $this->add_control( 'box_radius', [ 'label' => __( 'Border Radius', 'engitech' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%' ], 'selectors' => [ '{{WRAPPER}} .support-box-s2' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' => 'before', ] ); //Normal/Hover $this->start_controls_tabs( 'tabs_button_style' ); $this->start_controls_tab( 'tab_box_normal', [ 'label' => __( 'Normal', 'engitech' ), ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'box_border', 'selector' => '{{WRAPPER}} .support-box-s2', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'box_box_shadow', 'selector' => '{{WRAPPER}} .support-box-s2', ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_box_hover', [ 'label' => __( 'Hover', 'engitech' ), ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'hover_box_border', 'selector' => '{{WRAPPER}} .support-box-s2:hover', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'hover_box_shadow', 'selector' => '{{WRAPPER}} .support-box-s2:hover', ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); //Icon $this->start_controls_section( 'style_icon_section', [ 'label' => __( 'Icon', 'engitech' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'icon_color', [ 'label' => __( 'Color', 'engitech' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .icon-main i' => 'color: {{VALUE}};', '{{WRAPPER}} .icon-main svg' => 'fill: {{VALUE}};', ], ] ); $this->add_responsive_control( 'icon_size', [ 'label' => __( 'Size', 'engitech' ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 200, ], ], 'selectors' => [ '{{WRAPPER}} .icon-main i' => 'font-size: {{SIZE}}{{UNIT}};', '{{WRAPPER}} .icon-main svg' => 'width: {{SIZE}}{{UNIT}};' ], ] ); $this->add_responsive_control( 'icon_space', [ 'label' => __( 'Spacing', 'engitech' ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .icon-main' => 'margin-bottom: {{SIZE}}{{UNIT}};', ], ] ); $this->end_controls_section(); $this->start_controls_section( 'style_content_section', [ 'label' => __( 'Content', 'engitech' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); //Title $this->add_control( 'heading_title', [ 'label' => __( 'Title', 'engitech' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', ] ); $this->add_responsive_control( 'title_space', [ 'label' => __( 'Spacing', 'engitech' ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .support-box-s2 h5' => 'margin-bottom: {{SIZE}}{{UNIT}};', ], ] ); $this->add_control( 'title_color', [ 'label' => __( 'Color', 'engitech' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .support-box-s2 h5, {{WRAPPER}} .support-box-s2 h5 a' => 'color: {{VALUE}};', ] ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'title_typography', 'selector' => '{{WRAPPER}} .support-box-s2 h5', ] ); //Description $this->add_control( 'heading_des', [ 'label' => __( 'Description', 'engitech' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', ] ); $this->add_responsive_control( 'des_space', [ 'label' => __( 'Spacing', 'engitech' ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .support-box-s2 p' => 'margin-bottom: {{SIZE}}{{UNIT}};', ], ] ); $this->add_control( 'des_color', [ 'label' => __( 'Color', 'engitech' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .support-box-s2 p' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'des_typography', 'selector' => '{{WRAPPER}} .support-box-s2 p', ] ); //Button $this->add_control( 'heading_btn', [ 'label' => __( 'Button', 'engitech' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'btn_typography', 'selector' => '{{WRAPPER}} .support-box-s2 .octf-btn', ] ); $this->add_control( 'btn_bg_color', [ 'label' => __( 'Background Color', 'engitech' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .support-box-s2 .octf-btn' => 'background: {{VALUE}};', '{{WRAPPER}} .octf-btn i' => 'color: {{VALUE}};', ], ] ); $this->add_control( 'btn_color', [ 'label' => __( 'Color', 'engitech' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .support-box-s2 .octf-btn' => 'color: {{VALUE}}; border-color: {{VALUE}};', '{{WRAPPER}} .support-box-s2 .octf-btn:hover' => 'background: {{VALUE}};', ], ] ); $this->add_control( 'btn_hcolor', [ 'label' => __( 'Hover Color', 'engitech' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .support-box-s2 .octf-btn:hover' => 'color: {{VALUE}};', ], ] ); $this->end_controls_section(); } protected function render() { $settings = $this->get_settings_for_display(); $title = $settings['title']; if ( ! empty( $settings['link']['url'] ) ) { $this->add_render_attribute( 'supportbox', 'href', $settings['link']['url'] ); if ( $settings['link']['is_external'] ) { $this->add_render_attribute( 'supportbox', 'target', '_blank' ); } if ( $settings['link']['nofollow'] ) { $this->add_render_attribute( 'supportbox', 'rel', 'nofollow' ); } if( !$settings['btn_text'] ) { $title = 'get_render_attribute_string( 'supportbox' ).'>'. $settings['title'] . ''; }else{ $title = $settings['title']; } $this->add_render_attribute( 'supportbox', 'class', 'octf-btn' ); } ?>
'true' ] ); } ?>

get_render_attribute_string( 'supportbox' ). '>' .$settings['btn_text']. ''; } ?>
widgets_manager->register_widget_type( new Engitech_SupportBox2() );