Example #1
0
td_demo_misc::update_footer_logo(array('normal' => 'td_logo_header@2x', 'retina' => ''));
/*  ----------------------------------------------------------------------------
    footer text
 */
td_demo_misc::update_footer_text('Newspaper 6 is your news, entertainment, music fashion website. We provide you with the latest breaking news and videos straight from the entertainment industry.');
/*  ----------------------------------------------------------------------------
    socials
 */
td_demo_misc::add_social_buttons(array('facebook' => '#', 'twitter' => '#', 'vimeo' => '#', 'instagram' => '#', 'vk' => '#', 'youtube' => '#'));
/*  ----------------------------------------------------------------------------
    ads
 */
td_demo_misc::clear_all_ads();
td_demo_misc::add_ad_image('post_style_12', 'td_travel_post_ad');
td_demo_misc::add_ad_image('smart_list_6', 'td_travel_smart6_ad');
td_demo_misc::add_ad_image('smart_list_7', 'td_travel_smart6_ad');
/*  ----------------------------------------------------------------------------
    sidebars
 */
//default sidebar
td_demo_widgets::remove_widgets_from_sidebar('default');
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_social_counter_widget', array('custom_title' => "Stay connected", 'instagram' => "greenislandstudios", 'youtube' => "tagDiv"));
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_9_widget', array('sort' => '', 'custom_title' => 'Recent posts', 'limit' => '3', 'header_color' => ''));
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_15_widget', array('sort' => '', 'custom_title' => 'Random article', 'limit' => '4', 'header_color' => ''));
/*  ---------------------------------------------------------------------------
    categories
*/
$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' => ''));
Example #2
0
//footer
td_demo_misc::update_footer_logo(array('normal' => 'td_logo_footer', 'retina' => ''));
/*  ----------------------------------------------------------------------------
    footer text
 */
td_demo_misc::update_footer_text('Newspaper 6 is your news, entertainment, music fashion website. We provide you with the latest breaking news and videos straight from the entertainment industry.');
/*  ----------------------------------------------------------------------------
    socials
 */
td_demo_misc::add_social_buttons(array('facebook' => '#', 'twitter' => '#', 'instagram' => '#', 'vimeo' => '#', 'youtube' => '#'));
/*  ----------------------------------------------------------------------------
    ads
 */
td_demo_misc::clear_all_ads();
td_demo_misc::add_ad_image('custom_ad_1', 'td_cars_post_ad');
td_demo_misc::add_ad_image('sidebar', 'td_cars_sidebar_ad');
/*  ----------------------------------------------------------------------------
    sidebars
 */
//default sidebar
td_demo_widgets::remove_widgets_from_sidebar('default');
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_ad_box_widget', array('spot_title' => '- Advertisement -', 'spot_id' => 'sidebar'));
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_social_counter_widget', array('custom_title' => "", 'facebook' => "tagdiv", 'instagram' => "tagDiv", 'youtube' => "tagDiv"));
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_9_widget', array('sort' => '', 'custom_title' => 'Recent Posts', 'limit' => '4', 'header_color' => ''));
/*  ---------------------------------------------------------------------------
    categories
*/
$demo_cat_1_id = td_demo_category::add_category(array('category_name' => 'Car News', 'parent_id' => 0, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => ''));
$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' => ''));
Example #3
0
td_demo_misc::update_footer_logo(array('normal' => 'td_pic_logo', 'retina' => 'td_pic_logo'));
/*  ----------------------------------------------------------------------------
    footer text
 */
td_demo_misc::update_footer_text('Newspaper 6 is your news, entertainment, music fashion website. We provide you with the latest breaking news and videos straight from the entertainment industry.');
/*  ----------------------------------------------------------------------------
    socials
 */
td_demo_misc::add_social_buttons(array('facebook' => '#', 'twitter' => '#', 'vimeo' => '#', 'vk' => '#', 'youtube' => '#'));
/*  ----------------------------------------------------------------------------
    ads
 */
td_demo_misc::clear_all_ads();
td_demo_misc::add_ad_image('sidebar', 'td_sport_ad_sidebar');
td_demo_misc::add_ad_image('post_style_11', 'td_sport_ad_sidebar');
td_demo_misc::add_ad_image('custom_ad_1', 'td_sport_ad_full');
/*  ----------------------------------------------------------------------------
    sidebars
 */
//default sidebar
td_demo_widgets::remove_widgets_from_sidebar('default');
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_1_widget', array('sort' => 'random_posts', 'custom_title' => 'MOST COMMENTED', 'limit' => '4', 'header_color' => ''));
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_15_widget', array('sort' => 'random_posts', 'custom_title' => 'HOT NEWS', 'limit' => '4', 'header_color' => '', 'ajax_pagination' => "next_prev"));
//category sidebar
td_demo_widgets::add_sidebar('td_demo_category');
td_demo_widgets::add_widget_to_sidebar('td_demo_category', 'td_block_ad_box_widget', array('spot_title' => '- Advertisement -', 'spot_id' => 'sidebar'));
td_demo_widgets::add_widget_to_sidebar('td_demo_category', 'td_block_18_widget', array('sort' => 'random_posts', 'custom_title' => 'LATEST NEWS', 'limit' => '4', 'header_color' => ''));
td_demo_widgets::add_widget_to_sidebar('td_demo_category', 'td_block_9_widget', array('sort' => 'random_posts', 'custom_title' => 'MUST READ', 'limit' => '4', 'header_color' => '', 'ajax_pagination' => "load_more"));
/*  ---------------------------------------------------------------------------
    categories
*/
Example #4
0
    footer text
 */
td_demo_misc::update_footer_text('Newspaper 6 offers a first look at the season’s collections and trends including insightful reviews, full collection slideshows, backstage beauty, and street style.');
/*  ----------------------------------------------------------------------------
    socials
 */
td_demo_misc::add_social_buttons(array('facebook' => '#', 'twitter' => '#', 'vimeo' => '#', 'vk' => '#', 'youtube' => '#'));
/*  ----------------------------------------------------------------------------
    ads
 */
td_demo_misc::clear_all_ads();
td_demo_misc::add_ad_image('sidebar', 'td_fashion_sidebar_ad');
td_demo_misc::add_ad_image('post_style_11', 'td_fashion_sidebar_ad');
td_demo_misc::add_ad_image('content_bottom', 'td_fashion_ad');
td_demo_misc::add_ad_image('custom_ad_1', 'td_fashion_ad');
td_demo_misc::add_ad_image('custom_ad_2', 'td_fashion_ad');
/*  ----------------------------------------------------------------------------
    sidebars
 */
//category sidebar
td_demo_widgets::add_sidebar('td_demo_category');
td_demo_widgets::add_widget_to_sidebar('td_demo_category', 'td_block_ad_box_widget', array('spot_title' => '- Advertisement -', 'spot_id' => 'sidebar'));
td_demo_widgets::add_widget_to_sidebar('td_demo_category', 'td_block_18_widget', array('sort' => 'random_posts', 'custom_title' => 'Style Hunter', 'limit' => '6', 'header_color' => '#f47395'));
td_demo_widgets::add_widget_to_sidebar('td_demo_category', 'td_block_slide_widget', array('sort' => 'random_posts', 'custom_title' => '', 'limit' => '4', 'header_color' => ''));
td_demo_widgets::add_widget_to_sidebar('td_demo_category', 'td_block_15_widget', array('sort' => '', 'custom_title' => 'Must Read', 'limit' => '4', 'header_color' => '#f47395', 'ajax_pagination' => "next_prev"));
//default sidebar
td_demo_widgets::remove_widgets_from_sidebar('default');
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_15_widget', array('sort' => 'featured', 'custom_title' => 'Style Hunter', 'limit' => '6', 'header_color' => ''));
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_ad_box_widget', array('spot_title' => '- Advertisement -', 'spot_id' => 'sidebar'));
/*  ---------------------------------------------------------------------------
    categories
Example #5
0
/*  ----------------------------------------------------------------------------
    footer text
 */
td_demo_misc::update_footer_text('Newspaper 6 is your news, entertainment, music fashion website. We provide you with the latest breaking news and videos straight from the entertainment industry.');
/*  ----------------------------------------------------------------------------
    socials
 */
td_demo_misc::add_social_buttons(array('facebook' => '#', 'twitter' => '#', 'vimeo' => '#', 'vk' => '#', 'youtube' => '#'));
/*  ----------------------------------------------------------------------------
    ads
 */
td_demo_misc::clear_all_ads();
td_demo_misc::add_ad_image('header', 'td_tech_ad_full');
td_demo_misc::add_ad_image('sidebar', 'td_tech_ad_sidebar');
td_demo_misc::add_ad_image('post_style_11', 'td_tech_ad_sidebar');
td_demo_misc::add_ad_image('custom_ad_1', 'td_tech_ad_full');
/*  ----------------------------------------------------------------------------
    sidebars
 */
//default sidebar
td_demo_widgets::remove_widgets_from_sidebar('default');
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_ad_box_widget', array('spot_title' => '- Advertisement -', 'spot_id' => 'sidebar'));
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_1_widget', array('sort' => 'random_posts', 'custom_title' => 'APLICATIONS', 'limit' => '4', 'header_color' => ''));
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_15_widget', array('sort' => 'random_posts', 'custom_title' => 'HOT NEWS', 'limit' => '4', 'header_color' => '', 'ajax_pagination' => "next_prev"));
//category sidebar
td_demo_widgets::add_sidebar('td_demo_category');
td_demo_widgets::add_widget_to_sidebar('td_demo_category', 'td_block_ad_box_widget', array('spot_title' => '- Advertisement -', 'spot_id' => 'sidebar'));
td_demo_widgets::add_widget_to_sidebar('td_demo_category', 'td_block_18_widget', array('sort' => 'random_posts', 'custom_title' => 'LATEST NEWS', 'limit' => '3', 'header_color' => ''));
td_demo_widgets::add_widget_to_sidebar('td_demo_category', 'td_block_9_widget', array('sort' => 'random_posts', 'custom_title' => 'MUST READ', 'limit' => '3', 'header_color' => '', 'ajax_pagination' => "load_more"));
/*  ---------------------------------------------------------------------------
    categories
Example #6
0
    footer text
 */
td_demo_misc::update_footer_text('Newspaper 6 is your news, entertainment, music fashion website. We provide you with the latest breaking news and videos straight from the entertainment industry.');
/*  ----------------------------------------------------------------------------
    socials
 */
td_demo_misc::add_social_buttons(array('facebook' => '#', 'twitter' => '#', 'vimeo' => '#', 'vk' => '#', 'youtube' => '#'));
/*  ----------------------------------------------------------------------------
    ads
 */
td_demo_misc::clear_all_ads();
td_demo_misc::add_ad_image('sidebar', 'td_video_sidebar_ad');
td_demo_misc::add_ad_image('post_style_11', 'td_video_sidebar_ad');
td_demo_misc::add_ad_image('content_bottom', 'td_video_full_ad');
td_demo_misc::add_ad_image('custom_ad_1', 'td_video_sidebar_ad');
td_demo_misc::add_ad_image('custom_ad_2', 'td_video_full_ad');
/*  ----------------------------------------------------------------------------
    sidebars
 */
//default sidebar
td_demo_widgets::remove_widgets_from_sidebar('default');
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_ad_box_widget', array('spot_title' => '- Advertisement -', 'spot_id' => 'sidebar'));
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_slide_widget', array('sort' => '', 'custom_title' => 'RECOMMENDED VIDEOS', 'limit' => '4', 'header_color' => ''));
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_7_widget', array('sort' => '', 'custom_title' => 'POPULAR', 'limit' => '5', 'header_color' => ''));
/*  ---------------------------------------------------------------------------
    categories
*/
$demo_cat_1_id = td_demo_category::add_category(array('category_name' => 'Videos', 'parent_id' => 0, 'category_template' => 'td_category_template_5', 'top_posts_style' => 'td_category_top_posts_style_4', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '2', 'tdc_sidebar_pos' => ''));
$demo_cat_2_id = td_demo_category::add_category(array('category_name' => 'Animations', 'parent_id' => $demo_cat_1_id, 'category_template' => 'td_category_template_5', 'top_posts_style' => 'td_category_top_posts_style_4', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '2', 'tdc_sidebar_pos' => ''));
$demo_cat_3_id = td_demo_category::add_category(array('category_name' => 'GamePlay', 'parent_id' => $demo_cat_1_id, 'category_template' => 'td_category_template_5', 'top_posts_style' => 'td_category_top_posts_style_4', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '2', 'tdc_sidebar_pos' => ''));
$demo_cat_4_id = td_demo_category::add_category(array('category_name' => 'Movie Trailers', 'parent_id' => $demo_cat_1_id, 'category_template' => 'td_category_template_5', 'top_posts_style' => 'td_category_top_posts_style_4', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '2', 'tdc_sidebar_pos' => ''));
Example #7
0
td_demo_misc::update_footer_text('Newspaper 6 is your news, entertainment, music fashion website. We provide you with the latest breaking news and videos straight from the entertainment industry.');
/*  ----------------------------------------------------------------------------
    socials
 */
td_demo_misc::add_social_buttons(array('facebook' => '#', 'twitter' => '#', 'vimeo' => '#', 'vk' => '#', 'youtube' => '#'));
/*  ----------------------------------------------------------------------------
    ads
 */
td_demo_misc::clear_all_ads();
td_demo_misc::add_ad_image('header', 'td_default_ad_full');
td_demo_misc::add_ad_image('sidebar', 'td_default_ad_sidebar');
td_demo_misc::add_ad_image('post_style_1', 'td_default_ad_sidebar');
td_demo_misc::add_ad_image('post_style_11', 'td_default_ad_sidebar');
td_demo_misc::add_ad_image('custom_ad_1', 'td_default_ad_full');
td_demo_misc::add_ad_image('custom_ad_2', 'td_default_ad_full');
td_demo_misc::add_ad_image('content_bottom', 'td_default_ad_full');
/*  ----------------------------------------------------------------------------
    sidebars
 */
//default sidebar
td_demo_widgets::remove_widgets_from_sidebar('default');
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_ad_box_widget', array('spot_title' => '- Advertisement -', 'spot_id' => 'sidebar'));
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_7_widget', array('sort' => 'random_posts', 'custom_title' => 'MOST POPULAR', 'limit' => '4', 'header_color' => '', 'ajax_pagination' => "load_more"));
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_15_widget', array('sort' => 'random_posts', 'custom_title' => 'HOT NEWS', 'limit' => '4', 'header_color' => '', 'ajax_pagination' => "next_prev"));
//category sidebar
td_demo_widgets::add_sidebar('td_demo_category');
td_demo_widgets::add_widget_to_sidebar('td_demo_category', 'td_block_ad_box_widget', array('spot_title' => '- Advertisement -', 'spot_id' => 'sidebar'));
td_demo_widgets::add_widget_to_sidebar('td_demo_category', 'td_block_18_widget', array('sort' => 'random_posts', 'custom_title' => 'LATEST NEWS', 'limit' => '3', 'header_color' => ''));
td_demo_widgets::add_widget_to_sidebar('td_demo_category', 'td_block_9_widget', array('sort' => 'random_posts', 'custom_title' => 'MUST READ', 'limit' => '3', 'header_color' => '', 'ajax_pagination' => "load_more"));
//fashion sidebar
td_demo_widgets::add_sidebar('td_demo_sidebar_fashion');
Example #8
0
//footer
td_demo_misc::update_footer_logo(array('normal' => 'td_logo_footer', 'retina' => ''));
/*  ----------------------------------------------------------------------------
    footer text
 */
td_demo_misc::update_footer_text('Newspaper 6 is your news, entertainment, music fashion website. We provide you with the latest news and videos straight from the entertainment industry.');
/*  ----------------------------------------------------------------------------
    socials
 */
td_demo_misc::add_social_buttons(array('facebook' => '#', 'twitter' => '#', 'instagram' => '#', 'vimeo' => '#', 'youtube' => '#'));
/*  ----------------------------------------------------------------------------
    ads
 */
td_demo_misc::clear_all_ads();
td_demo_misc::add_ad_image('smart_list_6', 'td_wedding_smartlist_ad');
td_demo_misc::add_ad_image('sidebar', 'td_wedding_sidebar_ad');
/*  ----------------------------------------------------------------------------
    sidebars
 */
//default sidebar
td_demo_widgets::remove_widgets_from_sidebar('default');
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_social_counter_widget', array('custom_title' => "GET SOCIAL", 'facebook' => "tagdiv", 'instagram' => "tagDiv", 'youtube' => "tagDiv"));
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_ad_box_widget', array('spot_title' => '- Advertisement -', 'spot_id' => 'sidebar'));
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_9_widget', array('sort' => '', 'custom_title' => 'Recent Posts', 'limit' => '4', 'header_color' => ''));
/*  ---------------------------------------------------------------------------
    categories
*/
$demo_cat_1_id = td_demo_category::add_category(array('category_name' => 'Planning', 'parent_id' => 0, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => ''));
$demo_cat_2_id = td_demo_category::add_category(array('category_name' => 'Ceremony', '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' => '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' => ''));
Example #9
0
//footer
td_demo_misc::update_footer_logo(array('normal' => 'td_logo_footer', 'retina' => ''));
/*  ----------------------------------------------------------------------------
    footer text
 */
td_demo_misc::update_footer_text('Newspaper 6 is your news, entertainment, music fashion website. We provide you with the latest breaking news and videos straight from the entertainment industry.');
/*  ----------------------------------------------------------------------------
    socials
 */
td_demo_misc::add_social_buttons(array('facebook' => '#', 'twitter' => '#', 'instagram' => '#', 'vimeo' => '#', 'youtube' => '#'));
/*  ----------------------------------------------------------------------------
    ads
 */
td_demo_misc::clear_all_ads();
td_demo_misc::add_ad_image('custom_ad_1', 'td_health_post_ad');
td_demo_misc::add_ad_image('sidebar', 'td_health_sidebar_ad');
/*  ----------------------------------------------------------------------------
    sidebars
 */
//default sidebar
td_demo_widgets::remove_widgets_from_sidebar('default');
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_ad_box_widget', array('spot_title' => '- Advertisement -', 'spot_id' => 'sidebar'));
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_social_counter_widget', array('custom_title' => "", 'facebook' => "tagdiv", 'instagram' => "greenislandstudios", 'youtube' => "tagDiv"));
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_9_widget', array('sort' => '', 'custom_title' => 'Recent Posts', 'limit' => '4', 'header_color' => ''));
/*  ---------------------------------------------------------------------------
    categories
*/
$demo_cat_1_id = td_demo_category::add_category(array('category_name' => 'Fitness', 'parent_id' => 0, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => ''));
$demo_cat_2_id = td_demo_category::add_category(array('category_name' => 'Weight Loss', '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' => 'Training', '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' => 'Stretching', 'parent_id' => $demo_cat_1_id, 'category_template' => '', 'top_posts_style' => '', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => '', 'tdc_layout' => '', 'tdc_sidebar_pos' => ''));
Example #10
0
//footer
td_demo_misc::update_footer_logo(array('normal' => 'td_pic_logo_footer', 'retina' => 'td_pic_logo_footer'));
/*  ----------------------------------------------------------------------------
    footer text
 */
td_demo_misc::update_footer_text('Newspaper is your news, entertainment, music fashion website. We provide you with the latest breaking news and videos straight from the entertainment industry. Fashion fades, only style remains the same. Fashion never stops. There are always projects, opportunities. Clothes mean nothing until someone lives in them.');
/*  ----------------------------------------------------------------------------
    socials
 */
td_demo_misc::add_social_buttons(array('instagram' => '#', 'facebook' => '#', 'twitter' => '#', 'pinterest' => '#', 'tumblr' => '#'));
/*  ----------------------------------------------------------------------------
    ads
 */
td_demo_misc::clear_all_ads();
td_demo_misc::add_ad_image('sidebar', 'td_blog_sidebar_ad');
td_demo_misc::add_ad_image('content_bottom', 'td_blog_full_ad');
/*  ----------------------------------------------------------------------------
    sidebars
 */
//default sidebar
td_demo_widgets::remove_widgets_from_sidebar('default');
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_ad_box_widget', array('spot_title' => '- Advertisement -', 'spot_id' => 'sidebar'));
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_18_widget', array('sort' => 'random_posts', 'custom_title' => 'POPULAR POSTS', 'limit' => '5', 'header_color' => '#cb9558'));
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_popular_categories_widget', array('custom_title' => 'POPULAR CATEGORIES', 'limit' => '6', 'header_color' => '#cb9558'));
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_slide_widget', array('sort' => 'random_posts', 'custom_title' => 'MY FAVORITES', 'limit' => '4', 'header_color' => '#cb9558'));
td_demo_widgets::add_widget_to_sidebar('default', 'td_block_social_counter_widget', array('custom_title' => "I'M SOCIAL", 'facebook' => "envato", 'twitter' => "envato", 'instagram' => "envato", 'youtube' => "envato", 'header_color' => '#cb9558'));
/*  ---------------------------------------------------------------------------
    categories
*/
$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' => ''));