/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/tabs.php (7505B)
start_controls_section( 'content_section', [ 'label' => __( 'Tabs', 'engitech' ), ] ); $repeater = new Repeater(); $repeater->add_control( 'tab_title', [ 'label' => __( 'Title & Description', 'engitech' ), 'type' => Controls_Manager::TEXT, 'default' => __( 'Tab Title', 'engitech' ), 'placeholder' => __( 'Tab Title', 'engitech' ), 'label_block' => true, ] ); $repeater->add_control( 'tab_content', [ 'label' => __( 'Content', 'engitech' ), 'default' => __( 'Tab Content', 'engitech' ), 'placeholder' => __( 'Tab Content', 'engitech' ), 'type' => Controls_Manager::WYSIWYG, 'show_label' => false, ] ); $this->add_control( 'ot_tabs', [ 'label' => __( 'Tabs Items', 'engitech' ), 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'default' => [ [ 'tab_title' => __( 'Tab #1', 'engitech' ), 'tab_content' => __( 'We help ambitious businesses like yours generate more profits by building awareness, driving web traffic, connecting with customers, and growing overall sales. Give us a call.', 'engitech' ), ], [ 'tab_title' => __( 'Tab #2', 'engitech' ), 'tab_content' => __( 'We help ambitious businesses like yours generate more profits by building awareness, driving web traffic, connecting with customers, and growing overall sales. Give us a call.', 'engitech' ), ], ], 'title_field' => '{{{ tab_title }}}', ] ); $this->end_controls_section(); //Style $this->start_controls_section( 'style_section', [ 'label' => __( 'Tabs', 'engitech' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); //Title $this->add_control( 'style_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}} .ot-tabs .tab-link' => 'margin: 0 calc({{SIZE}}{{UNIT}}/2);', '{{WRAPPER}} .ot-tabs .tabs-heading' => 'margin: 0 calc(-{{SIZE}}{{UNIT}}/2);', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'title_typography', 'selector' => '{{WRAPPER}} .ot-tabs .tab-link', 'separator' => 'before', ] ); $this->start_controls_tabs( 'tabs_title_style' ); $this->start_controls_tab( 'tab_title_normal', [ 'label' => __( 'Normal', 'engitech' ), ] ); $this->add_control( 'title_bgcolor', [ 'label' => __( 'Background', 'engitech' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .ot-tabs .tab-link:not(.current)' => 'background: {{VALUE}};', ] ] ); $this->add_control( 'title_color', [ 'label' => __( 'Color', 'engitech' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .ot-tabs .tab-link:not(.current)' => 'color: {{VALUE}};', ] ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_title_active', [ 'label' => __( 'Active/Hover', 'engitech' ), ] ); $this->add_control( 'title_bg_active', [ 'label' => __( 'Background', 'engitech' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .ot-tabs .tab-link.current, {{WRAPPER}} .ot-tabs .tab-link:hover' => 'background: {{VALUE}};', ] ] ); $this->add_control( 'title_color_active', [ 'label' => __( 'Color', 'engitech' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .ot-tabs .tab-link.current, {{WRAPPER}} .ot-tabs .tab-link:hover' => 'color: {{VALUE}};', ] ] ); $this->end_controls_tab(); $this->end_controls_tabs(); //Content $this->add_control( 'style_content', [ 'label' => __( 'Content', 'engitech' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', ] ); $this->add_control( 'content_color', [ 'label' => __( 'Color', 'engitech' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .ot-tabs .tab-content' => 'color: {{VALUE}};', ] ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'content_typography', 'selector' => '{{WRAPPER}} .ot-tabs .tab-content', ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'content_border', 'selector' => '{{WRAPPER}} .ot-tabs .tab-content', ] ); $this->add_responsive_control( 'content_padding', [ 'label' => __( 'Padding', 'engitech' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ot-tabs .tab-content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); } protected function render() { $settings = $this->get_settings_for_display(); ?>
widgets_manager->register_widget_type( new Engitech_Tabs() );