' . esc_html__('Your demo import has been completed successfully.', 'book-publisher-agency') . '';
echo '' . esc_html__('VIEW SITE', 'book-publisher-agency') . '';
}
// POST and update the customizer and other related data of THE COURIER SERVICESPRO
if (isset($_POST['submit'])) {
// ------- Create Nav Menu --------
$book_publisher_agency_menuname = 'Main Menus';
$book_publisher_agency_bpmenulocation = 'primary';
$book_publisher_agency_menu_exists = wp_get_nav_menu_object($book_publisher_agency_menuname);
if (!$book_publisher_agency_menu_exists) {
$book_publisher_agency_menu_id = wp_create_nav_menu($book_publisher_agency_menuname);
// Create Home Page
$book_publisher_agency_home_title = 'Home';
$book_publisher_agency_home = array(
'post_type' => 'page',
'post_title' => $book_publisher_agency_home_title,
'post_content' => '',
'post_status' => 'publish',
'post_author' => 1,
'post_slug' => 'home'
);
$book_publisher_agency_home_id = wp_insert_post($book_publisher_agency_home);
// Assign Home Page Template
add_post_meta($book_publisher_agency_home_id, '_wp_page_template', 'page-template/custom-home-page.php');
// Update options to set Home Page as the front page
update_option('page_on_front', $book_publisher_agency_home_id);
update_option('show_on_front', 'page');
// Add Home Page to Menu
wp_update_nav_menu_item($book_publisher_agency_menu_id, 0, array(
'menu-item-title' => __('Home', 'book-publisher-agency'),
'menu-item-classes' => 'home',
'menu-item-url' => home_url('/'),
'menu-item-status' => 'publish',
'menu-item-object-id' => $book_publisher_agency_home_id,
'menu-item-object' => 'page',
'menu-item-type' => 'post_type'
));
// Create Pages Page with Dummy Content
$book_publisher_agency_pages_title = 'Pages';
$book_publisher_agency_pages_content = '
Explore all the pages we have on our website. Find information about our services, company, and more.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960 with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.';
$book_publisher_agency_pages = array(
'post_type' => 'page',
'post_title' => $book_publisher_agency_pages_title,
'post_content' => $book_publisher_agency_pages_content,
'post_status' => 'publish',
'post_author' => 1,
'post_slug' => 'pages'
);
$book_publisher_agency_pages_id = wp_insert_post($book_publisher_agency_pages);
// Add Pages Page to Menu
wp_update_nav_menu_item($book_publisher_agency_menu_id, 0, array(
'menu-item-title' => __('Pages', 'book-publisher-agency'),
'menu-item-classes' => 'pages',
'menu-item-url' => home_url('/pages/'),
'menu-item-status' => 'publish',
'menu-item-object-id' => $book_publisher_agency_pages_id,
'menu-item-object' => 'page',
'menu-item-type' => 'post_type'
));
// Create About Us Page with Dummy Content
$book_publisher_agency_about_title = 'About Us';
$book_publisher_agency_about_content = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam...
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960 with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which dont look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isnt anything embarrassing hidden in the middle of text.
All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.';
$book_publisher_agency_about = array(
'post_type' => 'page',
'post_title' => $book_publisher_agency_about_title,
'post_content' => $book_publisher_agency_about_content,
'post_status' => 'publish',
'post_author' => 1,
'post_slug' => 'about-us'
);
$book_publisher_agency_about_id = wp_insert_post($book_publisher_agency_about);
// Add About Us Page to Menu
wp_update_nav_menu_item($book_publisher_agency_menu_id, 0, array(
'menu-item-title' => __('About Us', 'book-publisher-agency'),
'menu-item-classes' => 'about-us',
'menu-item-url' => home_url('/about-us/'),
'menu-item-status' => 'publish',
'menu-item-object-id' => $book_publisher_agency_about_id,
'menu-item-object' => 'page',
'menu-item-type' => 'post_type'
));
// Set the menu location if it's not already set
if (!has_nav_menu($book_publisher_agency_bpmenulocation)) {
$locations = get_theme_mod('nav_menu_locations'); // Use 'nav_menu_locations' to get locations array
if (empty($locations)) {
$locations = array();
}
$locations[$book_publisher_agency_bpmenulocation] = $book_publisher_agency_menu_id;
set_theme_mod('nav_menu_locations', $locations);
}
}
// Set the demo import completion flag
update_option('book_publisher_agency_demo_import_completed', true);
// Display success message and "View Site" button
echo '' . esc_html__('Your demo import has been completed successfully.', 'book-publisher-agency') . '
';
echo '' . esc_html__('VIEW SITE', 'book-publisher-agency') . '';
//end
// Top Bar start //
set_theme_mod( 'book_publisher_agency_topbar_add_text_icon', 'fa-solid fa-bullhorn' );
set_theme_mod( 'book_publisher_agency_topbar_add_text', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.' );
// slider section start //
set_theme_mod( 'cricket_league_banner_image', get_template_directory_uri().'/assets/images/banner.png');
set_theme_mod( 'book_publisher_agency_slide_number', '3' );
for($book_publisher_agency_i=1; $book_publisher_agency_i<=3; $book_publisher_agency_i++) {
set_theme_mod( 'book_publisher_agency_banner_background_image_sec'.$book_publisher_agency_i, get_template_directory_uri().'/assets/images/man'.$book_publisher_agency_i.'.png' );
set_theme_mod( 'book_publisher_agency_designation_small_text'.$book_publisher_agency_i, 'PUBLISHING HOUSE' );
set_theme_mod( 'book_publisher_agency_tagline_title'.$book_publisher_agency_i, 'The new novel From John Verma' );
set_theme_mod( 'book_publisher_agency_designation_text'.$book_publisher_agency_i, 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua' );
set_theme_mod( 'book_publisher_agency_slider_button_label1'.$book_publisher_agency_i, 'READ MORE' );
set_theme_mod( 'book_publisher_agency_slider_button_url1'.$book_publisher_agency_i, '#' );
set_theme_mod( 'book_publisher_agency_banner_button_label2'.$book_publisher_agency_i, 'CONTACT US' );
set_theme_mod( 'book_publisher_agency_top_button_url2'.$book_publisher_agency_i, '#' );
}
// Contact Section start //
set_theme_mod( 'book_publisher_agency_contact_text', 'For Any Help or Queries Please Contact Us' );
set_theme_mod( 'book_publisher_agency_phone_icon', 'fa-solid fa-phone' );
set_theme_mod( 'book_publisher_agency_phone_number', '+00 987 654 1230' );
set_theme_mod( 'book_publisher_agency_email_address_icon', 'fa-solid fa-envelope-open-text' );
set_theme_mod( 'book_publisher_agency_email_address', 'xyz123@gmail.com' );
set_theme_mod( 'book_publisher_agency_trusted_text', '(TRUSTED BY 5M+ BUSINESS)' );
set_theme_mod( 'book_publisher_agency_book_icon', 'fa-solid fa-book' );
set_theme_mod( 'book_publisher_agency_book', 'Book' );
set_theme_mod( 'book_publisher_agency_creative_icon', 'fa-solid fa-book-open-reader' );
set_theme_mod( 'book_publisher_agency_creative', 'Creative' );
set_theme_mod( 'book_publisher_agency_lakebook_icon', 'fa-solid fa-book-open' );
set_theme_mod( 'book_publisher_agency_lakebook', 'Lake Book' );
set_theme_mod( 'book_publisher_agency_publish_icon', 'fa-solid fa-book-journal-whills' );
set_theme_mod( 'book_publisher_agency_publish', 'Publish' );
// Featured Section
set_theme_mod( 'book_publisher_agency_section_title1', 'FEATURED PUBLICATION' );
set_theme_mod( 'book_publisher_agency_feature_courses_tagline_title', 'EXPLORE OUR PUBLICATION' );
set_theme_mod( 'book_publisher_agency_featured_button_label', 'View All Publication' );
set_theme_mod( 'book_publisher_agency_featured_button_url', '#' );
set_theme_mod( 'book_publisher_agency_publish', 'Publish' );
set_theme_mod( 'book_publisher_agency_publish', 'Publish' );
set_theme_mod( 'book_publisher_agency_publish', 'Publish' );
$book_publisher_agency_featured_text_array = array("Book Title1", "Book Title2");
for($book_publisher_agency_i=1; $book_publisher_agency_i<=2; $book_publisher_agency_i++) {
set_theme_mod( 'book_publisher_agency_featured_background_image_sec'.$book_publisher_agency_i, get_template_directory_uri().'/assets/images/book'.$book_publisher_agency_i.'.png' );
// set_theme_mod( 'book_publisher_agency_feature_featured_tagline_title'.$book_publisher_agency_i, 'Book Title' );
// title setting
$book_publisher_agency_theme_mod_key = 'book_publisher_agency_feature_featured_tagline_title' . $book_publisher_agency_i;
$book_publisher_agency_theme_mod_value = $book_publisher_agency_featured_text_array[$book_publisher_agency_i - 1];
set_theme_mod($book_publisher_agency_theme_mod_key, $book_publisher_agency_theme_mod_value);
set_theme_mod( 'book_publisher_agency_book_title_url1'.$book_publisher_agency_i, '#' );
set_theme_mod( 'book_publisher_agency_featured_title1'.$book_publisher_agency_i, 'It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.' );
}
//Copyright Text
set_theme_mod( 'book_publisher_agency_footer_text', 'By VWThemes' );
}
?>