mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-18 04:25:07 +00:00
Theme Customizer: Add the theme name to the 'You are previewing' string in the left pane, using a placeholder. props SergeyBiryukov, xibe. fixes #20782.
git-svn-id: http://core.svn.wordpress.org/trunk@20955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5e27e6c788
commit
df1a904b9a
@ -68,8 +68,10 @@ do_action( 'customize_controls_print_scripts' );
|
|||||||
<div class="wp-full-overlay-sidebar-content">
|
<div class="wp-full-overlay-sidebar-content">
|
||||||
<div id="customize-info" class="customize-section<?php if ( $cannot_expand ) echo ' cannot-expand'; ?>">
|
<div id="customize-info" class="customize-section<?php if ( $cannot_expand ) echo ' cannot-expand'; ?>">
|
||||||
<div class="customize-section-title">
|
<div class="customize-section-title">
|
||||||
<span class="preview-notice"><?php _e('You are previewing'); ?></span>
|
<span class="preview-notice"><?php
|
||||||
<strong class="theme-name"><?php echo $wp_customize->theme()->display('Name'); ?></strong>
|
/* translators: %s is the theme name in the Customize/Live Preview pane */
|
||||||
|
echo sprintf( __( 'You are previewing %s' ), '<strong class="theme-name">' . $wp_customize->theme()->display('Name') . '</strong>' );
|
||||||
|
?></span>
|
||||||
</div>
|
</div>
|
||||||
<?php if ( ! $cannot_expand ) : ?>
|
<?php if ( ! $cannot_expand ) : ?>
|
||||||
<div class="customize-section-content">
|
<div class="customize-section-content">
|
||||||
|
@ -115,6 +115,7 @@ body {
|
|||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
|
color: #333;
|
||||||
display: block;
|
display: block;
|
||||||
text-shadow: 0 1px 0 #fff;
|
text-shadow: 0 1px 0 #fff;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user