Changeset 42156
- Timestamp:
- 11/11/2017 08:43:03 PM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-admin/css/common.css
r41999 r42156 3241 3241 } 3242 3242 3243 #templateside li a,3243 #templateside li:not(.howto) a, 3244 3244 .theme-editor-php .highlight { 3245 3245 display: block; … … 3248 3248 } 3249 3249 3250 #templateside li > a:first-of-type {3250 #templateside li:not(.howto) > a:first-of-type { 3251 3251 padding-top: 0; 3252 } 3253 3254 #templateside li.howto { 3255 padding: 6px 12px 12px 12px; 3252 3256 } 3253 3257 … … 3776 3780 } 3777 3781 3778 #templateside li a {3782 #templateside li:not(.howto) a { 3779 3783 display: block; 3780 3784 padding: 5px; 3785 } 3786 #templateside li.howto { 3787 padding: 12px; 3781 3788 } 3782 3789 -
branches/4.9/src/wp-admin/theme-editor.php
r42014 r42156 230 230 <div id="templateside"> 231 231 <h2 id="theme-files-label"><?php _e( 'Theme Files' ); ?></h2> 232 <?php233 if ( $has_templates || $theme->parent() ) :234 if ( $theme->parent() ) {235 /* translators: %s: link to edit parent theme */236 echo '<p class="howto">' . sprintf( __( 'This child theme inherits templates from a parent theme, %s.' ),237 sprintf( '<a href="%s">%s</a>',238 self_admin_url( 'theme-editor.php?theme=' . urlencode( $theme->get_template() ) ),239 $theme->parent()->display( 'Name' )240 )241 ) . "</p>\n";242 }243 endif;244 ?>245 232 <ul role="tree" aria-labelledby="theme-files-label"> 233 <?php if ( ( $has_templates || $theme->parent() ) && $theme->parent() ) : ?> 234 <li class="howto"> 235 <?php 236 /* translators: %s: link to edit parent theme */ 237 echo sprintf( __( 'This child theme inherits templates from a parent theme, %s.' ), 238 sprintf( '<a href="%s">%s</a>', 239 self_admin_url( 'theme-editor.php?theme=' . urlencode( $theme->get_template() ) ), 240 $theme->parent()->display( 'Name' ) 241 ) 242 ); 243 ?> 244 </li> 245 <?php endif; ?> 246 246 <li role="treeitem" tabindex="-1" aria-expanded="true" aria-level="1" aria-posinset="1" aria-setsize="1"> 247 247 <ul role="group">
Note: See TracChangeset
for help on using the changeset viewer.