- <ul>
-<?php foreach($allowed_files as $allowed_file) : ?>
- <li><a href="theme-editor.php?file=<?php echo "$allowed_file"; ?>&theme=<?php echo urlencode($theme) ?>"><?php echo get_file_description($allowed_file); ?></a></li>
+ <h4><?php _e('Templates'); ?></h4>
+ <ul>
+<?php foreach($themes[$theme]['Template Files'] as $template_file) :
+ $description = get_file_description($template_file);
+ $template_show = basename($template_file);
+ $filedesc = ( $description != $template_file ) ? "$description <span class='nonessential'>($template_show)</span>" : "$description";
+ $filedesc = ( $template_file == $file ) ? "<span class='highlight'>$description <span class='nonessential'>($template_show)</span></span>" : $filedesc;
+ ?>
+ <li><a href="theme-editor.php?file=<?php echo "$template_file"; ?>&theme=<?php echo urlencode($theme) ?>"><?php echo $filedesc ?></a></li>
+<?php endforeach; ?>
+ </ul>
+ <h4><?php echo _c('Styles|Theme stylesheets in theme editor'); ?></h4>
+ <ul>
+<?php foreach($themes[$theme]['Stylesheet Files'] as $style_file) :
+ $description = get_file_description($style_file);
+ $style_show = basename($style_file);
+ $filedesc = ( $description != $style_file ) ? "$description <span class='nonessential'>($style_show)</span>" : "$description";
+ $filedesc = ( $style_file == $file ) ? "<span class='highlight'>$description <span class='nonessential'>($style_show)</span></span>" : $filedesc;
+ ?>
+ <li><a href="theme-editor.php?file=<?php echo "$style_file"; ?>&theme=<?php echo urlencode($theme) ?>"><?php echo $filedesc ?></a></li>