Make WordPress Core


Ignore:
Timestamp:
03/25/2009 04:51:08 PM (16 years ago)
Author:
ryan
Message:

Show template files in subdirs. Props DD32. fixes #4131

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/theme-editor.php

    r10792 r10835  
    152152    $template_mapping = array();
    153153    $template_dir = $themes[$theme]['Template Dir'];
    154     foreach($themes[$theme]['Template Files'] as $template_file) {
     154    foreach ( $themes[$theme]['Template Files'] as $template_file ) {
    155155        $description = trim( get_file_description($template_file) );
    156156        $template_show = basename($template_file);
     
    178178<?php
    179179    $template_mapping = array();
    180     foreach($themes[$theme]['Stylesheet Files'] as $style_file) {
     180    foreach ( $themes[$theme]['Stylesheet Files'] as $style_file ) {
    181181        $description = trim( get_file_description($style_file) );
    182182        $style_show = basename($style_file);
     
    205205    <?php if ( isset($functions ) && count($functions) ) { ?>
    206206        <div id="documentation">
    207         <label for="docs-list">Documentation:</label>
     207        <label for="docs-list"><?php _e('Documentation:') ?></label>
    208208        <?php echo $docs_select; ?>
    209209        <input type="button" class="button" value=" <?php _e( 'Lookup' ); ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'http://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( $wp_version ) ?>&redirect=true'); }" />
Note: See TracChangeset for help on using the changeset viewer.