wp_make_theme_file_tree example

sprintf(
                        '<a href="%s">%s</a>',
                        self_admin_url( 'theme-editor.php?theme=' . urlencode( $theme->get_template() ) ),
                        $theme->parent()->display( 'Name' )
                    )
                );
                ?> </li> <?php endif; ?> <li role="treeitem" tabindex="-1" aria-expanded="true" aria-level="1" aria-posinset="1" aria-setsize="1"> <ul role="group"> <?php wp_print_theme_file_tree( wp_make_theme_file_tree( $allowed_files ) ); ?> </ul> </li> </ul> </div> <?php if ( $error ) :
    echo '<div class="error"><p>' . __( 'File does not exist! Please double check the name and try again.' ) . '</p></div>';
else :
    ?> <form name="template" id="template" action="theme-editor.php" method="post">
Home | Imprint | This part of the site doesn't use cookies.