/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/gallery.php (11584B)
start_controls_section( 'section_content', [ 'label' => esc_html__( 'Content', 'moore' ), ] ); $this->add_control( 'id_gallery', [ 'label' => esc_html__( 'ID', 'moore' ), 'type' => Controls_Manager::TEXT, 'default' => time(), ] ); // Add Class control $repeater = new \Elementor\Repeater(); $default_icon = 'fas fa-plus'; $repeater->add_control( 'class_icon', [ 'label' => esc_html__( 'Class Icon', 'moore' ), 'type' => Controls_Manager::TEXT, 'default' => $default_icon, ] ); $repeater->add_control( 'caption', [ 'label' => esc_html__( 'Caption Image', 'moore' ), 'type' => Controls_Manager::TEXT, 'default' => esc_html__( '', 'moore' ), ] ); $repeater->add_control( 'image', [ 'label' => esc_html__( 'Gallery Image', 'moore' ), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], ] ); $repeater->add_control( 'image_popup', [ 'label' => esc_html__( 'Popup Image', 'moore' ), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], ] ); $repeater->add_responsive_control( 'image_width', [ 'label' => esc_html__( 'Width', 'moore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ '%', 'px' ], 'default' => [ 'unit' => '%', ], 'tablet_default' => [ 'unit' => '%', ], 'mobile_default' => [ 'unit' => '%', ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 500, 'step' => 10, ], '%' => [ 'min' => 0, 'max' => 100, 'step' => 1, ], ], 'selectors' => [ '{{WRAPPER}} .ova-gallery .grid {{CURRENT_ITEM}}' => 'width: {{SIZE}}{{UNIT}}', ], ] ); $repeater->add_responsive_control( 'image_padding', [ 'label' => esc_html__( 'Padding', 'moore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-gallery .grid {{CURRENT_ITEM}}' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'tab_item', [ 'label' => esc_html__( 'Items Gallery', 'moore' ), 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'default' => [ [ 'class_icon' => $default_icon, ], [ 'class_icon' => $default_icon, ], [ 'class_icon' => $default_icon, ], ], ] ); $this->add_responsive_control( 'grid_sizer', [ 'label' => esc_html__( 'Grid Sizer', 'moore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ '%', 'px' ], 'default' => [ 'unit' => '%', ], 'tablet_default' => [ 'unit' => '%', ], 'mobile_default' => [ 'unit' => '%', ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 500, 'step' => 10, ], '%' => [ 'min' => 0, 'max' => 100, 'step' => 1, ], ], 'selectors' => [ '{{WRAPPER}} .ova-gallery .grid .grid-sizer' => 'width: {{SIZE}}{{UNIT}}', ], 'description' => 'Default grid sizer is 33% (3 columns)' ] ); $this->add_control( 'show_view_all', [ 'label' => esc_html__( 'Show View All', 'moore' ), 'type' => \Elementor\Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Show', 'moore' ), 'label_off' => esc_html__( 'Hide', 'moore' ), 'return_value' => 'yes', 'default' => 'no', ] ); $this->add_control( 'text', [ 'label' => esc_html__( 'Text Button', 'moore' ), 'type' => Controls_Manager::TEXT, 'default' => esc_html__( 'View All', 'moore' ), 'condition' => [ 'show_view_all' => 'yes', ], ] ); $this->end_controls_section(); $this->start_controls_section( 'section_image_style', [ 'label' => esc_html__( 'Image', 'moore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'image_margin', [ 'label' => esc_html__( 'Margin', 'moore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-gallery .grid .grid-item' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); $this->start_controls_section( 'icon_style', [ 'label' => esc_html__( 'Icon', 'moore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'icon_typography', 'selector' => '{{WRAPPER}} .ova-gallery .grid .grid-item .gallery-fancybox .gallery-container .gallery-icon i', ] ); $this->add_control( 'icon_color', [ 'label' => esc_html__( 'Color', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-gallery .grid .grid-item .gallery-fancybox .gallery-container .gallery-icon i' => 'color : {{VALUE}};', ], ] ); $this->add_responsive_control( 'icon_top', [ 'label' => esc_html__( 'Top', 'moore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ '%', 'px' ], 'default' => [ 'unit' => 'px', ], 'tablet_default' => [ 'unit' => 'px', ], 'mobile_default' => [ 'unit' => 'px', ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 500, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, 'step' => 1, ], ], 'selectors' => [ '{{WRAPPER}} .ova-gallery .grid .grid-item .gallery-fancybox .gallery-container .gallery-icon' => 'top: {{SIZE}}{{UNIT}}', ], ] ); $this->add_responsive_control( 'icon_right', [ 'label' => esc_html__( 'Right', 'moore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ '%', 'px' ], 'default' => [ 'unit' => 'px', ], 'tablet_default' => [ 'unit' => 'px', ], 'mobile_default' => [ 'unit' => 'px', ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 500, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, 'step' => 1, ], ], 'selectors' => [ '{{WRAPPER}} .ova-gallery .grid .grid-item .gallery-fancybox .gallery-container .gallery-icon' => 'right: {{SIZE}}{{UNIT}}', ], ] ); $this->end_controls_section(); // View All Button Style $this->start_controls_section( 'section_text_style', [ 'label' => esc_html__( 'Text Button', 'moore' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => [ 'show_view_all' => 'yes', ], ] ); $this->add_control( 'color_text', [ 'label' => esc_html__( 'Color', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-gallery .grid .grid-item .gallery-fancybox .button .show-view-all' => 'color : {{VALUE}};', ], ] ); $this->add_control( 'bgcolor_text', [ 'label' => esc_html__( 'Background Color', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-gallery .grid .grid-item .gallery-fancybox .button ' => 'background-color : {{VALUE}};', ], ] ); $this->add_control( 'color_text_hover', [ 'label' => esc_html__( 'Color Hover', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-gallery .grid .grid-item .gallery-fancybox .button:hover .show-view-all' => 'color : {{VALUE}};', ], ] ); $this->add_control( 'bgcolor_text_hover', [ 'label' => esc_html__( 'Background Color Hover', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-gallery .grid .grid-item .gallery-fancybox .button:hover ' => 'background-color : {{VALUE}};', ], ] ); $this->end_controls_section(); } // Render Template Here protected function render() { $settings = $this->get_settings(); // Get list item $tabs = $settings['tab_item']; $group = $settings['id_gallery']; $show_view_all = $settings['show_view_all']; $text = $settings['text'] ; ?> register( new Moore_Elementor_Gallery() );