Ticket #11563: ThemeEditor.visual.patch
File ThemeEditor.visual.patch, 2.6 KB (added by , 15 years ago) |
---|
-
wp-admin/css/theme-editor.dev.css
34 34 } 35 35 36 36 .nonessential { 37 font-size: small; 37 font-size: 11px; 38 font-style: italic; 39 padding-left: 12px; 38 40 } 39 41 40 42 .highlight { 41 padding: 1px; 43 padding: 3px; 44 font-weight: bold; 45 -moz-border-radius: 8px; 46 -khtml-border-radius: 8px; 47 -webkit-border-radius: 8px; 48 border-radius: 8px; 42 49 } 43 50 44 51 div.tablenav { -
wp-admin/theme-editor.php
155 155 foreach ( $themes[$theme]['Template Files'] as $template_file ) { 156 156 $description = trim( get_file_description($template_file) ); 157 157 $template_show = basename($template_file); 158 $filedesc = ( $description != $template_file ) ? "$description 159 $filedesc = ( $template_file == $file ) ? "< span class='highlight'>$description <span class='nonessential'>($template_show)</span></span>" : $filedesc;158 $filedesc = ( $description != $template_file ) ? "$description<br /><span class='nonessential'>($template_show)</span>" : "$description"; 159 $filedesc = ( $template_file == $file ) ? "<div class='highlight'>$description<br /><span class='nonessential'>($template_show)</span></div>" : $filedesc; 160 160 161 161 // If we have two files of the same name prefer the one in the Template Directory 162 162 // This means that we display the correct files for child themes which overload Templates as well as Styles … … 182 182 foreach ( $themes[$theme]['Stylesheet Files'] as $style_file ) { 183 183 $description = trim( get_file_description($style_file) ); 184 184 $style_show = basename($style_file); 185 $filedesc = ( $description != $style_file ) ? "$description 186 $filedesc = ( $style_file == $file ) ? "< span class='highlight'>$description <span class='nonessential'>($style_show)</span></span>" : $filedesc;185 $filedesc = ( $description != $style_file ) ? "$description<br /><span class='nonessential'>($style_show)</span>" : "$description"; 186 $filedesc = ( $style_file == $file ) ? "<div class='highlight'>$description<br /><span class='nonessential'>($style_show)</span></div>" : $filedesc; 187 187 $template_mapping[ $description ] = array( _get_template_edit_filename($style_file, $stylesheet_dir), $filedesc ); 188 188 } 189 189 ksort( $template_mapping );