Toolkit","location='../sy_analyzer.html'"); mm_menu_1219160234_0.addMenuItem("11. Trialex Plugin","location='../trialex_plugin.html'"); mm_menu_1219160234_0.addMenuItem("12. Sy/View","location='../sy_view.html'"); mm_menu_1219160234_0.addMenuItem("13. ThesQA","location='../thesqa.html'"); mm_menu_1219160234_0.addMenuItem("14. Statmark","location='../statmark.html'"); mm_menu_1219160234_0.addMenuItem("15. MXI Plugin ","location='../mxiplugin.html'"); mm_menu_1219160234_0.addMenuItem("16. CDISC Reports ","location='../cdiscreports.html'"); mm_menu_1219160234_0.fontWeight="bold"; mm_menu_1219160234_0.hideOnMouseOut=true; mm_menu_1219160234_0.bgColor='#FFFFFF'; mm_menu_1219160234_0.menuBorder=1; mm_menu_1219160234_0.menuLiteBgColor='#FFFFFF'; mm_menu_1219160234_0.menuBorderBgColor='#CCCCCC'; window.mm_menu_0105102019_0 = new Menu("root",112,21,"Tahoma",11,"#60B520","#FFFFFF","#F2F2F2","#60B520","left","middle",5,0,300,-5,7,true,true,true,0,true,true); mm_menu_0105102019_0.addMenuItem("1. Background","location='../about.html'"); mm_menu_0105102019_0.addMenuIte
  • Example Book Coverslocation - the location in the theme to be used. Must be registered with register_nav_menu() in order to be selectable by the user. * * @since 3.0.0 * * @param array $args Arguments */ function wp_nav_menu( $args = array() ) { static $menu_id_slugs = array(); $defaults = array( 'menu' => '', 'container' => 'div', 'container_class' => '', 'container_id' => '', 'menu_class' => 'menu', 'menu_id' => '', 'echo' => true, 'fallback_cb' => 'wp_page_menu', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'depth' => 0, 'walker' => '', 'theme_location' => '' ); $args = wp_parse_args( $args, $defaults ); $args = apply_filters( 'wp_nav_menu_args', $args ); $args = (object) $args; // Get the nav menu based on the requested menu $menu = wp_get_nav_menu_object( $args->menu ); // Get the nav menu based on the theme_location if ( ! $menu && $args->theme_location && ( $locations = get_nav_menu_locations() ) && isset( $locations[ $args->theme_location ] ) ) $menu = wp_get_nav_menu_object( $locations[ $args->theme_location ] ); // get the first menu that has items if we still can't find a menu if ( ! $menu && !$args->theme_location ) { $menus = wp_get_nav_menus(); foreach ( $menus as $menu_maybe ) { if ( $menu_items = wp_get_nav_menu_items($menu_maybe->term_id) ) { $menu = $menu_maybe; break; } } } // If the menu exists, get its items. if ( $menu && ! is_wp_error($menu) && !isset($menu_items) ) $menu_items = wp_get_nav_menu_items( $menu->term_id ); // If no menu was found or if the menu has no items and no location was requested, call the fallback_cb if it exists if ( ( !$menu || is_wp_error($menu) || ( isset($menu_items) && empty($menu_items) && !$args->theme_location ) ) && ( function_exists($args->fallback_cb) || is_callable( $args->fallback_cb ) ) ) return call_user_func( $args->fallback_cb, (array) $args ); // If no fallback function was specified and the menu doesn't exists, bail. if ( !$menu || is_wp_error($menu) ) return false; $nav_menu = $items = ''; $show_container = false; if ( $args->container ) { $allowed_tags = apply_filters( 'wp_nav_menu_container_allowedtags', array( 'div', 'nav' ) ); if ( in_array( $args->container, $allowed_tags ) ) { $show_container = true; $class = $args->container_class ? ' class="' . esc_attr( $args->container_class ) . '"' : ' class="menu-'. $menu->slug .'-container"'; $id = $args->container_id ? ' id="' . esc_attr( $args->container_id ) . '"' : ''; $nav_menu .= '<'. $args->container . $id . $class . '>'; } } // Set up the $menu_item variables _wp_menu_item_classes_by_context( $menu_items ); $sorted_menu_items = array(); foreach ( (array) $menu_items as $key => $menu_item ) $sorted_menu_items[$menu_item->menu_order] = $menu_item; unset($menu_items); $items .= walk_nav_menu_tree( $sorted_menu_items, $args->depth, $args ); unset($sorted_menu_items); // Attributes if ( ! empty( $args->menu_id ) ) { $slug = $args->menu_id; } else { $slug = 'menu-' . $menu->slug; while ( in_array( $slug, $menu_id_slugs ) ) { if ( preg_match( '#-(\d+)$#', $slug, $matches ) ) $slug = preg_replace('#-(\d+)$#', '-' . ++$matches[1], $slug); else $slug = $slug . '-1'; } } $menu_id_slugs[] = $slug; $attributes = ' id="' . $slug . '"'; $attributes .= $args->menu_class ? ' class="'. $args->menu_class .'"' : ''; $nav_menu .= ''; // Allow plugins to hook into the menu to add their own
  • 's $items = apply_filters( 'wp_nav_menu_items', $items, $args ); $items = apply_filters( "wp_nav_menu_{$menu->slug}_items", $items, $args ); $nav_menu .= $items; unset($items); $nav_menu .= ''; if ( $show_container ) $nav_menu .= 'container . '>'; $nav_menu = apply_filters( 'wp_nav_menu', $nav_menu, $args ); if ( $args->echo ) echo $nav_menu; else return $nav_menu; } /** * Add the class property classes for the current context, if applicable. * * @access private * @since 3.0 * * @param array $menu_items Th