本文整理汇总了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;
}
}
}
示例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
}
}
示例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
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例10: aaron_the_site_logo
function aaron_the_site_logo()
{
if (!function_exists('jetpack_the_site_logo')) {
return;
} else {
jetpack_the_site_logo();
}
}
示例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();
}
}
示例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;
}
}
}
示例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
}
}
示例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);
}
示例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
}
}
}