<?php
/**
 * Theme functions related to structure.
 *
 * This file contains structural hook functions.
 *
 * @package prime-fitness-gym
 */

if ( ! function_exists( 'prime_fitness_gym_doctype' ) ) :
	/**
	 * Doctype Declaration.
	 *
	 * @since 1.0.0
	 */
function prime_fitness_gym_doctype() {
	?><!DOCTYPE html> <html <?php language_attributes(); ?>><?php
}
endif;

add_action( 'prime_fitness_gym_action_doctype', 'prime_fitness_gym_doctype', 10 );


if ( ! function_exists( 'prime_fitness_gym_head' ) ) :
	/**
	 * Header Codes.
	 *
	 * @since 1.0.0
	 */
function prime_fitness_gym_head() {
	?>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="profile" href="https://gmpg.org/xfn/11">
	<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
	<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
	<?php endif;
	
}
endif;
add_action( 'prime_fitness_gym_action_head', 'prime_fitness_gym_head', 10 );

if ( ! function_exists( 'prime_fitness_gym_page_start' ) ) :
	/**
	 * Add Skip to content.
	 *
	 * @since 1.0.0
	 */
	function prime_fitness_gym_page_start() {
	?><div id="page" class="site"><a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'prime-fitness-gym' ); ?></a><?php
	}
endif;

add_action( 'prime_fitness_gym_action_before', 'prime_fitness_gym_page_start', 10 );

if ( ! function_exists( 'prime_fitness_gym_header_start' ) ) :
	/**
	 * Header Start.
	 *
	 * @since 1.0.0
	 */
	function prime_fitness_gym_header_start() {
	
	?>
		<header id="masthead" class="relative" role="banner"><?php
	}
endif;
add_action( 'prime_fitness_gym_action_before_header', 'prime_fitness_gym_header_start' );

if ( ! function_exists( 'prime_fitness_gym_header_end' ) ) :
	/**
	 * Header Start.
	 *
	 * @since 1.0.0
	 */
	function prime_fitness_gym_header_end() {

		?>
		</header> <!-- header ends here --><?php
	}
endif;
add_action( 'prime_fitness_gym_action_header', 'prime_fitness_gym_header_end', 15 );

if ( ! function_exists( 'prime_fitness_gym_content_start' ) ) :
	/**
	 * Header End.
	 *
	 * @since 1.0.0
	 */
	function prime_fitness_gym_content_start() { 
	?>
	<div id="content-page" class="site-content">
	<?php 

	}
endif;

add_action( 'prime_fitness_gym_action_before_content', 'prime_fitness_gym_content_start', 10 );

if ( ! function_exists( 'prime_fitness_gym_footer_start' ) ) :
	/**
	 * Footer Start.
	 *
	 * @since 1.0.0
	 */
	function prime_fitness_gym_footer_start() {
		if( !(is_home() || is_front_page()) ){
			echo '</div>';
		} ?>
		</div>
		<footer id="colophon" class="site-footer" role="contentinfo">
			<div class="footer-bgoverlay"></div> 
			<?php
	}
endif;
add_action( 'prime_fitness_gym_action_before_footer', 'prime_fitness_gym_footer_start' );

if ( ! function_exists( 'prime_fitness_gym_footer_end' ) ) :
	/**
	 * Footer End.
	 *
	 * @since 1.0.0
	 */
	function prime_fitness_gym_footer_end() {?>
		</footer><?php
	}
endif;
add_action( 'prime_fitness_gym_action_after_footer', 'prime_fitness_gym_footer_end' );
