/** * Social icons with SVG. */ function _s_do_social_icons() { ?> <ul class="social-icons"> <li> <a href="https://www.facebook.com/#"><?php _s_do_svg('facebook-square'); ?> </a> </li> <li> <a href="https://twitter.com/#"><?php _s_do_svg('twitter-square'); ?> </a> </li> <li> <a href="https://instagram.com/#"><?php _s_do_svg('instagram'); ?> </a> </li> <li> <a href="https://www.youtube.com/channel/#"><?php _s_do_svg('youtube-square'); ?> </a> </li> <li> <a href="/feed"><?php _s_do_svg('rss-square'); ?> </a> </li> </ul> <?php }
<form role="search" method="get" class="search-form" action="<?php echo esc_url(home_url('/')); ?> "> <label> <span class="screen-reader-text"><?php echo _x('Search for:', 'hippie'); ?> </span> <input type="search" class="search-field" placeholder="<?php echo esc_attr_x('Search', 'hippie'); ?> " value="<?php echo get_search_query(); ?> " name="s" title="<?php echo esc_attr_x('Search...', 'hippie'); ?> " /> </label> <button aria-label="search"> <?php _s_do_svg('icon-search'); ?> </button> </form>
/** * Output the mobile navigation */ function _s_do_mobile_navigation_menu() { // Figure out which menu we're pulling $mobile_menu = has_nav_menu('mobile') ? 'mobile' : 'primary'; ?> <nav id="mobile-menu" class="mobile-nav-menu"> <button class="close-mobile-menu"><span class="screen-reader-text"><?php _e('Close menu', '_s'); ?> </span><?php _s_do_svg(array('icon' => 'close')); ?> </button> <?php wp_nav_menu(array('theme_location' => $mobile_menu, 'menu_id' => 'primary-menu', 'menu_class' => 'menu dropdown mobile-nav', 'link_before' => '<span>', 'link_after' => '</span>')); ?> </nav> <?php }
$description = get_bloginfo('description', 'display'); if ($description || is_customize_preview()) { ?> <p class="site-description"><?php echo $description; /* WPCS: xss ok. */ ?> </p> <?php } ?> </div><!-- .site-branding --> <nav id="site-navigation" class="main-navigation"> <button class="menu-toggle" aria-controls="primary-menu"><?php _s_do_svg(array('icon' => 'bars', 'title' => 'Display Menu')); ?> <span class="menu-toggle-text"><?php esc_html_e('Menu', '_s'); ?> </span></button> <?php wp_nav_menu(array('theme_location' => 'primary', 'menu_id' => 'primary-menu', 'menu_class' => 'menu dropdown')); ?> </nav><!-- #site-navigation --> </div><!-- .wrap --> </header><!-- #masthead --> <?php wds_page_builder_area('before_content');