Changeset 12541 for trunk/wp-admin/theme-editor.php
- Timestamp:
- 12/25/2009 03:16:25 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/theme-editor.php
r12513 r12541 143 143 <br class="clear" /> 144 144 <div id="templateside"> 145 <h3><?php _e("Theme Files"); ?></h3>146 145 147 146 <?php 148 147 if ($allowed_files) : 149 148 ?> 150 <h 4><?php _e('Templates'); ?></h4>149 <h3><?php _e('Templates'); ?></h3> 151 150 <ul> 152 151 <?php … … 156 155 $description = trim( get_file_description($template_file) ); 157 156 $template_show = basename($template_file); 158 $filedesc = ( $description != $template_file ) ? "$description <span class='nonessential'>($template_show)</span>" : $description;159 $filedesc = ( $template_file == $file ) ? "< span class='highlight'>$description <span class='nonessential'>($template_show)</span></span>" : $filedesc;157 $filedesc = ( $description != $template_file ) ? "$description<br /><span class='nonessential'>($template_show)</span>" : "$description"; 158 $filedesc = ( $template_file == $file ) ? "<div class='highlight'>$description<br /><span class='nonessential'>($template_show)</span></div>" : $filedesc; 160 159 161 160 // If we have two files of the same name prefer the one in the Template Directory … … 175 174 <?php endwhile; ?> 176 175 </ul> 177 <h 4><?php /* translators: Theme stylesheets in theme editor */ echo _x('Styles', 'Theme stylesheets in theme editor'); ?></h4>176 <h3><?php /* translators: Theme stylesheets in theme editor */ echo _x('Styles', 'Theme stylesheets in theme editor'); ?></h3> 178 177 <ul> 179 178 <?php … … 183 182 $description = trim( get_file_description($style_file) ); 184 183 $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;184 $filedesc = ( $description != $style_file ) ? "$description<br /><span class='nonessential'>($style_show)</span>" : "$description"; 185 $filedesc = ( $style_file == $file ) ? "<div class='highlight'>$description<br /><span class='nonessential'>($style_show)</span></div>" : $filedesc; 187 186 $template_mapping[ $description ] = array( _get_template_edit_filename($style_file, $stylesheet_dir), $filedesc ); 188 187 }
Note: See TracChangeset
for help on using the changeset viewer.