', esc_url( get_bloginfo( 'pingback_url' ) ) ); } } } if ( ! function_exists( 'gautam_body_classes' ) ) { /** * Adds custom classes to the array of body classes. * * @param array $classes Classes for the body element. * * @return array * @since 1.0.0 */ function gautam_body_classes( $classes ) { global $post; // Adds a class of hfeed to non-singular pages. if ( ! is_singular() ) { $classes[] = 'hfeed'; } if ( true === get_theme_mod( 'fixed-header', false ) ) { $classes[] = 'header-fixed'; } $template_parts = get_theme_mod( 'entry_header_sequence', array( 'category', 'heading', 'metadata', 'thumbnail', ) ); if ( isset( $post->ID ) && get_the_post_thumbnail( $post->ID ) && in_array( 'thumbnail', $template_parts, true ) && gautam_jetpack_featured_image_display() ) { $classes[] = 'has-featured-image'; } if ( is_singular( 'post' ) ) { $classes[] = get_theme_mod( 'single_post_layout', 'in-header' ); } $classes[] = get_theme_mod( 'header_layout_setting' ); return $classes; } } if ( ! function_exists( 'gautam_header_branding_layout' ) ) { /** * Creates the Header Layout. * * @since 1.0.0 */ function gautam_header_branding_layout() { $numbering_class = ''; if ( true === get_theme_mod( 'main_menu_numbering', true ) ) { $numbering_class = 'numbered'; } $container_alignment_class = 'header-menu-container ' . $numbering_class . ' aligned-menu-' . get_theme_mod( 'main_menu_align', 'center' ); ?>
>