• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP hybrid_site_title函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中hybrid_site_title函数的典型用法代码示例。如果您正苦于以下问题:PHP hybrid_site_title函数的具体用法?PHP hybrid_site_title怎么用?PHP hybrid_site_title使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了hybrid_site_title函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: taylor_get_logo

/**
 * Adds site logo from customizer options if available, defaults to site title.
 */
function taylor_get_logo()
{
    $output = '';
    if (get_theme_mod('taylor_customize_logo')) {
        $output = '<h1 class="site-logo">';
        $output .= '<a href="' . esc_url(home_url('/')) . '" rel="home"><img src="' . esc_url(get_theme_mod('taylor_customize_logo')) . '" alt="' . esc_attr(get_bloginfo('name')) . '" class="site-logo-image"/></a>';
        $output .= '</h1>';
    } else {
        $output = hybrid_site_title();
    }
    echo $output;
    // TODO: add apply_filters and docs on how to use
}
开发者ID:selenastrain,项目名称:taylor,代码行数:16,代码来源:theme.php


示例2: hybrid_attr

hybrid_attr('header');
?>
>

			<div class="wrap">

				<?php 
tha_header_top();
?>

				<div <?php 
hybrid_attr('branding');
?>
>
					<?php 
hybrid_site_title();
?>
					<?php 
hybrid_site_description();
?>
				</div><!-- #branding -->

				<?php 
hybrid_get_sidebar('header-right');
?>

				<?php 
tha_header_bottom();
?>

			</div>
开发者ID:stedy67,项目名称:Compass,代码行数:31,代码来源:header.php


示例3: hatch_site_title

/**
 * Hatch site title.
 * 
 */
function hatch_site_title()
{
    if (hybrid_get_setting('hatch_logo_url')) {
        $tag = is_front_page() ? 'h1' : 'div';
        echo '<' . $tag . ' id="site-title">' . "\n";
        echo '<a href="' . get_home_url() . '" title="' . get_bloginfo('name') . '" rel="Home">' . "\n";
        echo '<img class="logo" src="' . esc_url(hybrid_get_setting('hatch_logo_url')) . '" alt="' . get_bloginfo('name') . '" />' . "\n";
        echo '</a>' . "\n";
        echo '</' . $tag . '>' . "\n";
    } else {
        hybrid_site_title();
    }
}
开发者ID:jazzindizzin,项目名称:Quality-Timber-Doors,代码行数:17,代码来源:functions.php


示例4: bloginfo

<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />

<!-- enables older IE browsers to accept HTML5 elements
take out the script below if using modernizr or other similar solution 
=========================================================================-->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>

<?php wp_head(); ?>

</head>

<body class="<?php hybrid_body_class(); ?>">

	<div id="main-wrap">
		<div id="header">
			<div id="branding">
				<?php hybrid_site_title(); ?>
				<?php hybrid_site_description(); ?>
			</div><!-- #branding -->
			
			<?php get_template_part( 'menu', 'primary' ); // Loads the menu-primary.php template. ?>
			
		</div><!-- #header -->
		
		<div id="main">
			<div class="padder">
开发者ID:ryannmicua,项目名称:Pogidude-Hybrid,代码行数:31,代码来源:header.php


示例5: saga_custom_header_admin_preview

/**
 * Callback for the admin preview output on the "Appearance > Custom Header" screen.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function saga_custom_header_admin_preview()
{
    ?>

		<div <?php 
    hybrid_attr('body');
    // Fake <body> class.
    ?>
>

			<header <?php 
    hybrid_attr('header');
    ?>
>

				<?php 
    if (display_header_text()) {
        // If user chooses to display header text.
        ?>

					<div id="branding">
						<?php 
        hybrid_site_title();
        ?>
						<?php 
        hybrid_site_description();
        ?>
					</div><!-- #branding -->

				<?php 
    }
    // End check for header text.
    ?>

			</header><!-- #header -->

			<?php 
    if (get_header_image() && !display_header_text()) {
        // If there's a header image but no header text.
        ?>

				<a href="<?php 
        echo home_url();
        ?>
" title="<?php 
        echo esc_attr(get_bloginfo('name'));
        ?>
" rel="home"><img class="header-image" src="<?php 
        header_image();
        ?>
" width="<?php 
        echo get_custom_header()->width;
        ?>
" height="<?php 
        echo get_custom_header()->height;
        ?>
" alt="" /></a>

			<?php 
    } elseif (get_header_image()) {
        // If there's a header image.
        ?>

				<img class="header-image" src="<?php 
        header_image();
        ?>
" width="<?php 
        echo get_custom_header()->width;
        ?>
" height="<?php 
        echo get_custom_header()->height;
        ?>
" alt="" />

			<?php 
    }
    // End check for header image.
    ?>

		</div><!-- Fake </body> close. -->

<?php 
}
开发者ID:8manos,项目名称:bogohack,代码行数:90,代码来源:custom-header.php


示例6: ravel_custom_header_admin_preview

/**
 * Callback for the admin preview output on the "Appearance > Custom Header" screen.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function ravel_custom_header_admin_preview()
{
    ?>

	<div <?php 
    hybrid_attr('body');
    // Fake <body> class.
    ?>
>

		<div class="page-container">

			<div class="wrap">

				<header <?php 
    hybrid_attr('header');
    ?>
>

					<div <?php 
    hybrid_attr('branding');
    ?>
>

						<?php 
    if (get_header_image()) {
        // If there's a header image.
        ?>

							<h1 <?php 
        hybrid_attr('site-title');
        ?>
>
								<a href="<?php 
        echo esc_url(home_url());
        ?>
">
									<img class="header-image" src="<?php 
        header_image();
        ?>
" width="<?php 
        echo get_custom_header()->width;
        ?>
" height="<?php 
        echo get_custom_header()->height;
        ?>
" alt="" />
								</a>
							</h1>

						<?php 
    } else {
        // If there's no header image.
        ?>

							<?php 
        hybrid_site_title();
        ?>

						<?php 
    }
    // End header image check.
    ?>

					</div><!-- #branding -->

					<?php 
    //endif; // End check for header text.
    ?>

				</header><!-- #header -->

			</div><!-- .wrap -->

		</div><!-- .page-container -->

	</div><!-- Fake </body> close. -->

<?php 
}
开发者ID:ianperrin,项目名称:ravel,代码行数:87,代码来源:custom-header.php


示例7: satu_site_title

/**
 * Site title.
 * 
 * @since 1.0
 */
function satu_site_title()
{
    $avatar = get_theme_mod('satu_show_avatar', true);
    if (get_header_image()) {
        echo '<div class="site-logo">' . "\n";
        echo '<a href="' . esc_url(get_home_url()) . '" title="' . esc_attr(get_bloginfo('name')) . '" rel="home">' . "\n";
        echo '<img class="logo" src="' . esc_url(get_header_image()) . '" alt="' . esc_attr(get_bloginfo('name')) . '" />' . "\n";
        echo '</a>' . "\n";
        echo '</div>' . "\n";
    } elseif ($avatar) {
        echo get_avatar(is_email(get_option('admin_email')), 100, 'mystery', esc_attr(get_bloginfo('name')));
    }
    if (display_header_text()) {
        hybrid_site_title();
        hybrid_site_description();
    }
}
开发者ID:centaurustech,项目名称:gapura,代码行数:22,代码来源:functions.php


示例8: oxygen_site_title

/**
 * Oxygen site title.
 * 
 */
function oxygen_site_title()
{
    $tag = is_front_page() ? 'h1' : 'div';
    if (get_header_image()) {
        echo '<' . $tag . ' id="site-title">' . "\n";
        echo '<a href="' . get_home_url() . '" title="' . get_bloginfo('name') . '" rel="Home">' . "\n";
        echo '<img class="logo" src="' . get_header_image() . '" alt="' . get_bloginfo('name') . '" />' . "\n";
        echo '</a>' . "\n";
        echo '</' . $tag . '>' . "\n";
    } elseif (hybrid_get_setting('oxygen_logo_url')) {
        // check for legacy setting
        echo '<' . $tag . ' id="site-title">' . "\n";
        echo '<a href="' . get_home_url() . '" title="' . get_bloginfo('name') . '" rel="Home">' . "\n";
        echo '<img class="logo" src="' . esc_url(hybrid_get_setting('oxygen_logo_url')) . '" alt="' . get_bloginfo('name') . '" />' . "\n";
        echo '</a>' . "\n";
        echo '</' . $tag . '>' . "\n";
    } else {
        hybrid_site_title();
    }
}
开发者ID:2030449c,项目名称:farkol,代码行数:24,代码来源:functions.php


示例9: convergence_site_title

/**
 * Returns the title of the site.
 * @return string
 */
function convergence_site_title()
{
    return hybrid_site_title();
}
开发者ID:ryanmr,项目名称:convergence-theme,代码行数:8,代码来源:functions.php



注:本文中的hybrid_site_title函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP hyperlink函数代码示例发布时间:2022-05-15
下一篇:
PHP hybrid_site_description函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap