Пример #1
0
*/
$demo_cat_1_id = td_demo_category::add_category(array('category_name' => 'Destinations', '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_2_id = td_demo_category::add_category(array('category_name' => 'Asia', 'parent_id' => $demo_cat_1_id, '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_3_id = td_demo_category::add_category(array('category_name' => 'Caribbean', 'parent_id' => $demo_cat_1_id, '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_4_id = td_demo_category::add_category(array('category_name' => 'Europe', 'parent_id' => $demo_cat_1_id, '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_5_id = td_demo_category::add_category(array('category_name' => 'USA', 'parent_id' => $demo_cat_1_id, '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_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
*/
Пример #2
0
    categories
*/
$demo_cat_1_id = td_demo_category::add_category(array('category_name' => 'Sport Today', '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_1', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '', 'tdc_sidebar_pos' => 'sidebar_right', 'tdc_color' => '#e91e63'));
$demo_cat_2_id = td_demo_category::add_category(array('category_name' => 'Cycling Tour', '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_11', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '', 'tdc_sidebar_pos' => 'sidebar_right', 'tdc_color' => '#26a69a'));
$demo_cat_3_id = td_demo_category::add_category(array('category_name' => 'Football', '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_14', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '', 'tdc_sidebar_pos' => 'sidebar_right', 'tdc_color' => '#66bb6a'));
$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));
Пример #3
0
$demo_cat_2_id = td_demo_category::add_category(array('category_name' => 'Auto Shows', 'parent_id' => $demo_cat_1_id, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => ''));
$demo_cat_3_id = td_demo_category::add_category(array('category_name' => 'Classic Cars', 'parent_id' => $demo_cat_1_id, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => ''));
$demo_cat_4_id = td_demo_category::add_category(array('category_name' => 'First Drive', 'parent_id' => $demo_cat_1_id, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => ''));
$demo_cat_5_id = td_demo_category::add_category(array('category_name' => 'Future Cars', 'parent_id' => $demo_cat_1_id, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => ''));
$demo_cat_6_id = td_demo_category::add_category(array('category_name' => 'Motorsports', 'parent_id' => $demo_cat_1_id, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => ''));
$demo_cat_7_id = td_demo_category::add_category(array('category_name' => 'Technology', 'parent_id' => $demo_cat_1_id, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => ''));
$demo_cat_8_id = td_demo_category::add_category(array('category_name' => 'Deals', 'parent_id' => 0, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => ''));
$demo_cat_9_id = td_demo_category::add_category(array('category_name' => 'Reviews', 'parent_id' => 0, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => '', 'tdc_category_td_grid_style' => '2'));
$demo_cat_10_id = td_demo_category::add_category(array('category_name' => 'Tests', 'parent_id' => 0, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => '', 'tdc_category_td_grid_style' => ''));
$demo_cat_11_id = td_demo_category::add_category(array('category_name' => 'Life', 'parent_id' => 0, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => ''));
$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));
Пример #4
0
//menu dropdown homepages
$td_homepage_full_post_id = td_demo_content::add_page(array('title' => 'Homepage - Full Post Featured', 'file' => td_global::$get_template_directory . '/includes/demos/default/pages/homepage_full_post.txt', 'template' => 'page-pagebuilder-latest.php', 'td_layout' => '2', 'homepage' => false));
//menu dropdown homepages
$td_homepage_infinite_scroll_id = td_demo_content::add_page(array('title' => 'Homepage - Infinite Scroll', 'file' => td_global::$get_template_directory . '/includes/demos/default/pages/homepage_infinite_scroll.txt', 'template' => 'page.php', 'td_layout' => '', 'homepage' => false));
//menu dropdown homepages
$td_homepage_newspaper_id = td_demo_content::add_page(array('title' => 'Homepage - Newspaper', 'file' => td_global::$get_template_directory . '/includes/demos/default/pages/homepage_newspaper.txt', 'template' => 'page-pagebuilder-latest.php', 'td_layout' => '1', 'homepage' => false));
//menu dropdown homepages
$td_homepage_newsmag_id = td_demo_content::add_page(array('title' => 'Homepage - Newsmag', 'file' => td_global::$get_template_directory . '/includes/demos/default/pages/homepage_newsmag.txt', 'template' => 'page-pagebuilder-latest.php', 'td_layout' => '1', 'homepage' => false));
//menu dropdown homepages
$td_homepage_magazine_id = td_demo_content::add_page(array('title' => 'Homepage - Magazine', 'file' => td_global::$get_template_directory . '/includes/demos/default/pages/homepage_magazine.txt', 'template' => 'page.php', 'td_layout' => '', 'homepage' => false));
//menu dropdown homepages
$td_homepage_loop_id = td_demo_content::add_page(array('title' => 'Homepage - Loop', 'file' => td_global::$get_template_directory . '/includes/demos/default/pages/homepage_loop.txt', 'template' => 'page.php', 'td_layout' => '', 'homepage' => false));
//menu dropdown homepages
$td_homepage_big_slide_id = td_demo_content::add_page(array('title' => 'Homepage - Big Slide', 'file' => td_global::$get_template_directory . '/includes/demos/default/pages/homepage_big_slide.txt', 'template' => 'page-pagebuilder-latest.php', 'td_layout' => '1', 'homepage' => false));
//menu dropdown homepages
$td_homepage_less_images_id = td_demo_content::add_page(array('title' => 'Homepage - Big Slide', 'file' => td_global::$get_template_directory . '/includes/demos/default/pages/homepage_less_images.txt', 'template' => 'page.php', 'td_layout' => '', 'homepage' => false));
/*  ----------------------------------------------------------------------------
    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', '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' => 'Gadgets', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_6_id));
td_demo_menus::add_mega_menu(array('title' => 'Lifestyle', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_7_id));
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));
Пример #5
0
$demo_cat_3_id = td_demo_category::add_category(array('category_name' => 'Fashion', 'parent_id' => $demo_cat_1_id, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => ''));
$demo_cat_4_id = td_demo_category::add_category(array('category_name' => 'Flowers', 'parent_id' => $demo_cat_1_id, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => ''));
$demo_cat_5_id = td_demo_category::add_category(array('category_name' => 'Hair & Makeup', 'parent_id' => $demo_cat_1_id, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => ''));
$demo_cat_6_id = td_demo_category::add_category(array('category_name' => 'Jewellery', 'parent_id' => $demo_cat_1_id, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => ''));
$demo_cat_7_id = td_demo_category::add_category(array('category_name' => 'Reception', 'parent_id' => $demo_cat_1_id, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => ''));
$demo_cat_8_id = td_demo_category::add_category(array('category_name' => 'Honeymoon', 'parent_id' => 0, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => ''));
$demo_cat_9_id = td_demo_category::add_category(array('category_name' => 'Photography', 'parent_id' => 0, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => '', 'tdc_category_td_grid_style' => '2'));
$demo_cat_10_id = td_demo_category::add_category(array('category_name' => 'Ideas', 'parent_id' => 0, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => '', 'tdc_category_td_grid_style' => ''));
$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));
Пример #6
0
*/
$demo_cat_1_id = td_demo_category::add_category(array('category_name' => 'Lifestyle', 'parent_id' => 0, 'category_template' => 'td_category_template_2', 'top_posts_style' => 'td_category_top_posts_style_4', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '14', 'tdc_sidebar_pos' => ''));
$demo_cat_2_id = td_demo_category::add_category(array('category_name' => 'Exercises', 'parent_id' => $demo_cat_1_id, 'category_template' => 'td_category_template_2', 'top_posts_style' => 'td_category_top_posts_style_4', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '14', 'tdc_sidebar_pos' => ''));
$demo_cat_3_id = td_demo_category::add_category(array('category_name' => 'Home Decor', 'parent_id' => $demo_cat_1_id, 'category_template' => 'td_category_template_2', 'top_posts_style' => 'td_category_top_posts_style_4', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '14', 'tdc_sidebar_pos' => ''));
$demo_cat_4_id = td_demo_category::add_category(array('category_name' => 'Leisure', 'parent_id' => $demo_cat_1_id, 'category_template' => 'td_category_template_2', 'top_posts_style' => 'td_category_top_posts_style_4', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '14', 'tdc_sidebar_pos' => ''));
$demo_cat_5_id = td_demo_category::add_category(array('category_name' => 'Inspiration', 'parent_id' => 0, 'category_template' => 'td_category_template_2', 'top_posts_style' => 'td_category_top_posts_style_4', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '14', 'tdc_sidebar_pos' => ''));
$demo_cat_6_id = td_demo_category::add_category(array('category_name' => "Food", 'parent_id' => 0, 'category_template' => 'td_category_template_2', 'top_posts_style' => 'td_category_top_posts_style_4', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '14', 'tdc_sidebar_pos' => ''));
$demo_cat_7_id = td_demo_category::add_category(array('category_name' => 'Photography', 'parent_id' => 0, 'category_template' => 'td_category_template_2', 'top_posts_style' => 'td_category_top_posts_style_4', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '14', 'tdc_sidebar_pos' => ''));
$demo_cat_8_id = td_demo_category::add_category(array('category_name' => 'Travel', 'parent_id' => 0, 'category_template' => 'td_category_template_2', 'top_posts_style' => 'td_category_top_posts_style_4', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '14', 'tdc_sidebar_pos' => ''));
/*  ----------------------------------------------------------------------------
    pages
 */
//homepage
$td_homepage_id = td_demo_content::add_page(array('title' => 'Home', 'file' => td_global::$get_template_directory . '/includes/demos/blog/pages/homepage.txt', 'template' => 'page-pagebuilder-latest.php', 'td_layout' => '4', 'list_custom_title_show' => 'hide_title', 'limit' => '20', 'homepage' => true));
//about me
$td_aboutme_id = td_demo_content::add_page(array('title' => 'About Me', 'file' => td_global::$get_template_directory . '/includes/demos/blog/pages/about.txt', 'template' => 'page-pagebuilder-title.php', 'td_layout' => '', 'sidebar_position' => 'no_sidebar', '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' => '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));