2021-07-25 07:16:35 -04:00
< ? php
/**
* The header for our theme .
*
* This is the template that displays all of the < head > section and everything up until < div id = " content " >
*
* @ link https :// developer . wordpress . org / themes / basics / template - files / #template-partials
*
* @ package WPRDNYC
*/
namespace WP_RDNYC ;
?> <!DOCTYPE html>
< html < ? php language_attributes (); ?> >
< head >
< meta charset = " <?php bloginfo( 'charset' ); ?> " >
< meta http - equiv = " X-UA-Compatible " content = " IE=edge " />
< meta name = " viewport " content = " width=device-width, initial-scale=1.0 " />
< meta name = " description " content = " Recovery Dharma NYC: a peer-led movement using Buddhist practices and principles to overcome addiction through meditation, personal inquiry, and community " >
2021-07-27 19:12:18 -04:00
< link rel = " preload " href = " <?php echo get_stylesheet_directory_uri() . '/dist/fonts/open-sans-latin-400-normal.woff2'; ?> " as = " font " type = " font/woff2 " crossorigin = " anonymous " >
2021-07-28 16:39:40 -04:00
< link rel = " preload " href = " <?php echo get_stylesheet_directory_uri() . '/dist/fonts/open-sans-latin-300-normal.woff2'; ?> " as = " font " type = " font/woff2 " crossorigin = " anonymous " >
< link rel = " preload " href = " <?php echo get_stylesheet_directory_uri() . '/dist/fonts/open-sans-latin-700-normal.woff2'; ?> " as = " font " type = " font/woff2 " crossorigin = " anonymous " >
< link rel = " preload " href = " <?php echo get_stylesheet_directory_uri() . '/dist/fonts/open-sans-latin-400-italic.woff2'; ?> " as = " font " type = " font/woff2 " crossorigin = " anonymous " >
2021-07-25 07:16:35 -04:00
< link rel = " preload " href = " <?php echo get_stylesheet_directory_uri() . '/dist/fonts/permanent-marker-latin-400-normal.woff2'; ?> " as = " font " type = " font/woff2 " crossorigin = " anonymous " >
< link rel = " apple-touch-icon " sizes = " 180x180 " href = " <?php echo get_stylesheet_directory_uri() . '/dist/images/apple-touch-icon.png'; ?> " >
< link rel = " icon " type = " image/png " sizes = " 32x32 " href = " <?php echo get_stylesheet_directory_uri() . '/dist/images/favicon-32x32.png'; ?> " >
< link rel = " icon " type = " image/png " sizes = " 16x16 " href = " <?php echo get_stylesheet_directory_uri() . '/dist/images/favicon-16x16.png'; ?> " >
< link rel = " manifest " href = " <?php echo get_stylesheet_directory_uri() . '/dist/images/site.webmanifest'; ?> " >
< meta name = " apple-mobile-web-app-title " content = " 73k " >
< meta name = " application-name " content = " 73k " >
< meta name = " msapplication-TileColor " content = " #2b5797 " >
< meta name = " theme-color " content = " #ffffff " >
< link rel = " icon " href = " /favicon.ico " >
< link rel = " pingback " href = " <?php bloginfo( 'pingback_url' ); ?> " >
< ? php wp_head (); ?>
</ head >
< body < ? php body_class (); ?> itemscope itemtype="https://schema.org/WebPage">
2021-08-04 07:46:55 -04:00
< ? php
if ( is_front_page ()) :
?>
< img
src = " <?php echo get_template_directory_uri() . '/dist/images/svg-roll-mandala.svg'; ?> "
class = " img roll-mandala " aria_hidden = " true "
>
< ? php
endif ;
?>
< nav id = " nt-out " class = " container-fluid mb-4 mb-sm-4-2 mb-lg-4-25 mb-xl-5 mb-xxl-7 " >
2021-07-26 13:07:57 -04:00
2021-08-03 12:42:29 -04:00
< div class = " nt-brand " >
2021-07-26 13:07:57 -04:00
< h1 >
<!-- my - 0 py - 0 -->
< ? php
2021-08-03 12:42:29 -04:00
printf ( '<a href="%1$s" rel="home">' ,
2021-07-26 13:07:57 -04:00
esc_url ( home_url ( '/' ) )
2021-07-25 21:56:25 -04:00
);
2021-07-25 07:16:35 -04:00
2021-07-26 13:07:57 -04:00
echo inline_svg ( 'svg-rdnyc-logo' ,
array (
2021-08-03 12:42:29 -04:00
'svg_class' => 'img' ,
2021-07-26 13:07:57 -04:00
'svg_title' => 'Recovery Dharma New York City' ,
'svg_role_img' => true ,
'svg_aria_hidden' => false
)
);
echo " </a> " ;
?>
</ h1 >
</ div >
2021-08-03 12:42:29 -04:00
< div id = " nt-burger " >
< button class = " hamburger hamburger--squeeze " id = " btn-burger "
type = " button " data - bs - toggle = " collapse " data - bs - target = " #nt-mainmenu "
aria - controls = " nt-mainmenu " aria - expanded = " false " aria - label = " Toggle navigation "
2021-07-26 13:07:57 -04:00
>
< span class = " hamburger-box " >
< span class = " hamburger-inner " ></ span >
</ span >
</ button >
</ div >
2021-08-03 12:42:29 -04:00
< div id = " nt-socials " >
2021-07-26 13:07:57 -04:00
< ? php
// using widget to include social icons, so they can be edited by wordpress users
if ( is_active_sidebar ( 'navbar-socialicon-widget' ) ) :
dynamic_sidebar ( 'navbar-socialicon-widget' );
endif ;
?>
</ div >
< ? php
// main navigation menu
if ( has_nav_menu ( 'navbar-main-menu' ) ) {
// echo '<section>';
wp_nav_menu ([
'theme_location' => 'navbar-main-menu' ,
2021-07-26 18:02:36 -04:00
'depth' => 2 ,
2021-07-26 13:07:57 -04:00
'menu' => 'navbar-main-menu' ,
'container' => 'div' ,
2021-08-03 12:42:29 -04:00
'container_id' => 'nt-mainmenu' ,
2021-07-26 20:51:08 -04:00
'walker' => new RDNYC_Menu_Walker ()
2021-07-26 13:07:57 -04:00
]);
// echo '</section>';
}
2021-07-25 07:16:35 -04:00
?>
2021-07-26 13:07:57 -04:00
</ nav >