element attributes. * * @access public * @param array $attr * @return array */ function hybridtheme_attr_body( $attr ) { $attr['class'] = join( ' ', get_body_class() ); $attr['dir'] = is_rtl() ? 'rtl' : 'ltr'; $attr['itemscope'] = 'itemscope'; $attr['itemtype'] = 'http://schema.org/WebPage'; if ( is_singular( 'post' ) || is_home() || is_archive() ) $attr['itemtype'] = 'http://schema.org/Blog'; elseif ( is_search() ) $attr['itemtype'] = 'http://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'] = 'http://schema.org/WPHeader'; return $attr; } /** * Page