hueman/header.php
Rocco Aliberti 1308416b2a Implement skip to content for TRT requirement
fixes #824
also add the id 'content' to the main content theme section
and the following filters hooks:
'hu_skip_link' to control whether or not the skip link should be displayed (default true)
'hu_skip_link_anchor' the name of the content anchor (default '#content')
2019-09-13 11:08:07 +02:00

36 lines
1.2 KiB
PHP

<!DOCTYPE html>
<html class="no-js" <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="profile" href="https://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
//see https://github.com/presscustomizr/hueman/issues/784
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
} else {
do_action( 'wp_body_open' );
}
?>
<div id="wrapper">
<?php if ( apply_filters( 'hu_skip_link', true ) ) : ?>
<a class="screen-reader-text skip-link" href="<?php echo apply_filters( 'hu_skip_link_anchor', '#content' ); ?>"><?php esc_html_e( 'Skip to content', 'hueman' ) ?></a>
<?php endif ?>
<?php do_action('__before_header') ; ?>
<?php hu_get_template_part('parts/header-main'); ?>
<?php do_action('__after_header') ; ?>
<div class="container" id="page">
<div class="container-inner">
<?php do_action('__before_main') ; ?>
<div class="main">
<div class="main-inner group">
<?php do_action('__before_content') ; ?>