コード例 #1
0
ファイル: td_import.php プロジェクト: luxifel/Bionerd
$demo_cat_6_id = td_demo_category::add_category(array('category_name' => 'Adventure Travel', 'parent_id' => 0, 'category_template' => '', 'top_posts_style' => '', 'description' => 'From festivals in Florida to touring Dracula’s digs in Romania, we round up the best destinations to visit this October. As summer abandons Europe again this October, eke out the last of the rays and raves in Ibiza, where nightclubs will be going out with a bang for the winter break. When the party finally stops head to the island’s north.', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => ''));
$demo_cat_7_id = td_demo_category::add_category(array('category_name' => 'Culture', 'parent_id' => 0, 'category_template' => '', 'top_posts_style' => '', 'description' => 'From festivals in Florida to touring Dracula’s digs in Romania, we round up the best destinations to visit this October. As summer abandons Europe again this October, eke out the last of the rays and raves in Ibiza, where nightclubs will be going out with a bang for the winter break. When the party finally stops head to the island’s north.', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => '', 'tdc_category_td_grid_style' => '2'));
$demo_cat_8_id = td_demo_category::add_category(array('category_name' => 'Travel guides', 'parent_id' => 0, 'category_template' => '', 'top_posts_style' => '', 'description' => 'From festivals in Florida to touring Dracula’s digs in Romania, we round up the best destinations to visit this October. As summer abandons Europe again this October, eke out the last of the rays and raves in Ibiza, where nightclubs will be going out with a bang for the winter break. When the party finally stops head to the island’s north.', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => '', 'tdc_category_td_grid_style' => ''));
$demo_cat_9_id = td_demo_category::add_category(array('category_name' => 'Trip ideas', 'parent_id' => 0, 'category_template' => '', 'top_posts_style' => '', 'description' => 'From festivals in Florida to touring Dracula’s digs in Romania, we round up the best destinations to visit this October. As summer abandons Europe again this October, eke out the last of the rays and raves in Ibiza, where nightclubs will be going out with a bang for the winter break. When the party finally stops head to the island’s north.', '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/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'));
コード例 #2
0
ファイル: td_import.php プロジェクト: tuanlibra/thptxuanang
$demo_cat_4_id = td_demo_category::add_category(array('category_name' => 'Golf', 'parent_id' => $demo_cat_1_id, 'category_template' => '', 'top_posts_style' => '', 'description' => 'On each category you can set a Category template style, a Top post style (grids) and a module type for article listing. Also each top post style (grids) have 5 different look style. You can mix them to create a beautiful and unique category page.', 'background_td_pic_id' => 'td_pic_9', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '', 'tdc_sidebar_pos' => 'sidebar_right', 'tdc_color' => '#78909c'));
$demo_cat_5_id = td_demo_category::add_category(array('category_name' => 'Horse Racing', 'parent_id' => $demo_cat_1_id, 'category_template' => '', 'top_posts_style' => '', 'description' => 'On each category you can set a Category template style, a Top post style (grids) and a module type for article listing. Also each top post style (grids) have 5 different look style. You can mix them to create a beautiful and unique category page.', 'background_td_pic_id' => 'td_pic_2', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '', 'tdc_sidebar_pos' => 'sidebar_right', 'tdc_color' => '#6d4c41'));
$demo_cat_6_id = td_demo_category::add_category(array('category_name' => "Tennis", 'parent_id' => 0, 'category_template' => '', 'top_posts_style' => '', 'description' => 'On each category you can set a Category template style, a Top post style (grids) and a module type for article listing. Also each top post style (grids) have 5 different look style. You can mix them to create a beautiful and unique category page.', 'background_td_pic_id' => 'td_pic_5', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '', 'tdc_sidebar_pos' => 'sidebar_right', 'tdc_color' => '#7cb342'));
$demo_cat_7_id = td_demo_category::add_category(array('category_name' => 'Billiard', 'parent_id' => 0, 'category_template' => '', 'top_posts_style' => '', 'description' => 'On each category you can set a Category template style, a Top post style (grids) and a module type for article listing. Also each top post style (grids) have 5 different look style. You can mix them to create a beautiful and unique category page.', 'background_td_pic_id' => 'td_pic_4', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '', 'tdc_sidebar_pos' => 'sidebar_right', 'tdc_color' => '#29b6f6'));
$demo_cat_8_id = td_demo_category::add_category(array('category_name' => 'Wrc', 'parent_id' => 0, 'category_template' => '', 'top_posts_style' => '', 'description' => 'On each category you can set a Category template style, a Top post style (grids) and a module type for article listing. Also each top post style (grids) have 5 different look style. You can mix them to create a beautiful and unique category page.', 'background_td_pic_id' => 'td_pic_7', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '', 'tdc_sidebar_pos' => 'sidebar_right', 'tdc_color' => '#c62828'));
$demo_cat_9_id = td_demo_category::add_category(array('category_name' => 'Video', 'parent_id' => 0, 'category_template' => '', 'top_posts_style' => '', 'description' => 'On each category you can set a Category template style, a Top post style (grids) and a module type for article listing. Also each top post style (grids) have 5 different look style. You can mix them to create a beautiful and unique category page.', 'background_td_pic_id' => 'td_pic_12', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '', 'tdc_sidebar_pos' => 'sidebar_right', 'tdc_color' => '#7b1fa2'));
/*  ----------------------------------------------------------------------------
    pages
 */
//homepage
$td_homepage_id = td_demo_content::add_page(array('title' => 'News', 'file' => td_global::$get_template_directory . '/includes/demos/sport/pages/homepage.txt', 'template' => 'page-pagebuilder-latest.php', 'td_layout' => '11', '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' => 'Sport 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' => 'Tennis', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_6_id));
td_demo_menus::add_mega_menu(array('title' => 'Billiard', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_7_id));
td_demo_menus::add_mega_menu(array('title' => 'WRC', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_8_id));
td_demo_menus::add_mega_menu(array('title' => 'Video', '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' => 'More', 'add_to_menu_id' => $td_demo_header_menu_id, 'url' => '#', 'parent_id' => ''));
td_demo_menus::add_category(array('title' => 'Football', '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' => 'Golf', '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' => 'Horse Racing', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_5_id, 'parent_id' => $parent_submenu_id));
/*  ---------------------------------------------------------------------------
    posts
*/
コード例 #3
0
ファイル: td_import.php プロジェクト: luxifel/Bionerd
$demo_cat_11_id = td_demo_category::add_category(array('category_name' => 'Budget', '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/wedding/pages/homepage.txt', 'template' => 'page.php', 'td_layout' => '', 'homepage' => true));
//gallery
$td_gallery_id = td_demo_content::add_page(array('title' => 'Gallery', 'file' => td_global::$get_template_directory . '/includes/demos/wedding/pages/gallery.txt', 'template' => 'page.php', 'td_layout' => '', 'homepage' => false));
/*  ----------------------------------------------------------------------------
    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' => 'Planning', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_1_id));
td_demo_menus::add_page(array('title' => 'Gallery', 'add_to_menu_id' => $td_demo_header_menu_id, 'page_id' => $td_gallery_id, 'parent_id' => ''));
// mega menu one subcateg
td_demo_menus::add_mega_menu(array('title' => 'Honeymoon', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_8_id));
// add a subcategory to the sub-menu
$parent_submenu_id = td_demo_menus::add_link(array('title' => 'More', 'add_to_menu_id' => $td_demo_header_menu_id, 'url' => '#', 'parent_id' => ''));
td_demo_menus::add_category(array('title' => 'Photography', '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' => 'Ideas', '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' => 'Budget', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_11_id, 'parent_id' => $parent_submenu_id));
/*  ---------------------------------------------------------------------------
    posts
*/
// posts in featured category
td_demo_content::add_post(array('title' => '10 Tips for Staying Heathy & Happy on Your Honeymoon', 'file' => td_global::$get_template_directory . '/includes/demos/wedding/pages/post_smart.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT)), 'featured_image_td_id' => 'td_pic_1', 'template' => 'single_template_5', 'smart_list' => 'td_smart_list_6'));
td_demo_content::add_post(array('title' => 'These Wedding Photos Are Beautiful From Every Angle', 'file' => td_global::$get_template_directory . '/includes/demos/wedding/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT)), 'featured_image_td_id' => 'td_pic_2'));
td_demo_content::add_post(array('title' => '10 Amazing Tips on Socializing At Your Buddy’s Wedding', 'file' => td_global::$get_template_directory . '/includes/demos/wedding/pages/post_smart.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT)), 'featured_image_td_id' => 'td_pic_3', 'template' => 'single_template_5', 'smart_list' => 'td_smart_list_6'));
td_demo_content::add_post(array('title' => 'Bouquets That Are Perfect for a Fun and Colorful Wedding', 'file' => td_global::$get_template_directory . '/includes/demos/wedding/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT)), 'featured_image_td_id' => 'td_pic_4'));
コード例 #4
0
ファイル: td_import.php プロジェクト: luxifel/Bionerd
td_demo_menus::add_mega_menu(array('title' => 'Video', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_12_id));
// add a subcategory to the sub-menu
$parent_submenu_id = td_demo_menus::add_link(array('title' => 'Homepages', 'add_to_menu_id' => $td_demo_header_menu_id, 'url' => '#', 'parent_id' => ''));
td_demo_menus::add_page(array('title' => 'Homepage - Fashion', 'add_to_menu_id' => $td_demo_header_menu_id, 'page_id' => $td_homepage_fashion_id, 'parent_id' => $parent_submenu_id));
td_demo_menus::add_page(array('title' => 'Homepage - Blog', 'add_to_menu_id' => $td_demo_header_menu_id, 'page_id' => $td_homepage_blog_id, 'parent_id' => $parent_submenu_id));
td_demo_menus::add_page(array('title' => 'Homepage - Video', 'add_to_menu_id' => $td_demo_header_menu_id, 'page_id' => $td_homepage_video_id, 'parent_id' => $parent_submenu_id));
td_demo_menus::add_page(array('title' => 'Homepage - Tech', 'add_to_menu_id' => $td_demo_header_menu_id, 'page_id' => $td_homepage_tech_id, 'parent_id' => $parent_submenu_id));
td_demo_menus::add_page(array('title' => 'Homepage - Sport', 'add_to_menu_id' => $td_demo_header_menu_id, 'page_id' => $td_homepage_sport_id, 'parent_id' => $parent_submenu_id));
td_demo_menus::add_page(array('title' => 'Homepage - Full Post Featured', 'add_to_menu_id' => $td_demo_header_menu_id, 'page_id' => $td_homepage_full_post_id, 'parent_id' => $parent_submenu_id));
td_demo_menus::add_page(array('title' => 'Homepage - Infinite Scroll', 'add_to_menu_id' => $td_demo_header_menu_id, 'page_id' => $td_homepage_infinite_scroll_id, 'parent_id' => $parent_submenu_id));
td_demo_menus::add_page(array('title' => 'Homepage - Newspaper', 'add_to_menu_id' => $td_demo_header_menu_id, 'page_id' => $td_homepage_newspaper_id, 'parent_id' => $parent_submenu_id));
td_demo_menus::add_page(array('title' => 'Homepage - Newsmag', 'add_to_menu_id' => $td_demo_header_menu_id, 'page_id' => $td_homepage_newsmag_id, 'parent_id' => $parent_submenu_id));
td_demo_menus::add_page(array('title' => 'Homepage - Magazine', 'add_to_menu_id' => $td_demo_header_menu_id, 'page_id' => $td_homepage_magazine_id, 'parent_id' => $parent_submenu_id));
td_demo_menus::add_page(array('title' => 'Homepage - Loop', 'add_to_menu_id' => $td_demo_header_menu_id, 'page_id' => $td_homepage_loop_id, 'parent_id' => $parent_submenu_id));
td_demo_menus::add_page(array('title' => 'Homepage - Big Slide', 'add_to_menu_id' => $td_demo_header_menu_id, 'page_id' => $td_homepage_big_slide_id, 'parent_id' => $parent_submenu_id));
td_demo_menus::add_page(array('title' => 'Homepage - Less Images', 'add_to_menu_id' => $td_demo_header_menu_id, 'page_id' => $td_homepage_less_images_id, 'parent_id' => $parent_submenu_id));
/*  ---------------------------------------------------------------------------
    posts
*/
// post in featured category
td_demo_content::add_post(array('title' => 'Five things you may have missed over the weekend', 'file' => td_global::$get_template_directory . '/includes/demos/default/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_12_id), 'featured_image_td_id' => 'td_pic_3', 'template' => 'single_template_6'));
td_demo_content::add_post(array('title' => 'Apple sells 10 million iPhone 6 and iPhone 6 Pluses', 'file' => td_global::$get_template_directory . '/includes/demos/default/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_6_id), 'featured_image_td_id' => 'td_pic_11', 'template' => 'single_template_6'));
td_demo_content::add_post(array('title' => 'Experiencing the new Oculus Rift VR headset', 'file' => td_global::$get_template_directory . '/includes/demos/default/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_7_id), 'featured_image_td_id' => 'td_pic_4', 'template' => 'single_template_11', 'featured_video_url' => 'https://www.youtube.com/watch?v=o7JSltCqpCI', 'post_format' => 'video'));
td_demo_content::add_post(array('title' => 'What Do I Need To Make It In Business?', 'file' => td_global::$get_template_directory . '/includes/demos/default/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_8_id), 'featured_image_td_id' => 'td_pic_5', 'template' => 'single_template_8'));
td_demo_content::add_post(array('title' => 'Simple form creation and storage, built for developers.', 'file' => td_global::$get_template_directory . '/includes/demos/default/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_9_id), 'featured_image_td_id' => 'td_pic_13', 'template' => 'single_template_3'));
td_demo_content::add_post(array('title' => "Robots helped inspire deep learning might become", 'file' => td_global::$get_template_directory . '/includes/demos/default/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_10_id), 'featured_image_td_id' => 'td_pic_9', 'template' => 'single_template_11', 'featured_video_url' => 'https://www.youtube.com/watch?v=o7JSltCqpCI', 'post_format' => 'video'));
td_demo_content::add_post(array('title' => "Express Recipes: How to make Creamy Papaya Raita", 'file' => td_global::$get_template_directory . '/includes/demos/default/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_11_id), 'featured_image_td_id' => 'td_pic_15', 'template' => ''));
td_demo_content::add_post(array('title' => "Apple Server Most Powerful rack optimized server", 'file' => td_global::$get_template_directory . '/includes/demos/default/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_1_id), 'featured_image_td_id' => 'td_pic_10', 'template' => 'single_template_8'));
//  ----------------------------------------------------------------------------
td_demo_content::add_post(array('title' => "Starbucks secret menu the drinks you didn’t know you can ask for", 'file' => td_global::$get_template_directory . '/includes/demos/default/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, $demo_cat_11_id, $demo_cat_12_id), 'featured_image_td_id' => 'td_pic_9'));
td_demo_content::add_post(array('title' => "Designer fashion show kicks off Variety Week", 'file' => td_global::$get_template_directory . '/includes/demos/default/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, $demo_cat_11_id, $demo_cat_12_id), 'featured_image_td_id' => 'td_pic_10'));
コード例 #5
0
ファイル: td_import.php プロジェクト: tuanlibra/thptxuanang
td_demo_menus::add_mega_menu(array('title' => 'Lifestyle', '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' => 'Inspiration', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_5_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));
// add a category to the menu
td_demo_menus::add_category(array('title' => 'Photography', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_7_id));
// add a category to the menu
td_demo_menus::add_category(array('title' => 'Travel', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_8_id));
// add a subcategory to the sub-menu
$parent_submenu_id = td_demo_menus::add_link(array('title' => 'Categories', 'add_to_menu_id' => $td_demo_header_menu_id, 'url' => '#', 'parent_id' => ''));
td_demo_menus::add_category(array('title' => 'Inspiration', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_5_id, 'parent_id' => $parent_submenu_id));
td_demo_menus::add_category(array('title' => 'Travel', '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' => 'Photography', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_7_id, 'parent_id' => $parent_submenu_id));
//page
td_demo_menus::add_page(array('title' => 'About Me', 'add_to_menu_id' => $td_demo_header_menu_id, 'page_id' => $td_aboutme_id, 'parent_id' => ''));
/*  ---------------------------------------------------------------------------
    posts
*/
// post in featured category
td_demo_content::add_post(array('title' => 'My Favourite Books', 'file' => td_global::$get_template_directory . '/includes/demos/blog/pages/post_default.txt', 'categories_id_array' => array($demo_cat_7_id), 'featured_image_td_id' => 'td_pic_6'));
td_demo_content::add_post(array('title' => 'Where The Magic Happens', 'file' => td_global::$get_template_directory . '/includes/demos/blog/pages/post_default.txt', 'categories_id_array' => array($demo_cat_6_id), 'featured_image_td_id' => 'td_pic_7'));
td_demo_content::add_post(array('title' => 'Every Colour Please', 'file' => td_global::$get_template_directory . '/includes/demos/blog/pages/post_default.txt', 'categories_id_array' => array($demo_cat_4_id), 'featured_image_td_id' => 'td_pic_4'));
td_demo_content::add_post(array('title' => 'Simple Things Makes Me Happy', 'file' => td_global::$get_template_directory . '/includes/demos/blog/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' => 'Back On The Road', 'file' => td_global::$get_template_directory . '/includes/demos/blog/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_8_id), 'featured_image_td_id' => 'td_pic_2'));
//  ----------------------------------------------------------------------------
td_demo_content::add_post(array('title' => "Things I Like – My Favourites", 'file' => td_global::$get_template_directory . '/includes/demos/blog/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), 'featured_image_td_id' => 'td_pic_9'));
td_demo_content::add_post(array('title' => "The Glamour Gift Guide", 'file' => td_global::$get_template_directory . '/includes/demos/blog/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), 'featured_image_td_id' => 'td_pic_10'));
td_demo_content::add_post(array('title' => "Best Ingredients To Have For Cooking", 'file' => td_global::$get_template_directory . '/includes/demos/blog/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), 'featured_image_td_id' => 'td_pic_12'));
td_demo_content::add_post(array('title' => "Reading In The Morning?", 'file' => td_global::$get_template_directory . '/includes/demos/blog/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), 'featured_image_td_id' => 'td_pic_1'));
td_demo_content::add_post(array('title' => "Back To Basics", 'file' => td_global::$get_template_directory . '/includes/demos/blog/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), 'featured_image_td_id' => 'td_pic_3'));