locale_stylesheet()
最后更新于:2021-11-27 14:18:25
locale_stylesheet()Displays localized stylesheet link element.
源文件
文件: gc-includes/theme.php
function locale_stylesheet() {
$stylesheet = get_locale_stylesheet_uri();
if ( empty( $stylesheet ) ) {
return;
}
$type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';
printf(
'<link rel="stylesheet" href="https://docs.gechiui.com/functions/locale_stylesheet/%s"%s media="screen" />',
$stylesheet,
$type_attr
);
}