/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/button.php (8489B)
__( 'Normal Button', 'engitech' ), 'btn-icon' => __( 'Button With Icon', 'engitech' ), ]; } public static function get_button_color() { return [ 'primary' => __( 'Primary Color', 'engitech' ), 'second' => __( 'Second Color', 'engitech' ), 'arrow' => __( 'With Arrow', 'engitech' ), ]; } protected function _register_controls() { //Content Service box $this->start_controls_section( 'button_section', [ 'label' => __( 'Button', 'engitech' ), ] ); $this->add_control( 'btn_style', [ 'label' => __( 'Style', 'engitech' ), 'type' => Controls_Manager::SELECT, 'default' => 'primary', 'options' => self::get_button_color(), 'style_transfer' => true, ] ); $this->add_responsive_control( 'align', [ 'label' => __( 'Alignment', 'engitech' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => __( 'Left', 'engitech' ), 'icon' => 'eicon-text-align-left', ], 'center' => [ 'title' => __( 'Center', 'engitech' ), 'icon' => 'eicon-text-align-center', ], 'right' => [ 'title' => __( 'Right', 'engitech' ), 'icon' => 'eicon-text-align-right', ], ], 'prefix_class' => 'elementor%s-align-', 'default' => '', ] ); $this->add_control( 'text', [ 'label' => __( 'Text', 'engitech' ), 'type' => Controls_Manager::TEXTAREA, 'default' => __( 'Click here', 'engitech' ), ] ); $this->add_control( 'link', [ 'label' => __( 'Link', 'engitech' ), 'type' => Controls_Manager::URL, 'placeholder' => __( 'https://your-link.com', 'engitech' ), 'default' => [ 'url' => '#', ], ] ); $this->end_controls_section(); //Style $this->start_controls_section( 'style_section', [ 'label' => __( 'General', 'engitech' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'button_padding', [ 'label' => __( 'Padding', 'engitech' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px' ], 'selectors' => [ '{{WRAPPER}} .octf-btn' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'button_typography', 'selector' => '{{WRAPPER}} .octf-btn', ] ); //Hover $this->start_controls_tabs( 'tabs_button_style' ); $this->start_controls_tab( 'tab_button_normal', [ 'label' => __( 'Normal', 'engitech' ), ] ); $this->add_control( 'button_text_color', [ 'label' => __( 'Text Color', 'engitech' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .btn-details, {{WRAPPER}} .octf-btn' => 'fill: {{VALUE}}; color: {{VALUE}};', ], ] ); $this->add_control( 'background_color', [ 'label' => __( 'Background Color', 'engitech' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .octf-btn' => 'background-color: {{VALUE}};', ], 'condition' => [ 'btn_style!' => 'arrow', ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'button_border', 'selector' => '{{WRAPPER}} .octf-btn', 'condition' => [ 'btn_style!' => 'arrow', ] ] ); $this->add_responsive_control( 'button_radius', [ 'label' => __( 'Border Radius', 'engitech' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%' ], 'selectors' => [ '{{WRAPPER}} .octf-btn' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'condition' => [ 'btn_style!' => 'arrow', ] ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_button_hover', [ 'label' => __( 'Hover', 'engitech' ), ] ); $this->add_control( 'hover_color', [ 'label' => __( 'Text Color', 'engitech' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .btn-details:hover, {{WRAPPER}} .octf-btn:hover, {{WRAPPER}} .octf-btn:focus' => 'color: {{VALUE}};', ], ] ); $this->add_control( 'button_background_hover_color', [ 'label' => __( 'Background Color', 'engitech' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .octf-btn:hover, {{WRAPPER}} .octf-btn:focus' => 'background-color: {{VALUE}};', ], 'condition' => [ 'btn_style!' => 'arrow', ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'button_hover_border', 'selector' => '{{WRAPPER}} .octf-btn:hover', 'condition' => [ 'btn_style!' => 'arrow', ] ] ); $this->add_responsive_control( 'button_hover_radius', [ 'label' => __( 'Border Radius', 'engitech' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%' ], 'selectors' => [ '{{WRAPPER}} .octf-btn:hover' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'condition' => [ 'btn_style!' => 'arrow', ] ] ); $this->add_control( 'hover_animation', [ 'label' => __( 'Hover Animation', 'engitech' ), 'type' => Controls_Manager::HOVER_ANIMATION, 'condition' => [ 'btn_style!' => 'arrow', ] ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); } protected function render() { $settings = $this->get_settings_for_display(); if ( ! empty( $settings['link']['url'] ) ) { $this->add_render_attribute( 'button', 'href', $settings['link']['url'] ); if ( $settings['link']['is_external'] ) { $this->add_render_attribute( 'button', 'target', '_blank' ); } if ( $settings['link']['nofollow'] ) { $this->add_render_attribute( 'button', 'rel', 'nofollow' ); } } if( $settings['btn_style'] != 'arrow' ){ $this->add_render_attribute( 'button', 'class', 'octf-btn' ); $this->add_render_attribute( 'button', 'class', 'octf-btn-'.$settings['btn_style'] ); }else{ $this->add_render_attribute( 'button', 'class', 'btn-details' ); } if ( $settings['hover_animation'] ) { $this->add_render_attribute( 'button', 'class', 'elementor-animation-' . $settings['hover_animation'] ); } ?>
get_render_attribute_string( 'button' ); ?>>
widgets_manager->register_widget_type( new Engitech_Button() );