beans_site_branding

Echo header site branding.

beans_site_branding( )

Return: (void)

Source

function beans_site_branding() {

	beans_open_markup_e( 'beans_site_branding', 'div', array(
		'class' => 'tm-site-branding uk-float-left' . ( ! get_bloginfo( 'description' ) ? ' uk-margin-small-top' : null ),
	) );

		beans_open_markup_e( 'beans_site_title_link', 'a', array(
			'href'     => home_url(), // Automatically escaped.
			'rel'      => 'home',
			'itemprop' => 'headline',
		) );

			if ( $logo = get_theme_mod( 'beans_logo_image', false ) ) {
				beans_selfclose_markup_e( 'beans_logo_image', 'img', array(
					'class' => 'tm-logo',
					'src'   => $logo, // Automatically escaped.
					'alt'   => get_bloginfo( 'name' ), // Automatically escaped.
				) );
			} else {
				beans_output_e( 'beans_site_title_text', get_bloginfo( 'name' ) );
			}

		beans_close_markup_e( 'beans_site_title_link', 'a' );

	beans_close_markup_e( 'beans_site_branding', 'div' );

}