/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/box-feature.php (12010B)
start_controls_section( 'section_content', [ 'label' => esc_html__( 'Content', 'moore' ), ] ); $this->add_control( 'link_to', [ 'label' => esc_html__( 'Link', 'moore' ), 'type' => Controls_Manager::SELECT, 'options' => [ 'none' => esc_html__( 'None', 'moore' ), 'custom' => esc_html__( 'Custom URL', 'moore' ), ], 'default' => 'custom', ] ); $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_control( 'image', [ 'label' => __( 'Choose Image', 'moore' ), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Elementor\Utils::get_placeholder_image_src(), ], ] ); $this->add_control( 'title', [ 'label' => esc_html__( 'Title', 'moore' ), 'type' => Controls_Manager::TEXT, 'row' => 5, 'default' => esc_html__('Oakwood floors','moore'), ] ); $this->add_control( 'description', [ 'label' => esc_html__( 'Description', 'moore' ), 'type' => Controls_Manager::TEXTAREA, 'row' => 5, 'default' => esc_html__('Quis nostrud exercitation ullamco laboris nisi aliquip ex ea commodo consequat','moore'), ] ); $this->add_control( 'sub_title', [ 'label' => esc_html__( 'Sub-Title', 'moore' ), 'type' => Controls_Manager::TEXT, 'default' => esc_html__( 'living room', 'moore' ), ] ); $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-box-feature' => 'text-align: {{VALUE}};', ], 'default' => 'center', 'separator' => 'before' ] ); $this->end_controls_section(); //*********** BEGIN STYLE SECTION **********// $this->start_controls_section( 'section_title_style', [ 'label' => esc_html__( 'Title', 'moore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'title_typography', 'selector' => '{{WRAPPER}} .ova-box-feature .title', ] ); $this->add_control( 'color_title', [ 'label' => esc_html__( 'Color', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-box-feature .title' => 'color : {{VALUE}};', ], ] ); $this->add_control( 'color_title_hover', [ 'label' => esc_html__( 'Color Hover', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-box-feature:hover .title' => 'color : {{VALUE}};', ], ] ); $this->add_responsive_control( 'padding_title', [ 'label' => esc_html__( 'Padding', 'moore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-box-feature .title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'margin_title', [ 'label' => esc_html__( 'Margin', 'moore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-box-feature .title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); $this->start_controls_section( 'section_description_style', [ 'label' => esc_html__( 'Description', 'moore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'description_typography', 'selector' => '{{WRAPPER}} .ova-box-feature .description', ] ); $this->add_control( 'color_description', [ 'label' => esc_html__( 'Color', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-box-feature .description' => 'color : {{VALUE}};', ], ] ); $this->add_control( 'color_description_hover', [ 'label' => esc_html__( 'Color Hover', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-box-feature:hover .description' => 'color : {{VALUE}};', ], ] ); $this->add_responsive_control( 'padding_description', [ 'label' => esc_html__( 'Padding', 'moore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-box-feature .description' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'margin_description', [ 'label' => esc_html__( 'Margin', 'moore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-box-feature .description' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); $this->start_controls_section( 'section_sub_title_style', [ 'label' => esc_html__( 'Sub-Title', 'moore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'sub_title_typography', 'selector' => '{{WRAPPER}} .ova-box-feature .sub-title', ] ); $this->add_control( 'color_sub_title', [ 'label' => esc_html__( 'Color', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-box-feature .sub-title' => 'color : {{VALUE}};', ], ] ); $this->add_control( 'color_sub_title_hover', [ 'label' => esc_html__( 'Color Hover', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-box-feature:hover .sub-title' => 'color : {{VALUE}};', ], ] ); $this->add_responsive_control( 'padding_sub_title', [ 'label' => esc_html__( 'Padding', 'moore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-box-feature .sub-title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'margin_sub_title', [ 'label' => esc_html__( 'Margin', 'moore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-box-feature .sub-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); $this->start_controls_section( 'section_box_feature_style', [ 'label' => esc_html__( 'Box Feature', 'moore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'background_color', [ 'label' => esc_html__( 'Background Color', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-box-feature' => 'background-color : {{VALUE}};', ], ] ); $this->add_control( 'background_color_hover', [ 'label' => esc_html__( 'Background Color Hover', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-box-feature:hover' => 'background-color : {{VALUE}};', ], ] ); $this->add_control( 'border_color', [ 'label' => esc_html__( 'Border Color', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-box-feature' => 'border-color : {{VALUE}};', ], ] ); $this->add_responsive_control( 'box_border_width', [ 'label' => esc_html__( 'Border Width', 'moore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-box-feature ' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'box_border_radius', [ 'label' => esc_html__( 'Border Radius', 'moore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-box-feature ' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); } private function get_link_url( $settings ) { if ( 'none' === $settings['link_to'] ) { return false; } if ( 'custom' === $settings['link_to'] ) { if ( empty( $settings['link']['url'] ) ) { return false; } return $settings['link']; } return false; } // Render Template Here protected function render() { $settings = $this->get_settings(); $title = $settings['title']; $sub_title = $settings['sub_title']; $description = $settings['description']; $url = $settings['image']['url']; if ( empty( $url ) ) { return; } $alt = $title ? $title : esc_html__( 'Box Feature', 'moore' ); $link = $this->get_link_url( $settings ); ?> >
<?php echo esc_attr($alt); ?>

register( new Moore_Elementor_Box_Feature() );