/home/vianto5/ceibaresidencial.mx/wp-content/themes/moore_old/elementor/widgets
NameSizeModeActions
apartments-masonry.php128150644editdlrm
apartments-slider.php158910644editdlrm
blog.php133660644editdlrm
box-feature.php120100644editdlrm
box-feature2.php99410644editdlrm
box-info.php84540644editdlrm
button-scrolldown.php32440644editdlrm
choice-language.php145290644editdlrm
contact-info.php122000644editdlrm
direction-slider.php100090644editdlrm
gallery-category.php110870644editdlrm
gallery-simple.php69540644editdlrm
gallery.php115840644editdlrm
header-banner.php89300644editdlrm
header-left.php64060644editdlrm
heading.php46930644editdlrm
instagram.php145030644editdlrm
logo.php81870644editdlrm
menu-canvas.php49230644editdlrm
menu-footer.php61570644editdlrm
menu-nav.php51730644editdlrm
package.php113700644editdlrm
progress.php113140644editdlrm
project-declaration.php134470644editdlrm
room-list.php188410644editdlrm
rooms-filter.php234750644editdlrm
team.php63090644editdlrm
testimonial.php177270644editdlrm
text-list.php59650644editdlrm
Edit: /home/vianto5/ceibaresidencial.mx/wp-content/themes/moore_old/elementor/widgets/choice-language.php (14529B)
start_controls_section( 'section_content', [ 'label' => esc_html__( 'Content', 'moore' ), ] ); // Add Class control $this->add_control( 'current_lang', [ 'label' => esc_html__( 'Current Language', 'moore' ), 'type' => Controls_Manager::HEADING, ] ); $this->add_control( 'type', [ 'label' => esc_html__( 'Type', 'moore' ), 'type' => Controls_Manager::SELECT, 'options' => [ 'v1' => esc_html__( 'Type 1', 'moore' ), 'v2' => esc_html__( 'Type 2', 'moore' ), ], 'default' => 'v1', ] ); $this->add_control( 'flag_title', [ 'label' => esc_html__( 'Nation', 'moore' ), 'type' => Controls_Manager::TEXT, 'default' => esc_html__( 'English', 'moore' ), ] ); $this->add_control( 'dropdown_lang', [ 'label' => esc_html__( 'Dropdown Language', 'moore' ), 'type' => Controls_Manager::HEADING, ] ); $repeater = new Repeater(); $repeater->add_control( 'flag_title_items', [ 'label' => esc_html__( 'Nation', 'moore' ), 'type' => Controls_Manager::TEXT, 'default' => 'Type your title here', ] ); $this->add_control( 'language_lists', [ 'label' => esc_html__( 'Language', 'moore' ), 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'default' => [ [ 'flag_title_items' => 'ES', ], ], ] ); $this->end_controls_section(); /* End content */ /* Begin Current Language Style */ $this->start_controls_section( 'current_language_style', [ 'label' => esc_html__( 'Current Language', 'moore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->start_controls_tabs( 'tabs_current_language_style' ); $this->start_controls_tab( 'tab_current_language_normal', [ 'label' => esc_html__( 'Normal', 'moore' ), ] ); $this->add_control( 'current_language_bg_normal', [ 'label' => esc_html__( 'Background', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .switch-lang-v1' => 'background-color: {{VALUE}};', '{{WRAPPER}} .switch-lang-v2 .current-lang' => 'background-color: {{VALUE}};', ], ] ); $this->add_control( 'current_language_color_normal', [ 'label' => esc_html__( 'Color', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .switch-lang-v1 .current-lang .lang-text' => 'color: {{VALUE}};', '{{WRAPPER}} .switch-lang-v2 .current-lang .lang-text' => 'color: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_current_language_hover', [ 'label' => esc_html__( 'Hover', 'moore' ), ] ); $this->add_control( 'current_language_bg_hover', [ 'label' => esc_html__( 'Background', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .switch-lang-v1:hover' => 'background-color: {{VALUE}};border-color: {{VALUE}};', '{{WRAPPER}} .switch-lang-v2:hover .current-lang' => 'background-color: {{VALUE}};border-color: {{VALUE}};', ], ] ); $this->add_control( 'current_language_color_hover', [ 'label' => esc_html__( 'Color', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .switch-lang-v1:hover .current-lang .lang-text' => 'color: {{VALUE}};', '{{WRAPPER}} .switch-lang-v2:hover .current-lang .lang-text' => 'color: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'current_language_typography', 'selector' => '{{WRAPPER}} .switch-lang-v1 .current-lang .lang-text', 'condition' => [ 'type' => 'v1', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'current_language_typography_v2', 'selector' => '{{WRAPPER}} .switch-lang-v2 .current-lang .lang-text', 'condition' => [ 'type' => 'v2', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'current_language_border_v2', 'selector' => '{{WRAPPER}} .switch-lang-v2 .current-lang', 'separator' => 'before', 'condition' => [ 'type' => 'v2', ], ] ); $this->add_control( 'current_language_border_radius_v2', [ 'label' => esc_html__( 'Border Radius', 'moore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%' ], 'selectors' => [ '{{WRAPPER}} .switch-lang-v2 .current-lang' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'condition' => [ 'type' => 'v2', ], ] ); $this->add_control( 'current_language_border_radius_v2_hover', [ 'label' => esc_html__( 'Border Radius Hover', 'moore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%' ], 'selectors' => [ '{{WRAPPER}} .switch-lang-v2:hover .current-lang' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'condition' => [ 'type' => 'v2', ], ] ); $this->add_responsive_control( 'content_padding', [ 'label' => esc_html__( 'Padding', 'moore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .switch-lang-v2 .current-lang' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'condition' => [ 'type' => 'v2', ], ] ); $this->end_controls_section(); /* End Current Language Style */ /* Begin Icon Style */ $this->start_controls_section( 'icon_style', [ 'label' => esc_html__( 'Icon', 'moore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->start_controls_tabs( 'tabs_icon_style' ); $this->start_controls_tab( 'tab_icon_normal', [ 'label' => esc_html__( 'Normal', 'moore' ), ] ); $this->add_control( 'icon_color_normal', [ 'label' => esc_html__( 'Color', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .switch-lang-v1 .current-lang i' => 'color: {{VALUE}};', '{{WRAPPER}} .switch-lang-v2 .current-lang i' => 'color: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_icon_hover', [ 'label' => esc_html__( 'Hover', 'moore' ), ] ); $this->add_control( 'icon_color_hover', [ 'label' => esc_html__( 'Color', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .switch-lang-v1:hover .current-lang i' => 'color: {{VALUE}};', '{{WRAPPER}} .switch-lang-v2:hover .current-lang i' => 'color: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'icon_typography', 'selector' => '{{WRAPPER}} .switch-lang-v1 .current-lang i', 'condition' => [ 'type' => 'v1', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'icon_typography_v2', 'selector' => '{{WRAPPER}} .switch-lang-v2 .current-lang i', 'condition' => [ 'type' => 'v2', ], ] ); $this->end_controls_section(); /* End icon Style */ /* Begin Dropdown Language Style */ $this->start_controls_section( 'dropdown_language_style', [ 'label' => esc_html__( 'Dropdown Language', 'moore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->start_controls_tabs( 'tabs_dropdown_language_style' ); $this->start_controls_tab( 'tab_dropdown_language_normal', [ 'label' => esc_html__( 'Normal', 'moore' ), ] ); $this->add_control( 'dropdown_language_bg_normal', [ 'label' => esc_html__( 'Background', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .switch-lang-v1 .lang-dropdown .selecting-lang' => 'background-color: {{VALUE}};', '{{WRAPPER}} .switch-lang-v2 .lang-dropdown .selecting-lang' => 'background-color: {{VALUE}};', ], ] ); $this->add_control( 'dropdown_language_color_normal', [ 'label' => esc_html__( 'Color', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .switch-lang-v1 .lang-dropdown .selecting-lang .lang-text' => 'color: {{VALUE}};', '{{WRAPPER}} .switch-lang-v2 .lang-dropdown .selecting-lang .lang-text' => 'color: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_dropdown_language_hover', [ 'label' => esc_html__( 'Hover', 'moore' ), ] ); $this->add_control( 'dropdown_language_bg_hover', [ 'label' => esc_html__( 'Background', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .switch-lang-v1 .lang-dropdown .selecting-lang:hover' => 'background-color: {{VALUE}};border-color: {{VALUE}};', '{{WRAPPER}} .switch-lang-v2 .lang-dropdown .selecting-lang:hover' => 'background-color: {{VALUE}};border-color: {{VALUE}};', ], ] ); $this->add_control( 'dropdown_language_color_hover', [ 'label' => esc_html__( 'Color', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .switch-lang-v1 .lang-dropdown .selecting-lang:hover .lang-text' => 'color: {{VALUE}};', '{{WRAPPER}} .switch-lang-v2 .lang-dropdown .selecting-lang:hover .lang-text' => 'color: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'dropdown_language_typography', 'selector' => '{{WRAPPER}} .switch-lang-v1 .lang-dropdown .selecting-lang .lang-text', 'condition' => [ 'type' => 'v1', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'dropdown_language_typography_v2', 'selector' => '{{WRAPPER}} .switch-lang-v2 .lang-dropdown .selecting-lang .lang-text', 'condition' => [ 'type' => 'v2', ], ] ); $this->add_responsive_control( 'dropdown_language_padding', [ 'label' => esc_html__( 'Padding', 'moore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .switch-lang-v2 .lang-dropdown .selecting-lang' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'condition' => [ 'type' => 'v2', ], ] ); $this->end_controls_section(); /* End Dropdown Language Style */ } // Render Template Here protected function render() { $settings = $this->get_settings(); $type = $settings['type']; $languages = $settings['language_lists']; ?>

register( new Moore_Elementor_Choice_Language() );