<?php
/**
 * Hamburger toggle for the single-page navigation menu.
 *
 * @package TentsSinglepageChild
 */

defined( 'ABSPATH' ) || exit;

$extra_class = isset( $args['class'] ) ? (string) $args['class'] : '';
$classes     = trim( 'singlepage-menu-toggle ' . $extra_class );
?>
<button type="button" class="<?php echo esc_attr( $classes ); ?>" aria-controls="top-menu" aria-expanded="false">
	<?php
	if ( function_exists( 'twentyseventeen_get_svg' ) ) {
		echo twentyseventeen_get_svg( array( 'icon' => 'bars' ) );
		echo twentyseventeen_get_svg( array( 'icon' => 'close' ) );
	}
	?>
	<span class="screen-reader-text"><?php esc_html_e( 'Menu', 'twentyseventeen' ); ?></span>
</button>
