Пример #1
1
/**
 * 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
0
    /**
     * 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
0
    /**
     * 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
0
/**
 * 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
0
/**
 * 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
0
/**
 * 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();
    }
}
/**
 * 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
0
/**
 * 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
0
/**
 * 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
0
function aaron_the_site_logo()
{
    if (!function_exists('jetpack_the_site_logo')) {
        return;
    } else {
        jetpack_the_site_logo();
    }
}
Пример #11
0
/**
 * 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();
    }
}
/**
 * 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
0
    /**
     * 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
0
 /**
  * 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);
 }
    /**
     * 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 
            }
        }
    }
Пример #16
0
 /**
  * Unprefixed, backwards-compatible function for outputting the site logo.
  *
  * @uses jetpack_the_site_logo()
  */
 function the_site_logo()
 {
     jetpack_the_site_logo();
 }
Пример #17
0
        <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>
 /**
  * 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;
 }
Пример #19
0
 /**
  * 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();
     }
 }
Пример #20
0
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 
    }
}
/**
 *
 */
function storefront_site_branding()
{
    $is_logo = pbosfc_get_option('site_logo');
    $logo_uri = pbosfc_get_option('site_logo_image');
    if ($is_logo && $logo_uri) {
        if (is_ssl()) {
            $logo_uri = str_replace('http://', 'https://', $logo_uri);
        }
        ?>
		<div class="site-logo-anchor">
			<a href="<?php 
        bloginfo('url');
        ?>
"><img src="<?php 
        echo esc_html($logo_uri);
        ?>
" style="display:inline-block;"></a>
		</div>
		<?php 
    } else {
        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 
        }
    }
}
Пример #22
0
?>
			</div>
        </div>
	</nav>
	<?php 
/**
 * Logo & social icons
 */
?>
	<div id="site-top">   
		<?php 
/*
<span class="social-navigation"><?php regala_create_social_icons() ?></span>
*/
if (function_exists('jetpack_the_site_logo')) {
    jetpack_the_site_logo();
} else {
    ?>
<a href="<?php 
    echo esc_url(home_url('/'));
    ?>
" class="site-title site-logo-link" rel="home"><?php 
    esc_html(bloginfo('name'));
    ?>
</a><?php 
}
?>
		
	</div>
	<?php 
?>
Пример #23
0
			   <?php if (! is_single()): ?>
			    	<?php if (!is_user_logged_in()): ?>
						<a href="<?php echo wp_login_url(); ?>" class="site-login-btn"><?php _e('Sign in', 'pressbooks-publisher'); ?></a>
			   	 	<?php else: ?>
						<a href="<?php echo  wp_logout_url(); ?>" class="site-login-btn"><?php _e('Sign out', 'pressbooks-publisher'); ?></a>
						<a href="<?php $user_info = get_userdata( get_current_user_id() ); echo get_blogaddress_by_id( $user_info->primary_blog ); ?>wp-admin/wp-admin/index.php?page=pb_catalog" class="site-login-btn"><?php _e('My Books', 'pressbooks-publisher'); ?></a>
						<?php if (is_super_admin() || is_user_member_of_blog()): ?>
						<a href="<?php echo get_option('home'); ?>/wp-admin" class="site-login-btn"><?php _e('Admin', 'pressbooks-publisher'); ?></a>
						<?php endif; ?>

			    	<?php endif; ?>
			    <?php endif; ?>
		   </div>
	    		
			<?php /* Site logo*/ ?>
			<?php if ( function_exists( 'jetpack_the_site_logo' ) ) jetpack_the_site_logo(); ?>
			
			<div class="site-branding">
				<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
				<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
				
			
				<?php if( get_theme_mod( 'pressbooks_publisher_intro_textbox' ) !== '' ): ?>
				
					<?php if ( 'one-column' == get_theme_mod( 'pressbooks_publisher_intro_text_col' ) ) : ?>
			
						<div class="intro-text one-column">
						
					<?php elseif ( 'two-column' == get_theme_mod( 'pressbooks_publisher_intro_text_col' ) ) : ?>
					
						<div class="intro-text two-column">		
/**
 * Output an <img> tag of the site logo, at the size specified
 * in the theme's add_theme_support() declaration.
 *
 * @since  1.1.0
 * @uses   Flagship_Site_Logo::the_site_logo
 * @return void
 */
function flagship_the_logo()
{
    if (!class_exists('Flagship_Site_Logo', false)) {
        if (function_exists('jetpack_the_site_logo')) {
            jetpack_the_site_logo();
            return;
        }
        if (function_exists('the_site_logo')) {
            the_site_logo();
            return;
        }
        return;
    }
    flagship_library()->site_logo->the_site_logo();
}
Пример #25
0
    /**
     * Layout
     * Adjusts the default Storefront layout when the plugin is active
     */
    public function woa_sf_layout_adjustments()
    {
        $check = get_theme_mod('woa_sf_enable_logo', 'title_tagline');
        $logo = get_theme_mod('woa_sf_logo', null);
        if (($check == 'logo_img' || $check == 'logo_img_tagline') && $logo) {
            if (is_ssl()) {
                $logo = str_replace('http://', 'https://', $logo);
            }
            ?>
			<div class="site-branding site-logo-anchor">
				<a href="<?php 
            bloginfo('url');
            ?>
">
					<img src="<?php 
            echo $logo;
            ?>
" style="display:inline-block;">
				</a>
				<?php 
            if ($check == 'logo_img_tagline') {
                ?>
					<p class="site-description"><?php 
                bloginfo('description');
                ?>
</p>
				<?php 
            }
            ?>
			</div>
		<?php 
        } else {
            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>
				<p class="site-description"><?php 
                bloginfo('description');
                ?>
</p>
			</div>
		<?php 
            }
        }
    }
 /**
  * Display the logo 
  */
 function vantage_display_logo()
 {
     $logo = siteorigin_setting('logo_image');
     $logo = apply_filters('vantage_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('vantage_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('vantage_logo_image_attributes', array('src' => $src, 'class' => siteorigin_setting('logo_in_menu_constrain') ? 'logo-height-constrain' : 'logo-no-height-constrain', 'width' => round($width), 'height' => round($height), 'alt' => sprintf(__('%s Logo', 'vantage'), get_bloginfo('name'))));
         if ($logo_attributes['width'] > vantage_get_site_width()) {
             // Don't let the width be more than the site width.
             $width = vantage_get_site_width();
             $logo_attributes['height'] = round($logo_attributes['height'] / ($logo_attributes['width'] / $width));
             $logo_attributes['width'] = $width;
         }
         $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('vantage_logo_image', '<img ' . implode(' ', $logo_attributes_str) . ' />');
     }
     // Echo the image
     echo apply_filters('vantage_logo_html', $logo_html);
 }
Пример #27
0
 function lsx_site_identity()
 {
     if (function_exists('jetpack_has_site_logo') && jetpack_has_site_logo()) {
         jetpack_the_site_logo();
     } else {
         // shouldn't show both together.. its just strange
         if (true == get_theme_mod('site_logo_header_text', 1)) {
             lsx_site_title();
         }
     }
 }
Пример #28
0
    /**
     * Custom header image markup displayed on the Appearance > Header admin panel.
     *
     * @see penscratch_custom_header_setup().
     */
    function penscratch_admin_header_image()
    {
        $style = sprintf(' style="color:#%s;"', get_header_textcolor());
        ?>
	<div id="headimg">
		<div class="site-branding-wrapper">
			<div class="site-branding">
				<?php 
        if (function_exists('jetpack_the_site_logo')) {
            jetpack_the_site_logo();
        }
        ?>
				<h1 class="displaying-header-text"><a id="name"<?php 
        echo $style;
        ?>
 onclick="return false;" href="<?php 
        echo esc_url(home_url('/'));
        ?>
"><?php 
        bloginfo('name');
        ?>
</a></h1>
				<div class="displaying-header-text" id="desc"<?php 
        echo $style;
        ?>
><?php 
        bloginfo('description');
        ?>
</div>
			</div>
		</div>
		<?php 
        if (get_header_image()) {
            ?>
		<img src="<?php 
            header_image();
            ?>
" alt="" class="custom-header">
		<?php 
        }
        ?>
	</div>
<?php 
    }
Пример #29
0
    /**
     * Custom header image markup displayed on the Appearance > Header admin panel.
     */
    function decode_admin_header_image()
    {
        ?>

<div class="decode-custom-header-preview site-branding">

	<?php 
        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 
        }
        ?>
	
	<?php 
        if (get_theme_mod('show_site_title', true) == true) {
            ?>
			
		<h1 class="site-title">
		<a href="<?php 
            echo esc_url(home_url('/'));
            ?>
" title="<?php 
            echo esc_attr(get_bloginfo('name', 'display'));
            ?>
" rel="home"><?php 
            bloginfo('name');
            ?>
</a>
		</h1>
	<?php 
        }
        ?>
	
	<?php 
        if (get_theme_mod('show_site_description', true) == true) {
            ?>
		<?php 
            if (get_theme_mod('html_description', '') !== '') {
                ?>
		<h2 class="site-description"><?php 
                echo get_theme_mod('html_description');
                ?>
</h2>
		<?php 
            } elseif (get_theme_mod('html_description', '') == '') {
                ?>
		<h2 class="site-description"><?php 
                echo get_bloginfo('description');
                ?>
</h2>
		<?php 
            }
            ?>
	<?php 
        }
        ?>
	
</div>

<?php 
    }