<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[13334] trunk/wp-includes/custom-navigation.php: More output consolidation.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/13334">13334</a></dd>
<dt>Author</dt> <dd>ryan</dd>
<dt>Date</dt> <dd>2010-02-23 18:45:59 +0000 (Tue, 23 Feb 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>More output consolidation. see <a href="http://trac.wordpress.org/ticket/11817">#11817</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludescustomnavigationphp">trunk/wp-includes/custom-navigation.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludescustomnavigationphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/custom-navigation.php (13333 => 13334)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/custom-navigation.php        2010-02-23 18:23:26 UTC (rev 13333)
+++ trunk/wp-includes/custom-navigation.php        2010-02-23 18:45:59 UTC (rev 13334)
</span><span class="lines">@@ -70,6 +70,7 @@
</span><span class="cx">         } elseif ( 'category' == $type ) {
</span><span class="cx">                 $menu_item-&gt;type = $type;
</span><span class="cx">                 $menu_item-&gt;object_id = $menu_item-&gt;term_id;
</span><ins>+                $menu_item-&gt;ID = $menu_item-&gt;term_id;
</ins><span class="cx">                 $menu_item-&gt;parent_item = $menu_item-&gt;parent;
</span><span class="cx">                 $menu_item-&gt;menu_order = $position;
</span><span class="cx">         } elseif ( 'page' == $type ) {
</span><span class="lines">@@ -101,19 +102,19 @@
</span><span class="cx">                 break;
</span><span class="cx">                 // Category Menu Item
</span><span class="cx">                 case 'category':
</span><del>-                        if ( $menu_item-&gt;guid == '' )
</del><ins>+                        if ( empty($menu_item-&gt;guid) )
</ins><span class="cx">                                 $menu_item-&gt;link = get_category_link( $menu_item-&gt;object_id );
</span><span class="cx">                         else
</span><span class="cx">                                 $menu_item-&gt;link = $menu_item-&gt;guid;
</span><span class="cx"> 
</span><del>-                        if ( $menu_item-&gt;post_title == '' ) {
-                                $title_raw = get_categories( array('include' =&gt; $menu_item-&gt;object_id) );
-                                $menu_item-&gt;title =  htmlentities($title_raw[0]-&gt;cat_name);
</del><ins>+                        if ( empty($menu_item-&gt;post_title) ) {
+                                $title_raw = get_category( $menu_item-&gt;object_id );
+                                $menu_item-&gt;title =  htmlentities($title_raw-&gt;cat_name);
</ins><span class="cx">                         } else {
</span><span class="cx">                                 $menu_item-&gt;title = htmlentities( $menu_item-&gt;post_title );
</span><span class="cx">                         }
</span><span class="cx"> 
</span><del>-                        if ( $menu_item-&gt;post_content == '' )
</del><ins>+                        if ( empty($menu_item-&gt;post_content) )
</ins><span class="cx">                                 $menu_item-&gt;description = htmlentities( strip_tags( category_description( $menu_item-&gt;object_id ) ) );
</span><span class="cx">                         else
</span><span class="cx">                                 $menu_item-&gt;description = htmlentities( $menu_item-&gt;post_content );
</span><span class="lines">@@ -324,7 +325,6 @@
</span><span class="cx">                 if ($post-&gt;post_parent == 0) {
</span><span class="cx">                         // Custom Menu
</span><span class="cx">                         if ( $type == 'menu' ) {
</span><del>-                                $description = get_post_meta($post-&gt;ID, 'page-description', true);
</del><span class="cx">                                 $post = setup_menu_item($post, 'page', $intCounter);
</span><span class="cx">                                 ?&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -414,46 +414,13 @@
</span><span class="cx">         // Display Loop
</span><span class="cx">         foreach ( $categories_array as $cat_item ) {
</span><span class="cx">                 if ( $cat_item-&gt;parent == 0 ) {
</span><ins>+                        $cat_item = setup_menu_item($cat_item, 'category', $intCounter);
</ins><span class="cx">                         // Custom Menu
</span><span class="cx">                         if ( $type == 'menu' ) {
</span><span class="cx">                                 ?&gt;
</span><span class="cx"> 
</span><span class="cx">                                 &lt;li id=&quot;menu-&lt;?php echo $intCounter; ?&gt;&quot; value=&quot;&lt;?php echo $intCounter; ?&gt;&quot;&gt;
</span><del>-                                        &lt;dl&gt;
-                                        &lt;dt&gt;
-                                                &lt;span class=&quot;title&quot;&gt;&lt;?php echo esc_html($cat_item-&gt;cat_name); ?&gt;&lt;/span&gt;
-                                                &lt;span class=&quot;controls&quot;&gt;
-                                                &lt;span class=&quot;type&quot;&gt;category&lt;/span&gt;
-                                                &lt;a id=&quot;edit&lt;?php echo $intCounter; ?&gt;&quot; onclick=&quot;edititem(&lt;?php echo $intCounter; ?&gt;)&quot; value=&quot;&lt;?php echo $intCounter; ?&gt;&quot;&gt;&lt;img class=&quot;edit&quot; alt=&quot;&lt;?php esc_attr_e('Edit Menu Item'); ?&gt;&quot; title=&quot;=&quot;&lt;?php esc_attr_e('Edit Menu Item'); ?&gt;&quot; src=&quot;&lt;?php echo admin_url('images/ico-edit.png'); ?&gt;&quot; /&gt;&lt;/a&gt;
-                                                &lt;a id=&quot;remove&lt;?php echo $intCounter; ?&gt;&quot; onclick=&quot;removeitem(&lt;?php echo $intCounter; ?&gt;)&quot; value=&quot;&lt;?php echo $intCounter; ?&gt;&quot;&gt;
-                                                        &lt;img class=&quot;remove&quot; alt=&quot;=&quot;&lt;?php esc_attr_e('Remove from Custom Menu'); ?&gt;&quot; title=&quot;=&quot;&lt;?php esc_attr_e('Remove from Custom Menu'); ?&gt;&quot; src=&quot;&lt;?php echo admin_url('images/ico-close.png'); ?&gt;&quot; /&gt;
-                                                &lt;/a&gt;
-                                                &lt;a target=&quot;_blank&quot; href=&quot;&lt;?php echo get_category_link($cat_item-&gt;cat_ID); ?&gt;&quot;&gt;
-                                                        &lt;img alt=&quot;=&quot;&lt;?php esc_attr_e('View Page'); ?&gt;&quot; title=&quot;=&quot;&lt;?php esc_attr_e('View Page'); ?&gt;&quot; src=&quot;&lt;?php echo admin_url('images/ico-viewpage.png'); ?&gt;&quot; /&gt;
-                                                &lt;/a&gt;
-                                                &lt;/span&gt;
-
-                                        &lt;/dt&gt;
-                                        &lt;/dl&gt;
-                                        &lt;a class=&quot;hide&quot; href=&quot;&lt;?php echo get_category_link($cat_item-&gt;cat_ID); ?&gt;&quot;&gt;&lt;span class=&quot;title&quot;&gt;&lt;?php echo $cat_item-&gt;cat_name; ?&gt;&lt;/span&gt;
-                                        &lt;?php
-                                        $use_cats_raw = get_option('wp_settings_custom_nav_descriptions');
-                                        $use_cats = strtolower($use_cats_raw);
-                                        if ( $use_cats == 'yes' ) { ?&gt;
-                                        &lt;br/&gt; &lt;span&gt;&lt;?php echo $cat_item-&gt;category_description; ?&gt;&lt;/span&gt;
-                                        &lt;?php } ?&gt;
-                                                                &lt;/a&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;postmenu&lt;?php echo $intCounter; ?&gt;&quot; id=&quot;postmenu&lt;?php echo $intCounter; ?&gt;&quot; value=&quot;&lt;?php echo $cat_item-&gt;cat_ID; ?&gt;&quot; /&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;parent&lt;?php echo $intCounter; ?&gt;&quot; id=&quot;parent&lt;?php echo $intCounter; ?&gt;&quot; value=&quot;0&quot; /&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;title&lt;?php echo $intCounter; ?&gt;&quot; id=&quot;title&lt;?php echo $intCounter; ?&gt;&quot; value=&quot;&lt;?php echo esc_attr($cat_item-&gt;cat_name); ?&gt;&quot; /&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;linkurl&lt;?php echo $intCounter; ?&gt;&quot; id=&quot;linkurl&lt;?php echo $intCounter; ?&gt;&quot; value=&quot;&lt;?php echo esc_attr(get_category_link($cat_item-&gt;cat_ID)); ?&gt;&quot; /&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;description&lt;?php echo $intCounter; ?&gt;&quot; id=&quot;description&lt;?php echo $intCounter; ?&gt;&quot; value=&quot;&lt;?php echo esc_attr($cat_item-&gt;category_description); ?&gt;&quot; /&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;icon&lt;?php echo $intCounter; ?&gt;&quot; id=&quot;icon&lt;?php echo $intCounter; ?&gt;&quot; value=&quot;0&quot; /&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;position&lt;?php echo $intCounter; ?&gt;&quot; id=&quot;position&lt;?php echo $intCounter; ?&gt;&quot; value=&quot;&lt;?php echo $intCounter; ?&gt;&quot; /&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;linktype&lt;?php echo $intCounter; ?&gt;&quot; id=&quot;linktype&lt;?php echo $intCounter; ?&gt;&quot; value=&quot;category&quot; /&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;anchortitle&lt;?php echo $intCounter; ?&gt;&quot; id=&quot;anchortitle&lt;?php echo $intCounter; ?&gt;&quot; value=&quot;&lt;?php echo esc_attr($cat_item-&gt;cat_name); ?&gt;&quot; /&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;newwindow&lt;?php echo $intCounter; ?&gt;&quot; id=&quot;newwindow&lt;?php echo $intCounter; ?&gt;&quot; value=&quot;0&quot; /&gt;
-
</del><ins>+                                        &lt;?php output_menu_item($cat_item, 'menu'); ?&gt;
</ins><span class="cx">                                         &lt;?php $parentli = $cat_item-&gt;cat_ID; ?&gt;
</span><span class="cx">                                         &lt;?php $intCounter++; ?&gt;
</span><span class="cx">                                         &lt;?php
</span><span class="lines">@@ -520,11 +487,14 @@
</span><span class="cx"> 
</span><span class="cx">         if ( $type == 'categories' ) {
</span><span class="cx">                 // Get Sub Category Items
</span><ins>+                $item_type = 'category';
</ins><span class="cx">                 $sub_array = get_categories($sub_args);
</span><span class="cx">         } elseif ($type == 'pages') {
</span><span class="cx">                 // Get Sub Page Items
</span><ins>+                $item_type = 'page';
</ins><span class="cx">                 $sub_array = get_pages($sub_args);
</span><span class="cx">         } else {
</span><ins>+                $item_type = 'custom';
</ins><span class="cx">                 $sub_array = array();
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -537,6 +507,8 @@
</span><span class="cx">                 // Display Loop
</span><span class="cx">                 foreach ( $sub_array as $sub_item ) {
</span><span class="cx">                         // Prepare Menu Data
</span><ins>+                        $sub_item = setup_menu_item($sub_item, $item_type, $counter);
+
</ins><span class="cx">                         if ( $type == 'categories' ) {
</span><span class="cx">                                 // Category Menu Item
</span><span class="cx">                                 $link = get_category_link($sub_item-&gt;cat_ID);
</span><span class="lines">@@ -566,35 +538,7 @@
</span><span class="cx">                         if ( $output_type == 'menu' ) {
</span><span class="cx">                                 ?&gt;
</span><span class="cx">                                 &lt;li id=&quot;menu-&lt;?php echo $counter; ?&gt;&quot; value=&quot;&lt;?php echo $counter; ?&gt;&quot;&gt;
</span><del>-                                        &lt;dl&gt;
-                                        &lt;dt&gt;
-                                                &lt;span class=&quot;title&quot;&gt;&lt;?php echo $title; ?&gt;&lt;/span&gt;
-                                                        &lt;span class=&quot;controls&quot;&gt;
-                                                        &lt;span class=&quot;type&quot;&gt;&lt;?php echo $linktype; ?&gt;&lt;/span&gt;
-                                                        &lt;a id=&quot;edit&lt;?php echo $counter; ?&gt;&quot; onclick=&quot;edititem(&lt;?php echo $counter; ?&gt;)&quot; value=&quot;&lt;?php echo $counter; ?&gt;&quot;&gt;&lt;img class=&quot;edit&quot; alt=&quot;&lt;?php esc_attr_e('Edit Menu Item'); ?&gt;&quot; title=&quot;&lt;?php esc_attr_e('Edit Menu Item'); ?&gt;&quot; src=&quot;&lt;?php echo admin_url('images/ico-edit.png'); ?&gt;&quot; /&gt;&lt;/a&gt;
-                                                                &lt;a id=&quot;remove&lt;?php echo $counter; ?&gt;&quot; onclick=&quot;removeitem(&lt;?php echo $counter; ?&gt;)&quot; value=&quot;&lt;?php echo $counter; ?&gt;&quot;&gt;
-                                                                        &lt;img class=&quot;remove&quot; alt=&quot;&lt;?php esc_attr_e('Remove from Custom Menu'); ?&gt;&quot; title=&quot;&lt;?php esc_attr_e('Remove from Custom Menu'); ?&gt;&quot; src=&quot;&lt;?php echo admin_url('images/ico-close.png'); ?&gt;&quot; /&gt;
-                                                                &lt;/a&gt;
-                                                                &lt;a target=&quot;_blank&quot; href=&quot;&lt;?php echo $link; ?&gt;&quot;&gt;
-                                                                        &lt;img alt=&quot;&lt;?php esc_attr_e('View Page'); ?&gt;&quot; title=&quot;&lt;?php esc_attr_e('View Page'); ?&gt;&quot; src=&quot;&lt;?php echo admin_url('images/ico-viewpage.png'); ?&gt;&quot; /&gt;
-                                                                &lt;/a&gt;
-                                                &lt;/span&gt;
-
-                                        &lt;/dt&gt;
-                                        &lt;/dl&gt;
-                                        &lt;a class=&quot;hide&quot; href=&quot;&lt;?php echo $link; ?&gt;&quot;&gt;&lt;?php echo $title; ?&gt;&lt;/a&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;dbid&lt;?php echo $counter; ?&gt;&quot; id=&quot;dbid&lt;?php echo $counter; ?&gt;&quot; value=&quot;&lt;?php echo $sub_item-&gt;id; ?&gt;&quot; /&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;postmenu&lt;?php echo $counter; ?&gt;&quot; id=&quot;postmenu&lt;?php echo $counter; ?&gt;&quot; value=&quot;&lt;?php echo $parent_id; ?&gt;&quot; /&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;parent&lt;?php echo $counter; ?&gt;&quot; id=&quot;parent&lt;?php echo $counter; ?&gt;&quot; value=&quot;&lt;?php echo $parentli; ?&gt;&quot; /&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;title&lt;?php echo $counter; ?&gt;&quot; id=&quot;title&lt;?php echo $counter; ?&gt;&quot; value=&quot;&lt;?php echo $title; ?&gt;&quot; /&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;linkurl&lt;?php echo $counter; ?&gt;&quot; id=&quot;linkurl&lt;?php echo $counter; ?&gt;&quot; value=&quot;&lt;?php echo $link; ?&gt;&quot; /&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;description&lt;?php echo $counter; ?&gt;&quot; id=&quot;description&lt;?php echo $counter; ?&gt;&quot; value=&quot;&lt;?php echo $description; ?&gt;&quot; /&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;icon&lt;?php echo $counter; ?&gt;&quot; id=&quot;icon&lt;?php echo $counter; ?&gt;&quot; value=&quot;0&quot; /&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;position&lt;?php echo $counter; ?&gt;&quot; id=&quot;position&lt;?php echo $counter; ?&gt;&quot; value=&quot;&lt;?php echo $counter; ?&gt;&quot; /&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;linktype&lt;?php echo $counter; ?&gt;&quot; id=&quot;linktype&lt;?php echo $counter; ?&gt;&quot; value=&quot;&lt;?php echo $linktype; ?&gt;&quot; /&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;anchortitle&lt;?php echo $counter; ?&gt;&quot; id=&quot;anchortitle&lt;?php echo $counter; ?&gt;&quot; value=&quot;&lt;?php echo $title; ?&gt;&quot; /&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;newwindow&lt;?php echo $counter; ?&gt;&quot; id=&quot;newwindow&lt;?php echo $counter; ?&gt;&quot; value=&quot;0&quot; /&gt;
-
</del><ins>+                                        &lt;?php output_menu_item($sub_item, 'menu'); ?&gt;
</ins><span class="cx">                                         &lt;?php $counter++; ?&gt;
</span><span class="cx">                                         &lt;?php
</span><span class="cx"> 
</span><span class="lines">@@ -637,86 +581,4 @@
</span><span class="cx">         return $counter;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-/*-----------------------------------------------------------------------------------*/
-/* Recursive get children */
-/*-----------------------------------------------------------------------------------*/
-
-function get_children_menu_elements($childof, $intCounter, $parentli, $type, $menu_id, $table_name) {
-        global $wpdb;
-
-        $counter = $intCounter;
-
-        if ( $type == 'categories' ) {
-                // Get Sub Category Items
-                $sub_args = array(
-                        'child_of' =&gt; $childof,
-                        'hide_empty'  =&gt; false,
-                        'parent' =&gt; $childof);
-                $sub_array = get_categories($sub_args);
-        } elseif ($type == 'pages') {
-                // Get Sub Page Items
-                $sub_args = array(
-                        'child_of' =&gt; $childof,
-                        'parent' =&gt; $childof);
-
-                $sub_array = get_pages($sub_args);
-
-        } else {
-                $sub_array = array();
-        }
-
-        if ( $sub_array ) {
-                // DISPLAY Loop
-                foreach ( $sub_array as $sub_item ) {
-                        if ( isset($sub_item-&gt;parent) )
-                                $sub_item_parent = $sub_item-&gt;parent;
-                        elseif (isset($sub_item-&gt;post_parent))
-                                $sub_item_parent = $sub_item-&gt;post_parent;
-
-                        // Is child
-                        if ( $sub_item_parent == $childof ) {
-                                // Prepare Menu Data
-                                // Category Menu Item
-                                if ( $type == 'categories' ) {
-                                        $link = get_category_link($sub_item-&gt;cat_ID);
-                                        $title = htmlentities($sub_item-&gt;cat_name);
-                                        $parent_id = $sub_item-&gt;category_parent;
-                                        $itemid = $sub_item-&gt;cat_ID;
-                                        $linktype = 'category';
-                                        $appendtype= 'Category';
-                                }
-                                // Page Menu Item
-                                elseif ( $type == 'pages' ) {
-                                        $link = get_permalink($sub_item-&gt;ID);
-                                        $title = htmlentities($sub_item-&gt;post_title);
-                                        $parent_id = $sub_item-&gt;post_parent;
-                                        $linktype = 'page';
-                                        $itemid = $sub_item-&gt;ID;
-                                        $appendtype= 'Page';
-                                }
-                                // Custom Menu Item
-                                else {
-                                        $title = '';
-                                        $linktype = 'custom';
-                                        $appendtype= 'Custom';
-                                }
-
-                                // CHECK for existing parent records
-                                // echo $parent_id;
-                                $wp_result = $wpdb-&gt;get_results(&quot;SELECT id FROM &quot;.$table_name.&quot; WHERE post_id='&quot;.$parent_id.&quot;' AND link_type='&quot;.$linktype.&quot;' AND menu_id='&quot;.$menu_id.&quot;'&quot;);
-                                if ( $wp_result &gt; 0 &amp;&amp; isset($wp_result[0]-&gt;id) )
-                                        $parent_id = $wp_result[0]-&gt;id;
-
-                                //INSERT item
-                                $insert = &quot;INSERT INTO &quot;.$table_name.&quot; (position,post_id,parent_id,custom_title,custom_link,custom_description,menu_icon,link_type,menu_id,custom_anchor_title) &quot;.&quot;VALUES ('&quot;.$counter.&quot;','&quot;.$itemid.&quot;','&quot;.$parent_id.&quot;','&quot;.$title.&quot;','&quot;.$link.&quot;','','','&quot;.$linktype.&quot;','&quot;.$menu_id.&quot;','&quot;.$title.&quot;')&quot;;
-                                  $results = $wpdb-&gt;query( $insert );
-
-                                  $counter++;
-                                  $counter = get_children_menu_elements($itemid, $counter, $parent_id, $type, $menu_id, $table_name);
-                        }
-                }
-        }
-        return $counter;
-}
-
</del><span class="cx"> ?&gt;
</span></span></pre>
</div>
</div>

</body>
</html>