Beispiel #1
0
$td_demo_site->add_category(array('Cosmopolitan', 'Fashion'));
$td_demo_site->add_category(array('Fashion week', 'Fashion'));
$td_demo_site->add_category(array('New York 2014', 'Fashion'));
/*  ----------------------------------------------------------------------------
        header menu - make the main menu
    */
$td_demo_site->create_menu('Main menu');
$td_demo_site->activate_menu('header-menu');
/*  ----------------------------------------------------------------------------
        homepage
    */
// add xxx_all_categ_xxx where you want to add the pulldown with the categories
$new_demo_page_64 = 'W3ZjX3Jvd11bdmNfY29sdW1uIHdpZHRoPSIxLzEiXVt0ZF9ibG9ja190cmVuZGluZ19ub3cgbGltaXQ9IjUiXVt0ZF9ibG9ja19iaWdfZ3JpZCBzb3J0PSJmZWF0dXJlZCJdWy92Y19jb2x1bW5dWy92Y19yb3ddW3ZjX3Jvd11bdmNfY29sdW1uIHdpZHRoPSIyLzMiXVt0ZF9ibG9ja18xIGxpbWl0PSI1IiBjdXN0b21fdGl0bGU9IkZBU0hJT04gV0VFSyIgYm9yZGVyX3RvcD0ibm9fYm9yZGVyX3RvcCIgdGRfYWpheF9maWx0ZXJfdHlwZT0idGRfY2F0ZWdvcnlfaWRzX2ZpbHRlciIgdGRfZmlsdGVyX2RlZmF1bHRfdHh0PSJBbGwiIGFqYXhfcGFnaW5hdGlvbj0ibmV4dF9wcmV2IiB0ZF9hamF4X2ZpbHRlcl9pZHM9Inh4eF9hbGxfY2F0ZWdfeHh4IiBoZWFkZXJfY29sb3I9IiNlMjljMDQiXVt0ZF9ibG9ja18xNSBsaW1pdD0iOCIgY3VzdG9tX3RpdGxlPSJHQURHRVQgV09STEQiIGhlYWRlcl9jb2xvcj0iIzBiOGQ1ZCIgdGRfYWpheF9maWx0ZXJfdHlwZT0idGRfY2F0ZWdvcnlfaWRzX2ZpbHRlciIgdGRfYWpheF9maWx0ZXJfaWRzPSJ4eHhfYWxsX2NhdGVnX3h4eCIgdGRfZmlsdGVyX2RlZmF1bHRfdHh0PSJBbGwiIGFqYXhfcGFnaW5hdGlvbj0ib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2luYXRpb249Im5leHRfcHJldiIgaGVhZGVyX2NvbG9yPSIjMjg4YWJmIl1bL3ZjX2NvbHVtbl1bL3ZjX3Jvd10=';
//$td_demo_site->create_page('page', 'Homepage', base64_decode($new_demo_page_64), 'page-pagebuilder-latest.php');
$td_demo_site->create_page('page', 'Homepage', str_replace('xxx_all_categ_xxx', implode(',', $td_demo_site->category_array), base64_decode($new_demo_page_64)), 'page-pagebuilder-latest.php');
$td_demo_site->add_top_page('News');
//add item in main menu
$td_demo_site->set_homepage();
//print_r(implode(',', $td_demo_site->category_array));
//category pages
//main category menu + homepage submenu
$td_demo_site->add_top_mega_menu('Fashion', 0);
//homepages + add in menu
$td_demo_site->add_top_menu('Homepages');
$new_demo_page_64 = 'W3ZjX3Jvd11bdmNfY29sdW1uIHdpZHRoPSIxLzEiXVt0ZF9ibG9ja190cmVuZGluZ19ub3cgbGltaXQ9IjMiXVsvdmNfY29sdW1uXVsvdmNfcm93XVt2Y19yb3cgY3NzPSIudGQtdG9wLWJvcmRlcntib3JkZXItdG9wLXdpZHRoOiAxcHggIWltcG9ydGFudDt9IiBlbF9jbGFzcz0idGQtc3Mtcm93Il1bdmNfY29sdW1uIHdpZHRoPSIyLzMiXVt0ZF9ibG9ja19zbGlkZSBsaW1pdD0iMSIgdGRfZmlsdGVyX2RlZmF1bHRfdHh0PSJBbGwiXVt0ZF9ibG9ja18xMSBsaW1pdD0iMyIgb2Zmc2V0PSIxIiB0ZF9maWx0ZXJfZGVmYXVsdF90eHQ9IkFsbCIgYm9yZGVyX3RvcD0ibm9fYm9yZGVyX3RvcCJdW3RkX2Jsb2NrX2FkX2JveCBzcG90X2lkPSJjdXN0b21fYWRfMSJdW3RkX2Jsb2NrX3NsaWRlIGxpbWl0PSIxIiB0ZF9maWx0ZXJfZGVmYXVsdF90eHQ9IkFsbCJdW3RkX2Jsb2NrXzExIGxpbWl0PSIzIiBvZmZzZXQ9IjEiIHRkX2ZpbHRlcl9kZWZhdWx0X3R4dD0iQWx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JvdyBjc3M9Ii50ZC10b3AtYm9yZGVye2JvcmRlci10b3Atd2lkdGg6IDFweCAhaW1wb3J0YW50O30iXVt2Y19jb2x1bW4gd2lkdGg9IjEvMSJdW3RkX2Jsb2NrX2FkX2JveCBzcG90X2lkPSJjdXN0b21fYWRfMiJdWy92Y19jb2x1bW5dWy92Y19yb3ddW3ZjX3Jvd11bdmNfY29sdW1uIHdpZHRoPSIxLzEiXVt0ZF9ibG9ja18zIGxpbWl0PSI2IiBjdXN0b21fdGl0bGU9IkxBVEVTVCBBUlRJQ0xFUyIgdGRfZmlsdGVyX2RlZmF1bHRfdHh0PSJBbGwiIGFqYXhfcGFnaW5hdGlvbj0iaW5maW5pdGUiXVsvdmNfY29sdW1uXVsvdmNfcm93XQ==';
$td_demo_site->create_page('page', 'Homepage - loop', base64_decode($new_demo_page_64), 'page.php');
$td_demo_site->update_post_meta('td_page', 'td_sidebar_position', 'no_sidebar');
$td_demo_site->add_sub_page();
$new_demo_page_64 = 'W3ZjX3Jvd11bdmNfY29sdW1uIHdpZHRoPSIxLzEiXVt0ZF9ibG9ja190cmVuZGluZ19ub3cgbGltaXQ9IjMiXVt0ZF9ibG9ja19zbGlkZSBsaW1pdD0iMyIgdGRfZmlsdGVyX2RlZmF1bHRfdHh0PSJBbGwiXVsvdmNfY29sdW1uXVsvdmNfcm93XVt2Y19yb3cgZWxfY2xhc3M9InRkLXNzLXJvdyJdW3ZjX2NvbHVtbiB3aWR0aD0iMi8zIl1bdGRfYmxvY2tfMiBsaW1pdD0iNiIgY3VzdG9tX3RpdGxlPSJET04nVCBNSVNTIiBoZWFkZXJfY29sb3I9IiM0ZGIyZWMiIHRkX2FqYXhfZmlsdGVyX3R5cGU9InRkX2NhdGVnb3J5X2lkc19maWx0ZXIiIHRkX2FqYXhfZmlsdGVyX2lkcz0ieHh4X2FsbF9jYXRlZ194eHgiIHRkX2ZpbHRlcl9kZWZhdWx0X3R4dD0iQWxsIiBhamF4X3BhZ2luYXRpb249Im5leH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ZjX3Jvd11bdmNfY29sdW1uIHdpZHRoPSIxLzEiXVt0ZF9ibG9ja18xNCBsaW1pdD0iMyIgY3VzdG9tX3RpdGxlPSJFTlRFUlRBSU5NRU5UIiB0ZF9maWx0ZXJfZGVmYXVsdF90eHQ9IkFsbCIgYWpheF9wYWdpbmF0aW9uPSJuZXh0X3ByZXYiXVsvdmNfY29sdW1uXVsvdmNfcm93XQ==';
$td_demo_site->create_page('page', 'Homepage - big slide', str_replace('xxx_all_categ_xxx', implode(',', $td_demo_site->category_array), base64_decode($new_demo_page_64)), 'page-pagebuilder-latest.php');
$td_demo_site->add_sub_page();
Beispiel #2
0
/*  ----------------------------------------------------------------------------
       header menu - make the main menu
    */
$td_demo_site->create_menu('td header');
$td_demo_site->activate_menu('header-menu');
/*  ----------------------------------------------------------------------------
       pages
    */
//add new pages to top menu
//old page
//$new_demo_page_64 = "W3ZjX3JvdyBlbF9wb3NpdGlvbj0iZmlyc3QgbGFzdCJdW3ZjX2NvbHVtbl1bdGRfc2xpZGVfYmlnIGxpbWl0PSI4IiBoaWRlX3RpdGxlPSJoaWRlX3RpdGxlIiBlbF9wb3NpdGlvbj0iZmlyc3QiXVt0ZF9ibG9jazIgbGltaXQ9IjMiIGN1c3RvbV90aXRsZT0iRE9OJ1QgTUlTUyIgc2hvd19jaGlsZF9jYXQ9IjMiIGFqYXhfcGFnaW5hdGlvbj0ibmV4dF9wcmV2Il1bL3ZjX2NvbHVtbl1bL3ZjX3Jvd10=";
//$new_demo_page_64 = "W3ZjX3JvdyBlbF9wb3NpdGlvbj0iZmlyc3QgbGFzdCJdW3ZjX2NvbHVtbl1bdGRfc2xpZGVfYmlnIGxpbWl0PSI4Il1bL3ZjX2NvbHVtbl1bL3ZjX3Jvd11bdmNfcm93XVt2Y19jb2x1bW4gd2lkdGg9IjIvMyJdW3RkX2Jsb2NrMiBsaW1pdD0iNiIgY3VzdG9tX3RpdGxlPSJET04nVCBNSVNTIiBhamF4X3BhZ2luYXRpb249Im5leH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8"][/vc_column][/vc_row][vc_row][vc_column width="2/3"][td_block2 limit="6" custom_title="DON\'T MISS" ajax_pagination="next_prev"][td_block1 limit="5" header_color="#f65261" custom_title="TECH AND GADGETS" ajax_pagination="next_prev"][td_ad_box spot_id="custom_ad_1"][td_block2 limit="6" custom_title="TRAVEL GUIDES" ajax_pagination="next_prev" header_color="#82b440"][/vc_column][vc_column width="1/3"][vc_widget_sidebar sidebar_id="td-demo-1"][/vc_column][/vc_row][vc_row][vc_column width="2/3"][td_block2 limit="6" custom_title="FASHION AND TRENDS" ajax_pagination="next_prev" header_color="#ff3e9f"][/vc_column][vc_column width="1/3"][td_block4 limit="1" custom_title="EDITOR PICKS" ajax_pagination="next_prev" header_color="#2b2b2b"][td_ad_box spot_id="sidebar"][/vc_column][/vc_row][vc_row][vc_column width="1/1"][td_ad_box spot_id="custom_ad_1"][/vc_column][/vc_row]';
//$td_demo_site->create_page('page', 'Home', base64_decode($new_demo_page_64), 'page-homepage-loop.php');
$td_demo_site->create_page('page', 'Home', $new_demo_page_64, 'page-homepage-loop.php');
$td_demo_site->add_top_page('[menu_home]');
$td_demo_site->set_homepage();
$td_demo_site->update_post_meta('td_homepage_loop', 'td_layout', '6');
$td_demo_site->update_post_meta('td_homepage_loop', 'featured_posts', 'show_featured_posts');
//category pages
//main category menu + homepage submenu
$td_demo_site->add_top_menu('[menu_category]');
$td_demo_site->add_sub_page_custom(array('menu-item-title' => 'Category 1', 'menu-item-type' => 'taxonomy', 'id' => $td_demo_site->category_array[0]));
td_global::$td_options['category_options'][$td_demo_site->category_array[0]] = array('tdc_layout' => 6);
$td_demo_site->add_sub_page_custom(array('menu-item-title' => 'Category 2', 'menu-item-type' => 'taxonomy', 'id' => $td_demo_site->category_array[1]));
td_global::$td_options['category_options'][$td_demo_site->category_array[1]] = array('tdc_layout' => 6, 'tdc_sidebar_pos' => 'no_sidebar');
$td_demo_site->add_sub_page_custom(array('menu-item-title' => 'Category 3', 'menu-item-type' => 'taxonomy', 'id' => $td_demo_site->category_array[2]));
td_global::$td_options['category_options'][$td_demo_site->category_array[2]] = array('tdc_layout' => 4);
//save all the themes settings
update_option(TD_THEME_OPTIONS_NAME, td_global::$td_options);
//homepages