Ticket #13383: 13383-theme-editor.diff
File 13383-theme-editor.diff, 3.9 KB (added by , 15 years ago) |
---|
-
wp-admin/theme-editor.php
154 154 $description = trim( get_file_description($template_file) ); 155 155 $template_show = basename($template_file); 156 156 $filedesc = ( $description != $template_file ) ? "$description<br /><span class='nonessential'>($template_show)</span>" : "$description"; 157 $filedesc = ( $template_file == $file ) ? "< div class='highlight'>$description<br /><span class='nonessential'>($template_show)</span></div>" : $filedesc;157 $filedesc = ( $template_file == $file ) ? "<span class='highlight'>$description<br /><span class='nonessential'>($template_show)</span></span>" : $filedesc; 158 158 159 159 // If we have two files of the same name prefer the one in the Template Directory 160 160 // This means that we display the correct files for child themes which overload Templates as well as Styles … … 181 181 $description = trim( get_file_description($style_file) ); 182 182 $style_show = basename($style_file); 183 183 $filedesc = ( $description != $style_file ) ? "$description<br /><span class='nonessential'>($style_show)</span>" : "$description"; 184 $filedesc = ( $style_file == $file ) ? "< div class='highlight'>$description<br /><span class='nonessential'>($style_show)</span></div>" : $filedesc;184 $filedesc = ( $style_file == $file ) ? "<span class='highlight'>$description<br /><span class='nonessential'>($style_show)</span></span>" : $filedesc; 185 185 $template_mapping[ $description ] = array( _get_template_edit_filename($style_file, $stylesheet_dir), $filedesc ); 186 186 } 187 187 ksort( $template_mapping ); -
wp-admin/css/theme-editor.css
1 #template textarea{font-family:Consolas,Monaco,Courier,monospace;font-size:12px;width:97%;}#template p{width:97%;}#templateside{float:right;width:190px;word-wrap:break-word;}#templateside h3,#postcustomstuff p.submit{margin:0;}#templateside h4{margin:1em 0 0;}#templateside ol,#templateside ul{margin:.5em;padding:0;}#templateside li{margin:4px 0;} .nonessential{font-size:11px;font-style:italic;padding-left:12px;}.highlight{padding:3px 3px 3px 12px;margin-left:-12px;font-weight:bold;-moz-border-radius:8px;-khtml-border-radius:8px;-webkit-border-radius:8px;border-radius:8px;}div.tablenav{margin-right:210px;}#documentation{margin-top:10px;}#documentation label{line-height:22px;vertical-align:top;font-weight:bold;}.fileedit-sub{padding:10px 0 8px;line-height:180%;}2 No newline at end of file 1 #template textarea{font-family:Consolas,Monaco,Courier,monospace;font-size:12px;width:97%;}#template p{width:97%;}#templateside{float:right;width:190px;word-wrap:break-word;}#templateside h3,#postcustomstuff p.submit{margin:0;}#templateside h4{margin:1em 0 0;}#templateside ol,#templateside ul{margin:.5em;padding:0;}#templateside li{margin:4px 0;}#templateside ul li a span.highlight{display:block;}.nonessential{font-size:11px;font-style:italic;padding-left:12px;}.highlight{padding:3px 3px 3px 12px;margin-left:-12px;font-weight:bold;-moz-border-radius:8px;-khtml-border-radius:8px;-webkit-border-radius:8px;border-radius:8px;}div.tablenav{margin-right:210px;}#documentation{margin-top:10px;}#documentation label{line-height:22px;vertical-align:top;font-weight:bold;}.fileedit-sub{padding:10px 0 8px;line-height:180%;} 2 No newline at end of file -
wp-admin/css/theme-editor.dev.css
33 33 margin: 4px 0; 34 34 } 35 35 36 #templateside ul li a span.highlight { 37 display:block; 38 } 39 36 40 .nonessential { 37 41 font-size: 11px; 38 42 font-style: italic;