<?php 

/*  ---------------------------------------------------------------------------- 
	CATEGORIES
*/
$cat_beauty_id = td_demo_category::add_category(array(
	'category_name' => 'زیبایی',
	'parent_id' => 0,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => '',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_entertainment_id = td_demo_category::add_category(array(
	'category_name' => 'سرگرمی',
	'parent_id' => 0,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => '',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_fashion_id = td_demo_category::add_category(array(
	'category_name' => 'مد',
	'parent_id' => 0,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => '',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_featured_id = td_demo_category::add_category(array(
	'category_name' => 'ویژه',
	'parent_id' => 0,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => '',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_hollywood_id = td_demo_category::add_category(array(
	'category_name' => 'هالیوود',
	'parent_id' => 0,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => '',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_modelling_id = td_demo_category::add_category(array(
	'category_name' => 'مدلینگ',
	'parent_id' => 0,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => '',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_music_id = td_demo_category::add_category(array(
	'category_name' => 'موسیقی',
	'parent_id' => 0,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => '',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_style_id = td_demo_category::add_category(array(
	'category_name' => 'طراحی',
	'parent_id' => 0,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => '',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_travel_id = td_demo_category::add_category(array(
	'category_name' => 'مسافرت',
	'parent_id' => 0,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => '',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_uncategorized_id = td_demo_category::add_category(array(
	'category_name' => 'بدون نام',
	'parent_id' => 0,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => '',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_whats_hot_id = td_demo_category::add_category(array(
	'category_name' => 'داغ‌ترین اخبار',
	'parent_id' => 0,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => '',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));


/*  ---------------------------------------------------------------------------- 
	ATTACHMMENTS
*/

/*  ---------------------------------------------------------------------------- 
	POSTS
*/

$post_td_post_the_travel_insurance_catch_that_can_double_your_cover_in_two_months_id = td_demo_content::add_post(array(
    'title' => 'خرید هاست و دامنه مطمئن از میهن گیگ',
    'file' => 'post_default.txt',
    'featured_image_td_id' => 'td_pic_6',
    'categories_id_array' => array($cat_beauty_id,$cat_entertainment_id,$cat_fashion_id,$cat_hollywood_id,$cat_modelling_id,$cat_music_id,$cat_style_id,$cat_travel_id,$cat_whats_hot_id,),
));

$post_td_post_the_weirdest_places_ashes_have_been_scattered_in_south_america_id = td_demo_content::add_post(array(
    'title' => 'در زمان آلودگی هوا چه چیزهایی بخوریم؟',
    'file' => 'post_default.txt',
    'featured_image_td_id' => 'td_pic_7',
    'categories_id_array' => array($cat_beauty_id,$cat_entertainment_id,$cat_fashion_id,$cat_hollywood_id,$cat_modelling_id,$cat_music_id,$cat_style_id,$cat_travel_id,$cat_whats_hot_id,),
));

$post_td_post_these_fabulous_photos_will_have_astonishing_impact_for_any_campaign_id = td_demo_content::add_post(array(
    'title' => 'اندروید 8 برای گوشی HTC U11 Life عرضه شد',
    'file' => 'post_default.txt',
    'featured_image_td_id' => 'td_pic_8',
    'categories_id_array' => array($cat_beauty_id,$cat_entertainment_id,$cat_fashion_id,$cat_hollywood_id,$cat_modelling_id,$cat_music_id,$cat_style_id,$cat_travel_id,$cat_whats_hot_id,),
));

$post_td_post_watch_awesome_kate_manner_go_full_dancing_pro_in_peru_this_week_id = td_demo_content::add_post(array(
    'title' => 'آیفون 10 به این زودی‌ها از رده خارج نمی‌شود',
    'file' => 'post_default.txt',
    'featured_image_td_id' => 'td_pic_9',
    'categories_id_array' => array($cat_beauty_id,$cat_entertainment_id,$cat_fashion_id,$cat_hollywood_id,$cat_modelling_id,$cat_music_id,$cat_style_id,$cat_travel_id,$cat_whats_hot_id,),
));

$post_td_post_small_yacht_market_affected_by_the_fulminant_slashed_investments_id = td_demo_content::add_post(array(
    'title' => 'گوشی Nova 2S به‌زودی معرفی می‌شود',
    'file' => 'post_default.txt',
    'featured_image_td_id' => 'td_pic_10',
    'categories_id_array' => array($cat_beauty_id,$cat_entertainment_id,$cat_fashion_id,$cat_hollywood_id,$cat_modelling_id,$cat_music_id,$cat_style_id,$cat_travel_id,$cat_whats_hot_id,),
));

$post_td_post_exotic_trips_are_getting_more_and_more_popular_in_south_america_id = td_demo_content::add_post(array(
	'title' => 'بهترین گوشی‌های اندرویدی برای عکاسی',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_1',
	'categories_id_array' => array($cat_travel_id,),
));

$post_td_post_out_of_this_world_experience_with_these_exotic_travel_destinations_id = td_demo_content::add_post(array(
	'title' => 'نسخه نهایی مایکروسافت اج برای اندروید منتشر شد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_2',
	'categories_id_array' => array($cat_travel_id,),
));

$post_td_post_work_out_as_much_as_possible_during_your_all_inclusive_vacations_id = td_demo_content::add_post(array(
	'title' => 'محیط‌ زیستی به سبک گربه‌های اشرافی',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_3',
	'categories_id_array' => array($cat_travel_id,),
));

$post_td_post_bali_travel_experience_combine_luxury_with_a_real_life_adventure_id = td_demo_content::add_post(array(
	'title' => 'چه چیز جایگزین گوشی هوشمند خواهد شد؟',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_4',
	'categories_id_array' => array($cat_travel_id,),
));

$post_td_post_a_breakthough_for_this_year_space_travel_might_become_a_thing_id = td_demo_content::add_post(array(
	'title' => 'نگاهی به خودروهای جدید بورگوارد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_5',
	'categories_id_array' => array($cat_travel_id,),
));

$post_td_post_5_most_affordable_and_fun_swimsuits_to_try_this_summer_season_id = td_demo_content::add_post(array(
	'title' => 'چرا گوشی ریزر جک هدفون ندارد؟',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_6',
	'categories_id_array' => array($cat_whats_hot_id,),
));

$post_td_post_unique_wedding_outfit_ideas_to_inspire_and_boost_creativity_id = td_demo_content::add_post(array(
	'title' => 'با ویژگی جدید اینستاگرام آشنا شوید',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_7',
	'categories_id_array' => array($cat_whats_hot_id,),
));

$post_td_post_the_most_amazing_accessories_to_buy_your_girlfriend_this_fall_id = td_demo_content::add_post(array(
	'title' => 'نگاهی به فولکس تیگوان',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_8',
	'categories_id_array' => array($cat_whats_hot_id,),
));

$post_td_post_the_best_ways_to_naturally_show_off_your_gorgeous_worked_body_id = td_demo_content::add_post(array(
	'title' => 'اپل 15 میلیون آیفون 10 فروخته است',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_9',
	'categories_id_array' => array($cat_whats_hot_id,),
));

$post_td_post_the_hottest_modern_accessories_for_a_stunning_look_this_summer_id = td_demo_content::add_post(array(
	'title' => 'آنر V10 رسما معرفی شد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_10',
	'categories_id_array' => array($cat_whats_hot_id,),
));

$post_td_post_instagram_hair_ideas_to_try_inspirational_influencers_to_follow_id = td_demo_content::add_post(array(
	'title' => 'هوش مصنوعی گوگل مچ مزاحم‌ها را می‌گیرد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_1',
	'categories_id_array' => array($cat_style_id,),
));

$post_td_post_expert_advice_the_best_cheap_retro_chic_fashion_for_this_fall_id = td_demo_content::add_post(array(
	'title' => 'ممکن است معده‌ی کسی از پرخوری بترکد؟',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_2',
	'categories_id_array' => array($cat_style_id,),
));

$post_td_post_style_spy_fashion_model_goes_casual_in_distinct_and_original_way_id = td_demo_content::add_post(array(
	'title' => 'باکس‌آفیس در تصاحب پیکسار',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_3',
	'categories_id_array' => array($cat_style_id,),
));

$post_td_post_what_makeup_to_wear_daily_no_matter_what_youve_got_planned_id = td_demo_content::add_post(array(
	'title' => 'هواوی گوشی میت 10 را در ایران رونمایی کرد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_4',
	'categories_id_array' => array($cat_style_id,),
));

$post_td_post_get_inside_a_fashion_bloggers_fancy_lifestyle_and_be_amazed_id = td_demo_content::add_post(array(
	'title' => 'نگاهی به فولکس پاسات',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_5',
	'categories_id_array' => array($cat_style_id,),
));

$post_td_post_where_to_shoot_on_site_in_ibiza_on_the_best_rated_beach_photo_locations_id = td_demo_content::add_post(array(
	'title' => 'HTC U11 به اندروید 8.0 بروزرسانی شد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_6',
	'categories_id_array' => array($cat_fashion_id,),
));

$post_td_post_romanowskys_beauty_model_relaxing_and_working_on_new_shoot_in_thailand_id = td_demo_content::add_post(array(
	'title' => 'اپل گوشی یا تبلت با نمایشگر تاشو می‌سازد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_7',
	'categories_id_array' => array($cat_fashion_id,),
));

$post_td_post_victorias_secret_fashion_afterparty_plans_to_go_off_with_a_bang_this_year_id = td_demo_content::add_post(array(
	'title' => 'گوگل اپلیکیشن‌هایش را برای آیفون 10 به‌روز کرد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_8',
	'categories_id_array' => array($cat_fashion_id,),
));

$post_td_post_sisters_land_new_swimsuit_fashion_role_on_the_cover_of_bestseller_magazine_id = td_demo_content::add_post(array(
	'title' => '5+1 تصمیم برتر در بازی‌های ویدیویی',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_9',
	'categories_id_array' => array($cat_fashion_id,),
));

$post_td_post_the_best_dressed_men_from_the_sports_industry_footballers_in_top_3_places_id = td_demo_content::add_post(array(
	'title' => 'گوشی اوپو A79 معرفی شد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_10',
	'categories_id_array' => array($cat_fashion_id,),
));

$post_td_post_hms_men_fashion_photoshoot_campaign_is_the_coolest_thing_weve_seen_id = td_demo_content::add_post(array(
	'title' => 'فایرفاکس کوانتوم یا گوگل کروم؟',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_1',
	'categories_id_array' => array($cat_beauty_id,),
));

$post_td_post_alexa_wallace_doesnt_like_to_play_by_the_standard_red_carpet_rules_id = td_demo_content::add_post(array(
	'title' => 'آیا مایکروسافت به سمت اندروید می‌رود؟',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_2',
	'categories_id_array' => array($cat_beauty_id,),
));

$post_td_post_discover_5_travel_outfits_that_are_comfortable_and_also_very_chic_id = td_demo_content::add_post(array(
	'title' => 'تبلت Surface Pro 3 ارزان می‌شود',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_3',
	'categories_id_array' => array($cat_beauty_id,),
));

$post_td_post_15_of_the_most_popular_make_up_products_with_inlcuded_video_tutorials_id = td_demo_content::add_post(array(
	'title' => 'با تبلت جدید هوآوی آشنا شوید',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_4',
	'categories_id_array' => array($cat_beauty_id,),
));

$post_td_post_10_affordable_outfits_for_beach_vacations_presented_by_mia_joanne_id = td_demo_content::add_post(array(
	'title' => 'پدیده‌ای به نام «اسکرین‌شات»',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_5',
	'categories_id_array' => array($cat_beauty_id,),
));

$post_td_post_our_favourite_celebrity_power_girl_is_ready_to_surprise_again_id = td_demo_content::add_post(array(
	'title' => 'نکسوس بعدی بر اساس LG G4 نخواهد بود',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_6',
	'categories_id_array' => array($cat_modelling_id,),
));

$post_td_post_will_amys_partying_finally_catch_up_with_her_as_she_turns_40_id = td_demo_content::add_post(array(
	'title' => 'مایکروسافت درحال خرید AMD',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_7',
	'categories_id_array' => array($cat_modelling_id,),
));

$post_td_post_striking_photos_of_gorgeous_women_from_all_around_the_world_id = td_demo_content::add_post(array(
	'title' => 'عبور تاریخی از نقطه‌ی بی‌بازگشت',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_8',
	'categories_id_array' => array($cat_modelling_id,),
));

$post_td_post_stay_inspired_top_photo_artists_reveal_how_they_find_their_muses_id = td_demo_content::add_post(array(
	'title' => 'چرا آدرس‌های اینترنتی به زبان انگلیسی هستند؟',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_9',
	'categories_id_array' => array($cat_modelling_id,),
));

$post_td_post_5_high_powered_men_are_ready_to_share_their_secrets_for_success_id = td_demo_content::add_post(array(
	'title' => 'بازی مافیا 3 در راه است',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_10',
	'categories_id_array' => array($cat_modelling_id,),
));

$post_td_post_check_out_the_best_entertainment_venues_that_will_open_next_year_id = td_demo_content::add_post(array(
	'title' => 'دوازده ترفند عمومی اندروید',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_1',
	'categories_id_array' => array($cat_entertainment_id,),
));

$post_td_post_vloggers_reveal_a_new_way_to_take_better_liked_videos_for_instagram_tv_id = td_demo_content::add_post(array(
	'title' => 'تعقیب کوسه‌ها با GPS',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_2',
	'categories_id_array' => array($cat_entertainment_id,),
));

$post_td_post_fashion_bloggers_hijacked_the_industry_cutting_a_big_piece_of_earnings_id = td_demo_content::add_post(array(
	'title' => 'جزییات سخت‌افزاری گلکسی A8 منتشر شد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_3',
	'categories_id_array' => array($cat_entertainment_id,),
));

$post_td_post_the_gillbert_sister_secures_480_million_in_hollywood_contract_deal_id = td_demo_content::add_post(array(
	'title' => 'فبلت‌ها آمده‌اند که بمانند!',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_4',
	'categories_id_array' => array($cat_entertainment_id,),
));

$post_td_post_buzz_megan_ryan_gets_an_emmy_award_on_her_25_year_old_birthday_id = td_demo_content::add_post(array(
	'title' => 'مشخصات LG G Pro 3 لو رفت؟',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_5',
	'categories_id_array' => array($cat_entertainment_id,),
));

$post_td_post_music_in_your_home_premium_sound_systems_offer_astounding_quality_id = td_demo_content::add_post(array(
	'title' => 'کدام بازی مبارزه‌ای محبوب‌تر است؟',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_6',
	'categories_id_array' => array($cat_music_id,),
));

$post_td_post_these_guys_are_making_more_money_than_anybody_could_have_ever_guessed_id = td_demo_content::add_post(array(
	'title' => 'وقتی پوست روی بدن پرینت میشود',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_7',
	'categories_id_array' => array($cat_music_id,),
));

$post_td_post_sarah_brooke_shows_off_her_stunning_body_in_concert_at_wembley_arena_id = td_demo_content::add_post(array(
	'title' => 'سونی بخش موبایل‌اش را نمی‌فروشد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_8',
	'categories_id_array' => array($cat_music_id,),
));

$post_td_post_mary_josh_win_grammys_newcommers_of_the_year_with_their_debut_album_id = td_demo_content::add_post(array(
	'title' => 'مشخصات گوشی گلکسی J2 لو رفت',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_9',
	'categories_id_array' => array($cat_music_id,),
));

$post_td_post_before_concert_therapy_breathtaking_barbados_snorkeling_experience_id = td_demo_content::add_post(array(
	'title' => 'Redmi Note 2 سنسور اثر انگشت دارد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_10',
	'categories_id_array' => array($cat_music_id,),
));

$post_td_post_major_network_is_anouncing_another_modelling_tv_show_this_fall_id = td_demo_content::add_post(array(
	'title' => 'عرضه‌ی تبلت نوکیا N1 در اندونزی',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_1',
	'categories_id_array' => array($cat_hollywood_id,),
));

$post_td_post_oscars_best_winning_actresses_all_had_a_pijama_party_on_sunday_id = td_demo_content::add_post(array(
	'title' => 'اطلاعات سخت‌افزاری G4 S منتشر شد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_2',
	'categories_id_array' => array($cat_hollywood_id,),
));

$post_td_post_shock_blockbuster_filmmaker_bruce_knox_comes_out_as_transgender_id = td_demo_content::add_post(array(
	'title' => 'کادیلاک بدون راننده، تا دو سال آینده',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_3',
	'categories_id_array' => array($cat_hollywood_id,),
));

$post_td_post_alice_pattinson_has_been_designing_clothes_for_over_40_years_id = td_demo_content::add_post(array(
	'title' => 'ایسوس و اسمارت‌فون جدیدش',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_4',
	'categories_id_array' => array($cat_hollywood_id,),
));

$post_td_post_duos_epic_win_will_be_commemorated_with_yacht_photoshoot_id = td_demo_content::add_post(array(
	'title' => 'سامسونگ SSD دو ترابایتی روانه بازار کرد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_5',
	'categories_id_array' => array($cat_hollywood_id,),
));


/*  ---------------------------------------------------------------------------- 
	MENUS
*/
$menu_td_demo_header_menu_id = td_demo_menus::create_menu('td-demo-header-menu', '');
$menu_td_demo_footer_menu_id = td_demo_menus::create_menu('td-demo-footer-menu', '');
$menu_td_demo_custom_menu_id = td_demo_menus::create_menu('td-demo-custom-menu', ''); 


/*  ---------------------------------------------------------------------------- 
	CLOUD TEMPLATES
*/

$template_header_template_id = td_demo_content::add_cloud_template(array(
    'title' => 'قالب هدر',
    'file' => 'header_cloud_template.txt',
    'template_type' => 'header',
));
td_demo_misc::update_global_header_template( 'tdb_template_' . $template_header_template_id);
//update mobile menu id in cloud header template
update_post_meta( $template_header_template_id, 'header_mobile_menu_id', $menu_td_demo_header_menu_id );


$template_footer_id = td_demo_content::add_cloud_template(array(
    'title' => 'فوتر',
    'file' => 'footer_cloud_template.txt',
    'template_type' => 'footer',
));

td_demo_misc::update_global_footer_template( 'tdb_template_' . $template_footer_id);


$template_date_template_id = td_demo_content::add_cloud_template(array(
	'title' => 'قالب تاریخ',
	'file' => 'date_cloud_template.txt',
	'template_type' => 'date',
));

td_demo_misc::update_global_date_template( 'tdb_template_' . $template_date_template_id);


$template_tag_template_id = td_demo_content::add_cloud_template(array(
	'title' => 'قالب برچسب',
	'file' => 'tag_cloud_template.txt',
	'template_type' => 'tag',
));

td_demo_misc::update_global_tag_template( 'tdb_template_' . $template_tag_template_id);


$template_author_template_id = td_demo_content::add_cloud_template(array(
	'title' => 'قالب نویسنده',
	'file' => 'author_cloud_template.txt',
	'template_type' => 'author',
));

td_demo_misc::update_global_author_template( 'tdb_template_' . $template_author_template_id);


$template_404_template_id = td_demo_content::add_cloud_template(array(
	'title' => 'قالب 404',
	'file' => '404_cloud_template.txt',
	'template_type' => '404',
));

td_demo_misc::update_global_404_template( 'tdb_template_' . $template_404_template_id);


$template_search_template_id = td_demo_content::add_cloud_template(array(
	'title' => 'قالب جستجو',
	'file' => 'search_cloud_template.txt',
	'template_type' => 'search',
));

td_demo_misc::update_global_search_template( 'tdb_template_' . $template_search_template_id);


$template_category_template_id = td_demo_content::add_cloud_template(array(
	'title' => 'قالب دسته‌بندی',
	'file' => 'cat_cloud_template.txt',
	'template_type' => 'category',
));

td_demo_misc::update_global_category_template( 'tdb_template_' . $template_category_template_id);


$template_single_template_id = td_demo_content::add_cloud_template(array(
	'title' => 'قالب نوشته',
	'file' => 'post_cloud_template.txt',
	'template_type' => 'single',
));

td_util::update_option('td_default_site_post_template', 'tdb_template_' . $template_single_template_id);



/*  ----------------------------------------------------------------------------
	PAGES
*/
$page_home_id = td_demo_content::add_page(array(
    'title' => 'صفحه اصلی',
    'file' => 'home.txt',
    'homepage' => true,
));


/*  ----------------------------------------------------------------------------
	MENUS ITEMS
*/
$menu_item_0_id = td_demo_menus::add_mega_menu(array(
    'title' => 'زیبایی',
    'add_to_menu_id' => $menu_td_demo_header_menu_id,
    'category_id' => $cat_beauty_id,
    'parent_id' => ''
));

$menu_item_1_id = td_demo_menus::add_mega_menu(array(
    'title' => 'سرگرمی',
    'add_to_menu_id' => $menu_td_demo_header_menu_id,
    'category_id' => $cat_entertainment_id,
    'parent_id' => ''
));

$menu_item_2_id = td_demo_menus::add_mega_menu(array(
    'title' => 'مد',
    'add_to_menu_id' => $menu_td_demo_header_menu_id,
    'category_id' => $cat_fashion_id,
    'parent_id' => ''
));

$menu_item_3_id = td_demo_menus::add_mega_menu(array(
    'title' => 'هالیوود',
    'add_to_menu_id' => $menu_td_demo_header_menu_id,
    'category_id' => $cat_hollywood_id,
    'parent_id' => ''
));

$menu_item_4_id = td_demo_menus::add_mega_menu(array(
    'title' => 'سرگرمی',
    'add_to_menu_id' => $menu_td_demo_header_menu_id,
    'category_id' => $cat_style_id,
    'parent_id' => ''
));

$menu_item_5_id = td_demo_menus::add_mega_menu(array(
    'title' => 'مدلینگ',
    'add_to_menu_id' => $menu_td_demo_header_menu_id,
    'category_id' => $cat_modelling_id,
    'parent_id' => ''
));

$menu_item_6_id = td_demo_menus::add_mega_menu(array(
    'title' => 'مسافرت',
    'add_to_menu_id' => $menu_td_demo_header_menu_id,
    'category_id' => $cat_travel_id,
    'parent_id' => ''
));

$menu_item_7_id = td_demo_menus::add_mega_menu(array(
    'title' => 'موسیقی',
    'add_to_menu_id' => $menu_td_demo_header_menu_id,
    'category_id' => $cat_music_id,
    'parent_id' => ''
));


/*  ----------------------------------------------------------------------------
	MENUS ITEMS
*/
$menu_item_0_id = td_demo_menus::add_link(array(
    'title' => 'تماس با ما',
    'add_to_menu_id' => $menu_td_demo_footer_menu_id,
    'url' => '#',
    'parent_id' => ''
));

$menu_item_1_id = td_demo_menus::add_link(array(
    'title' => 'درباره ما',
    'add_to_menu_id' => $menu_td_demo_footer_menu_id,
    'url' => '#',
    'parent_id' => ''
));

$menu_item_2_id = td_demo_menus::add_link(array(
    'title' => 'حریم خصوصی',
    'add_to_menu_id' => $menu_td_demo_footer_menu_id,
    'url' => '#',
    'parent_id' => ''
));


/*  ----------------------------------------------------------------------------
	MENUS ITEMS
*/
$menu_item_0_id = td_demo_menus::add_mega_menu(array(
    'title' => 'داغ‌ترین',
    'add_to_menu_id' => $menu_td_demo_custom_menu_id,
    'category_id' => $cat_whats_hot_id,
    'parent_id' => ''
));


/*  ---------------------------------------------------------------------------- 
	GENERAL SETTINGS
*/
td_demo_misc::update_background('', false);

td_demo_misc::update_background_mobile('td_pic_1');

td_demo_misc::update_background_login('td_pic_2');

td_demo_misc::update_background_header('');

td_demo_misc::update_background_footer('');

td_demo_misc::update_footer_text('');

td_demo_misc::update_logo(array('normal' => '','retina' => '','mobile' => '',));

td_demo_misc::update_footer_logo(array('normal' => '','retina' => '',));

td_demo_misc::add_social_buttons(array());