<?php

class Whizzie {

	public function __construct() {
		
	}

	public function init() {
		
	}
	public static function massage_parlor_setup_widgets(){

		set_theme_mod( 'massage_parlor_header_button_text', 'Book Now' );
		set_theme_mod( 'massage_parlor_header_button_url', '#' );
        
		/* Create Menu */
		$massage_parlor_menuname  = 'Main Menus';
		$massage_parlor_location  = 'primary';

		$massage_parlor_menu = wp_get_nav_menu_object( $massage_parlor_menuname );

		if ( ! $massage_parlor_menu ) {
			$massage_parlor_menu_id = wp_create_nav_menu( $massage_parlor_menuname );

			// Home Page 
			wp_update_nav_menu_item( $massage_parlor_menu_id, 0, array(
				'menu-item-title'     => __( 'Home', 'massage-parlor' ),
				'menu-item-url'       => home_url( '/' ),
				'menu-item-type'      => 'custom',
				'menu-item-status'    => 'publish',
			) );

			// About Page 
			$massage_parlor_about_id = wp_insert_post( array(
			'post_type'   => 'page',
			'post_content' => 'We are committed to providing reliable, professional, and result-oriented solutions tailored to meet individual needs. Our goal is to empower people with the right guidance, knowledge, and support to help them make informed decisions for a better future. <br><br> Our mission is to deliver high-quality services with honesty, transparency, and dedication. We focus on understanding client requirements and offering practical solutions that create long-term value. <br><br> With a client-centric approach, experienced professionals, and a commitment to excellence, we ensure every individual receives the attention and guidance they deserve. We believe in building trust through quality service and consistent results.',
			'post_title'  => 'About Us',
			'post_status' => 'publish',
			) );

			if ( $massage_parlor_about_id ) {
			wp_update_nav_menu_item( $massage_parlor_menu_id, 0, array(
			'menu-item-title'     => 'About Us',
			'menu-item-object'    => 'page',
			'menu-item-object-id' => $massage_parlor_about_id,
			'menu-item-type'      => 'post_type',
			'menu-item-status'    => 'publish',
			) );
			}

			// Services Page 
			$massage_parlor_about_id = wp_insert_post( array(
			'post_type'   => 'page',
			'post_content' => 'We are committed to providing reliable, professional, and result-oriented solutions tailored to meet individual needs. Our goal is to empower people with the right guidance, knowledge, and support to help them make informed decisions for a better future. <br><br> Our mission is to deliver high-quality services with honesty, transparency, and dedication. We focus on understanding client requirements and offering practical solutions that create long-term value. <br><br> With a client-centric approach, experienced professionals, and a commitment to excellence, we ensure every individual receives the attention and guidance they deserve. We believe in building trust through quality service and consistent results.',
			'post_title'  => 'Services',
			'post_status' => 'publish',
			) );

			if ( $massage_parlor_about_id ) {
			wp_update_nav_menu_item( $massage_parlor_menu_id, 0, array(
			'menu-item-title'     => 'Services',
			'menu-item-object'    => 'page',
			'menu-item-object-id' => $massage_parlor_about_id,
			'menu-item-type'      => 'post_type',
			'menu-item-status'    => 'publish',
			) );
			}

			// Gallery Page 
			$massage_parlor_about_id = wp_insert_post( array(
			'post_type'   => 'page',
			'post_content' => 'We are committed to providing reliable, professional, and result-oriented solutions tailored to meet individual needs. Our goal is to empower people with the right guidance, knowledge, and support to help them make informed decisions for a better future. <br><br> Our mission is to deliver high-quality services with honesty, transparency, and dedication. We focus on understanding client requirements and offering practical solutions that create long-term value. <br><br> With a client-centric approach, experienced professionals, and a commitment to excellence, we ensure every individual receives the attention and guidance they deserve. We believe in building trust through quality service and consistent results.',
			'post_title'  => 'Gallery',
			'post_status' => 'publish',
			) );

			if ( $massage_parlor_about_id ) {
			wp_update_nav_menu_item( $massage_parlor_menu_id, 0, array(
			'menu-item-title'     => 'Gallery',
			'menu-item-object'    => 'page',
			'menu-item-object-id' => $massage_parlor_about_id,
			'menu-item-type'      => 'post_type',
			'menu-item-status'    => 'publish',
			) );
			}
            
			/* Assign Menu Location */
			$massage_parlor_locations = get_theme_mod( 'nav_menu_locations', array() );
			$massage_parlor_locations[ $massage_parlor_location ] = $massage_parlor_menu_id;
			set_theme_mod( 'nav_menu_locations', $massage_parlor_locations );
		}
	}

}

	
 