get_name(); } public function get_icon(): string { return 'eicon-media-carousel'; } public function get_categories(): array { return [ 'addronix-addons-for-elementor' ]; } public function get_keywords(): array { return [ '3d', 'image', 'carousel', 'slider', 'gallery', 'motion' ]; } public function get_style_depends(): array { return [ 'aafe-image-3d-carousel-style' ]; } public function get_script_depends(): array { return [ 'aafe-image-3d-carousel-script' ]; } protected function register_controls() { $this->register_content_controls(); $this->register_style_controls(); } private function register_content_controls() { $this->start_controls_section( 'section_slides', [ 'label' => esc_html__( 'Slides', 'addronix-addons-for-elementor' ), ] ); $repeater = new Repeater(); $repeater->add_control( 'image', [ 'label' => esc_html__( 'Image', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], 'dynamic' => [ 'active' => true, 'categories' => [ DynamicTagsModule::IMAGE_CATEGORY ], ], ] ); $repeater->add_control( 'title', [ 'label' => esc_html__( 'Title', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::TEXT, 'default' => esc_html__( 'Image Title', 'addronix-addons-for-elementor' ), 'label_block' => true, 'dynamic' => [ 'active' => true, 'categories' => [ DynamicTagsModule::TEXT_CATEGORY ], ], ] ); $this->add_control( 'slides', [ 'label' => esc_html__( 'Carousel Slides', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'default' => [ [ 'title' => esc_html__( 'Urban Exploration', 'addronix-addons-for-elementor' ) ], [ 'title' => esc_html__( 'Night Scene', 'addronix-addons-for-elementor' ) ], [ 'title' => esc_html__( 'Yellow Wildflowers', 'addronix-addons-for-elementor' ) ], [ 'title' => esc_html__( 'Street with Mount Fuji', 'addronix-addons-for-elementor' ) ], [ 'title' => esc_html__( 'Bridgestone Bicycle Shop', 'addronix-addons-for-elementor' ) ], ], 'title_field' => '{{{ title }}}', ] ); $this->end_controls_section(); $this->start_controls_section( 'section_settings', [ 'label' => esc_html__( 'Settings', 'addronix-addons-for-elementor' ), ] ); $this->add_control( 'start_index', [ 'label' => esc_html__( 'Start Index', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::NUMBER, 'min' => 0, 'default' => 2, 'dynamic' => [ 'active' => true, 'categories' => [ DynamicTagsModule::NUMBER_CATEGORY ], ], ] ); $this->add_control( 'title_tag', [ 'label' => esc_html__( 'Title HTML Tag', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SELECT, 'options' => [ 'h1' => 'H1', 'h2' => 'H2', 'h3' => 'H3', 'h4' => 'H4', 'h5' => 'H5', 'h6' => 'H6', 'div' => 'div', 'span' => 'span', 'p' => 'p', ], 'default' => 'div', ] ); $this->add_control( 'show_nav', [ 'label' => esc_html__( 'Show Navigation', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Show', 'addronix-addons-for-elementor' ), 'label_off' => esc_html__( 'Hide', 'addronix-addons-for-elementor' ), 'return_value' => 'yes', 'default' => 'yes', ] ); // AAFE IMPROVEMENT: Autoplay + Pause on Hover $this->add_control( 'enable_autoplay', [ 'label' => esc_html__( 'Enable Autoplay', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Yes', 'addronix-addons-for-elementor' ), 'label_off' => esc_html__( 'No', 'addronix-addons-for-elementor' ), 'return_value' => 'yes', 'default' => 'yes', ] ); $this->add_control( 'autoplay_speed', [ 'label' => esc_html__( 'Autoplay Speed (ms)', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::NUMBER, 'min' => 500, 'max' => 10000, 'default' => 3000, 'condition' => [ 'enable_autoplay' => 'yes', ], ] ); $this->end_controls_section(); } private function register_style_controls() { /* Image Hover Effects */ $this->start_controls_section( 'section_image_hover', [ 'label' => esc_html__( 'Image Hover Effects', 'addronix-addons-for-elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'hover_effect_type', [ 'label' => esc_html__( 'Hover Effect Type', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SELECT, 'options' => [ 'none' => esc_html__( 'None', 'addronix-addons-for-elementor' ), 'lift' => esc_html__( 'Lift', 'addronix-addons-for-elementor' ), 'glow' => esc_html__( 'Glow', 'addronix-addons-for-elementor' ), 'scale' => esc_html__( 'Scale', 'addronix-addons-for-elementor' ), 'border-pop' => esc_html__( 'Border Pop', 'addronix-addons-for-elementor' ), 'shine' => esc_html__( 'Shine', 'addronix-addons-for-elementor' ), ], 'default' => 'none', 'prefix_class' => 'aafe-img-hover-', ] ); $this->add_control( 'hover_duration', [ 'label' => esc_html__( 'Transition Duration (ms)', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 100, 'max' => 800, 'step' => 50 ] ], 'default' => [ 'size' => 300 ], 'selectors' => [ '{{WRAPPER}} .aafe-image-3d-carousel__image-wrap' => 'transition: all {{SIZE}}ms ease;', ], ] ); $this->add_control( 'hover_scale', [ 'label' => esc_html__( 'Hover Scale Amount', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 1.00, 'max' => 1.20, 'step' => 0.01 ] ], 'default' => [ 'size' => 1.05 ], 'condition' => [ 'hover_effect_type' => [ 'scale', 'lift' ] ], 'selectors' => [ '{{WRAPPER}} .aafe-image-3d-carousel__slide:hover .aafe-image-3d-carousel__image-wrap' => 'transform: scale({{SIZE}});', ], ] ); $this->add_control( 'hover_lift', [ 'label' => esc_html__( 'Hover Lift Amount', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 50, 'step' => 1 ] ], 'default' => [ 'size' => 10 ], 'condition' => [ 'hover_effect_type' => 'lift' ], 'selectors' => [ '{{WRAPPER}}.aafe-img-hover-lift .aafe-image-3d-carousel__slide:hover .aafe-image-3d-carousel__image-wrap' => 'transform: translateY(-{{SIZE}}px); box-shadow: 0 12px 40px rgba(0,0,0,0.15);', ], ] ); $this->add_control( 'hover_glow_color', [ 'label' => esc_html__( 'Glow Color', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#4F46E5', 'condition' => [ 'hover_effect_type' => 'glow' ], 'selectors' => [ '{{WRAPPER}}.aafe-img-hover-glow .aafe-image-3d-carousel__slide:hover .aafe-image-3d-carousel__image-wrap' => 'box-shadow: 0 0 0 3px {{VALUE}}, 0 8px 30px {{VALUE}};', ], ] ); $this->add_control( 'hover_border_pop_color', [ 'label' => esc_html__( 'Border Pop Color', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#4F46E5', 'condition' => [ 'hover_effect_type' => 'border-pop' ], 'selectors' => [ '{{WRAPPER}}.aafe-img-hover-border-pop .aafe-image-3d-carousel__slide:hover .aafe-image-3d-carousel__image-wrap' => 'border-color: {{VALUE}}; transform: scale(1.02);', ], ] ); $this->add_control( 'hover_shine_opacity', [ 'label' => esc_html__( 'Shine Opacity', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0.1, 'max' => 1.0, 'step' => 0.1 ] ], 'default' => [ 'size' => 0.3 ], 'condition' => [ 'hover_effect_type' => 'shine' ], 'selectors' => [ '{{WRAPPER}}.aafe-img-hover-shine .aafe-image-3d-carousel__image-wrap::after' => 'background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,{{SIZE}}) 50%, rgba(255,255,255,0) 100%);', ], ] ); $this->end_controls_section(); /* Image Style */ $this->start_controls_section( 'section_style_image', [ 'label' => esc_html__( 'Image', 'addronix-addons-for-elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'image_width', [ 'label' => esc_html__( 'Width', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%', 'vw' ], 'range' => [ 'px' => [ 'min' => 100, 'max' => 600 ], ], 'selectors' => [ '{{WRAPPER}} .aafe-image-3d-carousel__container' => 'width: {{SIZE}}{{UNIT}};', '{{WRAPPER}} .aafe-image-3d-carousel__slide' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_control( 'image_border_radius', [ 'label' => esc_html__( 'Border Radius', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ], 'selectors' => [ '{{WRAPPER}} .aafe-image-3d-carousel__image-wrap' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'image_box_shadow', 'selector' => '{{WRAPPER}} .aafe-image-3d-carousel__image-wrap', ] ); $this->end_controls_section(); /* Title Style */ $this->start_controls_section( 'section_style_title', [ 'label' => esc_html__( 'Title', 'addronix-addons-for-elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'title_typography', 'selector' => '{{WRAPPER}} .aafe-image-3d-carousel__title', 'fields_options' => [ 'font_family' => [ 'default' => 'Sora' ], 'font_size' => [ 'default' => [ 'size' => 18, 'unit' => 'px' ] ], ], ] ); $this->add_control( 'title_color', [ 'label' => esc_html__( 'Color', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .aafe-image-3d-carousel__title' => 'color: {{VALUE}};', ], ] ); $this->add_control( 'title_hover_color', [ 'label' => esc_html__( 'Hover Color', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .aafe-image-3d-carousel__slide:hover .aafe-image-3d-carousel__title' => 'color: {{VALUE}};', ], ] ); $this->end_controls_section(); /* Controls Style */ $this->start_controls_section( 'section_style_controls', [ 'label' => esc_html__( 'Navigation Controls', 'addronix-addons-for-elementor' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => [ 'show_nav' => 'yes' ], ] ); $this->add_responsive_control( 'nav_spacing_top', [ 'label' => esc_html__( 'Spacing from Images', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%', 'vh' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 200 ] ], 'selectors' => [ '{{WRAPPER}} .aafe-image-3d-carousel__controls' => 'margin-top: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'nav_elements_spacing', [ 'label' => esc_html__( 'Elements Spacing (Gap)', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 50 ] ], 'selectors' => [ '{{WRAPPER}} .aafe-image-3d-carousel__controls' => 'gap: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'nav_container_padding', [ 'label' => esc_html__( 'Container Padding', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .aafe-image-3d-carousel__controls' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'nav_bg_color', [ 'label' => esc_html__( 'Container Background', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .aafe-image-3d-carousel__controls' => 'background: {{VALUE}};', ], ] ); $this->add_control( 'nav_border_color', [ 'label' => esc_html__( 'Container Border Color', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .aafe-image-3d-carousel__controls' => 'border-color: {{VALUE}};', ], ] ); $this->add_control( 'heading_arrows', [ 'label' => esc_html__( 'Arrows', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::HEADING, ] ); $this->add_responsive_control( 'nav_icon_size', [ 'label' => esc_html__( 'Icon Size', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', 'em' ], 'selectors' => [ '{{WRAPPER}} .aafe-image-3d-carousel__btn svg' => 'width: {{SIZE}}{{UNIT}}; height: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'nav_btn_padding', [ 'label' => esc_html__( 'Button Padding', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .aafe-image-3d-carousel__btn' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'nav_btn_border_radius', [ 'label' => esc_html__( 'Border Radius', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .aafe-image-3d-carousel__btn' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->start_controls_tabs( 'tabs_nav_icon' ); $this->start_controls_tab( 'tab_nav_icon_normal', [ 'label' => esc_html__( 'Normal', 'addronix-addons-for-elementor' ) ] ); $this->add_control( 'nav_icon_color', [ 'label' => esc_html__( 'Icon Color', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .aafe-image-3d-carousel__btn' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( \Elementor\Group_Control_Background::get_type(), [ 'name' => 'nav_btn_bg', 'label' => esc_html__( 'Background', 'addronix-addons-for-elementor' ), 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .aafe-image-3d-carousel__btn', ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'nav_btn_border', 'selector' => '{{WRAPPER}} .aafe-image-3d-carousel__btn', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'nav_btn_box_shadow', 'selector' => '{{WRAPPER}} .aafe-image-3d-carousel__btn', ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_nav_icon_hover', [ 'label' => esc_html__( 'Hover', 'addronix-addons-for-elementor' ) ] ); $this->add_control( 'nav_icon_hover_color', [ 'label' => esc_html__( 'Icon Color', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .aafe-image-3d-carousel__btn:hover' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( \Elementor\Group_Control_Background::get_type(), [ 'name' => 'nav_btn_hover_bg', 'label' => esc_html__( 'Background', 'addronix-addons-for-elementor' ), 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .aafe-image-3d-carousel__btn:hover', ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'nav_btn_hover_border', 'selector' => '{{WRAPPER}} .aafe-image-3d-carousel__btn:hover', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'nav_btn_hover_box_shadow', 'selector' => '{{WRAPPER}} .aafe-image-3d-carousel__btn:hover', ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->add_control( 'heading_dots', [ 'label' => esc_html__( 'Dots', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::HEADING, ] ); $this->add_responsive_control( 'dot_size', [ 'label' => esc_html__( 'Dot Size', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'selectors' => [ '{{WRAPPER}} .aafe-image-3d-carousel__dot' => 'height: {{SIZE}}{{UNIT}}; width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'dot_active_width', [ 'label' => esc_html__( 'Active Dot Width', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'selectors' => [ '{{WRAPPER}} .aafe-image-3d-carousel__dot.is-active' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->start_controls_tabs( 'tabs_nav_dots' ); $this->start_controls_tab( 'tab_nav_dots_normal', [ 'label' => esc_html__( 'Normal', 'addronix-addons-for-elementor' ) ] ); $this->add_control( 'dot_color', [ 'label' => esc_html__( 'Color', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .aafe-image-3d-carousel__dot' => 'background-color: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_nav_dots_hover', [ 'label' => esc_html__( 'Hover & Active', 'addronix-addons-for-elementor' ) ] ); $this->add_control( 'dot_active_color', [ 'label' => esc_html__( 'Color', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .aafe-image-3d-carousel__dot:hover, {{WRAPPER}} .aafe-image-3d-carousel__dot.is-active' => 'background-color: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); // AAFE IMPROVEMENT: Entrance Animation section $this->start_controls_section( 'section_entrance_animation', [ 'label' => esc_html__( 'Entrance Animation', 'addronix-addons-for-elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'animation_type', [ 'label' => esc_html__( 'Animation Type', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SELECT, 'options' => [ 'none' => esc_html__( 'None', 'addronix-addons-for-elementor' ), 'fadeIn' => esc_html__( 'Fade In', 'addronix-addons-for-elementor' ), 'fadeInUp' => esc_html__( 'Fade In Up', 'addronix-addons-for-elementor' ), 'fadeInDown' => esc_html__( 'Fade In Down', 'addronix-addons-for-elementor' ), 'fadeInLeft' => esc_html__( 'Fade In Left', 'addronix-addons-for-elementor' ), 'fadeInRight' => esc_html__( 'Fade In Right', 'addronix-addons-for-elementor' ), 'zoomIn' => esc_html__( 'Zoom In', 'addronix-addons-for-elementor' ), ], 'default' => 'none', ] ); $this->add_control( 'animation_duration', [ 'label' => esc_html__( 'Animation Duration (ms)', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::NUMBER, 'default' => 600, 'condition' => [ 'animation_type!' => 'none', ], ] ); $this->add_control( 'animation_delay', [ 'label' => esc_html__( 'Animation Delay (ms)', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::NUMBER, 'default' => 0, 'condition' => [ 'animation_type!' => 'none', ], ] ); $this->end_controls_section(); } protected function render() { $settings = $this->get_settings_for_display(); if ( empty( $settings['slides'] ) ) { return; } $hover_type = $settings['hover_effect_type'] ? $settings['hover_effect_type'] : 'none'; $hover_scale = $settings['hover_scale']['size'] ?? '1.03'; $hover_duration = $settings['hover_duration']['size'] ?? '300'; $hover_easing = $settings['hover_easing'] ?? 'ease'; $start_index = ! empty( $settings['start_index'] ) ? absint( $settings['start_index'] ) : 0; $this->add_render_attribute( 'wrapper', [ 'class' => 'aafe-image-3d-carousel-wrapper', 'data-hover' => $hover_type, 'data-start-index' => $start_index, 'style' => "--aafe-hover-scale: {$hover_scale}; --aafe-transition: {$hover_duration}ms; --aafe-easing: {$hover_easing};", ] ); // AAFE IMPROVEMENT: Autoplay + Pause on Hover if ( 'yes' === $settings['enable_autoplay'] ) { $this->add_render_attribute( 'wrapper', [ 'data-aafe-autoplay' => 'true', 'data-aafe-speed' => $settings['autoplay_speed'] ?? 3000, ] ); } // AAFE IMPROVEMENT: Keyboard Navigation + Basic ARIA $this->add_render_attribute( 'wrapper', [ 'tabindex' => '0', 'role' => 'region', 'aria-label' => esc_attr__( 'Image 3D Carousel slider', 'addronix-addons-for-elementor' ), ] ); // AAFE IMPROVEMENT: Entrance Animation section if ( 'none' !== ( $settings['animation_type'] ?? 'none' ) ) { $this->add_render_attribute( 'wrapper', [ 'data-aafe-animation' => $settings['animation_type'], 'data-aafe-duration' => $settings['animation_duration'] ?? 600, 'data-aafe-delay' => $settings['animation_delay'] ?? 0, ] ); } ?>
print_render_attribute_string( 'wrapper' ); ?>>
<# var slides = settings.slides || []; var startIndex = settings.start_index || 0; var titleTag = settings.title_tag || 'div'; #>