本文整理汇总了PHP中theme_logo函数的典型用法代码示例。如果您正苦于以下问题:PHP theme_logo函数的具体用法?PHP theme_logo怎么用?PHP theme_logo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了theme_logo函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: body_tag
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<?php
echo body_tag(array('id' => @$bodyid, 'class' => @$bodyclass));
?>
<?php
fire_plugin_hook('public_body', array('view' => $this));
?>
<!-- <header>
<div class="container">
<?php
fire_plugin_hook('public_header', array('view' => $this));
?>
<h1 class="site-title text-center"><?php
echo link_to_home_page(theme_logo());
?>
</h1>
</div>
<nav class="navbar navbar-default" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#primary-navigation">
<span class="sr-only">Menu</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
开发者ID:joelsalisbury,项目名称:findyourvoice,代码行数:30,代码来源:header.php
示例2: wd_print_header_body
function wd_print_header_body()
{
global $wd_data;
$header_layout = 'v1';
if (isset($wd_data['wd_header_layout'])) {
$header_layout = $wd_data['wd_header_layout'];
}
?>
<div class="header-middle">
<div class="wd_mobile_menu_content">
<?php
if (has_nav_menu('mobile')) {
wp_nav_menu(array('container_class' => 'mobile-menu', 'theme_location' => 'mobile'));
} else {
wp_nav_menu(array('container_class' => 'mobile-menu', 'theme_location' => 'primary'));
}
?>
</div>
<div class="header-middle-content container <?php
echo $header_layout != 'v1' ? 'visible-xs' : '';
?>
">
<?php
theme_logo();
?>
<div class="header_woo_content">
<?php
if ($header_layout == 'v1') {
?>
<div class="shopping-cart shopping-cart-wrapper visible-phone">
<?php
echo wd_tini_cart();
?>
</div>
<?php
}
?>
<div class="phone_quick_menu_1 visible-xs">
<div class="mobile_my_account">
<?php
if (is_user_logged_in()) {
?>
<a class="bold-upper-small" href="<?php
echo get_permalink(get_option('woocommerce_myaccount_page_id'));
?>
" title="<?php
_e('My Account', 'wpdance');
?>
"><?php
_e('My Account', 'wpdance');
?>
</a>
<?php
} else {
?>
<a class="bold-upper-small" href="<?php
echo get_permalink(get_option('woocommerce_myaccount_page_id'));
?>
" title="<?php
_e('Login / Register', 'wpdance');
?>
"><?php
_e('Login / Register', 'wpdance');
?>
</a>
<?php
}
?>
</div>
</div>
<?php
if ($header_layout == 'v1') {
?>
<div class="mobile_cart_container visible-xs">
<div class="mobile_cart">
<?php
global $woocommerce;
if (isset($woocommerce) && isset($woocommerce->cart)) {
$cart_url = $woocommerce->cart->get_cart_url();
echo "<a class='bold-upper-small' href='{$cart_url}' title='View Cart'>" . __('View Cart', 'wpdance') . "</a>";
}
?>
</div>
<div class="mobile_cart_number">0</div>
</div>
<?php
}
?>
</div>
<div class="clear"></div>
</div>
</div><!-- end .header-middle -->
<?php
}
开发者ID:mynein,项目名称:myne,代码行数:98,代码来源:header_function.php
示例3: wd_print_header_body
function wd_print_header_body()
{
?>
<div class="header-middle">
<div class="header-middle-content">
<?php
theme_logo();
?>
<div class="header_woo_content">
<div class="header-bottom-wishlist">
<?php
echo wd_tini_account();
//TODO : account form goes here
?>
</div>
<div class="shopping-cart shopping-cart-wrapper">
<?php
echo wd_tini_cart();
?>
</div>
<div class="phone_quick_menu_1 visible-phone">
<div class="mobile_my_account">
<?php
if (is_user_logged_in()) {
?>
<a href="<?php
echo get_permalink(get_option('woocommerce_myaccount_page_id'));
?>
" title="<?php
_e('My Account', 'wpdance');
?>
"><?php
_e('My Account', 'wpdance');
?>
</a>
<?php
} else {
?>
<a href="<?php
echo get_permalink(get_option('woocommerce_myaccount_page_id'));
?>
" title="<?php
_e('Login / Register', 'wpdance');
?>
"><?php
_e('Login / Register', 'wpdance');
?>
</a>
<?php
}
?>
</div>
</div>
<div class="mobile_cart_container visible-phone">
<div class="mobile_cart">
<?php
global $woocommerce;
if (isset($woocommerce) && isset($woocommerce->cart)) {
$cart_url = $woocommerce->cart->get_cart_url();
echo "<a href='{$cart_url}' title='View Cart'>View Cart</a>";
}
?>
</div>
<div class="mobile_cart_number">0</div>
</div>
</div>
<div class="header_search"><?php
wd_product_search_form();
?>
</div>
</div>
</div><!-- end .header-middle -->
<?php
wp_reset_query();
?>
<?php
}
开发者ID:proj-2014,项目名称:vlan247-test-wp2,代码行数:80,代码来源:main.php
示例4: theme_logo
<?php
// We can have no logo by setting the image value to "none"
if (strtolower($theLayout['logo']['img']) !== 'none') {
// logo - smaller layouts (phone/tablet view)
?>
<div class="logoDefault visible-desktop"><?php
theme_logo('', array('image' => $themePath . 'assets/images/logo.png', 'class' => ''));
?>
</div>
<?php
// logo - default (desktop view)
if ($is_responsive) {
?>
<div class="logoResponsive hidden-desktop"><?php
theme_logo('', array('image' => $themePath . 'assets/images/logo.png', 'class' => ''));
?>
</div>
<?php
}
}
// foreground slider
$ss = get_ss($theHeader);
if (isset($ss['ss-type']) && $ss['ss-type'] == 'ss-bgSlider') {
$ss_h = $ss["height"] ? $ss["height"] : 500;
$ss_w = $ss["width"] ? $ss["width"] : 960;
//$ss_css = ($ss["width"]) ? 'width:'. $ss["width"] .'px;' : 'width:960px;';
$ss_css = 'height:' . $ss_h . 'px;';
$ratio = round($ss_w / $ss_h, 3);
?>
<ul id="mainpage_slider_foreground" style="<?php
开发者ID:perusoa,项目名称:anthony-peruso-website,代码行数:30,代码来源:design-header.php
示例5: theme_color_switcher
?>
>
<?php
theme_color_switcher('render');
?>
<!-- Begin Container -->
<div class="container">
<!-- Begin Header -->
<div id="header">
<!-- Site Logo -->
<a href="<?php
echo home_url('/');
?>
" class="logo">
<img src="<?php
theme_logo();
?>
" alt="" />
</a>
<!-- SearchBox -->
<?php
get_search_form();
?>
<div class="clear"></div>
</div>
<!-- End Header -->
<!-- Start Main Nav -->
<div id="MainNav">
<a href="<?php
echo home_url('/');
?>
开发者ID:billyprice1,项目名称:website,代码行数:31,代码来源:header.php
注:本文中的theme_logo函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论