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

PHP jetpack_the_site_logo函数代码示例

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

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



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

示例1: jinn_the_site_logo

/**
 * Return early if Site Logo is not available.
 */
function jinn_the_site_logo()
{
    if (function_exists('the_custom_logo')) {
        the_custom_logo();
    } else {
        if (function_exists('jetpack_the_site_logo')) {
            jetpack_the_site_logo();
        } else {
            return;
        }
    }
}
开发者ID:jekkilekki,项目名称:theme-jin,代码行数:15,代码来源:jetpack.php


示例2: storefront_site_branding

    /**
     * Display Site Branding
     * @since  1.0.0
     * @return void
     */
    function storefront_site_branding()
    {
        if (function_exists('jetpack_has_site_logo') && jetpack_has_site_logo()) {
            jetpack_the_site_logo();
        } else {
            ?>
			<div class="site-branding">
				<h1 class="site-title"><a href="<?php 
            echo esc_url(home_url('/'));
            ?>
"
				                          rel="home"><?php 
            bloginfo('name');
            ?>
</a></h1>
				<?php 
            if ('' != get_bloginfo('description')) {
                ?>
					<p class="site-description"><?php 
                echo bloginfo('description');
                ?>
</p>
				<?php 
            }
            ?>
			</div>
		<?php 
        }
    }
开发者ID:alexgomes09,项目名称:topshop,代码行数:34,代码来源:header.php


示例3: storefront_site_branding

    /**
     * Display Site Branding
     * @since  1.0.0
     * @return void
     */
    function storefront_site_branding()
    {
        if (function_exists('jetpack_has_site_logo') && jetpack_has_site_logo()) {
            jetpack_the_site_logo();
        } else {
            ?>
			<div class="site-branding  <?php 
            if (is_home() || is_front_page()) {
                echo 'homepage';
            }
            ?>
">
				<h1 class="site-title" style="display:none;"><a href="<?php 
            echo esc_url(home_url('/'));
            ?>
" rel="home"><?php 
            bloginfo('name');
            ?>
</a></h1>
				<p class="site-description" style="display:none;"><?php 
            bloginfo('description');
            ?>
</p>
				<img src="<?php 
            echo get_template_directory_uri();
            ?>
/images/logo.png" alt="">
			</div>
		<?php 
        }
    }
开发者ID:baydiwo,项目名称:RajutanIbu,代码行数:36,代码来源:header.php


示例4: sequential_the_site_logo

/**
 * Return early if Site Logo is not available.
 */
function sequential_the_site_logo()
{
    if (!function_exists('jetpack_the_site_logo')) {
        return;
    } else {
        jetpack_the_site_logo();
    }
}
开发者ID:un1coin,项目名称:ovn-space,代码行数:11,代码来源:jetpack.php


示例5: beautiful_reader_the_site_logo

/**
 * Return early if Site Logo is not available.
 */
function beautiful_reader_the_site_logo()
{
    if (!function_exists('jetpack_the_site_logo')) {
        return;
    } else {
        jetpack_the_site_logo();
    }
}
开发者ID:james-tw,项目名称:beautiful_reader,代码行数:11,代码来源:jetpack.php


示例6: component_s_the_site_logo

/**
 * Return early if Site Logo is not available.
 *
 * @since Component_s 1.0
 */
function component_s_the_site_logo()
{
    if (!function_exists('jetpack_the_site_logo')) {
        return;
    } else {
        jetpack_the_site_logo();
    }
}
开发者ID:sixhours,项目名称:theme-pattern-library,代码行数:13,代码来源:jetpack.php


示例7: us_web_standards_the_site_logo

/**
 * Return early if Site Logo is not available.
 */
function us_web_standards_the_site_logo()
{
    if (!function_exists('jetpack_the_site_logo')) {
        return;
    } else {
        jetpack_the_site_logo();
    }
}
开发者ID:saracope,项目名称:us-web-standards-wordpress-theme,代码行数:11,代码来源:jetpack.php


示例8: smittenkitchen_the_site_logo

/**
 * Return early if Site Logo is not available.
 */
function smittenkitchen_the_site_logo()
{
    if (!function_exists('jetpack_the_site_logo')) {
        return;
    } else {
        jetpack_the_site_logo();
    }
}
开发者ID:a8cteam51,项目名称:smittenkitchen,代码行数:11,代码来源:jetpack.php


示例9: theme_traditional_the_site_logo

/**
 * Return early if Site Logo is not available.
 *
 * @since theme-magazine 1.0
 */
function theme_traditional_the_site_logo()
{
    if (!function_exists('jetpack_the_site_logo')) {
        return;
    } else {
        jetpack_the_site_logo();
    }
}
开发者ID:TanvirAmi,项目名称:theme-pattern-library,代码行数:13,代码来源:jetpack.php


示例10: aaron_the_site_logo

function aaron_the_site_logo()
{
    if (!function_exists('jetpack_the_site_logo')) {
        return;
    } else {
        jetpack_the_site_logo();
    }
}
开发者ID:michellekusold,项目名称:taasc,代码行数:8,代码来源:jetpack.php


示例11: cyanotype_the_site_logo

/**
 * Return early if Site Logo is not available.
 *
 * @since Cyanotype 1.0
 */
function cyanotype_the_site_logo()
{
    if (!function_exists('jetpack_the_site_logo')) {
        return;
    } else {
        jetpack_the_site_logo();
    }
}
开发者ID:jamestrevorlees,项目名称:my-blog,代码行数:13,代码来源:jetpack.php


示例12: tinyframework_the_site_logo

/**
 * Return early if Site Logo is not available.
 *
 * First function checks if Jetpack is installed, if not, it will check if standalone Site Logo plugin is present.
 */
function tinyframework_the_site_logo()
{
    if (function_exists('jetpack_the_site_logo')) {
        return jetpack_the_site_logo();
    } else {
        if (function_exists('the_site_logo')) {
            return the_site_logo();
        } else {
            return;
        }
    }
}
开发者ID:guillermohernandez,项目名称:OYFF-Wordpress-Theme,代码行数:17,代码来源:plugin-compatibility.php


示例13: storefront_site_branding

    /**
     * Display Site Branding
     * @since  1.0.0
     * @return void
     */
    function storefront_site_branding()
    {
        if (function_exists('jetpack_has_site_logo') && jetpack_has_site_logo()) {
            jetpack_the_site_logo();
        } else {
            $url = home_url('/');
            ?>
			<div class="site-branding">
			<img id="logo" src="/wp_development/content/plugins/rettner-plugin/new/images/uofrlogo.png">
			</div>
		<?php 
        }
    }
开发者ID:karyband,项目名称:Rettner-Website,代码行数:18,代码来源:headernew.php


示例14: ultra_display_logo

 /**
  * Display the logo.
  */
 function ultra_display_logo()
 {
     $logo = siteorigin_setting('header_logo');
     $logo = apply_filters('ultra_logo_image_id', $logo);
     if (empty($logo)) {
         if (function_exists('jetpack_the_site_logo') && jetpack_has_site_logo()) {
             // We'll let Jetpack handle things
             jetpack_the_site_logo();
             return;
         }
         // Just display the site title
         $logo_html = '<h1 class="site-title">' . get_bloginfo('name') . '</h1>';
         $logo_html = apply_filters('ultra_logo_text', $logo_html);
     } else {
         // Load the logo image
         if (is_array($logo)) {
             list($src, $height, $width) = $logo;
         } else {
             $image = wp_get_attachment_image_src($logo, 'full');
             $src = $image[0];
             $height = $image[2];
             $width = $image[1];
         }
         // Add all the logo attributes
         $logo_attributes = apply_filters('ultra_logo_image_attributes', array('src' => $src, 'width' => round($width), 'height' => round($height), 'alt' => sprintf(__('%s Logo', 'ultra'), get_bloginfo('name'))));
         if (siteorigin_setting('header_sticky') && siteorigin_setting('header_scale')) {
             $logo_attributes['data-scale'] = '1';
         }
         $logo_attributes_str = array();
         if (!empty($logo_attributes)) {
             foreach ($logo_attributes as $name => $val) {
                 if (empty($val)) {
                     continue;
                 }
                 $logo_attributes_str[] = $name . '="' . esc_attr($val) . '" ';
             }
         }
         $logo_html = apply_filters('ultra_logo_image', '<img ' . implode(' ', $logo_attributes_str) . ' />');
     }
     // Echo the image
     echo apply_filters('ultra_logo_html', $logo_html);
 }
开发者ID:craighays,项目名称:wpcraighays,代码行数:45,代码来源:template-tags.php


示例15: storefront_site_title_or_logo

    /**
     * Display the site title or logo
     *
     * @since  2.1.0
     * @return void
     */
    function storefront_site_title_or_logo()
    {
        if (function_exists('the_custom_logo') && has_custom_logo()) {
            $logo = get_custom_logo();
            echo $logo = is_home() ? '<h1 class="logo">' . $logo . '</h1>' : $logo;
        } elseif (function_exists('jetpack_has_site_logo') && jetpack_has_site_logo()) {
            jetpack_the_site_logo();
        } else {
            $tag = is_home() ? 'h1' : 'div';
            echo '<' . esc_attr($tag) . ' class="beta site-title"><a href="' . esc_url(home_url('/')) . '" rel="home">' . esc_attr(get_bloginfo('name')) . '</a></' . esc_attr($tag) . '>';
            if ('' != get_bloginfo('description')) {
                ?>
				<p class="site-description"><?php 
                echo bloginfo('description');
                ?>
</p>
				<?php 
            }
        }
    }
开发者ID:nishitlangaliya,项目名称:storefront,代码行数:26,代码来源:storefront-template-functions.php


示例16: the_site_logo

 /**
  * Unprefixed, backwards-compatible function for outputting the site logo.
  *
  * @uses jetpack_the_site_logo()
  */
 function the_site_logo()
 {
     jetpack_the_site_logo();
 }
开发者ID:shazadmaved,项目名称:vizblog,代码行数:9,代码来源:compat.php


示例17: if

        <nav id="site-navigation" class="main-navigation navbar <?php if ($boxedornot == 'boxed') {?>container<?php }?>" role="navigation" style="background-image: url(<?php if ( get_header_image() != '' ) { header_image(); } ?>);">

            <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content','charity-review' ); ?></a>

            <?php if ($boxedornot == 'fullwidth') {?>
                <div class="container">
            <?php }?>

            <div class="navbar-header">

                <div class="site-branding navbar-brand">

                   <?php if( function_exists( 'jetpack_the_site_logo' ) ) { ?>
                        <div class="site-brand text-center">
                            <?php jetpack_the_site_logo(); ?>
                        </div>
                    <?php } ?>

                    <!-- Remove the site title and desc if logo is specified -->
                    <div class="site-desc site-brand text-center">
                    	<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
                    	<h5 class="site-description"><?php bloginfo( 'description' ); ?></h5>
                    </div>

                </div>
                <!-- End the Site Brand -->

                <a href="#themenu" type="button" class="navbar-toggle" role="button" id="hambar">
                    <span></span>
                    <span></span>
开发者ID:jhersonn20,项目名称:myportal,代码行数:30,代码来源:header.php


示例18: html

 /**
  * Retrieve the logo HTML.
  *
  * Returns early if the current theme doesn't support 'site-logo'.
  *
  * @since 2.0.0
  *
  * @return string
  */
 public function html()
 {
     if (!current_theme_supports('site-logo')) {
         return '';
     }
     $html = '';
     // Jetpack site logo support.
     if (function_exists('jetpack_the_site_logo')) {
         ob_start();
         jetpack_the_site_logo();
         $html = ob_get_clean();
     }
     return $html;
 }
开发者ID:TyRichards,项目名称:ty_the_band,代码行数:23,代码来源:class-cedaro-theme-sitelogo.php


示例19: create_logo

 /**
  * Get logo output and display with jetpack logo in priority
  *
  * @get logo output
  * @since Create 2.1
  *
  */
 function create_logo()
 {
     if (function_exists('jetpack_the_site_logo')) {
         jetpack_the_site_logo();
     }
 }
开发者ID:peisheng,项目名称:wp,代码行数:13,代码来源:structure.php


示例20: decode_create_header_image

function decode_create_header_image()
{
    // If Jetpack's site logo exists, give it preference over Decode's.
    if (function_exists('jetpack_the_site_logo')) {
        jetpack_the_site_logo();
        // If no Jetpack site logo exists, use Decode's logo, if avaliable.
    } elseif (get_header_image() != '') {
        ?>
						<a class="site-logo-link" href="<?php 
        echo esc_url(home_url('/'));
        ?>
" title="<?php 
        echo esc_attr(get_bloginfo('name', 'display'));
        ?>
" rel="home">
							<img class="site-logo" src="<?php 
        header_image();
        ?>
" height="<?php 
        echo esc_attr(get_custom_header()->height);
        ?>
" width="<?php 
        echo esc_attr(get_custom_header()->width);
        ?>
" alt="">
						</a>
					<?php 
    }
}
开发者ID:nafSadh,项目名称:Decode,代码行数:29,代码来源:header.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP jexit函数代码示例发布时间:2022-05-15
下一篇:
PHP jetpack_site_icon_url函数代码示例发布时间: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