Changeset 25643
- Timestamp:
- 09/28/2013 09:01:54 PM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/nav-menu.php
r25285 r25643 10 10 class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { 11 11 /** 12 * Starts the list before the elements are added. 13 * 12 14 * @see Walker_Nav_Menu::start_lvl() 15 * 13 16 * @since 3.0.0 14 17 * 15 18 * @param string $output Passed by reference. 19 * @param int $depth Depth of menu item. Used for padding. 20 * @param array $args Not used. 16 21 */ 17 22 function start_lvl( &$output, $depth = 0, $args = array() ) {} 18 23 19 24 /** 25 * Ends the list of after the elements are added. 26 * 20 27 * @see Walker_Nav_Menu::end_lvl() 28 * 21 29 * @since 3.0.0 22 30 * 23 31 * @param string $output Passed by reference. 32 * @param int $depth Depth of menu item. Used for padding. 33 * @param array $args Not used. 24 34 */ 25 35 function end_lvl( &$output, $depth = 0, $args = array() ) {} 26 36 27 37 /** 28 * @see Walker::start_el() 38 * Start the element output. 39 * 40 * @see Walker_Nav_Menu::start_el() 29 41 * @since 3.0.0 30 42 * 31 43 * @param string $output Passed by reference. Used to append additional content. 32 * @param object $item Menu item data object. 33 * @param int $depth Depth of menu item. Used for padding. 34 * @param object $args 44 * @param object $item Menu item data object. 45 * @param int $depth Depth of menu item. Used for padding. 46 * @param array $args Not used. 47 * @param int $id Not used. 35 48 */ 36 49 function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { … … 213 226 $output .= ob_get_clean(); 214 227 } 215 } 228 229 } // Walker_Nav_Menu_Edit 216 230 217 231 /** … … 229 243 } 230 244 245 /** 246 * Starts the list before the elements are added. 247 * 248 * @see Walker_Nav_Menu::start_lvl() 249 * 250 * @since 3.0.0 251 * 252 * @param string $output Passed by reference. Used to append additional content. 253 * @param int $depth Depth of page. Used for padding. 254 * @param array $args Not used. 255 */ 231 256 function start_lvl( &$output, $depth = 0, $args = array() ) { 232 257 $indent = str_repeat( "\t", $depth ); … … 234 259 } 235 260 261 /** 262 * Ends the list of after the elements are added. 263 * 264 * @see Walker_Nav_Menu::end_lvl() 265 * 266 * @since 3.0.0 267 * 268 * @param string $output Passed by reference. Used to append additional content. 269 * @param int $depth Depth of page. Used for padding. 270 * @param array $args Not used. 271 */ 236 272 function end_lvl( &$output, $depth = 0, $args = array() ) { 237 273 $indent = str_repeat( "\t", $depth ); … … 240 276 241 277 /** 242 * @see Walker::start_el() 278 * Start the element output. 279 * 280 * @see Walker_Nav_Menu::start_el() 281 * 243 282 * @since 3.0.0 244 283 * 245 284 * @param string $output Passed by reference. Used to append additional content. 246 * @param object $item Menu item data object. 247 * @param int $depth Depth of menu item. Used for padding. 248 * @param object $args 285 * @param object $item Menu item data object. 286 * @param int $depth Depth of menu item. Used for padding. 287 * @param array $args Not used. 288 * @param int $id Not used. 249 289 */ 250 290 function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { … … 285 325 $output .= '<input type="hidden" class="menu-item-xfn" name="menu-item[' . $possible_object_id . '][menu-item-xfn]" value="'. esc_attr( $item->xfn ) .'" />'; 286 326 } 287 } 327 328 } // Walker_Nav_Menu_Checklist 288 329 289 330 /** -
trunk/src/wp-includes/nav-menu-template.php
r25602 r25643 17 17 class Walker_Nav_Menu extends Walker { 18 18 /** 19 * What the class handles. 20 * 19 21 * @see Walker::$tree_type 20 22 * @since 3.0.0 … … 24 26 25 27 /** 28 * Database fields to use. 29 * 26 30 * @see Walker::$db_fields 27 31 * @since 3.0.0 … … 32 36 33 37 /** 38 * Starts the list before the elements are added. 39 * 34 40 * @see Walker::start_lvl() 41 * 35 42 * @since 3.0.0 36 43 * 37 44 * @param string $output Passed by reference. Used to append additional content. 38 * @param int $depth Depth of page. Used for padding. 45 * @param int $depth Depth of menu item. Used for padding. 46 * @param array $args An array of arguments. @see wp_nav_menu() 39 47 */ 40 48 function start_lvl( &$output, $depth = 0, $args = array() ) { … … 44 52 45 53 /** 54 * Ends the list of after the elements are added. 55 * 46 56 * @see Walker::end_lvl() 57 * 47 58 * @since 3.0.0 48 59 * 49 60 * @param string $output Passed by reference. Used to append additional content. 50 * @param int $depth Depth of page. Used for padding. 61 * @param int $depth Depth of menu item. Used for padding. 62 * @param array $args An array of arguments. @see wp_nav_menu() 51 63 */ 52 64 function end_lvl( &$output, $depth = 0, $args = array() ) { … … 56 68 57 69 /** 70 * Start the element output. 71 * 58 72 * @see Walker::start_el() 73 * 59 74 * @since 3.0.0 60 75 * 61 76 * @param string $output Passed by reference. Used to append additional content. 62 * @param object $item Menu item data object.63 * @param int $depthDepth of menu item. Used for padding.64 * @param int $current_page Menu item ID.65 * @param object $args77 * @param object $item Menu item data object. 78 * @param int $depth Depth of menu item. Used for padding. 79 * @param array $args An array of arguments. @see wp_nav_menu() 80 * @param int $id Current item ID. 66 81 */ 67 82 function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { … … 78 93 * @since 3.0.0 79 94 * 80 * @param array $classes The CSS classes that are applied to the menu item's <li>.81 * @param object $item The current menu item.82 * @param array $args Arguments from {@see wp_nav_menu()}.95 * @param array $classes The CSS classes that are applied to the menu item's <li>. 96 * @param object $item The current menu item. 97 * @param array $args An array of arguments. @see wp_nav_menu() 83 98 */ 84 99 $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) ); … … 92 107 * @param string The ID that is applied to the menu item's <li>. 93 108 * @param object $item The current menu item. 94 * @param array $args A rguments from {@see wp_nav_menu()}.109 * @param array $args An array of arguments. @see wp_nav_menu() 95 110 */ 96 111 $id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args ); … … 113 128 * The HTML attributes applied to the menu item's <a>, empty strings are ignored. 114 129 * 115 * @type string $title The title attribute.130 * @type string $title The title attribute. 116 131 * @type string $target The target attribute. 117 * @type string $rel The rel attribute.118 * @type string $href The href attribute.132 * @type string $rel The rel attribute. 133 * @type string $href The href attribute. 119 134 * } 120 135 * @param object $item The current menu item. 121 * @param array $args Arguments from {@see wp_nav_menu()}.136 * @param array $args An array of arguments. @see wp_nav_menu() 122 137 */ 123 138 $atts = apply_filters( 'nav_menu_link_attributes', $atts, $item, $args ); … … 147 162 * @since 3.0.0 148 163 * 149 * @param string The menu item's starting HTML output.150 * @param object $item The current menu item.151 * @param int $depth From {@see Walker_Nav_Menu::start_el}.152 * @param array $args Arguments from {@see wp_nav_menu()}.164 * @param string $item_output The menu item's starting HTML output. 165 * @param object $item Menu item data object. 166 * @param int $depth Depth of menu item. Used for padding. 167 * @param array $args An array of arguments. @see wp_nav_menu() 153 168 */ 154 169 $output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args ); … … 156 171 157 172 /** 173 * Ends the element output, if needed. 174 * 158 175 * @see Walker::end_el() 176 * 159 177 * @since 3.0.0 160 178 * 161 179 * @param string $output Passed by reference. Used to append additional content. 162 * @param object $item Page data object. Not used. 163 * @param int $depth Depth of page. Not Used. 180 * @param object $item Page data object. Not used. 181 * @param int $depth Depth of page. Not Used. 182 * @param array $args An array of arguments. @see wp_nav_menu() 164 183 */ 165 184 function end_el( &$output, $item, $depth = 0, $args = array() ) { 166 185 $output .= "</li>\n"; 167 186 } 168 } 187 188 } // Walker_Nav_Menu 169 189 170 190 /**
Note: See TracChangeset
for help on using the changeset viewer.