'', 'class' => '', ), $params ); $content = str_replace( ']
', ']', $content ); $content = str_replace( "]
\n", ']', $content ); $content = str_replace( "
\n[", '[', $content ); $dropup = 'dropup' === $atts['dropup'] ? 'dropup' : ''; $class = Sanitizer::class_list( $atts['class'] ); $out = '
' . do_shortcode( $content ) . '
'; $out .= " "; return $out; } ebs_backward_compatibility_callback( 'dropdown', 'osc_theme_dropdown' ); function osc_theme_dropdown_head( $params, $content = null ) { $atts = shortcode_atts( array( 'size' => '', 'style' => '', 'split' => '', ), $params ); $size = Sanitizer::class_list( $atts['size'] ); $style = Sanitizer::class_list( $atts['style'] ); $content = do_shortcode( $content ); $out = ''; if ( 'split' === $atts['split'] ) { $out = ''; $out .= ''; } else { $out = ' '; } return $out; } ebs_backward_compatibility_callback( 'dropdownhead', 'osc_theme_dropdown_head' ); function osc_theme_dropdown_body( $params, $content = null ) { $content = str_replace( ']
', ']', $content ); $content = str_replace( "]
\n", ']', $content ); $content = str_replace( "
\n[", '[', $content ); $out = ''; return $out; } ebs_backward_compatibility_callback( 'dropdownbody', 'osc_theme_dropdown_body' ); function osc_theme_dropdown_items( $params, $content = null ) { $atts = shortcode_atts( array( 'type' => '', 'link' => '', 'disabled' => '', ), $params ); $out = ''; $link = Sanitizer::url( $atts['link'] ); if ( 'divider' === $atts['type'] ) { $out = '
  • '; } elseif ( 'menuitem' === $atts['type'] ) { if ( 'disabled' === $atts['disabled'] ) { $out = '
  • ' . do_shortcode( $content ) . '
  • '; } else { $out = '
  • ' . do_shortcode( $content ) . '
  • '; } } return $out; } ebs_backward_compatibility_callback( 'dropdownitem', 'osc_theme_dropdown_items' );