Make WordPress Core


Ignore:
Timestamp:
12/25/2009 03:16:25 AM (15 years ago)
Author:
matt
Message:

Some style tweaks to theme editor, fixes #11563. Hat tip: Simek.

I adjusted the padding to be a little heavier and then have a negative margin, so the text stays aligned and the highlight floats around it. As an added tweak I removed the extraneous "Theme Files" heading which didn't really convey any useful information.

"Perfection is achieved perfection not when there is nothing left to add, but when there is nothing left to take away" -- Antoine de Saint-Exupery (and Merry Christmas everybody. :))

File:
1 edited

Legend:

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

    r12513 r12541  
    143143<br class="clear" />
    144144    <div id="templateside">
    145     <h3><?php _e("Theme Files"); ?></h3>
    146145
    147146<?php
    148147if ($allowed_files) :
    149148?>
    150     <h4><?php _e('Templates'); ?></h4>
     149    <h3><?php _e('Templates'); ?></h3>
    151150    <ul>
    152151<?php
     
    156155        $description = trim( get_file_description($template_file) );
    157156        $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;
    160159
    161160        // If we have two files of the same name prefer the one in the Template Directory
     
    175174<?php endwhile; ?>
    176175    </ul>
    177     <h4><?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>
    178177    <ul>
    179178<?php
     
    183182        $description = trim( get_file_description($style_file) );
    184183        $style_show = basename($style_file);
    185         $filedesc = ( $description != $style_file ) ? "$description <span class='nonessential'>($style_show)</span>" : "$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;
    187186        $template_mapping[ $description ] = array( _get_template_edit_filename($style_file, $stylesheet_dir), $filedesc );
    188187    }
Note: See TracChangeset for help on using the changeset viewer.