File: /home/retoti4c1e1s/www/izzlongevity.com/wp-content/plugins/noile-addon/includes/Widgets/Header.php
<?php
namespace Layerdrops\Noile\Widgets;
class Header extends \Elementor\Widget_Base
{
public function get_name()
{
return 'noile-header';
}
public function get_title()
{
return __('Header', 'noile-addon');
}
public function get_icon()
{
return 'eicon-cogs';
}
public function get_categories()
{
return ['noile-category'];
}
protected function register_controls()
{
$this->start_controls_section(
'layout_section',
[
'label' => __('Layout Type', 'noile-addon'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
]
);
$this->add_control(
'layout_type',
[
'label' => __('Select Layout', 'noile-addon'),
'type' => \Elementor\Controls_Manager::SELECT2,
'default' => 'layout_one',
'options' => [
'layout_one' => __('Layout One', 'noile-addon'),
'layout_two' => __('Layout Two', 'noile-addon'),
'layout_three' => __('Layout Three', 'noile-addon'),
]
]
);
$this->end_controls_section();
include noile_get_elementor_option('header-option.php');
//General style
$this->start_controls_section(
'general_style',
[
'label' => esc_html__('Style Options', 'noile-addon'),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
]
);
noile_elementor_link_style_options($this, 'Menu', '{{WRAPPER}} .main-menu .main-menu__list > li > a ,{{WRAPPER}} .main-menu .main-menu__list > li > ul > li > a','{{WRAPPER}} .main-menu .main-menu__list li a',['layout_one', 'layout_two', 'layout_three']);
noile_elementor_link_style_options($this, 'Top Bar Menu', '{{WRAPPER}} .topbar__page-link','{{WRAPPER}} .topbar__page-link:hover', ['layout_one', 'layout_two', 'layout_three']);
noile_elementor_button_style_options($this, 'Social Icon', '{{WRAPPER}} .social-list .social-link ,{{WRAPPER}} .header-two__social-link','{{WRAPPER}} .social-list .social-link:hover, {{WRAPPER}} .header-two__social-link:hover', ['layout_one', 'layout_two', 'layout_three']);
noile_elementor_button_style_options($this, 'Button', '{{WRAPPER}} .header__btn,{{WRAPPER}} .main-menu-three__btn','{{WRAPPER}} .header__btn::after,{{WRAPPER}} .noile-btn::after', ['layout_one', 'layout_three']);
$this->end_controls_section();
}
protected function render()
{
$settings = $this->get_settings_for_display();
include noile_get_template('header.php');
}
}