当前位置: 首页>>代码示例>>PHP>>正文


PHP jetpack_the_site_logo函数代码示例

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


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


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