Theme Customizer: Add a link to customize the current theme. see #19910.

git-svn-id: https://develop.svn.wordpress.org/trunk@20354 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2012-04-04 21:41:51 +00:00
parent b57bf8a36d
commit 786145ebbf
2 changed files with 5 additions and 0 deletions

View File

@ -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 {

View File

@ -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 &#8220;%s&#8221;' ), $ct->get('Name') ) ); ?>"><?php _e( 'Customize' )?></a>
<span><?php _e( 'Options:' )?></span>
<?php
// Pretend you didn't see this.