本文整理汇总了PHP中get_locale_stylesheet_uri函数的典型用法代码示例。如果您正苦于以下问题:PHP get_locale_stylesheet_uri函数的具体用法?PHP get_locale_stylesheet_uri怎么用?PHP get_locale_stylesheet_uri使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_locale_stylesheet_uri函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: tct_locale_stylesheet
function tct_locale_stylesheet()
{
$stylesheet = get_locale_stylesheet_uri();
if (empty($stylesheet)) {
return;
}
echo ' <link rel="stylesheet" href="' . $stylesheet . '" type="text/css" media="screen">' . "\n";
}
开发者ID:NeilCrosby,项目名称:theme-the-code-train,代码行数:8,代码来源:functions.php
示例2: saga_get_editor_styles
/**
* Callback function for adding editor styles. Use along with the add_editor_style() function.
*
* @since 1.0.0
* @access public
* @return array
*/
function saga_get_editor_styles()
{
/* Set up an array for the styles. */
$editor_styles = array();
/* Add the theme's editor styles. */
$editor_styles[] = trailingslashit(get_template_directory_uri()) . 'css/editor-style.css';
/* If a child theme, add its editor styles. Note: WP checks whether the file exists before using it. */
if (is_child_theme() && file_exists(trailingslashit(get_stylesheet_directory()) . 'css/editor-style.css')) {
$editor_styles[] = trailingslashit(get_stylesheet_directory_uri()) . 'css/editor-style.css';
}
/* Add the locale stylesheet. */
$editor_styles[] = get_locale_stylesheet_uri();
/* Uses Ajax to display custom theme styles added via the Theme Mods API. */
$editor_styles[] = add_query_arg('action', 'saga_editor_styles', admin_url('admin-ajax.php'));
/* Return the styles. */
return $editor_styles;
}
开发者ID:starise,项目名称:saga,代码行数:24,代码来源:theme.php
示例3: toivo_lite_get_editor_styles
/**
* Callback function for adding editor styles. Use along with the add_editor_style() function.
*
* @author Justin Tadlock, justintadlock.com
* @link http://themehybrid.com/themes/stargazer
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* @since 1.0.0
* @return array
*/
function toivo_lite_get_editor_styles()
{
/* Set up an array for the styles. */
$editor_styles = array();
/* Add the theme's editor styles. This also checks child theme's css/editor-style.css file. */
$editor_styles[] = 'css/editor-style.css';
/* Add genericons styles. */
$editor_styles[] = trailingslashit(get_template_directory_uri()) . 'fonts/genericons/genericons/genericons.css';
/* Add theme fonts. */
$editor_styles[] = toivo_lite_fonts_url();
/* Add the locale stylesheet. */
$editor_styles[] = get_locale_stylesheet_uri();
/* Return the styles. */
return $editor_styles;
}
开发者ID:kimyj9501,项目名称:SingMyStory,代码行数:24,代码来源:functions.php
示例4: add_editor_style
jQuery('#example_showhidden').click(function() {
jQuery('#section-example_text_hidden').fadeToggle(400);
});
if (jQuery('#example_showhidden:checked').val() !== undefined) {
jQuery('#section-example_text_hidden').show();
}
});
</script>
<?php
}
// editor style
add_editor_style(get_locale_stylesheet_uri() . '/css/editor-style.css');
// 后台Ctrl+Enter提交评论回复
add_action('admin_footer', '_admin_comment_ctrlenter');
function _admin_comment_ctrlenter()
{
echo '<script type="text/javascript">
jQuery(document).ready(function($){
$("textarea").keypress(function(e){
if(e.ctrlKey&&e.which==13||e.which==10){
$("#replybtn").click();
}
});
});
</script>';
}
function _add_editor_buttons($buttons)
开发者ID:yszar,项目名称:linuxwp,代码行数:30,代码来源:fn-admin.php
示例5: locale_stylesheet
function locale_stylesheet() {
$stylesheet = get_locale_stylesheet_uri();
if ( empty($stylesheet) )
return;
echo '<link rel="stylesheet" href="' . $stylesheet . '" type="text/css" media="screen" />';
}
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:6,代码来源:theme.php
示例6: ravel_get_editor_styles
/**
* Callback function for adding editor styles. Use along with the add_editor_style() function.
*
* @since 1.0.0
* @access public
* @return array
*/
function ravel_get_editor_styles()
{
/* Set up an array for the styles. */
$editor_styles = array();
/* Add the theme's editor styles. */
$editor_styles[] = trailingslashit(get_template_directory_uri()) . 'css/editor-style.css';
/* If a child theme, add its editor styles. Note: WP checks whether the file exists before using it. */
if (is_child_theme() && file_exists(trailingslashit(get_stylesheet_directory()) . 'css/editor-style.css')) {
$editor_styles[] = trailingslashit(get_stylesheet_directory_uri()) . 'css/editor-style.css';
}
/* Add the locale stylesheet. */
$editor_styles[] = get_locale_stylesheet_uri();
/* Return the styles. */
return $editor_styles;
}
开发者ID:ianperrin,项目名称:ravel,代码行数:22,代码来源:ravel.php
示例7: stargazer_get_editor_styles
/**
* Callback function for adding editor styles. Use along with the add_editor_style() function.
*
* @since 1.0.0
* @access public
* @return array
*/
function stargazer_get_editor_styles()
{
// Set up an array for the styles.
$editor_styles = array();
// Add the theme's editor styles.
$editor_styles[] = stargazer_get_parent_editor_stylesheet_uri();
// If a child theme, add its editor styles.
if (is_child_theme() && ($style = stargazer_get_editor_stylesheet_uri())) {
$editor_styles[] = stargazer_get_editor_stylesheet_uri();
}
// Add the locale stylesheet.
$editor_styles[] = get_locale_stylesheet_uri();
// Uses Ajax to display custom theme styles added via the Theme Mods API.
$editor_styles[] = add_query_arg('action', 'stargazer_editor_styles', admin_url('admin-ajax.php'));
// Return the styles.
return $editor_styles;
}
开发者ID:KL-Kim,项目名称:my-theme,代码行数:24,代码来源:stargazer.ikt.php
示例8: momtaz_get_locale_stylesheet_uri
/**
* Get the localized stylesheet URI.
*
* @return string
* @since 1.1
*/
function momtaz_get_locale_stylesheet_uri()
{
$stylesheet_uri = get_locale_stylesheet_uri();
if (momtaz_is_style_debug()) {
$stylesheet_uri = momtaz_get_dev_stylesheet_uri($stylesheet_uri);
}
$stylesheet_uri = apply_filters('momtaz_get_locale_stylesheet_uri', $stylesheet_uri);
return $stylesheet_uri;
}
开发者ID:mastinoz,项目名称:Momtaz-Framework,代码行数:15,代码来源:styles.php
注:本文中的get_locale_stylesheet_uri函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论