當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。