<ul<?php if (wptouch_get_menu_depth() == 1) { echo ' style="display: none;"'; } ?> > <?php while (wptouch_has_menu_items()) { ?> <?php wptouch_the_menu_item(); ?> <?php if (!wptouch_menu_item_duplicate()) { ?> <li class="<?php wptouch_the_menu_item_classes(); ?> "> <div class="icon-drop-target <?php wptouch_the_menu_item_classes(); ?> " title="<?php wptouch_the_menu_id(); ?> "> <img src="<?php wptouch_the_menu_icon(); ?>
function wptouch_the_menu_depth() { echo wptouch_get_menu_depth(); }