ta_enlarge} {$initial}>"; $output .= $this->slide_navigation_arrows( $atts ); $output .= "'; $output .= ''; } $output = Av_Responsive_Images()->make_content_images_responsive( $output ); Av_Responsive_Images()->force_disable( 'reset' ); if( ! ShortcodeHelper::is_top_level() ) { return $output; } $params = array(); $params['class'] = "main_color av-horizontal-gallery-fullwidth avia-no-border-styling {$av_display_classes} {$meta['el_class']}"; $params['open_structure'] = false; $params['id'] = AviaHelper::save_string( $meta['custom_id_val'] , '-', 'av-horizontal-gallery-' . avia_sc_gallery_horizontal::$hor_gallery ); $params['custom_markup'] = $meta['custom_markup']; if( $meta['index'] == 0 ) { $params['class'] .= ' avia-no-border-styling'; } //we dont need a closing structure if the element is the first one or if a previous fullwidth element was displayed before if( $meta['index'] == 0 ) { $params['close'] = false; } if( ! empty( $meta['siblings']['prev']['tag'] ) && in_array( $meta['siblings']['prev']['tag'], AviaBuilder::$full_el_no_section ) ) { $params['close'] = false; } $html = $output; $output = avia_new_section( $params ); $output .= $html; $output .= ''; //close section //if the next tag is a section dont create a new section from this shortcode if( ! empty( $meta['siblings']['next']['tag']) && in_array( $meta['siblings']['next']['tag'], AviaBuilder::$full_el ) ) { $skipSecond = true; } //if there is no next element dont create a new section. if( empty( $meta['siblings']['next']['tag'] ) ) { $skipSecond = true; } if( empty( $skipSecond ) ) { $output .= avia_new_section( array( 'close' => false, 'id' => 'after_horizontal_gallery' ) ); } return $output; } /** * Create arrows to scroll image slides * * @since 4.8.3 reroute to aviaFrontTemplates * @param array $atts * @return string */ protected function slide_navigation_arrows( array $atts ) { $args = array( 'class_prev' => 'av-horizontal-gallery-prev', 'class_next' => 'av-horizontal-gallery-next', 'context' => get_class(), 'params' => $atts ); return aviaFrontTemplates::slide_navigation_arrows( $args ); } } }