Theme Customizer: Add a link to customize the current theme. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20354 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
65e8cf47ed
commit
d62266817b
|
@ -4337,6 +4337,10 @@ h3.available-themes {
|
|||
font-size: 15px;
|
||||
}
|
||||
|
||||
.theme-options .load-customize {
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
#post-body ul.add-menu-item-tabs li.tabs a,
|
||||
#TB_window #TB_title a.tb-theme-preview-link,
|
||||
#TB_window #TB_title a.tb-theme-preview-link:visited {
|
||||
|
|
|
@ -107,6 +107,7 @@ if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
|
|||
printf( __( '%1$s %2$s by %3$s' ), $ct->display('Name'), $ct->display('Version'), $ct->display('Author') ) ; ?></h4>
|
||||
<p class="theme-description"><?php echo $ct->display('Description'); ?></p>
|
||||
<div class="theme-options">
|
||||
<a href="#" class="load-customize hide-if-no-js" data-customize-template="<?php echo esc_attr( $ct->get_template() ); ?>" data-customize-stylesheet="<?php echo esc_attr( $ct->get_stylesheet() ); ?>" title="<?php echo esc_attr( sprintf( __( 'Customize “%s”' ), $ct->get('Name') ) ); ?>"><?php _e( 'Customize' )?></a>
|
||||
<span><?php _e( 'Options:' )?></span>
|
||||
<?php
|
||||
// Pretend you didn't see this.
|
||||
|
|
Loading…
Reference in New Issue