*/ //homepage $td_homepage_id = td_demo_content::add_page(array('title' => 'Home', 'file' => td_global::$get_template_directory . '/includes/demos/travel/pages/homepage.txt', 'template' => 'page.php', 'td_layout' => '', 'homepage' => true)); $td_blog_id = td_demo_content::add_page(array('title' => 'Travel blog', 'file' => td_global::$get_template_directory . '/includes/demos/travel/pages/travel-blog.txt', 'template' => 'page-pagebuilder-latest.php', 'td_layout' => '12', 'homepage' => false)); /* ---------------------------------------------------------------------------- menu */ //add the homepage to the menu td_demo_menus::add_page(array('title' => 'Start here', 'add_to_menu_id' => $td_demo_header_menu_id, 'page_id' => $td_homepage_id, 'parent_id' => '')); td_demo_menus::add_page(array('title' => 'Travel blog', 'add_to_menu_id' => $td_demo_header_menu_id, 'page_id' => $td_blog_id, 'parent_id' => '')); // mega menu multiple subcateg td_demo_menus::add_mega_menu(array('title' => 'Destinations', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_1_id)); // mega menu one subcateg td_demo_menus::add_mega_menu(array('title' => 'Trip ideas', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_9_id)); td_demo_menus::add_mega_menu(array('title' => 'Culture', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_7_id)); td_demo_menus::add_mega_menu(array('title' => 'Guides', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_8_id)); /* --------------------------------------------------------------------------- posts */ // post in featured category td_demo_content::add_post(array('title' => '8 Incredible Pictures From The Travel Photographer', 'file' => td_global::$get_template_directory . '/includes/demos/travel/pages/post_smart.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_3_id), 'featured_image_td_id' => 'td_pic_1', 'template' => 'single_template_12', 'smart_list' => 'td_smart_list_6')); td_demo_content::add_post(array('title' => '10 Landscapes You Won’t Have Even Imagined Exist', 'file' => td_global::$get_template_directory . '/includes/demos/travel/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_9_id), 'featured_image_td_id' => 'td_pic_8')); td_demo_content::add_post(array('title' => 'Top Most Beautiful Islands In The World', 'file' => td_global::$get_template_directory . '/includes/demos/travel/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_5_id), 'featured_image_td_id' => 'td_pic_3')); // ---------------------------------------------------------------------------- td_demo_content::add_post(array('title' => "10 Hotels That Are Perfect for Solo Travelers", 'file' => td_global::$get_template_directory . '/includes/demos/travel/pages/post_smart.txt', 'categories_id_array' => array($demo_cat_2_id, $demo_cat_3_id, $demo_cat_4_id, $demo_cat_5_id, $demo_cat_6_id, $demo_cat_7_id, $demo_cat_8_id, $demo_cat_9_id), 'featured_image_td_id' => 'td_pic_2', 'template' => 'single_template_12', 'smart_list' => 'td_smart_list_7')); td_demo_content::add_post(array('title' => "Top Reasons to Go to Barcelona", 'file' => td_global::$get_template_directory . '/includes/demos/travel/pages/post_smart.txt', 'categories_id_array' => array($demo_cat_2_id, $demo_cat_3_id, $demo_cat_4_id, $demo_cat_5_id, $demo_cat_6_id, $demo_cat_7_id, $demo_cat_8_id, $demo_cat_9_id), 'featured_image_td_id' => 'td_pic_4', 'template' => 'single_template_12', 'smart_list' => 'td_smart_list_6')); td_demo_content::add_post(array('title' => "Paris's 10 Best New Boutiques", 'file' => td_global::$get_template_directory . '/includes/demos/travel/pages/post_smart.txt', 'categories_id_array' => array($demo_cat_2_id, $demo_cat_3_id, $demo_cat_4_id, $demo_cat_5_id, $demo_cat_6_id, $demo_cat_7_id, $demo_cat_8_id, $demo_cat_9_id), 'featured_image_td_id' => 'td_pic_5', 'template' => 'single_template_12', 'smart_list' => 'td_smart_list_7')); td_demo_content::add_post(array('title' => "World's 15 Best Summer Music Festivals", 'file' => td_global::$get_template_directory . '/includes/demos/travel/pages/post_smart.txt', 'categories_id_array' => array($demo_cat_2_id, $demo_cat_3_id, $demo_cat_4_id, $demo_cat_5_id, $demo_cat_6_id, $demo_cat_7_id, $demo_cat_8_id, $demo_cat_9_id), 'featured_image_td_id' => 'td_pic_6', 'template' => 'single_template_12', 'smart_list' => 'td_smart_list_6')); td_demo_content::add_post(array('title' => "10 Things Not to Do in Bangkok", 'file' => td_global::$get_template_directory . '/includes/demos/travel/pages/post_smart.txt', 'categories_id_array' => array($demo_cat_2_id, $demo_cat_3_id, $demo_cat_4_id, $demo_cat_5_id, $demo_cat_6_id, $demo_cat_7_id, $demo_cat_8_id, $demo_cat_9_id), 'featured_image_td_id' => 'td_pic_7', 'template' => 'single_template_12', 'smart_list' => 'td_smart_list_6')); // ---------------------------------------------------------------------------- // Mix Cat
$demo_cat_9_id = td_demo_category::add_category(array('category_name' => 'Beauty', 'parent_id' => 0, 'category_template' => 'td_category_template_6', 'top_posts_style' => 'td_category_top_posts_style_5', 'description' => 'Check out the latest beauty news, tips, trends and ideas from around the world only on Newspaper Fashion!', 'background_td_pic_id' => 'td_pic_4', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '12', 'tdc_sidebar_pos' => 'sidebar_right', 'tdc_category_td_grid_style' => 'td-grid-style-2')); $demo_cat_10_id = td_demo_category::add_category(array('category_name' => 'Street Style', 'parent_id' => 0, 'category_template' => 'td_category_template_7', 'top_posts_style' => 'td_category_top_posts_style_3', 'description' => "Explore the best articles of the world's street style and read relevant fashion topics.", 'background_td_pic_id' => '', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '5', 'tdc_sidebar_pos' => 'sidebar_right')); /* ---------------------------------------------------------------------------- pages */ //homepage $td_homepage_id = td_demo_content::add_page(array('title' => 'News', 'file' => td_global::$get_template_directory . '/includes/demos/fashion/pages/homepage.txt', 'template' => 'page-pagebuilder-latest.php', 'td_layout' => '5', 'homepage' => true)); /* ---------------------------------------------------------------------------- menu */ //add the homepage to the menu td_demo_menus::add_page(array('title' => 'News', 'add_to_menu_id' => $td_demo_header_menu_id, 'page_id' => $td_homepage_id, 'parent_id' => '')); // mega menu multiple subcateg td_demo_menus::add_mega_menu(array('title' => 'Fashion Today', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_1_id)); // mega menu one subcateg td_demo_menus::add_mega_menu(array('title' => 'Cosmopolitan', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_7_id)); // add a subcategory to the sub-menu $parent_submenu_id = td_demo_menus::add_link(array('title' => 'Celebrity Style', 'add_to_menu_id' => $td_demo_header_menu_id, 'url' => '#', 'parent_id' => '')); td_demo_menus::add_category(array('title' => 'Fashion Shows', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_2_id, 'parent_id' => $parent_submenu_id)); td_demo_menus::add_category(array('title' => 'Lingerie Fashion', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_3_id, 'parent_id' => $parent_submenu_id)); td_demo_menus::add_category(array('title' => 'Milano Trends', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_4_id, 'parent_id' => $parent_submenu_id)); td_demo_menus::add_category(array('title' => "Victoria's Secret", 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_6_id, 'parent_id' => $parent_submenu_id)); // add a category to the menu td_demo_menus::add_category(array('title' => 'Beauty', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_9_id)); td_demo_menus::add_category(array('title' => 'Street Style', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_10_id)); /* --------------------------------------------------------------------------- posts */ // post in featured category td_demo_content::add_post(array('title' => 'Are You Already Wearing the Hottest Brands in Your City?', 'file' => td_global::$get_template_directory . '/includes/demos/fashion/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_3_id), 'featured_image_td_id' => 'td_pic_1', 'template' => 'single_template_6')); td_demo_content::add_post(array('title' => 'Vintage Fashion: 3 Modern Ways To Shop The Decades', 'file' => td_global::$get_template_directory . '/includes/demos/fashion/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_10_id), 'featured_image_td_id' => 'td_pic_2', 'template' => 'single_template_7'));
$demo_cat_12_id = td_demo_category::add_category(array('category_name' => 'Tuning', 'parent_id' => 0, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => '')); /* ---------------------------------------------------------------------------- pages */ //homepage $td_homepage_id = td_demo_content::add_page(array('title' => 'Home', 'file' => td_global::$get_template_directory . '/includes/demos/cars/pages/homepage.txt', 'template' => 'page.php', 'td_layout' => '', 'homepage' => true)); /* ---------------------------------------------------------------------------- menu */ //add the homepage to the menu td_demo_menus::add_page(array('title' => 'Home', 'add_to_menu_id' => $td_demo_header_menu_id, 'page_id' => $td_homepage_id, 'parent_id' => '')); // mega menu multiple subcateg td_demo_menus::add_mega_menu(array('title' => 'Car News', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_1_id)); // mega menu one subcateg td_demo_menus::add_mega_menu(array('title' => 'Deals', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_8_id)); td_demo_menus::add_mega_menu(array('title' => 'Reviews', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_9_id)); // add a subcategory to the sub-menu $parent_submenu_id = td_demo_menus::add_link(array('title' => 'See More', 'add_to_menu_id' => $td_demo_header_menu_id, 'url' => '#', 'parent_id' => '')); td_demo_menus::add_category(array('title' => 'Tests', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_10_id, 'parent_id' => $parent_submenu_id)); td_demo_menus::add_category(array('title' => 'Life', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_11_id, 'parent_id' => $parent_submenu_id)); td_demo_menus::add_category(array('title' => 'Tuning', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_12_id, 'parent_id' => $parent_submenu_id)); /* --------------------------------------------------------------------------- posts */ // post in featured category td_demo_content::add_post(array('title' => 'The Best Supercars of All Times', 'file' => td_global::$get_template_directory . '/includes/demos/cars/pages/smart_list.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_11_id), 'featured_image_td_id' => 'td_pic_1', 'template' => 'single_template_5', 'smart_list' => 'td_smart_list_6')); td_demo_content::add_post(array('title' => 'Hottest New Cars at Detroit', 'file' => td_global::$get_template_directory . '/includes/demos/cars/pages/smart_list.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_2_id), 'featured_image_td_id' => 'td_pic_2', 'template' => 'single_template_5', 'smart_list' => 'td_smart_list_6')); td_demo_content::add_post(array('title' => 'TVR Stages a More Credible Comeback', 'file' => td_global::$get_template_directory . '/includes/demos/cars/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_3_id), 'featured_image_td_id' => 'td_pic_3')); td_demo_content::add_post(array('title' => '2016 Hyundai Sonata Hybrid', 'file' => td_global::$get_template_directory . '/includes/demos/cars/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_4_id), 'featured_image_td_id' => 'td_pic_4')); td_demo_content::add_post(array('title' => 'Top 5 Motorsport Games of 2015', 'file' => td_global::$get_template_directory . '/includes/demos/cars/pages/smart_list.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_6_id), 'featured_image_td_id' => 'td_pic_5', 'template' => 'single_template_5', 'smart_list' => 'td_smart_list_6')); td_demo_content::add_post(array('title' => '2015 Lexus GX460 Luxury', 'file' => td_global::$get_template_directory . '/includes/demos/cars/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_4_id), 'featured_image_td_id' => 'td_pic_6'));
$demo_cat_10_id = td_demo_category::add_category(array('category_name' => 'Gadgets', 'parent_id' => 0, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => '')); /* ---------------------------------------------------------------------------- pages */ //homepage $td_homepage_id = td_demo_content::add_page(array('title' => 'Home', 'file' => td_global::$get_template_directory . '/includes/demos/health/pages/homepage.txt', 'template' => 'page.php', 'td_layout' => '', 'homepage' => true)); /* ---------------------------------------------------------------------------- menu */ //add the homepage to the menu td_demo_menus::add_page(array('title' => 'Home', 'add_to_menu_id' => $td_demo_header_menu_id, 'page_id' => $td_homepage_id, 'parent_id' => '')); // mega menu multiple subcateg td_demo_menus::add_mega_menu(array('title' => 'Fitness', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_1_id)); // mega menu one subcateg td_demo_menus::add_mega_menu(array('title' => 'Food', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_6_id)); td_demo_menus::add_mega_menu(array('title' => 'Health', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_7_id)); // add a subcategory to the sub-menu $parent_submenu_id = td_demo_menus::add_link(array('title' => 'Other', 'add_to_menu_id' => $td_demo_header_menu_id, 'url' => '#', 'parent_id' => '')); td_demo_menus::add_category(array('title' => 'Lifestyle', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_8_id, 'parent_id' => $parent_submenu_id)); td_demo_menus::add_category(array('title' => 'Science', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_9_id, 'parent_id' => $parent_submenu_id)); td_demo_menus::add_category(array('title' => 'Gadgets', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_10_id, 'parent_id' => $parent_submenu_id)); /* --------------------------------------------------------------------------- posts */ // post in featured category td_demo_content::add_post(array('title' => 'Do I Need a Doctor?', 'file' => td_global::$get_template_directory . '/includes/demos/health/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_3_id), 'featured_image_td_id' => 'td_pic_1')); td_demo_content::add_post(array('title' => '8 Easy Steps to Eat Better', 'file' => td_global::$get_template_directory . '/includes/demos/health/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_9_id), 'featured_image_td_id' => 'td_pic_2')); td_demo_content::add_post(array('title' => '12 Classic Pilates Moves', 'file' => td_global::$get_template_directory . '/includes/demos/health/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_5_id), 'featured_image_td_id' => 'td_pic_3')); td_demo_content::add_post(array('title' => '8 Weight Loss Mistakes', 'file' => td_global::$get_template_directory . '/includes/demos/health/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_6_id), 'featured_image_td_id' => 'td_pic_4')); // ---------------------------------------------------------------------------- td_demo_content::add_post(array('title' => "How Many Calories Does CrossFit REALLY Burn?", 'file' => td_global::$get_template_directory . '/includes/demos/health/pages/post_default.txt', 'categories_id_array' => array($demo_cat_2_id, $demo_cat_3_id, $demo_cat_4_id, $demo_cat_5_id, $demo_cat_6_id, $demo_cat_7_id, $demo_cat_8_id, $demo_cat_9_id, $demo_cat_10_id), 'featured_image_td_id' => 'td_pic_5'));