/home/techb158/public_html/wp-content/themes/engitech/inc/backend/elementor-widgets/header
Edit: /home/techb158/public_html/wp-content/themes/engitech/inc/backend/elementor-widgets/header/logo.php (3113B)
start_controls_section(
'content_section',
[
'label' => __( 'Logo', '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}} .the-logo' => 'text-align: {{VALUE}};',
],
]
);
$this->add_control(
'logo_image',
[
'label' => esc_html__( 'Image', 'engitech' ),
'type' => Controls_Manager::MEDIA,
'default' => [
'url' => get_template_directory_uri().'/images/logo.svg',
],
]
);
$this->add_responsive_control(
'logo_width',
[
'label' => __( 'Width', 'engitech' ),
'type' => Controls_Manager::SLIDER,
'range' => [
'px' => [
'min' => 0,
'max' => 500,
],
],
'selectors' => [
'{{WRAPPER}} .the-logo img' => 'width: {{SIZE}}{{UNIT}};',
],
]
);
$this->end_controls_section();
}
protected function render() {
$settings = $this->get_settings_for_display();
?>
widgets_manager->register_widget_type( new Engitech_Logo() );