' . "\n", esc_url( get_bloginfo( 'pingback_url' ) ) ); } } /** * Schema for
tag. */ if ( ! function_exists( 'kemet_schema_body' ) ) : /** * Adds schema tags to the body classes. */ function kemet_schema_body() { // Check conditions. $is_blog = ( is_home() || is_archive() || is_attachment() || is_tax() || is_single() ) ? true : false; // Set up default itemtype. $itemtype = 'WebPage'; // Get itemtype for the blog. $itemtype = ( $is_blog ) ? 'Blog' : $itemtype; // Get itemtype for search results. $itemtype = ( is_search() ) ? 'SearchResultsPage' : $itemtype; // Get the result. $result = apply_filters( 'kemet_schema_body_itemtype', $itemtype ); // Return our HTML. echo apply_filters( 'kemet_schema_body', "itemtype='https://schema.org/" . esc_attr( $result ) . "' itemscope='itemscope'" ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } endif; /** * Adds custom classes to the array of body classes. */ if ( ! function_exists( 'kemet_body_classes' ) ) { /** * Adds custom classes to the array of body classes. * * @param array $classes Classes for the body element. * @return array */ function kemet_body_classes( $classes ) { if ( wp_is_mobile() ) { $classes[] = 'kmt-header-break-point'; } // Apply separate container class to the body. $content_layout = kemet_get_content_layout(); if ( 'content-boxed-container' == $content_layout ) { $classes[] = 'kmt-separate-container'; } elseif ( 'boxed-container' == $content_layout ) { $classes[] = 'kmt-separate-container kmt-two-container'; } elseif ( 'page-builder' == $content_layout ) { $classes[] = 'kmt-page-builder-template'; } elseif ( 'plain-container' == $content_layout ) { $classes[] = 'kmt-plain-container'; } // Sidebar location. $page_layout = 'kmt-' . kemet_layout(); $classes[] = $page_layout; // Current Kemet verion. $classes[] = 'kemet-' . KEMET_THEME_VERSION; $outside_menu = kemet_get_option( 'header-display-outside-menu' ); $header_layout = apply_filters( 'kemet_primary_header_layout', kemet_get_option( 'header-layouts' ) ); if ( $outside_menu || 'header-main-layout-3' != $header_layout ) { $classes[] = 'kmt-header-custom-item-outside'; } else { $classes[] = 'kmt-header-custom-item-inside'; } // Footer. $kemet_sticky_footer = kemet_get_option( 'enable-sticky-footer' ); if ( $kemet_sticky_footer ) { $classes[] = 'kmt-sticky-footer'; } return $classes; } } add_filter( 'body_class', 'kemet_body_classes' ); /** * Kemet Pagination */ if ( ! function_exists( 'kemet_number_pagination' ) ) { /** * Kemet Pagination */ function kemet_number_pagination() { global $numpages; $enabled = apply_filters( 'kemet_pagination_enabled', true ); if ( isset( $numpages ) && $enabled ) { ob_start(); echo "' . get_bloginfo( 'description' ) . '
'; if ( $display_site_title || $display_site_tagline ) { /* translators: 1: Site Title Markup, 2: Site Tagline Markup */ $html .= sprintf( '