[ 'href' => [] ], 'b' => [] ]; } elseif ( 'allow_link' === $context ) { $tags = [ 'a' => [ 'class' => [], 'href' => [], 'rel' => [], 'title' => [], 'target' => [], ], 'img' => [ 'alt' => [], 'class' => [], 'height' => [], 'src' => [], 'srcset' => [], 'width' => [], ], 'b' => [] ]; } elseif ( 'allow_title' === $context ) { $tags = [ 'a' => [ 'class' => [], 'href' => [], 'rel' => [], 'title' => [], 'target' => [], ], 'br' => [], 'span' => [ 'class' => [], 'style' => [], ], 'img' => [ 'alt' => [], 'class' => [], 'height' => [], 'src' => [], 'srcset' => [], 'width' => [], ], 'b' => [] ]; } else { $tags = [ 'a' => [ 'class' => [], 'href' => [], 'rel' => [], 'title' => [], 'target' => [], ], 'abbr' => [ 'title' => [], ], 'b' => [], 'br' => [], 'sub' => [], 'blockquote' => [ 'cite' => [], ], 'cite' => [ 'title' => [], ], 'code' => [], 'del' => [ 'datetime' => [], 'title' => [], ], 'dd' => [], 'div' => [ 'class' => [], 'title' => [], 'style' => [], 'id' => [], ], 'dl' => [], 'dt' => [], 'em' => [], 'h1' => [ 'class' => [], 'title' => [], 'style' => [], 'id' => [], ], 'h2' => [ 'class' => [], 'title' => [], 'style' => [], 'id' => [], ], 'h3' => [ 'class' => [], 'title' => [], 'style' => [], 'id' => [], ], 'h4' => [ 'class' => [], 'title' => [], 'style' => [], 'id' => [], ], 'h5' => [ 'class' => [], 'title' => [], 'style' => [], 'id' => [], ], 'h6' => [ 'class' => [], 'title' => [], 'style' => [], 'id' => [], ], 'i' => [ 'class' => [], ], 'img' => [ 'alt' => [], 'class' => [], 'height' => [], 'src' => [], 'srcset' => [], 'width' => [], ], 'li' => [ 'class' => [], ], 'ol' => [ 'class' => [], ], 'p' => [ 'class' => [], ], 'q' => [ 'cite' => [], 'title' => [], ], 'span' => [ 'class' => [], 'title' => [], 'style' => [], ], 'strike' => [], 'strong' => [], 'ul' => [ 'class' => [], ], 'iframe' => [ 'class' => [], 'id' => [], 'name' => [], 'src' => [], 'title' => [], 'frameBorder' => [], 'width' => [], 'height' => [], 'scrolling' => [], 'allowvr' => [], 'allow' => [], 'allowFullScreen' => [], 'webkitallowfullscreen' => [], 'mozallowfullscreen' => [], 'loading' => [], ], ]; } echo wp_kses( $html, $tags ); } if ( ! function_exists( 'wtbigshop_custom_menu_cb' ) ) { /** * Callback function for the main menu * * @param $args * * @return string|void */ function wtbigshop_custom_menu_cb( $args ) { extract( $args ); $add_menu_link = admin_url( 'nav-menus.php' ); $menu_text = sprintf( __( "Add %s Menu", "bigshop" ), $theme_location ); __( 'Add a menu', 'bigshop' ); if ( ! current_user_can( 'manage_options' ) ) { $add_menu_link = home_url(); $menu_text = __( 'Home', 'bigshop' ); } // see wp-includes/nav-menu-template.php for available arguments $link = $link_before . '' . $before . $menu_text . $after . '' . $link_after; // We have a list if ( false !== stripos( $items_wrap, '
$add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => $icon . __( 'Reply', 'bigshop' ) ] ) ); ?>