/home/vianto5/ceibaresidencial.mx/wp-content/themes/moore_old/elementor/widgets
Edit: /home/vianto5/ceibaresidencial.mx/wp-content/themes/moore_old/elementor/widgets/menu-footer.php (6157B)
start_controls_section(
'section_menu',
[
'label' => esc_html__( 'Menu', 'moore' ),
]
);
$menus = \wp_get_nav_menus();
$list_menu = array();
foreach ($menus as $menu) {
$list_menu[$menu->slug] = $menu->name;
}
$this->add_control(
'menu_slug',
[
'label' => esc_html__( 'Select Menu', 'moore' ),
'type' => Controls_Manager::SELECT,
'options' => $list_menu,
'default' => '',
]
);
$this->end_controls_section();
/* End Menu Content */
/* Begin Menu Style */
$this->start_controls_section(
'menu_style',
[
'label' => esc_html__( 'Menu', 'moore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_responsive_control(
'menu_display',
[
'label' => esc_html__( 'Display', 'moore' ),
'type' => \Elementor\Controls_Manager::CHOOSE,
'devices' => [ 'desktop', 'tablet', 'mobile' ],
'options' => [
'inline-block' => [
'title' => esc_html__( 'Inline Block', 'moore' ),
'icon' => ' eicon-v-align-bottom',
],
'list-item' => [
'title' => esc_html__( 'List Item', 'moore' ),
'icon' => ' eicon-h-align-stretch',
],
],
'selectors' => [
'{{WRAPPER}} .ova-menu-footer .menu li' => 'display: {{VALUE}};',
],
]
);
$this->add_control(
'menu_bg',
[
'label' => esc_html__( 'Background', 'moore' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .ova-menu-footer .menu' => 'background-color: {{VALUE}}',
],
]
);
$this->start_controls_tabs( 'tabs_title_style' );
$this->start_controls_tab(
'tab_text_normal',
[
'label' => esc_html__( 'Normal', 'moore' ),
]
);
$this->add_control(
'menu_color_normal',
[
'label' => esc_html__( 'Color', 'moore' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .ova-menu-footer .menu li > a' => 'color: {{VALUE}}',
],
]
);
$this->end_controls_tab();
$this->start_controls_tab(
'tab_text_hover',
[
'label' => esc_html__( 'Hover', 'moore' ),
]
);
$this->add_control(
'menu_color_hover',
[
'label' => esc_html__( 'Color', 'moore' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .ova-menu-footer .menu li:hover > a' => 'color: {{VALUE}}',
],
]
);
$this->end_controls_tab();
$this->end_controls_tabs();
$this->add_responsive_control(
'text_margin',
[
'label' => esc_html__( 'Margin', 'moore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .ova-menu-footer .menu li' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'text_padding',
[
'label' => esc_html__( 'Padding', 'moore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .ova-menu-footer .menu li' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_group_control(
Group_Control_Typography::get_type(),
[
'name' => 'text_typography',
'selector' => '{{WRAPPER}} .ova-menu-footer .menu li a',
]
);
$this->add_responsive_control(
'align',
[
'label' => esc_html__( 'Alignment', 'moore' ),
'type' => Controls_Manager::CHOOSE,
'options' => [
'left' => [
'title' => esc_html__( 'Left', 'moore' ),
'icon' => 'eicon-text-align-left',
],
'center' => [
'title' => esc_html__( 'Center', 'moore' ),
'icon' => 'eicon-text-align-center',
],
'right' => [
'title' => esc_html__( 'Right', 'moore' ),
'icon' => 'eicon-text-align-right',
],
],
'selectors' => [
'{{WRAPPER}} .ova-menu-footer .menu' => 'text-align: {{VALUE}};',
],
'default' => 'left',
]
);
$this->end_controls_section();
/* End Menu Style */
}
// Render Template Here
protected function render() {
$settings = $this->get_settings();
$menu_slug = $settings['menu_slug'];
?>
register( new Moore_Elementor_Menu_Footer() );