element attributes. * * @access public * @param array $attr * @return array */ function hybridtheme_attr_body( $attr ) { $class = apply_filters( 'hoot_default_body_class', 'metrolo' ); $class = is_string( $class ) ? esc_attr( $class ) : ''; $attr['class'] = join( ' ', get_body_class( $class ) ); $attr['dir'] = is_rtl() ? 'rtl' : 'ltr'; $attr['itemscope'] = 'itemscope'; $attr['itemtype'] = 'https://schema.org/WebPage'; if ( is_singular( 'post' ) || is_home() || is_archive() ) $attr['itemtype'] = 'https://schema.org/Blog'; elseif ( is_search() ) $attr['itemtype'] = 'https://schema.org/SearchResultsPage'; return $attr; } /** * Page
element attributes. * * @access public * @param array $attr * @return array */ function hybridtheme_attr_header( $attr ) { $attr['id'] = 'header'; $attr['class'] = 'site-header'; $attr['role'] = 'banner'; $attr['itemscope'] = 'itemscope'; $attr['itemtype'] = 'https://schema.org/WPHeader'; return $attr; } /** * Page