Пример #1
0
    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
*/
// post in featured category
td_demo_content::add_post(array('title' => 'Best Sports Bloopers 2015 Funny Sport Fails Compilation', 'file' => td_global::$get_template_directory . '/includes/demos/sport/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', 'template' => ''));
td_demo_content::add_post(array('title' => 'Best Funny Wins & Fails Compilation February 2015', 'file' => td_global::$get_template_directory . '/includes/demos/sport/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_2_id), 'featured_image_td_id' => 'td_pic_4', 'template' => ''));
td_demo_content::add_post(array('title' => "Kim Kardashian Shows Off Deep Cleavage In Plunging Top & Mini", 'file' => td_global::$get_template_directory . '/includes/demos/sport/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_6_id), 'featured_image_td_id' => 'td_pic_13', 'template' => 'single_template_11', 'featured_video_url' => 'https://www.youtube.com/watch?v=o7JSltCqpCI', 'post_format' => 'video'));
td_demo_content::add_post(array('title' => "Taylor Swift’s Stylish Separates In Germany – Shop Them Here", 'file' => td_global::$get_template_directory . '/includes/demos/sport/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_9_id), 'featured_image_td_id' => 'td_pic_5', 'template' => ''));
td_demo_content::add_post(array('title' => "Hard time ahead for Hodgson as England start Euro 2016", 'file' => td_global::$get_template_directory . '/includes/demos/sport/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_4_id), 'featured_image_td_id' => 'td_pic_7', 'template' => ''));
//  ----------------------------------------------------------------------------
td_demo_content::add_post(array('title' => "Man United skipper again boosted for first goal", 'file' => td_global::$get_template_directory . '/includes/demos/sport/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), 'featured_image_td_id' => 'td_pic_9'));
td_demo_content::add_post(array('title' => "Albatec Racing Geared-Up For World RX Of France in Europe", 'file' => td_global::$get_template_directory . '/includes/demos/sport/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), 'featured_image_td_id' => 'td_pic_10'));
td_demo_content::add_post(array('title' => "VIDEO: Neil Simpson impresses at Barum Czech Rally Zlín", 'file' => td_global::$get_template_directory . '/includes/demos/sport/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), 'featured_image_td_id' => 'td_pic_12'));
td_demo_content::add_post(array('title' => "M-Sport Hits 250 At Happy Hunting Ground", 'file' => td_global::$get_template_directory . '/includes/demos/sport/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), 'featured_image_td_id' => 'td_pic_1', 'template' => 'single_template_11', 'featured_video_url' => 'https://www.youtube.com/watch?v=o7JSltCqpCI', 'post_format' => 'video'));
td_demo_content::add_post(array('title' => "Pedal power sees Amy complete world toughest cycle challenge", 'file' => td_global::$get_template_directory . '/includes/demos/sport/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), 'featured_image_td_id' => 'td_pic_3'));
Пример #2
0
 */
//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' => 'Mobile', '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' => 'Design', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_7_id));
td_demo_menus::add_mega_menu(array('title' => 'Photography', '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' => 'More', 'add_to_menu_id' => $td_demo_header_menu_id, 'url' => '#', 'parent_id' => ''));
td_demo_menus::add_category(array('title' => 'Apple', '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' => 'Android', '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' => 'Windows Phone', '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' => 'Iphone', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_4_id, 'parent_id' => $parent_submenu_id));
/*  ---------------------------------------------------------------------------
    posts
*/
// post in featured category
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/tech/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' => 'Experiencing the new Oculus Rift VR headset', 'file' => td_global::$get_template_directory . '/includes/demos/tech/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_11', 'featured_video_url' => 'https://www.youtube.com/watch?v=o7JSltCqpCI', 'post_format' => 'video'));
td_demo_content::add_post(array('title' => 'Canon XC10 4K Digital Camcorder Is Out: Versatile And For Only $2,500', 'file' => td_global::$get_template_directory . '/includes/demos/tech/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', '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/tech/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_2_id), 'featured_image_td_id' => 'td_pic_4', '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/tech/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_6_id), 'featured_image_td_id' => 'td_pic_13', 'template' => 'single_template_11', 'featured_video_url' => 'https://www.youtube.com/watch?v=o7JSltCqpCI', 'post_format' => 'video'));
td_demo_content::add_post(array('title' => "Huawei’s just bought an internet-of-things startup", 'file' => td_global::$get_template_directory . '/includes/demos/tech/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_9_id), 'featured_image_td_id' => 'td_pic_5', 'template' => ''));
td_demo_content::add_post(array('title' => "Apple Server Most Powerful rack optimized server", 'file' => td_global::$get_template_directory . '/includes/demos/tech/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_4_id), 'featured_image_td_id' => 'td_pic_7', 'template' => 'single_template_8'));
//  ----------------------------------------------------------------------------
td_demo_content::add_post(array('title' => "I can’t browse the sites I like at work because company firewall policy is too strict", 'file' => td_global::$get_template_directory . '/includes/demos/tech/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_9'));
td_demo_content::add_post(array('title' => "Client-side vs Server-side Validation in Web Applications", 'file' => td_global::$get_template_directory . '/includes/demos/tech/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_10'));
td_demo_content::add_post(array('title' => "My microwave is too small to fit the microwave popcorn bag", 'file' => td_global::$get_template_directory . '/includes/demos/tech/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_12'));
Пример #3
0
 */
//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'));
td_demo_content::add_post(array('title' => 'Top Stylists Share Their Secrets For RED CARPET', '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_5_id), 'featured_image_td_id' => 'td_pic_3', 'template' => 'single_template_8'));
td_demo_content::add_post(array('title' => 'The True Story About How Fashion Trends Are Born', '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_2_id), 'featured_image_td_id' => 'td_pic_4', 'template' => 'single_template_3'));
td_demo_content::add_post(array('title' => "History of Victoria’s Secret’s Sexiest Angels", '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_6_id), 'featured_image_td_id' => 'td_pic_13', 'template' => 'single_template_11', 'featured_video_url' => 'https://www.youtube.com/watch?v=o7JSltCqpCI', 'post_format' => 'video'));
td_demo_content::add_post(array('title' => "The 10 Runway Trends You’ll Be Wearing This Year", '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_9_id), 'featured_image_td_id' => 'td_pic_5', 'template' => ''));
td_demo_content::add_post(array('title' => "Your Hottest Spring Accessory & Personality", '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_4_id), 'featured_image_td_id' => 'td_pic_7', 'template' => 'single_template_8'));
//  ----------------------------------------------------------------------------
td_demo_content::add_post(array('title' => "Cheryl Steals Kate Middleton’s Beauty Icon Status", 'file' => td_global::$get_template_directory . '/includes/demos/fashion/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_9'));
td_demo_content::add_post(array('title' => "Alexa Chung and Sofia Vergara Don’t Play by the Red Carpet Rules", 'file' => td_global::$get_template_directory . '/includes/demos/fashion/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_10'));
td_demo_content::add_post(array('title' => "The 5 New Watch Trends To Try Now", 'file' => td_global::$get_template_directory . '/includes/demos/fashion/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_12'));
Пример #4
0
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' => 'Videos', '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' => 'Series', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_7_id));
// mega menu one subcateg
td_demo_menus::add_mega_menu(array('title' => 'Game Reviews', 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_8_id));
// add a category to the menu
td_demo_menus::add_category(array('title' => 'Top Ads', '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' => 'Best Of', 'add_to_menu_id' => $td_demo_header_menu_id, 'url' => '#', 'parent_id' => ''));
td_demo_menus::add_category(array('title' => 'Movie Trailers', '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' => 'Music', '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' => 'GamePlay', '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' => "Animations", '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' => "Tutorials", 'add_to_menu_id' => $td_demo_header_menu_id, 'category_id' => $demo_cat_6_id, 'parent_id' => $parent_submenu_id));
/*  ---------------------------------------------------------------------------
    posts
*/
// post in featured category
td_demo_content::add_post(array('title' => 'Kit Kat Double Act, My Life as Splactor', 'file' => td_global::$get_template_directory . '/includes/demos/video/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_9_id), 'featured_image_td_id' => 'td_pic_1', 'template' => 'single_template_11', 'featured_video_url' => 'https://www.youtube.com/watch?v=o7JSltCqpCI', 'post_format' => 'video'));
td_demo_content::add_post(array('title' => 'Game of Thrones: Watchers of the Wall', 'file' => td_global::$get_template_directory . '/includes/demos/video/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_7_id), 'featured_image_td_id' => 'td_pic_2', 'template' => 'single_template_11', 'featured_video_url' => 'https://www.youtube.com/watch?v=o7JSltCqpCI', 'post_format' => 'video'));
td_demo_content::add_post(array('title' => 'Mass Effect 4 Dreams - Beyond Imagination', 'file' => td_global::$get_template_directory . '/includes/demos/video/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_6_id), 'featured_image_td_id' => 'td_pic_3', 'template' => 'single_template_11', 'featured_video_url' => 'https://www.youtube.com/watch?v=o7JSltCqpCI', 'post_format' => 'video'));
td_demo_content::add_post(array('title' => 'Avengers: Age of Ultron Official Extended Trailer', 'file' => td_global::$get_template_directory . '/includes/demos/video/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', 'template' => 'single_template_11', 'featured_video_url' => 'https://www.youtube.com/watch?v=o7JSltCqpCI', 'post_format' => 'video'));
td_demo_content::add_post(array('title' => '1 Hour Music Mix for Gaming - Melodic', 'file' => td_global::$get_template_directory . '/includes/demos/video/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_10_id), 'featured_image_td_id' => 'td_pic_7', 'template' => 'single_template_11', 'featured_video_url' => 'https://www.youtube.com/watch?v=o7JSltCqpCI', 'post_format' => 'video'));
td_demo_content::add_post(array('title' => 'Game Scoop - 42 Reason We Would Miss Konami', 'file' => td_global::$get_template_directory . '/includes/demos/video/pages/post_default.txt', 'categories_id_array' => array(get_cat_ID(TD_FEATURED_CAT), $demo_cat_3_id), 'featured_image_td_id' => 'td_pic_13', 'template' => 'single_template_11', 'featured_video_url' => 'https://www.youtube.com/watch?v=o7JSltCqpCI', 'post_format' => 'video'));
td_demo_content::add_post(array('title' => 'Starcraft 2: Legacy of the Void is Faster and More Aggressive', 'file' => td_global::$get_template_directory . '/includes/demos/video/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', 'featured_video_url' => 'https://www.youtube.com/watch?v=o7JSltCqpCI', 'post_format' => 'video', 'template' => 'single_template_11'));
//  ----------------------------------------------------------------------------
td_demo_content::add_post(array('title' => "Daredevil Series Will Change the Marvel Cinematic Universe", 'file' => td_global::$get_template_directory . '/includes/demos/video/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_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' => "Gaming Drum and Bass Mix – Fast Breaks", 'file' => td_global::$get_template_directory . '/includes/demos/video/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_10', 'template' => 'single_template_11', 'featured_video_url' => 'https://www.youtube.com/watch?v=o7JSltCqpCI', 'post_format' => 'video'));
td_demo_content::add_post(array('title' => "Mad Max: Fury Road Heads Up May’s Must See Movies", 'file' => td_global::$get_template_directory . '/includes/demos/video/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_12', 'template' => 'single_template_11', 'featured_video_url' => 'https://www.youtube.com/watch?v=o7JSltCqpCI', 'post_format' => 'video'));
Пример #5
0
$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'));
td_demo_content::add_post(array('title' => "The Summer Abs Workout", '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_6'));
td_demo_content::add_post(array('title' => "11 Awesome Benefits of Stretching", '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_7'));
td_demo_content::add_post(array('title' => "5 Adventurous Things to Do This Summer", '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_8'));
td_demo_content::add_post(array('title' => "10 Foods That Promote Weight Loss", '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_9'));
//  ----------------------------------------------------------------------------
Пример #6
0
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));
// 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'));