customize_themes_print_templates()
Print JS templates for the theme-browsing UI in the Customizer.
描述
源代码
File: wp-admin/includes/theme.php
function customize_themes_print_templates() {
$preview_url = esc_url( add_query_arg( 'theme', '__THEME__' ) ); // Token because esc_url() strips curly braces.
$preview_url = str_replace( '__THEME__', '{{ data.id }}', $preview_url );
?>
<script type="text/html" id="tmpl-customize-themes-details-view">
<div class="theme-backdrop"></div>
<div class="theme-wrap wp-clearfix">
<div class="theme-header">
<button type="button" class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></button>
<button type="button" class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme' ); ?></span></button>
<button type="button" class="close dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Close details dialog' ); ?></span></button>
</div>
<div class="theme-about wp-clearfix">
<div class="theme-screenshots">
<# if ( data.screenshot[0] ) {
更新日志
Version | 描述 |
---|---|
4.2.0 | Introduced. |
相关函数
Uses
-
wp-includes/l10n.php:
_e() -
wp-includes/l10n.php:
__() -
wp-includes/formatting.php:
esc_url() -
wp-includes/formatting.php:
esc_attr() -
wp-includes/functions.php:
add_query_arg()
User Contributed Notes
你可能对这些文章感兴趣:
- wordpress函数export_wp()用法示例
- wordpress函数extract_from_markers()用法示例
- wordpress函数export_add_js()用法示例
- wordpress函数export_date_options()用法示例
- wordpress函数esc_textarea()用法示例
- wordpress函数esc_url()用法示例
- wordpress函数esc_url_raw()用法示例
- wordpress函数esc_js()用法示例
- wordpress函数esc_sql()用法示例
- wordpress函数esc_html__()用法示例
- wordpress函数esc_html_x()用法示例
- wordpress函数esc_html()用法示例
- wordpress函数esc_html_e()用法示例
- wordpress函数esc_attr_x()用法示例
如有疑问,请前往问答中心反馈!
反馈