/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/logo.php (8187B)
start_controls_section( 'section_image', [ 'label' => esc_html__( 'Image', 'moore' ), ] ); $this->add_control( 'link_to', [ 'label' => esc_html__( 'Link', 'moore' ), 'type' => Controls_Manager::SELECT, 'options' => [ 'home' => esc_html__( 'Home Page', 'moore' ), 'none' => esc_html__( 'None', 'moore' ), 'custom' => esc_html__( 'Custom URL', 'moore' ), ], 'default' => 'home', ] ); $this->add_control( 'link', [ 'label' => esc_html__( 'Link', 'moore' ), 'type' => Controls_Manager::URL, 'dynamic' => [ 'active' => true, ], 'placeholder' => esc_html__( 'https://your-link.com', 'moore' ), 'condition' => [ 'link_to' => 'custom', ], 'show_label' => false, ] ); $this->add_responsive_control( 'align', [ 'label' => esc_html__( 'Alignment', 'moore' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'flex-start' => [ 'title' => esc_html__( 'Left', 'moore' ), 'icon' => 'eicon-text-align-left', ], 'center' => [ 'title' => esc_html__( 'Center', 'moore' ), 'icon' => 'eicon-text-align-center', ], 'flex-end' => [ 'title' => esc_html__( 'Right', 'moore' ), 'icon' => 'eicon-text-align-right', ], ], 'selectors' => [ '{{WRAPPER}} .elementor-widget-container' => 'justify-content: {{VALUE}};', ], ] ); $this->add_control( 'desk_logo', [ 'label' => esc_html__( 'Desktop Logo', 'moore' ), 'type' => Controls_Manager::MEDIA, 'dynamic' => [ 'active' => true, ], 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], 'separator' => 'before' ] ); $this->add_group_control( Group_Control_Image_Size::get_type(), [ 'name' => 'desk_logo', 'default' => 'thumbnail', 'separator' => 'none', ] ); $this->add_control( 'desk_w', [ 'label' => esc_html__( 'Desktop Logo Width', 'moore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 1, 'max' => 1000, 'step' => 1, ] ], 'default' => [ 'unit' => 'px', 'size' => 132, ], ] ); $this->add_control( 'desk_h', [ 'label' => esc_html__( 'Desktop Logo Height', 'moore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 1, 'max' => 1000, 'step' => 1, ] ], 'default' => [ 'unit' => 'px', 'size' => 36, ], ] ); $this->add_control( 'mobile_logo', [ 'label' => esc_html__( 'Mobile Logo', 'moore' ), 'type' => Controls_Manager::MEDIA, 'dynamic' => [ 'active' => true, ], 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], 'separator' => 'before' ] ); $this->add_control( 'mobile_w', [ 'label' => esc_html__( 'Mobile Logo Width', 'moore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 1, 'max' => 1000, 'step' => 1, ] ], 'default' => [ 'unit' => 'px', 'size' => 132, ], ] ); $this->add_control( 'mobile_h', [ 'label' => esc_html__( 'Mobile Logo Height', 'moore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 1, 'max' => 1000, 'step' => 1, ] ], 'default' => [ 'unit' => 'px', 'size' => 36, ], ] ); $this->add_group_control( Group_Control_Image_Size::get_type(), [ 'name' => 'mobile_logo', 'default' => 'thumbnail', 'separator' => 'none', ], ); $this->add_control( 'sticky_logo', [ 'label' => esc_html__( 'Sticky Logo', 'moore' ), 'type' => Controls_Manager::MEDIA, 'dynamic' => [ 'active' => true, ], 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], 'separator' => 'before' ] ); $this->add_control( 'sticky_w', [ 'label' => esc_html__( 'Sticky Logo Width', 'moore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 1, 'max' => 1000, 'step' => 1, ] ], 'default' => [ 'unit' => 'px', 'size' => 132, ], ] ); $this->add_control( 'sticky_h', [ 'label' => esc_html__( 'Sticky Logo Height', 'moore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 1, 'max' => 1000, 'step' => 1, ] ], 'default' => [ 'unit' => 'px', 'size' => 36, ], ] ); $this->add_group_control( Group_Control_Image_Size::get_type(), [ 'name' => 'sticky_logo', 'default' => 'thumbnail', 'separator' => 'none', ] ); $this->end_controls_section(); } private function get_link_url( $settings ) { if ( 'none' === $settings['link_to'] ) { return false; } if ( 'home' === $settings['link_to'] ) { return array( 'url' => home_url('/') ); } if ( 'custom' === $settings['link_to'] ) { if ( empty( $settings['link']['url'] ) ) { return false; } return $settings['link']; } return false; } protected function render() { $settings = $this->get_settings_for_display(); if ( empty( $settings['desk_logo']['url'] ) ) { return; } $desk_w = $settings['desk_w']['size'] ? $settings['desk_w']['size'].$settings['desk_w']['unit'] : 'auto'; $desk_h = $settings['desk_h']['size'] ? $settings['desk_h']['size'].$settings['desk_w']['unit'] : 'auto'; $mobile_w = $settings['mobile_w']['size'] ? $settings['mobile_w']['size'].$settings['desk_w']['unit'] : 'auto'; $mobile_h = $settings['mobile_h']['size'] ? $settings['mobile_h']['size'].$settings['desk_w']['unit'] : 'auto'; $sticky_w = $settings['sticky_w']['size'] ? $settings['sticky_w']['size'].$settings['desk_w']['unit'] : 'auto'; $sticky_h = $settings['sticky_h']['size'] ? $settings['sticky_h']['size'].$settings['desk_w']['unit'] : 'auto'; $link = $this->get_link_url( $settings ); ?>
> <?php bloginfo('name');  ?> <?php bloginfo('name');  ?> <?php bloginfo('name');  ?>
register( new Moore_Elementor_Logo() );