Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #24644, comment 1


Ignore:
Timestamp:
06/26/2013 10:45:42 AM (12 years ago)
Author:
Looimaster
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24644, comment 1

    initial v1  
    44{{{
    55class custom_walker extends Walker_Nav_Menu {
    6         function display_element($element, &$children_elements, $max_depth, $depth=0, $args, &$output){
    7         $GLOBALS['dd_children'] = (isset($children_elements[$element->ID]))? 1:0;
    8         parent::display_element($element, $children_elements, $max_depth, $depth, $args, $output);
    9     }
     6  function display_element($element, &$children_elements, $max_depth, $depth=0, $args, &$output){
     7    $GLOBALS['dd_children'] = (isset($children_elements[$element->ID]))? 1:0;
     8    parent::display_element($element, $children_elements, $max_depth, $depth, $args, $output);
     9  }
     10  [...]
     11}
    1012}}}
    1113