Ejemplo n.º 1
0
    td-demo-header-menu
    td-demo-footer-menu
*/
//main menu
$td_demo_header_menu_id = td_demo_menus::create_menu('td-demo-header-menu', 'header-menu');
//footer menu
$td_demo_footer_menu = td_demo_menus::create_menu('td-demo-footer-menu', 'footer-menu');
td_demo_menus::add_link(array('title' => 'Home', 'add_to_menu_id' => $td_demo_footer_menu, 'url' => '#', 'parent_id' => ''));
td_demo_menus::add_link(array('title' => 'Blog', 'add_to_menu_id' => $td_demo_footer_menu, 'url' => '#', 'parent_id' => ''));
td_demo_menus::add_link(array('title' => 'Travel guides', 'add_to_menu_id' => $td_demo_footer_menu, 'url' => '#', 'parent_id' => ''));
td_demo_menus::add_link(array('title' => 'Culture', 'add_to_menu_id' => $td_demo_footer_menu, 'url' => '#', 'parent_id' => ''));
td_demo_menus::add_link(array('title' => 'Adventure Travel', 'add_to_menu_id' => $td_demo_footer_menu, 'url' => '#', 'parent_id' => ''));
td_demo_menus::add_link(array('title' => 'USA', 'add_to_menu_id' => $td_demo_footer_menu, 'url' => '#', 'parent_id' => ''));
td_demo_menus::add_link(array('title' => 'Europe', 'add_to_menu_id' => $td_demo_footer_menu, 'url' => '#', 'parent_id' => ''));
td_demo_menus::add_link(array('title' => 'Asia', 'add_to_menu_id' => $td_demo_footer_menu, 'url' => '#', 'parent_id' => ''));
td_demo_menus::add_link(array('title' => 'Buy Now', 'add_to_menu_id' => $td_demo_footer_menu, 'url' => 'http://themeforest.net/item/newspaper/5489609', 'parent_id' => ''));
/*  ----------------------------------------------------------------------------
    background - leave empty if you want to make sure that there is NO background on the demo - td_demo_misc::update_background('');
 */
td_demo_misc::update_background('');
// footer background
td_demo_misc::update_background_footer('td_footer_bg');
/*  ----------------------------------------------------------------------------
    logo
 */
td_demo_misc::update_logo(array('normal' => 'td_logo_header', 'retina' => 'td_logo_header@2x', 'mobile' => ''));
//footer
td_demo_misc::update_footer_logo(array('normal' => 'td_logo_header@2x', 'retina' => ''));
/*  ----------------------------------------------------------------------------
    footer text
 */
Ejemplo n.º 2
0
//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
*/
// 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'));