예제 #1
0
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
*/
$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
 */
예제 #2
0
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' => ''));
$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
 */
예제 #3
0
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
*/
$demo_cat_1_id = td_demo_category::add_category(array('category_name' => 'Fashion Today', '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' => 'td_demo_category', 'tdc_layout' => '11', 'tdc_sidebar_pos' => 'sidebar_right'));
$demo_cat_2_id = td_demo_category::add_category(array('category_name' => 'Fashion Shows', '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' => 'td_demo_category', 'tdc_layout' => '11', 'tdc_sidebar_pos' => 'sidebar_right'));
$demo_cat_3_id = td_demo_category::add_category(array('category_name' => 'Lingerie Fashion', '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' => 'td_demo_category', 'tdc_layout' => '11', 'tdc_sidebar_pos' => 'sidebar_right'));
$demo_cat_4_id = td_demo_category::add_category(array('category_name' => 'Milano Trends', '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' => 'td_demo_category', 'tdc_layout' => '11', 'tdc_sidebar_pos' => 'sidebar_right'));
$demo_cat_5_id = td_demo_category::add_category(array('category_name' => 'Red Carpet', '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' => 'td_demo_category', 'tdc_layout' => '11', 'tdc_sidebar_pos' => 'sidebar_right'));
$demo_cat_6_id = td_demo_category::add_category(array('category_name' => "Victoria's Secret", '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' => 'td_demo_category', 'tdc_layout' => '11', 'tdc_sidebar_pos' => 'sidebar_right'));
$demo_cat_7_id = td_demo_category::add_category(array('category_name' => 'Cosmopolitan', 'parent_id' => 0, 'category_template' => 'td_category_template_5', 'top_posts_style' => 'td_category_top_posts_style_5', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '14', 'tdc_sidebar_pos' => 'sidebar_right'));
$demo_cat_8_id = td_demo_category::add_category(array('category_name' => 'Celebrity Style', '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' => 'td_demo_category', 'tdc_layout' => '11', 'tdc_sidebar_pos' => 'sidebar_right', 'tdc_category_td_grid_style' => 'td-grid-style-2'));
$demo_cat_9_id = td_demo_category::add_category(array('category_name' => 'Beauty', 'parent_id' => 0, 'category_template' => 'td_category_template_6', 'top_posts_style' => 'td_category_top_posts_style_5', 'description' => 'Check out the latest beauty news, tips, trends and ideas from around the world only on Newspaper Fashion!', 'background_td_pic_id' => 'td_pic_4', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '12', 'tdc_sidebar_pos' => 'sidebar_right', 'tdc_category_td_grid_style' => 'td-grid-style-2'));
$demo_cat_10_id = td_demo_category::add_category(array('category_name' => 'Street Style', 'parent_id' => 0, 'category_template' => 'td_category_template_7', 'top_posts_style' => 'td_category_top_posts_style_3', 'description' => "Explore the best articles of the world's street style and read relevant fashion topics.", 'background_td_pic_id' => '', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '5', 'tdc_sidebar_pos' => 'sidebar_right'));
/*  ----------------------------------------------------------------------------
    pages
예제 #4
0
 */
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' => ''));
$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' => ''));
예제 #5
0
    'title' => 'Newseeeeeeeexxxx',
    'file' => td_global::$get_template_directory . '/includes/demos/fashion/pages/homepage.txt',
    'template' => 'page-pagebuilder-latest.php',   // the page template full file name with .php
    'homepage' => true,
    'td_layout' => 5
));

die;
*/
if (isset($_GET['puiu_test']) and TD_DEPLOY_MODE == 'dev') {
    // clean the user settings
    //td_demo_media::remove();
    td_demo_content::remove();
    td_demo_category::remove();
    td_demo_menus::remove();
    td_demo_widgets::remove();
    $td_demo_installer = new td_demo_installer();
    // remove panel settings and recompile the css as empty
    foreach (td_global::$td_options as $option_id => $option_value) {
        td_global::$td_options[$option_id] = '';
    }
    //typography settings
    td_global::$td_options['td_fonts'] = '';
    //css font files (google) buffer
    td_global::$td_options['td_fonts_css_files'] = '';
    //compile user css if any
    td_global::$td_options['tds_user_compile_css'] = td_css_generator();
    update_option(TD_THEME_OPTIONS_NAME, td_global::$td_options);
    td_demo_state::update_state($_GET['puiu_test'], 'full');
    // load panel settings
    $td_demo_installer->import_panel_settings(td_global::$demo_list[$_GET['puiu_test']]['folder'] . 'td_panel_settings.txt');
예제 #6
0
    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' => ''));
$demo_cat_5_id = td_demo_category::add_category(array('category_name' => 'Music', '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_6_id = td_demo_category::add_category(array('category_name' => "Tutorials", '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_7_id = td_demo_category::add_category(array('category_name' => 'Series', '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_8_id = td_demo_category::add_category(array('category_name' => 'Game Reviews', '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_9_id = td_demo_category::add_category(array('category_name' => 'Top Ads', '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_10_id = td_demo_category::add_category(array('category_name' => 'Best Of', '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' => ''));
/*  ----------------------------------------------------------------------------
    pages
예제 #7
0
td_demo_widgets::add_widget_to_sidebar('td_demo_sidebar_blog', 'td_block_slide_widget', array('sort' => 'random_posts', 'custom_title' => 'MY FAVORITES', 'limit' => '4', 'header_color' => '#cb9558'));
td_demo_widgets::add_widget_to_sidebar('td_demo_sidebar_blog', 'td_block_social_counter_widget', array('custom_title' => "I'M SOCIAL", 'facebook' => "envato", 'twitter' => "envato", 'instagram' => "envato", 'youtube' => "envato", 'header_color' => '#cb9558'));
//video sidebar
td_demo_widgets::add_sidebar('td_demo_sidebar_video');
td_demo_widgets::add_widget_to_sidebar('td_demo_sidebar_video', 'td_block_ad_box_widget', array('spot_title' => '- Advertisement -', 'spot_id' => 'sidebar'));
td_demo_widgets::add_widget_to_sidebar('td_demo_sidebar_video', 'td_block_slide_widget', array('sort' => '', 'custom_title' => 'RECOMMENDED VIDEOS', 'limit' => '4', 'header_color' => ''));
td_demo_widgets::add_widget_to_sidebar('td_demo_sidebar_video', 'td_block_7_widget', array('sort' => '', 'custom_title' => 'POPULAR', 'limit' => '5', 'header_color' => ''));
//tech sidebar
td_demo_widgets::add_sidebar('td_demo_sidebar_tech');
td_demo_widgets::add_widget_to_sidebar('td_demo_sidebar_tech', 'td_block_ad_box_widget', array('spot_title' => '- Advertisement -', 'spot_id' => 'sidebar'));
td_demo_widgets::add_widget_to_sidebar('td_demo_sidebar_tech', 'td_block_1_widget', array('sort' => 'random_posts', 'custom_title' => 'APLICATIONS', 'limit' => '4', 'header_color' => ''));
td_demo_widgets::add_widget_to_sidebar('td_demo_sidebar_tech', 'td_block_15_widget', array('sort' => 'random_posts', 'custom_title' => 'HOT NEWS', 'limit' => '4', 'header_color' => '', 'ajax_pagination' => "next_prev"));
//sport sidebar
td_demo_widgets::add_sidebar('td_demo_sidebar_sport');
td_demo_widgets::add_widget_to_sidebar('td_demo_sidebar_sport', 'td_block_1_widget', array('sort' => 'random_posts', 'custom_title' => 'MOST COMMENTED', 'limit' => '4', 'header_color' => ''));
td_demo_widgets::add_widget_to_sidebar('td_demo_sidebar_sport', 'td_block_15_widget', array('sort' => 'random_posts', 'custom_title' => 'HOT NEWS', 'limit' => '4', 'header_color' => '', 'ajax_pagination' => "next_prev"));
/*  ---------------------------------------------------------------------------
    categories
*/
$demo_cat_1_id = td_demo_category::add_category(array('category_name' => 'Fashion', 'parent_id' => 0, 'category_template' => 'td_category_template_4', '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' => '', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '2', 'tdc_sidebar_pos' => '', 'tdc_color' => '#e33a77'));
$demo_cat_2_id = td_demo_category::add_category(array('category_name' => 'New Look 2015', 'parent_id' => $demo_cat_1_id, 'category_template' => 'td_category_template_6', 'top_posts_style' => 'td_category_top_posts_style_3', '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' => '11', 'tdc_sidebar_pos' => ''));
$demo_cat_3_id = td_demo_category::add_category(array('category_name' => 'Street Fashion', 'parent_id' => $demo_cat_1_id, 'category_template' => '', 'top_posts_style' => 'td_category_top_posts_style_4', 'tdc_category_td_grid_style' => 'td-grid-style-5', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '5', 'tdc_sidebar_pos' => ''));
$demo_cat_4_id = td_demo_category::add_category(array('category_name' => 'Style Hunter', 'parent_id' => $demo_cat_1_id, 'category_template' => '', 'top_posts_style' => 'td_category_top_posts_style_8', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '4', 'tdc_sidebar_pos' => ''));
$demo_cat_5_id = td_demo_category::add_category(array('category_name' => 'Vogue', 'parent_id' => $demo_cat_1_id, 'category_template' => '', 'top_posts_style' => 'td_category_top_posts_style_2', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '2', 'tdc_sidebar_pos' => ''));
$demo_cat_6_id = td_demo_category::add_category(array('category_name' => "Gadgets", 'parent_id' => 0, 'category_template' => 'td_category_template_4', 'top_posts_style' => 'td_category_top_posts_style_4', 'tdc_category_td_grid_style' => 'td-grid-style-2', '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' => '', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '', 'tdc_sidebar_pos' => '', 'tdc_color' => '#5c69c1'));
$demo_cat_7_id = td_demo_category::add_category(array('category_name' => 'Lifestyle', 'parent_id' => 0, 'category_template' => 'td_category_template_3', 'top_posts_style' => '', 'tdc_category_td_grid_style' => 'td-grid-style-5', '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' => '', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '10', 'tdc_sidebar_pos' => '', 'tdc_color' => '#a444bd'));
$demo_cat_8_id = td_demo_category::add_category(array('category_name' => 'Business', 'parent_id' => $demo_cat_7_id, 'category_template' => 'td_category_template_2', 'top_posts_style' => '', 'tdc_category_td_grid_style' => 'td-grid-style-5', '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' => '', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '14', 'tdc_sidebar_pos' => '', 'tdc_color' => '#3baaf7'));
$demo_cat_9_id = td_demo_category::add_category(array('category_name' => 'Health & Fitness', 'parent_id' => $demo_cat_7_id, 'category_template' => 'td_category_template_2', 'top_posts_style' => '', 'tdc_category_td_grid_style' => 'td-grid-style-5', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '4', 'tdc_sidebar_pos' => '', 'tdc_color' => '#3fbcd5'));
$demo_cat_10_id = td_demo_category::add_category(array('category_name' => 'Recipes', 'parent_id' => $demo_cat_7_id, 'category_template' => 'td_category_template_2', 'top_posts_style' => '', 'tdc_category_td_grid_style' => 'td-grid-style-5', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '3', 'tdc_sidebar_pos' => '', 'tdc_color' => '#2f9688'));
$demo_cat_11_id = td_demo_category::add_category(array('category_name' => 'Travel', 'parent_id' => $demo_cat_7_id, 'category_template' => 'td_category_template_2', 'top_posts_style' => '', 'tdc_category_td_grid_style' => 'td-grid-style-5', 'description' => '', 'background_td_pic_id' => '', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '5', 'tdc_sidebar_pos' => '', 'tdc_color' => '#5aaf4a'));
$demo_cat_12_id = td_demo_category::add_category(array('category_name' => 'Video', 'parent_id' => 0, 'category_template' => 'td_category_template_5', 'top_posts_style' => 'td_category_top_posts_style_4', 'tdc_category_td_grid_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' => '', 'sidebar_id' => 'td_demo_category', 'tdc_layout' => '', 'tdc_sidebar_pos' => '', 'tdc_color' => '#4ac5db'));
예제 #8
0
/*  ----------------------------------------------------------------------------
    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' => ''));
$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
예제 #9
0
 function ajax_stacks_controller()
 {
     if (!current_user_can('switch_themes')) {
         echo 'Permission denied!';
     }
     // try to extend the time limit
     @set_time_limit(240);
     $td_demo_action = td_util::get_http_post_val('td_demo_action');
     $td_demo_id = td_util::get_http_post_val('td_demo_id');
     /*  ----------------------------------------------------------------------------
            Uninstall button - do uninstall with content
         */
     if ($td_demo_action == 'uninstall_demo') {
         // remove our content
         td_demo_media::remove();
         td_demo_content::remove();
         td_demo_category::remove();
         td_demo_menus::remove();
         td_demo_widgets::remove();
         // restore all settings to the state before a demo was loaded
         $td_demo_history = new td_demo_history();
         $td_demo_history->restore_all();
         // update our state - no stack installed
         td_demo_state::update_state('', '');
     } else {
         if ($td_demo_action == 'remove_content_before_install_no_content') {
             // save the history - this class will save the history only when going from user settings -> stack
             $td_demo_history = new td_demo_history();
             $td_demo_history->save_all();
             // clean the user settings
             td_demo_media::remove();
             td_demo_content::remove();
             td_demo_category::remove();
             td_demo_menus::remove();
             td_demo_widgets::remove();
             // remove panel settings and recompile the css as empty
             foreach (td_global::$td_options as $option_id => $option_value) {
                 td_global::$td_options[$option_id] = '';
             }
             //typography settings
             td_global::$td_options['td_fonts'] = '';
             //css font files (google) buffer
             td_global::$td_options['td_fonts_css_files'] = '';
             //compile user css if any
             td_global::$td_options['tds_user_compile_css'] = td_css_generator();
             update_option(TD_THEME_OPTIONS_NAME, td_global::$td_options);
         } else {
             if ($td_demo_action == 'install_no_content_demo') {
                 td_demo_state::update_state($td_demo_id, 'no_content');
                 // load panel settings - this will also recompile the css
                 $this->import_panel_settings(td_global::$demo_list[$td_demo_id]['folder'] . 'td_panel_settings.txt', false);
             } else {
                 if ($td_demo_action == 'remove_content_before_install') {
                     // save the history - this class will save the history only when going from user settings -> stack
                     $td_demo_history = new td_demo_history();
                     $td_demo_history->save_all();
                     // clean the user settings
                     td_demo_media::remove();
                     td_demo_content::remove();
                     td_demo_category::remove();
                     td_demo_menus::remove();
                     td_demo_widgets::remove();
                 } else {
                     if ($td_demo_action == 'td_media_1') {
                         // change our state
                         td_demo_state::update_state($td_demo_id, 'full');
                         // load panel settings
                         $this->import_panel_settings(td_global::$demo_list[$td_demo_id]['folder'] . 'td_panel_settings.txt', true);
                         // load the media import script
                         require_once td_global::$demo_list[$td_demo_id]['folder'] . 'td_media_1.php';
                     } else {
                         if ($td_demo_action == 'td_media_2') {
                             // load the media import script
                             require_once td_global::$demo_list[$td_demo_id]['folder'] . 'td_media_2.php';
                         } else {
                             if ($td_demo_action == 'td_media_3') {
                                 // load the media import script
                                 require_once td_global::$demo_list[$td_demo_id]['folder'] . 'td_media_3.php';
                             } else {
                                 if ($td_demo_action == 'td_media_4') {
                                     // load the media import script
                                     require_once td_global::$demo_list[$td_demo_id]['folder'] . 'td_media_4.php';
                                 } else {
                                     if ($td_demo_action == 'td_media_5') {
                                         // load the media import script
                                         require_once td_global::$demo_list[$td_demo_id]['folder'] . 'td_media_5.php';
                                     } else {
                                         if ($td_demo_action == 'td_media_6') {
                                             // load the media import script
                                             require_once td_global::$demo_list[$td_demo_id]['folder'] . 'td_media_6.php';
                                         } else {
                                             if ($td_demo_action == 'td_import') {
                                                 require_once td_global::$demo_list[$td_demo_id]['folder'] . 'td_import.php';
                                             }
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }