' . "\n"; echo '' . "\n"; } beans_add_smart_action( 'wp_head', 'beans_head_pingback'); /** * Echo head pingback. * * @since 1.0.0 */ function beans_head_pingback() { echo '' . "\n"; } beans_add_smart_action( 'wp_head', 'beans_favicon'); /** * Echo head favicon if no icon was added via the customizer. * * @since 1.0.0 */ function beans_favicon() { // Stop here if and icon was added via the customizer. if ( function_exists( 'has_site_icon' ) && has_site_icon() ) return; $path = file_exists( get_template_directory() . 'favicon.ico' ) ? get_template_directory() . 'favicon.ico' : BEANS_URL . 'favicon.ico'; echo beans_selfclose_markup( 'beans_favicon', 'link', array( 'rel' => 'Shortcut Icon', 'href' => esc_url( $path ), 'type' => 'image/x-icon', ) ); } beans_add_smart_action( 'wp_head', 'beans_header_image' ); /** * Print the header image css inline in the header. * * @since 1.0.0 */ function beans_header_image() { if ( !current_theme_supports( 'custom-header' ) || !( $header_image = get_header_image() ) || empty( $header_image ) ) return; ?> 'tm-logo', 'src' => esc_url( $logo ), 'alt' => esc_attr( $name ), ) ); echo beans_open_markup( 'beans_site_branding', 'div', array( 'class' => 'tm-site-branding uk-float-left' . ( !get_bloginfo( 'description' ) ? ' uk-margin-small-top' : null ), ) ); echo beans_open_markup( 'beans_site_title_link', 'a', array( 'href' => esc_url( home_url() ), 'rel' => 'home', 'itemprop' => 'headline' ) ); echo $name; echo beans_close_markup( 'beans_site_title_link', 'a' ); echo beans_close_markup( 'beans_site_branding', 'div' ); } beans_add_smart_action( 'beans_site_branding_append_markup', 'beans_site_title_tag' ); /** * Echo header site title tag. * * @since 1.0.0 */ function beans_site_title_tag() { // Stop here if there isn't a description. if ( !$description = get_bloginfo( 'description' ) ) return; echo beans_open_markup( 'beans_site_title_tag', 'span', array( 'class' => 'tm-site-title-tag uk-text-small uk-text-muted uk-display-block', 'itemprop' => 'description' ) ); echo beans_output( 'beans_site_title_tag_text', $description ); echo beans_close_markup( 'beans_site_title_tag', 'span' ); }