function get_stylesheet_directory_uri() { $stylesheet = str_replace( '%2F', '/', rawurlencode( get_stylesheet() ) ); $theme_root_uri = get_theme_root_uri( $stylesheet ); $stylesheet_dir_uri = "$theme_root_uri/$stylesheet"; /** * Filters the stylesheet directory URI. * * @since...
get_stylesheet_directory_uri() Retrieve stylesheet directory URI. description 返回值 (string) 源代码 File: wp-includes/theme.php function ge…
$output = get_stylesheet_uri(); break; case 'stylesheet_directory': $output = get_stylesheet_directory_uri(); break; case 'template_directory': case 'template_url': $output = get_template_directory_uri(); break; case 'admin_email': $output = get_option('admin_email'); break; case '...
可替代函数:get_stylesheet_uri()。 bloginfo('stylesheet_directory') - 当前主题的主要 CSS(通常是style.css)文件目录的 URL。可替代函数:get_stylesheet_uri()。 bloginfo('template_url') - WordPress模板目录 URL。可替代函数,父模板目录:get_template_directory_uri(),子模板目录:get_stylesheet_directory_u...
get_stylesheet_uri(),获取活动主题的style.css的完整URL路径; get_theme_file_path($file)、get_theme_file_uri($file) 一样 ,这个函数将返回主题中文件的路径(如果存在)。 3.wp_get_theme() 获取当前启用的主题相关说明信息(style.css文件内的主题说明),wp_get_themes(),获取系统内所有的主题信息; 4.样...
‘stylesheet_url’– 显示当前使用的主题的 CSS文件(通常为 style.css)路径。可以考虑使用 get_stylesheet_uri() 代替。 ‘stylesheet_directory’– 显示当前使用的主题的样式表路径。可以考虑使用 get_stylesheet_directory_uri() 代替。 ‘template_url’/‘template_directory’– 当前主题的 URL 路径 。在子主题...
Stylesheet:当前主题的风格名称。 CurrentVersion:主题的版本号。 ThemeRoot:主题的根目录路径。 TemplateDir:父主题的目录路径(如果有父主题)。 StylesheetDir:当前主题的目录路径。 TemplateURI:父主题的目录URI(如果有父主题)。 StylesheetURI:当前主题的目录URI。
HTTP协议不对URI的长度作事先的限制,服务器必须能够处理任何他们提供资源的URI,并且应该能够处理无限长度的URIs,这种无效长度的URL可能会在客户端以基于GET方式的请求时产生。如果服务器不能处理太长的URI的时候,服务器应该返回414状态码(此状态码代表Request-URI太 get请求url拼接java http协议 工作中的问题 服务器 ...
">.wrapper .suggestion{border:1px solid #e8e8e8;width:653px;-moz-box-shadow:0 1px 8px rgba(0,0,0,.1);-webkit-box-shadow:0 1px 8px rgba(0,0,0,.1);box-shadow:0 1px 8px rgba(0,0,0,.1);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:2px;bo...
'stylesheet_url'- 显示当前使用的主题的 CSS文件(通常为 style.css)路径。可以考虑使用 get_stylesheet_uri() 代替。 'stylesheet_directory'- 显示当前使用的主题的样式表路径。可以考虑使用 get_stylesheet_directory_uri() 代替。 'template_url'/'template_directory'- 当前主题的 URL 路径 。在子主题中, get...